MediaWiki:Common.css — различия между версиями
Материал из RPGround Wiki
EvilCat (обсуждение | вклад) |
EvilCat (обсуждение | вклад) |
||
(не показано 10 промежуточных версий этого же участника) | |||
Строка 50: | Строка 50: | ||
table.toccolours th {background-color: #ccccff} | table.toccolours th {background-color: #ccccff} | ||
+ | span.spoilerline { border: solid 1px white; } | ||
span.hiddenline { color:white; border: dotted 1px black; } | span.hiddenline { color:white; border: dotted 1px black; } | ||
− | div. | + | div.transparent, span.transparent { opacity:0; filter:alpha(opacity=0); } |
+ | a.tinytext { font-size:80%; } | ||
+ | span.versiondata, span.wordvariant { display:none; } | ||
+ | |||
+ | .collapseButton { /* 'show'/'hide' buttons created dynamically by the */ | ||
+ | float: right; /* CollapsibleTables JavaScript in [[MediaWiki:Common.js]] */ | ||
+ | font-weight: normal; /* are styled here so they can be customised. */ | ||
+ | text-align: right; | ||
+ | width: auto; | ||
+ | cursor: pointer; | ||
+ | padding-left: 4px; | ||
+ | } | ||
+ | |||
+ | .show_original | ||
+ | { | ||
+ | font-size:0.8em; | ||
+ | cursor:pointer; | ||
+ | } | ||
+ | .hidden_original | ||
+ | { | ||
+ | display:none; | ||
+ | } | ||
+ | .original:hover .hidden_original | ||
+ | { | ||
+ | display:block; | ||
+ | } | ||
+ | |||
+ | === d20 Table === | ||
+ | |||
+ | {| class="d20" | ||
+ | |+ | ||
+ | =====Table: Sample d20 Table===== | ||
+ | |- | ||
+ | ! Blah || Dee || Blah | ||
+ | |- | ||
+ | | Yackety || Schmackety || Wheeeeeeeeeee | ||
+ | |- class="even" | ||
+ | | Lovely || Spam || Wonderful | ||
+ | |- | ||
+ | | colspan="3" class="foot" | | ||
+ | # some footnote. | ||
+ | |- | ||
+ | | colspan="3" class="skill" | | ||
+ | '''Class Skills (4 + [[Int]] modifier per level, ×4 at 1st level)'''<br/> | ||
+ | [[Concentration]] ([[Con]]). | ||
+ | |} | ||
+ | |||
+ | <pre> */ | ||
+ | |||
+ | table.minimize | ||
+ | { | ||
+ | white-space: nowrap; | ||
+ | width: 1px; | ||
+ | } | ||
+ | |||
+ | table.d20 | ||
+ | { | ||
+ | margin: 0 0 1em; | ||
+ | text-align: center; | ||
+ | border-collapse: collapse; | ||
+ | } | ||
+ | |||
+ | table.d20 th, table.d20 td | ||
+ | { | ||
+ | border-width: 1px; | ||
+ | border-style: solid; | ||
+ | padding: 0.077em 0.385em; | ||
+ | } | ||
+ | |||
+ | table.d20 th | ||
+ | { | ||
+ | vertical-align: bottom; | ||
+ | } | ||
+ | |||
+ | table.d20 td | ||
+ | { | ||
+ | vertical-align: top; | ||
+ | } | ||
+ | |||
+ | table.d20 caption | ||
+ | { | ||
+ | margin: 0 0 0.231em; | ||
+ | text-align: left; | ||
+ | font-weight: bold; | ||
+ | vertical-align: bottom; | ||
+ | padding-top: 0.5em; | ||
+ | } | ||
+ | |||
+ | table.d20 caption *, | ||
+ | #bodyContent table.d20 caption * | ||
+ | { | ||
+ | padding: 0; | ||
+ | margin: 0; | ||
+ | line-height: 1.25em; | ||
+ | } | ||
+ | |||
+ | table.d20 caption h5 | ||
+ | { | ||
+ | float: left; | ||
+ | } | ||
+ | |||
+ | table.d20 caption div | ||
+ | { | ||
+ | float: left; | ||
+ | } | ||
+ | |||
+ | table.d20 caption p | ||
+ | { | ||
+ | text-align: center; | ||
+ | } | ||
+ | |||
+ | table.d20 caption.epic p | ||
+ | { | ||
+ | float: left; | ||
+ | clear: left; | ||
+ | text-align: left; | ||
+ | } | ||
+ | |||
+ | table.d20 caption h5 .editsection | ||
+ | { | ||
+ | display: none; | ||
+ | } | ||
+ | |||
+ | table.d20 caption h5:after, | ||
+ | #bodyContent table.d20 caption h5:after | ||
+ | { | ||
+ | content: " "; | ||
+ | white-space: pre; | ||
+ | } | ||
+ | |||
+ | table.minimize td.foot | ||
+ | { | ||
+ | white-space: normal; | ||
+ | } | ||
+ | |||
+ | td.foot | ||
+ | { | ||
+ | font-size: smaller; | ||
+ | text-align: left; | ||
+ | } | ||
+ | |||
+ | td.foot ol | ||
+ | { | ||
+ | margin-top: 0; | ||
+ | margin-left: 2em; | ||
+ | } | ||
+ | |||
+ | td.foot li | ||
+ | { | ||
+ | margin-bottom: 0; | ||
+ | } | ||
+ | |||
+ | table.d20 td.skill | ||
+ | { | ||
+ | text-align: left; | ||
+ | border: none; | ||
+ | padding: 0; | ||
+ | } |
Текущая версия на 16:18, 25 мая 2012
/** Размещённый здесь CSS будет применяться ко всем темам оформления */ /* [[wikipedia:ru:MediaWiki:Common.css|Википедия:Оформление таблиц]] */ table.standard, table.wide {border:1px solid #AAAAAA; border-collapse: collapse} table.standard th, table.wide th, table.wikitable th {border:1px solid #AAAAAA; padding-left:0.2em; padding-right:0.2em; background-color:#EEEEFF} table.standard td, table.wide td {border: 1px solid #AAAAAA; padding-left:0.2em; padding-right:0.2em} table.standard caption, table.wide caption, table.tiles caption {font-weight:bold; padding-top: 0.2em; padding-bottom:0.2em} table.wide {width: 100 %} table.simple {border-color:#AAAAAA; border-collapse:collapse} table.simple th, table.simple td {border-color:#AAAAAA; padding-left:0.2em; padding-right:0.2em} table.tiles {border-collapse:separate; border-spacing:2px} table.tiles th {padding-left:0.2em; padding-right:0.2em; background-color: #EEEEFF} table.tiles td {padding-left:0.2em; padding-right:0.2em; background-color: #F0F0F0} table.graytable {background:#f0f0f0; padding:1em; width: 100 %} table.graytable caption {padding:0.5em 0 0 0; background:#f0f0f0; font-size:100 %; font-weight:bold} table.graytable caption span.subcaption {font-size:80 %; font-weight:normal} table.graytable th, table.graytable td {font-size:80 %} table.wikitable, table.prettytable {margin:1em 1em 1em 0; background:#F9F9F9; border:1px solid #AAAAAA; border-collapse:collapse} table.wikitable th, table.wikitable td, table.prettytable th, table.prettytable td {border:1px solid #AAAAAA; padding:0.2em} table.wikitable caption, table.prettytable caption {margin-left:inherit; margin-right:inherit; font-size:larger; font-weight:bold} table.prettytable th {background:#f2f2f2} tr.highlight th {background-color: #EEEEFF} tr.highlight td {background-color: #FFFFEE} tr.bright th {background-color: #CCCCFF} tr.bright td {background-color: #FFEECC} tr.shadow th, tr.shadow td {background-color: #F0F0F0} tr.dark th, tr.dark td {background-color: #CCCCCC} table th.highlight {background-color: #EEEEFF} table td.highlight {background-color: #FFFFEE} table th.bright {background-color: #CCCCFF} table td.bright {background-color: #FFEECC} table th.shadow, table td.shadow {background-color: #F0F0F0} table th.dark, table td.dark {background-color: #CCCCCC} table th.transparent, table td.transparent, .transparent {background-color: transparent} table.toccolours th {background-color: #ccccff} span.spoilerline { border: solid 1px white; } span.hiddenline { color:white; border: dotted 1px black; } div.transparent, span.transparent { opacity:0; filter:alpha(opacity=0); } a.tinytext { font-size:80%; } span.versiondata, span.wordvariant { display:none; } .collapseButton { /* 'show'/'hide' buttons created dynamically by the */ float: right; /* CollapsibleTables JavaScript in [[MediaWiki:Common.js]] */ font-weight: normal; /* are styled here so they can be customised. */ text-align: right; width: auto; cursor: pointer; padding-left: 4px; } .show_original { font-size:0.8em; cursor:pointer; } .hidden_original { display:none; } .original:hover .hidden_original { display:block; } === d20 Table === {| class="d20" |+ =====Table: Sample d20 Table===== |- ! Blah || Dee || Blah |- | Yackety || Schmackety || Wheeeeeeeeeee |- class="even" | Lovely || Spam || Wonderful |- | colspan="3" class="foot" | # some footnote. |- | colspan="3" class="skill" | '''Class Skills (4 + [[Int]] modifier per level, ×4 at 1st level)'''<br/> [[Concentration]] ([[Con]]). |} <pre> */ table.minimize { white-space: nowrap; width: 1px; } table.d20 { margin: 0 0 1em; text-align: center; border-collapse: collapse; } table.d20 th, table.d20 td { border-width: 1px; border-style: solid; padding: 0.077em 0.385em; } table.d20 th { vertical-align: bottom; } table.d20 td { vertical-align: top; } table.d20 caption { margin: 0 0 0.231em; text-align: left; font-weight: bold; vertical-align: bottom; padding-top: 0.5em; } table.d20 caption *, #bodyContent table.d20 caption * { padding: 0; margin: 0; line-height: 1.25em; } table.d20 caption h5 { float: left; } table.d20 caption div { float: left; } table.d20 caption p { text-align: center; } table.d20 caption.epic p { float: left; clear: left; text-align: left; } table.d20 caption h5 .editsection { display: none; } table.d20 caption h5:after, #bodyContent table.d20 caption h5:after { content: " "; white-space: pre; } table.minimize td.foot { white-space: normal; } td.foot { font-size: smaller; text-align: left; } td.foot ol { margin-top: 0; margin-left: 2em; } td.foot li { margin-bottom: 0; } table.d20 td.skill { text-align: left; border: none; padding: 0; }