MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
 
(43 intermediate revisions by 2 users not shown)
Line 22: Line 22:
.references {
.references {
margin-bottom: 0.5em;
margin-bottom: 0.5em;
}
/* Parsoid Customizations for Reference Styling */
/* Reset the reference counter for each group */
span[rel="mw:referencedBy"] {
/* counter-reset: mw-ref-linkback 0;*/
}
/* Custom styling for each type of reference */
span[rel="mw:referencedBy"] > a::before {
font-size: 80%;
font-weight: bold;
font-style: italic;
content: counter(mw-ref-linkback, lower-alpha);
}
a[rel="mw:referencedBy"]::before {
font-weight: bold;
content: "^";
}
span[rel="mw:referencedBy"]::before {
content: "^ ";
}
}


Line 89: Line 115:
vertical-align: top;
vertical-align: top;
}
}


.infobox-label,
.infobox-label,
Line 150: Line 178:
background: url("//upload.wikimedia.org/wikipedia/commons/4/4d/Icon_pdf_file.png") no-repeat right;
background: url("//upload.wikimedia.org/wikipedia/commons/4/4d/Icon_pdf_file.png") no-repeat right;
padding: 8px 18px 8px 0;
padding: 8px 18px 8px 0;
}
/* Simplified footnote style */
.mw-reflist {
    /*counter-reset: footnote-counter !important;*/
}
.mw-reflist li::before {
    counter-increment: footnote-counter !important;
  content: "[" counter(footnote-counter, lower-alpha) "] " !important;
}
body.skin-vector .nomobile {
    display: block !important;
}
body.skin-vector .onlymobile {
    display: none !important;
}
/* Minimum thumb width */
@media (min-width: 640px) {
figure[typeof~='mw:File/Thumb'],
figure[typeof~='mw:File/Frame'],
.thumbinner {
min-width: 100px;
}
}
}


@media screen {
@media screen {
/* Put a chequered background behind images, only visible if they have transparency,
* except on main, user, and portal namespaces
*/
body:not(.ns-0):not(.ns-2):not(.ns-100) .gallerybox .thumb img {
body:not(.ns-0):not(.ns-2):not(.ns-100) .gallerybox .thumb img {
background: #fff url(//upload.wikimedia.org/wikipedia/commons/5/5d/Checker-16x16.png) repeat;
background: #fff url(//upload.wikimedia.org/wikipedia/commons/5/5d/Checker-16x16.png) repeat;
}
}
 
@media screen {
.nochecker .gallerybox .thumb img {
.nochecker .gallerybox .thumb img {
background-image: none;
background-image: none;
}
}
}


.flagicon a > img,
@media (max-width: 640px) {
.flagicon noscript > img {
.flagicon a > img,
max-width: none !important;
.flagicon noscript > img {
max-width: none !important;
}
}
}


Line 222: Line 281:
}
}


/* Parsoid Customizations for Reference Styling */
/* Hide the entire tags section in Recent Changes */
.mw-tag-markers {
    display: none !important;
}
/*body.page-Main_Page #firstHeading {
  display: none !important;
}*/
 
 


/* Reset the reference counter for each group */
body.page-Test_page .mw-body {
span[rel="mw:referencedBy"] {
    grid-template-columns: minmax(0, 1fr) min-content;
counter-reset: mw-ref-linkback 0;
}
}


/* Set up the counter style for various reference groups
body.page-Test_page #firstHeading {
.mw-ref > a[style~="mw-Ref"][data-mw-group=lower-alpha]::after {
  display: none !important;
content: '[' counter(mw-Ref, lower-alpha) ']';
}
}


.mw-ref > a[style~="mw-Ref"][data-mw-group=upper-alpha]::after {
 
content: '[' counter(mw-Ref, upper-alpha) ']';
body.page-Main_Page .mw-body {
    grid-template-columns: minmax(0, 1fr) min-content;
}
}


.mw-ref > a[style~="mw-Ref"][data-mw-group=decimal]::after {
body.page-Main_Page #firstHeading {
content: '[' counter(mw-Ref, decimal) ']';
  display: none !important;
}
}


.mw-ref > a[style~="mw-Ref"][data-mw-group=lower-roman]::after {
body.page-Main_Page .mw-body {
content: '[' counter(mw-Ref, lower-roman) ']';
    grid-template-columns: minmax(0, 1fr) min-content;
}
}


.mw-ref > a[style~="mw-Ref"][data-mw-group=upper-roman]::after {
/* Hide the pre-content heading holder on Main_Page in mobile view */
content: '[' counter(mw-Ref, upper-roman) ']';
@media (max-width: 1120px) { /* Adjust the breakpoint as needed */
    body.page-Main_Page .pre-content.heading-holder {
        display: none !important;
    }
 
}
}


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


a[rel="mw:referencedBy"]::before {
/* Hide ShortDescription on desktop */
font-weight: bold;
body.skin-vector #siteSub {
content: "^";
    display: none;
}
}


span[rel="mw:referencedBy"]::before {
/* Show ShortDescription on mobile */
content: "^ ";
@media (max-width: 768px) {
    body.skin-vector #siteSub {
        display: block;
    }
}
}