MediaWiki:Common.css
Заўвага: Пасля апублікавання, вам можа спатрэбіцца ачыстка кэшу браўзера, каб убачыць унесеныя змены.
- Firefox / Safari: націсніце Reload, утрымліваючы Shift, або націсніце Ctrl-F5 ці Ctrl-R (⌘-R на Макінтошах)
- Google Chrome: Націсніце Ctrl-Shift-R (⌘-Shift-R на Mac)
- Internet Explorer / Edge: націсніце Refresh, утрымліваючы Ctrl, або націсніце Ctrl-F5
- Opera: Увайдзіце Menu → Settings (Opera → Preferences на Mac), далей Privacy & security → Clear browsing data → Cached images and files.
/* хаваньне блёкаў для {{Схаваць пусты}} */
.hiddenStructure {
display: none !important;
}
/* Якасьць зьместу */
.quality4 {
background:#90ff90;
}
.quality3 {
background:#ffe867;
}
.quality2 {
background:#b0b0ff;
}
.quality1 {
background:#ffa0a0;
}
.quality0 {
background:#dddddd;
}
/* Галоўная старонка */
body.page-Галоўная_старонка .firstHeading,
body.page-Галоўная_старонка #siteSub
{
display: none;
}
div.main_page
{
position: static;
}
/* some new stuff for styling the main page header */
table.tblMain_page_header
{
margin: 0 0 1em 0;
/* border and background-color properties set in shared rules; see further down */
width: 100%;
}
table.tblMain_page_header div.divMPheading_wrapper
{
float: left;
padding-right: 7em;
}
table.tblMain_page_header .h1
{
font-size: 150%;
padding-bottom: 0.15em;
}
table.tblMain_page_header .h2
{
font-size: 90%;
}
table.tblMain_page_header ul
{
margin: 0; /* override margin-top to better align with h1-element; margin-left isn't applicable in this context */
}
table.tblMain_page_header hr
{
color: #569BBB;
background-color: #569BBB;
}
/* may want to loosen specificity a bit... and rename. more likely, it'll become floats... */
div.main_page table.subheader
{
width: 100%;
margin: -0.8em 0 -0.7em 0;
background: none;
font-size: 0.95em;
}
div.main_page table.subheader td
{
padding: 10px 0;
}
/* some new stuff for styling the layout and look of the main page columns and modules */
div#divMain_page-ColumnWrapper
{
float: left;
width: 100%;
}
div#divMain_page-PrimaryMaterial
{
float: left;
width: 51%;
}
div#divMain_page-SecondaryMaterial
{
float: right;
width: 49%;
}
div#divMain_page-TertiaryMaterial
{
float: left;
width: 100%;
}
div#divMain_page-PrimaryMaterial table.tblMPmodule,
div#divMain_page-SecondaryMaterial table.tblMPmodule,
div#divMain_page-TertiaryMaterial table.tblMPmodule
{
width: 100%;
background-color: transparent;
}
div#divMain_page-PrimaryMaterial table.tblMPmodule td.tdMPmodule,
div#divMain_page-SecondaryMaterial table.tblMPmodule td.tdMPmodule,
div#divMain_page-TertiaryMaterial table.tblMPmodule td.tdMPmodule
{
border: 1px solid #cedff2;
padding: 1em 1em 0.5em;
font-size: 100%;
}
div#divMain_page-PrimaryMaterial table.tblMPmodule td.tdMPmodule h2,
div#divMain_page-SecondaryMaterial table.tblMPmodule td.tdMPmodule h2,
div#divMain_page-TertiaryMaterial table.tblMPmodule td.tdMPmodule h2
{
font-size: 135%;
background-color: #569BBB;
color: White;
margin: 0 0 3px 0;
padding: 1px 0 0 0;
text-align: center;
line-height: 1.3em;
}
/* common rule for main page header and for prettytables embedded in main page moldules */
table.tblMain_page_header,
div#divMain_page-ColumnWrapper table.tblMPmodule table.prettytable,
div#divMain_page-ColumnWrapper table.tblMPmodule table.prettytable th,
div#divMain_page-ColumnWrapper table.tblMPmodule table.prettytable td
{
border: 1px solid #569BBB;
}
table.tblMain_page_header,
div#divMain_page-ColumnWrapper table.tblMPmodule table.prettytable th
{
background-color: #f1f5fc;
}
/* When <div class="nonumtoc"> is used on the table of contents,
the ToC will display without numbers */
.nonumtoc .tocnumber { display: none; }
.nonumtoc #toc ul,
.nonumtoc .toc ul {
line-height: 1.5em;
list-style: none;
margin: .3em 0 0;
padding: 0;
}
.nonumtoc #toc ul ul,
.nonumtoc .toc ul ul {
/* @noflip */
margin: 0 0 0 2em;
}
/* Deprecated - apply using the above definitions instead */
/* #hideTOCnumbers { display: none; } */
/* main page stuff beyond here still to-review */
.main_page h1
{
margin: 0 !important;
padding: 0;
border: 0;
font-size: 1.75em;
}
.main_page .titlebox
{
width: 100%;
padding-left: 2em;
border: 1px solid #CCC;
background-color: #FCFCFC;
}
.main_page .titlebox div
{
margin-left: 2em;
font-size: 0.95em;
}
.main_page .portals
{
width: 11%;
font-size: 0.95em;
}
.main_page th
{
padding-left: 0.4em;
border: 1px solid #A3B0BF;
background-color: #ECDCC8;
text-align: left;
font-family: Arial, Helvetica, sans-serif;
font-size: 1.2em;
}
.main_page .blurb
{
width: 60%;
padding: 1em;
border: 1px solid #68A;
background-color: #FFE4C4;
}
.main_page .blurb img
{
float: left;
margin: 0 .7em 0 .3em;
}
.main_page .mpsidebox
{
width: 30%;
border: 1px solid #68A !important;
}
.main_page .featuredtext
{
border: 1px solid #68A;
}
.main_page .mpsidebox table,
.main_page .featured_text table
{
width: 100%;
vertical-align: top;
}
.main_page .sisterprojects
{
margin: 0 -8px;
border-spacing: 8px;
}
.main_page .sisterprojects .sptd
{
padding: 10px;
border: 1px solid #BBB;
vertical-align: top;
}
/* вышэй — стылі для Галоўнай старонкі */
/*********
** Page namespace
*********/
/* transcluded pages */
.lefttext p
{
text-indent: 2em;
}
.lefttext .poem p
{
text-indent: 0;
}
.lefttext .tiInherit p
{
text-indent: inherit;
}
.lefttext
{
width: 33em;
text-align: justify;
margin-left: 5em;
}
.leftoutdent
{
padding-left: 2em;
text-indent: -2em;
max-width: 33em;
margin-left: 5em;
}
/* similar to tiInherit, above; wrap something with a div of this class and set line-height; poem-tags, too */
.lhInherit p
{
line-height: inherit;
}
.quote
{
color: #2F4F4F; /* darkslategray (not a valid color name) */
margin-left: 2em;
margin-right: 2em;
}
/* Justify */
body.ns-104
{
text-align: justify;
}
.portal { /* выключэньне для мэню */
text-align:left !important;
}
/* Paragraph markers (no IE6 support) */
body.ns-104 div.pagetext>p
{
background: url(//upload.wikimedia.org/wikipedia/commons/thumb/b/b6/Paragraph-mark.svg/6px-Paragraph-mark.svg.png) 0 .3em no-repeat;
margin-left: -10px;
padding-left: 10px;
}
/* ProofreadPage */
.quality4 { background-color: #90ff90; }
.quality3 { background-color: #ffe867; }
.quality2 { background-color: #b0b0ff; }
.quality1 { background-color: #ffa0a0; }
.quality0 { background-color: #ddd; }
.ns-104 .editsection { visibility:hidden; }
/* not in remarks */
div#remarks a.quality4 { background:#ffffff; }
div#remarks a.quality3 { background:#ffffff; }
div#remarks a.quality2 { background:#ffffff; }
div#remarks a.quality1 { background:#ffffff; }
div#remarks a.quality0 { background:#ffffff; }
/* ссоўваньне тэксту для зьмяшчэньня нумароў старонак */
@media screen, handheld, projection
{
div.indented-page
{
margin-left:3em;
}
cite *.printonly
{
display: none;
}
}
/*
* Dynamic Layouts
*/
#text-wrap { margin-left:3em; position:relative; }
/* sidenotes */
body.ns-104 .sidenote-left { position:absolute; left:0; width:6em; padding-right:1em; text-indent:0em; text-align:left;}
body.ns-104 .sidenote-right { position:absolute; right:0; width:6em; padding-left:1em; text-indent:0em; text-align:left;}
/* Аздабленьне колерам фону крыніцы пасьля пераходу да яе для паляпшэньня навігацыі — з be-x-old.wikipedia.org */
ol.references > li:target {
background-color: #DEF;
}
sup.reference:target {
background-color: #DEF;
}
/* Стылі для цытатаў */
cite {
font-style: normal;
word-wrap: break-word;
}
/* Аздабленьне колерам фону цытаты, калі яна знаходзіцца ў сэкцыі Крыніцы/Заўвагі пасьля пераходу да яе — з be-x-old.wikipedia.org */
cite:target {
background-color: #DEF;
}
/* Шахматнае тло у прасторы назваў Файл, паводле Commons */
.ns-6 .gallerybox .thumb img,
.ns-6 #file img {
background: white url("//upload.wikimedia.org/wikipedia/commons/5/5d/Checker-16x16.png") repeat;
}
/* Фікс для Google Chrome (таксама для пэўных вэрсіяў Firefox і Safari), дез ў <pre></pre> адлюстроўваецца
вельмі дробны шрыфт. */
tt, code, pre {
font-family: monospace, sans-serif !important;
}
/* Стыль спасылак на Вікіпэдыю абодвума правапісамі */
.bewikilink {
color: #0645ad;
}
.bewikilink-hover {
position: absolute;
display: inline;
background: rgba(125,210,240,0.95);
color: #000;
padding: 5px;
border-radius: 5px;
font-weight: normal;
text-align: left;
z-index: 99;
}