MediaWiki:Mobile.css: Difference between revisions
no edit summary
Johnrdorazio (talk | contribs) No edit summary |
Johnrdorazio (talk | contribs) No edit summary |
||
Line 12: | Line 12: | ||
* Group common css rules together where possible. | * Group common css rules together where possible. | ||
If you are looking for .mobile-float-reset (see [[:phab:T56176]]), use TemplateStyles instead. | |||
.mobile-float-reset { | |||
float: none !important; | |||
width: 100% !important; | |||
} | |||
*/ | */ | ||
/* | /* Reset user agent styles. We don't reset small or blockquote here deliberately */ | ||
cite, | |||
dfn { | |||
font-style: inherit; | |||
} | } | ||
q { | |||
quotes: '"' '"' "'" "'"; | |||
} | |||
/* Hide the images */ | /* Hide the images */ | ||
Line 51: | Line 48: | ||
} | } | ||
/* | /* | ||
Should be moved into Template:Cite_web | Should be moved into Template:Cite_web | ||
Line 73: | Line 59: | ||
DO NOT style infobox's here. That should be taken care of in the associated templates via template styles. Styles here will lead to flash of unstyled content on mobile. | DO NOT style infobox's here. That should be taken care of in the associated templates via template styles. Styles here will lead to flash of unstyled content on mobile. | ||
*/ | */ | ||
/* removed inline from module as we work toward Tstyles support | |||
* Use three classes to match specificity of MobileFrontend/Minerva selectors */ | |||
.content .mw-parser-output .infobox-header, | |||
.content .mw-parser-output .infobox-subheader, | |||
.content .mw-parser-output .infobox-above, | |||
.content .mw-parser-output .infobox-title, | |||
.content .mw-parser-output .infobox-image, | |||
.content .mw-parser-output .infobox-full-data, | |||
.content .mw-parser-output .infobox-below { | |||
text-align: center; | |||
} | |||
/* Unbulleted lists e.g. Barack Obama page*/ | /* Unbulleted lists e.g. Barack Obama page*/ | ||
.plainlist ul { | .plainlist ul { | ||
Line 114: | Line 76: | ||
padding-left: 0; /* Reset Minerva defaults */ | padding-left: 0; /* Reset Minerva defaults */ | ||
} | } | ||
/* Prevent line breaks in silly places: | /* Prevent line breaks in silly places: | ||
1) Where desired | 1) Where desired | ||
2) Links when we don't want them to | 2) Links when we don't want them to | ||
*/ | */ | ||
.mw-parser-output .nowrap, | .mw-parser-output .nowrap, | ||
.nowraplinks | .nowraplinks a { | ||
white-space: nowrap; | white-space: nowrap; | ||
} | } | ||
Line 151: | Line 94: | ||
} | } | ||
/* Generic class | /* Generic class texhtml class for inline math */ | ||
span.texhtml { | span.texhtml { | ||
font-family: serif; | font-family: serif; | ||
white-space: nowrap; | white-space: nowrap; | ||
} | } | ||
Line 201: | Line 122: | ||
padding: 0.25em 0.9em; | padding: 0.25em 0.9em; | ||
} | } | ||
/* Normal font styling for wikitable row headers with scope="row" tag */ | |||
.wikitable.plainrowheaders th[scope=row] { | |||
font-weight: normal; | |||
/* @noflip */ | |||
text-align: left; | |||
} | |||
/** | /** | ||
Line 241: | Line 170: | ||
content: ": "; | content: ": "; | ||
} | } | ||
/* Should be removed and moved to templates once TemplateStyles is live */ | /* Should be removed and moved to templates once TemplateStyles is live */ | ||
.heading-holder hlist li:after, | .heading-holder hlist li:after, | ||
.mw-parser-output .hlist dd:last-child:after, | .mw-parser-output .hlist dd:last-child:after, | ||
Line 251: | Line 180: | ||
/* Add parentheses around nested lists */ | /* Add parentheses around nested lists */ | ||
/* Should be removed and moved to templates once TemplateStyles is live */ | /* Should be removed and moved to templates once TemplateStyles is live */ | ||
.mw-parser-output .hlist dd dd:first-child:before, .mw-parser-output .hlist dd dt:first-child:before, .mw-parser-output .hlist dd li:first-child:before, | .mw-parser-output .hlist dd dd:first-child:before, | ||
.mw-parser-output .hlist dt dd:first-child:before, .mw-parser-output .hlist dt dt:first-child:before, .mw-parser-output .hlist dt li:first-child:before, | .mw-parser-output .hlist dd dt:first-child:before, | ||
.mw-parser-output .hlist li dd:first-child:before, .mw-parser-output .hlist li dt:first-child:before, .mw-parser-output .hlist li li:first-child:before { | .mw-parser-output .hlist dd li:first-child:before, | ||
.mw-parser-output .hlist dt dd:first-child:before, | |||
.mw-parser-output .hlist dt dt:first-child:before, | |||
.mw-parser-output .hlist dt li:first-child:before, | |||
.mw-parser-output .hlist li dd:first-child:before, | |||
.mw-parser-output .hlist li dt:first-child:before, | |||
.mw-parser-output .hlist li li:first-child:before { | |||
content: " ("; | content: " ("; | ||
font-weight: normal; | font-weight: normal; | ||
} | } | ||
/* Should be removed and moved to templates once TemplateStyles is live */ | /* Should be removed and moved to templates once TemplateStyles is live */ | ||
.mw-parser-output .hlist dd dd:last-child:after, .mw-parser-output .hlist dd dt:last-child:after, .mw-parser-output .hlist dd li:last-child:after, | .mw-parser-output .hlist dd dd:last-child:after, | ||
.mw-parser-output .hlist dt dd:last-child:after, .mw-parser-output .hlist dt dt:last-child:after, .mw-parser-output .hlist dt li:last-child:after, | .mw-parser-output .hlist dd dt:last-child:after, | ||
.mw-parser-output .hlist li dd:last-child:after, .mw-parser-output .hlist li dt:last-child:after, .mw-parser-output .hlist li li:last-child:after { | .mw-parser-output .hlist dd li:last-child:after, | ||
.mw-parser-output .hlist dt dd:last-child:after, | |||
.mw-parser-output .hlist dt dt:last-child:after, | |||
.mw-parser-output .hlist dt li:last-child:after, | |||
.mw-parser-output .hlist li dd:last-child:after, | |||
.mw-parser-output .hlist li dt:last-child:after, | |||
.mw-parser-output .hlist li li:last-child:after { | |||
content: ") "; | content: ") "; | ||
font-weight: normal; | font-weight: normal; | ||
} | } | ||
/* Put ordinals in front of ordered list items */ | /* Put ordinals in front of ordered list items */ | ||
/* Should be removed and moved to templates once TemplateStyles is live */ | /* Should be removed and moved to templates once TemplateStyles is live */ | ||
Line 269: | Line 211: | ||
counter-reset: listitem; | counter-reset: listitem; | ||
} | } | ||
/* Should be removed and moved to templates once TemplateStyles is live */ | /* Should be removed and moved to templates once TemplateStyles is live */ | ||
.mw-parser-output .hlist ol > li { | .mw-parser-output .hlist ol > li { | ||
counter-increment: listitem; | counter-increment: listitem; | ||
} | } | ||
/* Should be removed and moved to templates once TemplateStyles is live */ | /* Should be removed and moved to templates once TemplateStyles is live */ | ||
.mw-parser-output .hlist ol > li:before { | .mw-parser-output .hlist ol > li:before { | ||
Line 278: | Line 222: | ||
white-space: nowrap; | white-space: nowrap; | ||
} | } | ||
/* Should be removed and moved to templates once TemplateStyles is live */ | /* Should be removed and moved to templates once TemplateStyles is live */ | ||
.mw-parser-output .hlist dd ol > li:first-child:before, | .mw-parser-output .hlist dd ol > li:first-child:before, | ||
Line 288: | Line 233: | ||
@media print { | @media print { | ||
.navbox, | |||
.hatnote, | |||
.ambox { | |||
display: none !important; | |||
} | |||
} | } | ||