MediaWiki:Common.css: различия между версиями
Перейти к навигации
Перейти к поиску
Langator (обсуждение | вклад) (Новая страница: « div.mw-geshi { padding: 1em; margin: 1em 0; border: 1px dashed #2f6fab; }») |
Langator (обсуждение | вклад) м |
||
(не показано 8 промежуточных версий этого же участника) | |||
Строка 1: | Строка 1: | ||
− | + | /** div.mw-geshi { | |
− | div.mw-geshi { | ||
padding: 1em; | padding: 1em; | ||
margin: 1em 0; | margin: 1em 0; | ||
border: 1px dashed #2f6fab; | border: 1px dashed #2f6fab; | ||
+ | } **/ | ||
+ | |||
+ | /* <syntaxhighlight lang="css"> */ | ||
+ | |||
+ | /* This css will override styles used by the GeSHi syntax highlighting, | ||
+ | such that less awful colors for the highlighting can be chosen. */ | ||
+ | |||
+ | |||
+ | /** | ||
+ | * Language code: "vb" | ||
+ | * | ||
+ | * Overrides colors used for keywords from that horrible gold | ||
+ | * to more tolerable blue. Other colors left as default at present time. | ||
+ | */ | ||
+ | .source-vb .kw1 { | ||
+ | color: #006 !important; | ||
+ | } | ||
+ | |||
+ | /** | ||
+ | * Language code: "cpp" | ||
+ | * | ||
+ | * Color fix for member variables | ||
+ | */ | ||
+ | .source-cpp .me1 { color:#499; } | ||
+ | .source-cpp .me2 { color:#499; } | ||
+ | |||
+ | |||
+ | /* Reinstating borders */ | ||
+ | body.skin-monobook div.mw-geshi { | ||
+ | padding: 1em; | ||
+ | border: 1px dashed #2f6fab; | ||
+ | color: black; | ||
+ | background-color: #f9f9f9; | ||
+ | line-height: 1.1em; | ||
+ | } | ||
+ | |||
+ | body.skin-modern div.mw-geshi { | ||
+ | border: solid 1px #3c78b5; | ||
+ | padding: 0.4em; | ||
+ | background-color: #f0f0f0; | ||
+ | } | ||
+ | |||
+ | body.skin-simple div.mw-geshi { | ||
+ | margin: 2em; | ||
+ | border: solid 1px black; | ||
+ | } | ||
+ | |||
+ | body.skin-chick div.mw-geshi { | ||
+ | padding: 1em; | ||
+ | border: 1px dashed #2f6fab; | ||
+ | color: black; | ||
+ | background-color: #f9f9f9; | ||
+ | line-height: 1.1em; | ||
+ | } | ||
+ | |||
+ | body.skin-vector div.mw-geshi { | ||
+ | padding: 1em; | ||
+ | border: 1px dashed #2f6fab; | ||
+ | color: black; | ||
+ | background-color: #f9f9f9; | ||
+ | line-height: 1.1em; | ||
+ | } | ||
+ | |||
+ | |||
+ | /* Fix so <source> tags, and .css and .js pages, get normal text size | ||
+ | also in some versions of Firefox, Safari, Konqueror, Chrome etc. */ | ||
+ | div.mw-geshi div, | ||
+ | pre { | ||
+ | font-family: monospace, "Courier New" !important; | ||
+ | } | ||
+ | |||
+ | /* </syntaxhighlight> */ | ||
+ | |||
+ | |||
+ | |||
+ | table.collapsed tr.collapsible { | ||
+ | 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; | ||
+ | } | ||
+ | |||
+ | .infobox { | ||
+ | border: 1px solid #AAA; | ||
+ | border-top-width: 1px; | ||
+ | border-right-width: 1px; | ||
+ | border-bottom-width: 1px; | ||
+ | border-left-width: 1px; | ||
+ | border-top-style: solid; | ||
+ | border-right-style: solid; | ||
+ | border-bottom-style: solid; | ||
+ | border-left-style: solid; | ||
+ | border-top-color: #AAA; | ||
+ | border-right-color: #AAA; | ||
+ | border-bottom-color: #AAA; | ||
+ | border-left-color: #AAA; | ||
+ | background-color: #F9F9F9; | ||
+ | color: black; | ||
+ | margin: 0.5em 0 0.5em 1em; | ||
+ | margin-top: 0.5em; | ||
+ | margin-right: 0px; | ||
+ | margin-bottom: 0.5em; | ||
+ | margin-left: 1em; | ||
+ | padding: 0.2em; | ||
+ | padding-top: 0.2em; | ||
+ | padding-right: 0.2em; | ||
+ | padding-bottom: 0.2em; | ||
+ | padding-left: 0.2em; | ||
+ | float: right; | ||
+ | clear: right; | ||
+ | text-align: left; | ||
+ | font-size: 88%; | ||
+ | line-height: 1.5em; | ||
+ | } | ||
+ | |||
+ | .infobox caption { | ||
+ | font-size: 125%; | ||
+ | font-weight: bold; | ||
+ | } | ||
+ | |||
+ | .infobox td, .infobox th { | ||
+ | vertical-align: top; | ||
} | } |
Текущая версия на 04:35, 25 апреля 2011
/** div.mw-geshi {
padding: 1em;
margin: 1em 0;
border: 1px dashed #2f6fab;
} **/
/* <syntaxhighlight lang="css"> */
/* This css will override styles used by the GeSHi syntax highlighting,
such that less awful colors for the highlighting can be chosen. */
/**
* Language code: "vb"
*
* Overrides colors used for keywords from that horrible gold
* to more tolerable blue. Other colors left as default at present time.
*/
.source-vb .kw1 {
color: #006 !important;
}
/**
* Language code: "cpp"
*
* Color fix for member variables
*/
.source-cpp .me1 { color:#499; }
.source-cpp .me2 { color:#499; }
/* Reinstating borders */
body.skin-monobook div.mw-geshi {
padding: 1em;
border: 1px dashed #2f6fab;
color: black;
background-color: #f9f9f9;
line-height: 1.1em;
}
body.skin-modern div.mw-geshi {
border: solid 1px #3c78b5;
padding: 0.4em;
background-color: #f0f0f0;
}
body.skin-simple div.mw-geshi {
margin: 2em;
border: solid 1px black;
}
body.skin-chick div.mw-geshi {
padding: 1em;
border: 1px dashed #2f6fab;
color: black;
background-color: #f9f9f9;
line-height: 1.1em;
}
body.skin-vector div.mw-geshi {
padding: 1em;
border: 1px dashed #2f6fab;
color: black;
background-color: #f9f9f9;
line-height: 1.1em;
}
/* Fix so <source> tags, and .css and .js pages, get normal text size
also in some versions of Firefox, Safari, Konqueror, Chrome etc. */
div.mw-geshi div,
pre {
font-family: monospace, "Courier New" !important;
}
/* </syntaxhighlight> */
table.collapsed tr.collapsible {
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;
}
.infobox {
border: 1px solid #AAA;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-top-style: solid;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
border-top-color: #AAA;
border-right-color: #AAA;
border-bottom-color: #AAA;
border-left-color: #AAA;
background-color: #F9F9F9;
color: black;
margin: 0.5em 0 0.5em 1em;
margin-top: 0.5em;
margin-right: 0px;
margin-bottom: 0.5em;
margin-left: 1em;
padding: 0.2em;
padding-top: 0.2em;
padding-right: 0.2em;
padding-bottom: 0.2em;
padding-left: 0.2em;
float: right;
clear: right;
text-align: left;
font-size: 88%;
line-height: 1.5em;
}
.infobox caption {
font-size: 125%;
font-weight: bold;
}
.infobox td, .infobox th {
vertical-align: top;
}