MediaWiki:Common.css
Appearance
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* Step 4 mobile readability improvements
* Global safety rules plus phone/tablet refinements for Vector 2022.
*/
.mw-parser-output {
overflow-wrap: break-word;
word-wrap: break-word;
}
.mw-parser-output img,
.mw-parser-output video,
.mw-parser-output audio {
max-width: 100%;
height: auto;
}
@media screen and (max-width: 850px) {
html,
body {
min-width: 0 !important;
}
.mw-page-container,
.mw-page-container-inner,
.mw-content-container,
.mw-body {
min-width: 0 !important;
max-width: none !important;
box-sizing: border-box;
}
.mw-page-container {
margin-inline: 0 !important;
padding-inline: 0 !important;
}
.mw-body {
padding-inline: 1rem !important;
}
.mw-body .firstHeading {
font-size: 1.75rem;
line-height: 1.15;
overflow-wrap: anywhere;
}
.mw-body-content {
font-size: 1rem;
line-height: 1.62;
}
.mw-parser-output h2 {
margin-top: 1.6rem;
font-size: 1.45rem;
line-height: 1.25;
}
.mw-parser-output h3 {
font-size: 1.2rem;
line-height: 1.3;
}
.mw-parser-output p,
.mw-parser-output li {
line-height: 1.62;
}
.mw-parser-output a {
overflow-wrap: anywhere;
}
/* Shiur/article infoboxes should precede the text instead of squeezing it. */
.mw-parser-output .infobox {
float: none !important;
clear: both !important;
width: 100% !important;
max-width: 100% !important;
margin: 0 0 1.25rem !important;
box-sizing: border-box;
font-size: 0.95rem !important;
}
.mw-parser-output .infobox th,
.mw-parser-output .infobox td {
padding: 0.45rem 0.5rem;
}
/* Preserve real tables while preventing them from widening the page. */
.mw-parser-output .wikitable {
display: block;
width: 100% !important;
max-width: 100%;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
box-sizing: border-box;
}
.mw-parser-output .wikitable.sortable th,
.mw-parser-output .wikitable.sortable td {
min-width: 8rem;
white-space: normal;
vertical-align: top;
}
/* Main Page: stack the two feature columns. */
.step4-home-grid,
.step4-home-grid > tbody,
.step4-home-grid > tbody > tr,
.step4-home-grid > tbody > tr > td {
display: block !important;
width: 100% !important;
max-width: 100% !important;
box-sizing: border-box;
}
.step4-home-grid > tbody > tr > td {
padding-inline: 0 !important;
}
/* Main Page: stack Browse by Topic groups with clear separation. */
.step4-topic-grid,
.step4-topic-grid > tbody,
.step4-topic-grid > tbody > tr,
.step4-topic-grid > tbody > tr > td {
display: block !important;
width: 100% !important;
max-width: 100% !important;
box-sizing: border-box;
}
.step4-topic-grid > tbody > tr > td {
padding: 0 0 0.85rem !important;
}
.step4-topic-grid > tbody > tr > td:last-child {
padding-bottom: 0 !important;
}
.step4-home ul {
padding-left: 1.35rem;
}
.step4-home li {
margin-bottom: 0.35rem;
}
/* Prevent the holiday date column from forcing a desktop-width card. */
.step4-home-grid table:not(.step4-home-grid) {
table-layout: auto;
max-width: 100%;
}
.step4-home-grid table:not(.step4-home-grid) td,
.step4-home-grid table:not(.step4-home-grid) th {
white-space: normal !important;
overflow-wrap: anywhere;
}
/* Make audio players and embedded media fit the reading column. */
.mw-tmh-player,
.mw-tmh-player audio,
.mw-tmh-player video {
width: 100% !important;
max-width: 100% !important;
}
}
@media screen and (max-width: 480px) {
.mw-body {
padding-inline: 0.8rem !important;
}
.mw-body .firstHeading {
font-size: 1.55rem;
}
.mw-body-content {
font-size: 1rem;
}
.step4-home > div:first-child {
padding: 0.8rem 0.9rem !important;
text-align: left !important;
font-size: 1rem !important;
line-height: 1.45;
}
}