MediaWiki:Common.css: Difference between revisions

From The Radical Buddhism Project
No edit summary
No edit summary
Line 4: Line 4:
}
}


/* Enforce 2 columns for references on wider screens */
/* Mobile view: Force single column for all reference elements */
@media screen and (min-width: 768px) {
.mw-references-wrap,
    ol.references {
ol.references,
        column-count: 2 !important;
.references {
        column-gap: 2em;
    column-count: 1 !important;
    }
    column-width: auto !important;
}
}


/* Limit references to a maximum of 2 columns on desktops, 1 column on mobile */
/* Tablet & Desktop view: Force exactly 2 columns for all reference elements */
@media screen and (min-width: 768px) {
@media screen and (min-width: 768px) {
     ol.references {
    .mw-references-wrap,
     ol.references,
    .references {
         column-count: 2 !important;
         column-count: 2 !important;
         max-width: 100%;
         column-width: auto !important;
        column-gap: 2em;
     }
     }
}
}

Revision as of 01:09, 27 October 2026

/* Make the Cite extension list of references look smaller */
ol.references {
    font-size: 90%;
}

/* Mobile view: Force single column for all reference elements */
.mw-references-wrap,
ol.references,
.references {
    column-count: 1 !important;
    column-width: auto !important;
}

/* Tablet & Desktop view: Force exactly 2 columns for all reference elements */
@media screen and (min-width: 768px) {
    .mw-references-wrap,
    ol.references,
    .references {
        column-count: 2 !important;
        column-width: auto !important;
        column-gap: 2em;
    }
}