MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
 
(9 intermediate revisions by the same user not shown)
Line 32: Line 32:
}
}


/* Set up the counter style for various reference groups */
.mw-ref > a[data-mw-group=lower-alpha]::after {
content: '[' counter(mw-ref-linkback, lower-alpha) ']';
}


.mw-ref > a[style~="mw-Ref"][data-mw-group=upper-alpha]::after {
/* Custom styling for each type of reference */
content: '[' counter(mw-Ref, upper-alpha) ']';
span[rel="mw:referencedBy"] > a::before {
}
font-size: 80%;
 
font-weight: bold;
.mw-ref > a[style~="mw-Ref"][data-mw-group=decimal]::after {
font-style: italic;
content: '[' counter(mw-Ref, decimal) ']';
content: counter(mw-ref-linkback, lower-alpha);
}
 
.mw-ref > a[style~="mw-Ref"][data-mw-group=lower-roman]::after {
content: '[' counter(mw-Ref, lower-roman) ']';
}
}
.mw-ref > a[style~="mw-Ref"][data-mw-group=upper-roman]::after {
content: '[' counter(mw-Ref, upper-roman) ']';
}
.mw-ref > a[style~="mw-Ref"][data-mw-group=lower-greek]::after {
content: '[' counter(mw-Ref, lower-greek) ']';
}


a[rel="mw:referencedBy"]::before {
a[rel="mw:referencedBy"]::before {
Line 132: Line 115:
vertical-align: top;
vertical-align: top;
}
}


.infobox-label,
.infobox-label,
Line 202: Line 187:
.mw-reflist li::before {
.mw-reflist li::before {
     counter-increment: footnote-counter !important;
     counter-increment: footnote-counter !important;
   /*content: "[" counter(footnote-counter, lower-alpha) "] " !important;*/
   content: "[" counter(footnote-counter, lower-alpha) "] " !important;
}
}


Line 333: Line 318:
     }
     }


}
/* Hide ShortDescription on desktop */
body.skin-vector #siteSub {
    display: none;
}
/* Show ShortDescription on mobile */
@media (max-width: 768px) {
    body.skin-vector #siteSub {
        display: block;
    }
}
}