MediaWiki:Mobile.css: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary Tag: Reverted |
mNo edit summary Tag: Reverted |
||
| Line 59: | Line 59: | ||
} | } | ||
/* responsive table of contents with introduction https://medium.freecodecamp.org/how-to-make-your-html-responsive-by-adding-a-single-line-of-css-2a62de81e431 */ | /* responsive table of contents with introduction https://medium.freecodecamp.org/how-to-make-your-html-responsive-by-adding-a-single-line-of-css-2a62de81e431 */ | ||
@media (max-width: 800px) { | |||
.tocdiv { | .tocdiv { | ||
max-width: 800px; | max-width: 800px; | ||
display: grid; what | display: grid; what | ||
grid-gap: 15px; | grid-gap: 15px; | ||
grid-template-columns: repeat(auto-fit, minmax( | grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | ||
grid-template-columns: repeat(auto-fit, minmax(300px, 4fr)); | grid-template-columns: repeat(auto-fit, minmax(300px, 4fr)); | ||
grid-template-rows: repeat(2, | grid-template-rows: repeat(2, 200px); | ||
grid-template-rows: repeat(auto-fit, minmax(300px, 1fr)); | grid-template-rows: repeat(auto-fit, minmax(300px, 1fr)); | ||
} | |||
} | } | ||
Revision as of 16:12, 1 April 2026
/* Cleaned MediaWiki:Mobile.css
Minimal mobile-specific styles only
*/
/* Base page adjustments for mobile */
@media (max-width: 800px) {
/* Hide desktop sidebars on narrow viewports */
#mw-panel, .mw-sidebar, .vectorSidebar {
display: none !important;
}
/* Ensure content uses full width on mobile */
#content, #mw-content-text {
margin-left: 0 !important;
padding-left: 1rem !important;
}
}
/* Tame the Minerva logo/title and make the clickable area comfortable */
@media (max-width: 800px) {
.minerva-logo, .minerva-logo-link img, .mw-logo {
max-height: 36px !important;
width: auto !important;
display: inline-block !important;
vertical-align: middle !important;
}
.minerva-header .site-title, .minerva-header .minerva-title {
font-size: 1rem !important;
line-height: 1.2 !important;
padding: 0.15rem 0.35rem !important;
background: transparent !important;
border: none !important;
box-shadow: none !important;
}
.minerva-logo-link {
display: inline-block;
padding: 4px 6px;
text-decoration: none;
}
}
/* Small accessibility and touch targets */
@media (max-width: 800px) {
.minerva-header a, .minerva-header .minerva-logo-link {
-webkit-tap-highlight-color: rgba(0,0,0,0.08);
touch-action: manipulation;
}
}
/* Light visual reset to avoid heavy defaults bleeding into mobile */
@media (max-width: 800px) {
/* Keep headings readable without forcing color schemes */
.minerva-header h1, .minerva-header h2 {
margin: 0;
font-weight: 600;
}
}
/* responsive table of contents with introduction https://medium.freecodecamp.org/how-to-make-your-html-responsive-by-adding-a-single-line-of-css-2a62de81e431 */
@media (max-width: 800px) {
.tocdiv {
max-width: 800px;
display: grid; what
grid-gap: 15px;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
grid-template-columns: repeat(auto-fit, minmax(300px, 4fr));
grid-template-rows: repeat(2, 200px);
grid-template-rows: repeat(auto-fit, minmax(300px, 1fr));
}
}