Åpne hovedmenyen

Endringer

MediaWiki:Common.css

4 498 byte lagt til, 16. mai 2016 kl. 14:07
Lagt til flere klasser
margin:1em auto;
}
 
/*
Style for references according to media width
© John Erling Blad, Creative Commons by Attribution 3.0
*/
@media all {
#mw-content-text > .references {
-ms-column-count: 1;
-webkit-column-count: 1;
-moz-column-count: 1;
column-count: 1;
font-size: 95%;
}
#mw-content-text > ol.references {
margin-left:0;
}
#mw-content-text > ol.references li {
list-style: decimal;
margin-left: 3.2em;
-webkit-column-break-inside: avoid; /* well, webkit */
page-break-inside: avoid; /* most browsers support this */
break-inside: avoid; /* some modern browsers support this */
}
}
/* if bigger than the smallest, that is default, then override with this */
@media all and (min-width: 50em) and (max-width: 100em) {
#mw-content-text > .references {
-ms-column-count: 2;
-webkit-column-count: 2;
-moz-column-count: 2;
column-count: 2;
font-size: 90%;
}
#mw-content-text > .references.has-1-children,
#mw-content-text > .references.has-2-children {
-ms-column-count: 1;
-webkit-column-count: 1;
-moz-column-count: 1;
column-count: 1;
font-size: 95%;
}
}
/* if bigger than the seccond smallest, and all previous, then override with this */
@media all and (min-width: 100em) and (max-width: 150em) {
#mw-content-text > .references {
-ms-column-count: 3;
-webkit-column-count: 3;
-moz-column-count: 3;
column-count: 3;
font-size: 85%;
}
#mw-content-text > .references.has-1-children,
#mw-content-text > .references.has-2-children {
-ms-column-count: 1;
-webkit-column-count: 1;
-moz-column-count: 1;
column-count: 1;
font-size: 95%;
}
#mw-content-text > .references.has-3-children,
#mw-content-text > .references.has-4-children {
-ms-column-count: 2;
-webkit-column-count: 2;
-moz-column-count: 2;
column-count: 2;
font-size: 90%;
}
}
/* if bigger than the third smallest, and all previous, then override with this */
@media all and (min-width: 150em) {
#mw-content-text > .references {
-ms-column-count: auto;
-webkit-column-count: auto;
-moz-column-count: auto;
column-count: auto;
-ms-column-width: 50em;
-webkit-column-width: 50em;
-moz-column-width: 50em;
column-width: 50em;
font-size: 80%;
}
#mw-content-text > .references.has-1-children,
#mw-content-text > .references.has-2-children {
-ms-column-count: 1;
-webkit-column-count: 1;
-moz-column-count: 1;
column-count: 1;
font-size: 95%;
}
#mw-content-text > .references.has-3-children,
#mw-content-text > .references.has-4-children {
-ms-column-count: 2;
-webkit-column-count: 2;
-moz-column-count: 2;
column-count: 2;
font-size: 90%;
}
#mw-content-text > .references.has-5-children,
#mw-content-text > .references.has-6-children {
-ms-column-count: 3;
-webkit-column-count: 3;
-moz-column-count: 3;
column-count: 3;
font-size: 85%;
}
}
/* if print media, then override with this */
@media print {
#mw-content-text > .references {
-ms-column-count: 2;
-webkit-column-count: 2;
-moz-column-count: 2;
column-count:2;
font-size: 90%;
}
}
 
/*
Style for changing list number system
© John Erling Blad, Creative Commons by Attribution 3.0
*/
#mw-content-text > .lower-alpha + .references > li {
list-style-type: lower-alpha;
}
#mw-content-text > .upper-alpha + .references > li {
list-style-type: upper-alpha;
}
#mw-content-text > .lower-roman + .references > li {
list-style-type: lower-roman;
}
#mw-content-text > .upper-roman + .references > li {
list-style-type: upper-roman;
}
 
#mw-content-text > .following-list-style-type-lower-alpha + ol { list-style-type:lower-alpha; }
#mw-content-text > .following-list-style-type-upper-alpha + ol { list-style-type:upper-alpha; }
#mw-content-text > .following-list-style-type-lower-roman + ol { list-style-type:lower-roman; }
#mw-content-text > .following-list-style-type-upper-roman + ol { list-style-type:upper-roman; }
#mw-content-text > .following-list-style-type-decimal + ol { list-style-type:decimal; }
#mw-content-text > .following-list-style-type-lower-alpha + ol.references li { list-style-type:lower-alpha; }
#mw-content-text > .following-list-style-type-upper-alpha + ol.references li { list-style-type:upper-alpha; }
#mw-content-text > .following-list-style-type-lower-roman + ol.references li { list-style-type:lower-roman; }
#mw-content-text > .following-list-style-type-upper-roman + ol.references li { list-style-type:upper-roman; }
#mw-content-text > .following-list-style-type-decimal + ol.references li { list-style-type:decimal; }