MediaWiki:Common.css: Difference between revisions
From The Radical Buddhism Project
No edit summary |
No edit summary |
||
| Line 4: | Line 4: | ||
} | } | ||
/* Mobile view: | /* Mobile view: Ensure single column across all native wrapper elements */ | ||
.mw-references-wrap, | .mw-references-wrap, | ||
.mw-references-columns, | |||
ol.references, | ol.references, | ||
.references { | .references { | ||
| Line 12: | Line 13: | ||
} | } | ||
/* Tablet & Desktop view: | /* Tablet & Desktop view: Prevent nested columns, lock layout to exactly 2 columns */ | ||
@media screen and (min-width: 768px) { | @media screen and (min-width: 768px) { | ||
/* 1. Turn off columns entirely on the parent outer container */ | |||
.mw-references-wrap, | .mw-references-wrap, | ||
.mw-references-columns { | |||
column-count: 1 !important; | |||
column-width: auto !important; | |||
} | |||
/* 2. Force exactly 2 columns strictly on the actual list layer */ | |||
ol.references, | ol.references, | ||
.references { | .references { | ||
Revision as of 01:11, 27 October 2026
/* Make the Cite extension list of references look smaller */
ol.references {
font-size: 90%;
}
/* Mobile view: Ensure single column across all native wrapper elements */
.mw-references-wrap,
.mw-references-columns,
ol.references,
.references {
column-count: 1 !important;
column-width: auto !important;
}
/* Tablet & Desktop view: Prevent nested columns, lock layout to exactly 2 columns */
@media screen and (min-width: 768px) {
/* 1. Turn off columns entirely on the parent outer container */
.mw-references-wrap,
.mw-references-columns {
column-count: 1 !important;
column-width: auto !important;
}
/* 2. Force exactly 2 columns strictly on the actual list layer */
ol.references,
.references {
column-count: 2 !important;
column-width: auto !important;
column-gap: 2em;
}
}
