MediaWiki:Mobile.css: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Tags: Manual revert Reverted
No edit summary
Tags: Manual revert Reverted
Line 19: Line 19:
*/
*/


/* Fix dumb default styling */
/* Reset user agent styles. We don't reset small or blockquote here deliberately */
.content code,
cite,
.content pre {
dfn {
background-color: #f9f9f9;
font-style: inherit;
border: 1px solid #ddd;
color: black;
}
}


.content code {
q {
border-radius: 2px;
quotes: '"' '"' "'" "'";
}
}


@media all and (max-width: 768px) {
/* Hide the images */
.gallerybox .thumb > div {
.geo-nondefault, .geo-multi-punct,
margin: 15px !important;
/* Hide stuff meant for accounts with special permissions. Made visible again in
width: auto !important;
  [[MediaWiki:Group-sysop.css]], [[MediaWiki:Group-patroller.css]] and
}
  [[MediaWiki:Group-autoconfirmed.css]]. */
}
.checkuser-show,
 
.sysop-show,
td {
.templateeditor-show,
background-color: #FFF;
.extendedmover-show,
.patroller-show,
.extendedconfirmed-show,
.autoconfirmed-show,
/* Copied from Common.css - allow for hiding text in compact form e.g. clean up templates */
.hide-when-compact,
/* portal pages are badly formatted. Until this changes these should be hidden. (see https://phabricator.wikimedia.org/T86495) */
.noprint.portal {
display: none;
}
}


/* Use black bullet points, instead of blue circles: [[File:List bullet.svg]] */
/*
.content ul {
.infobox
list-style-image: url('filepath://List_bullet.svg');
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;
}
}


/* Fix footer hlist separator colour */
/* Unbulleted lists e.g. Barack Obama page*/
.footer-content .hlist-separated li:after {
.plainlist ul {
color: #FFF;
list-style: none;
padding-left: 0; /* Reset Minerva defaults */
}
}


/* Fix changes autocollapsing in recent changes */
/* Prevent line breaks in silly places:
.mw-changeslist-edit, .mw-changeslist-line {
  1) Where desired
display: table-row !important;
  2) Links when we don't want them to
*/
.mw-parser-output .nowrap,
.nowraplinks a {
white-space: nowrap;
}
}
.mw-changeslist-line-inner {
.mw-parser-output .infobox .nowrap {
padding-top: 1.5em;
white-space: normal !important;
}
}
.mw-enhanced-rc-nested {
/* But allow wrapping where desired: */
    padding-top: 0.5em;
.wrap,
.wraplinks a {
white-space: normal;
}
}


/* Alternating cell background */
/* Generic class texhtml class for inline math */
.alternatecells:nth-child(odd) {
span.texhtml {
background-color: #F9F9F9;
font-family: serif;
white-space: nowrap;
}
}


/* Alternating table rows, primarily used with [[Template:Infobox row]] */
/* Prevent flags in tables from collapsing
.alternaterows tr:nth-child(even),
Fix for T116318
.infobox-rows tr:nth-child(even),
*/
.alternaterows tr:nth-child(even) td,
.flagicon img {
.infobox-rows tr:nth-child(even) td {
min-width: 25px;
background-color: #F9F9F9;
}
}


/* Show TOC */
/* Prevent unnecessary margin at the bottom of centralnotices */
@media (max-width: 512px) {
.cnotice {
.skin-minerva .toc-mobile {
margin-bottom: 0 !important;
display: block;
}
}
}


/* Turn a list into a tree view style (See [[.minecraft]]) */
.treeview {
margin-top: 0.3em;
}


.treeview .treeview-header {
/* The message body cell(s), such as for {{Commonscat}}.
padding-left: 3px;
* this is a very small subset of the styles from Common.css
font-weight: bold;
* just to make sure the box isn't squashed without any spacing
}
* which looks out of place with visuals of other nearby elements
.treeview .treeview-header:last-child {
*/
border-color: #636363 !important;
.mbox-text {
border-left-style: dotted;
/* @noflip */
}
padding: 0.25em 0.9em;
.treeview .treeview-header:not(:last-child):before {
content: none;
}
.treeview .treeview-header:last-child:before {
border-bottom: 0;
}
}


.treeview ul,
/* Normal font styling for wikitable row headers with scope="row" tag */
.treeview li {
.wikitable.plainrowheaders th[scope=row],
margin: 0;
.wikitable.plainrowheaders th[scope=rowgroup] {
padding: 0;
font-weight: normal;
list-style-type: none;
/* @noflip */
list-style-image: none;
text-align: left;
}
}


.treeview li li {
position: relative;
padding-left: 13px;
margin-left: 7px;
border-left: 1px solid #636363;
}
.treeview li li:before {
content: "";
position: absolute;
top: 0;
left: -1px;
width: 11px;
height: 11px;
border-bottom: 1px solid #636363;
}


.treeview li li:last-child:not(.treeview-continue) {
/**
border-color: transparent;
******************DEPRECATED STYLES ************************************
}
These styles will be removed shortly. Please see inline comments.
.treeview li li:last-child:not(.treeview-continue):before {
**/
border-left: 1px solid #636363;
width: 10px;
}


.nbttree-inherited {
background-color: #E6E6FA;
}


/* Try to use nearest neighbour scaling for pixelated images */
/*
.pixel-image,
FIXME: DUPLICATES Template:Hlist/styles.css
.invslot-item-image,
Note the mobile skin provides a `hlist-separated` class for this purpose. Use this class name alongside the hlist class instead as this will result in a FOUC.
.sprite {
Should be removed and moved to templates.
image-rendering: optimizeSpeed;
*/
image-rendering: -webkit-optimize-contrast;
/* Counter hlist indenting of Minerva*/
image-rendering: optimize-contrast;
.mw-parser-output .hlist ul,
image-rendering: -moz-crisp-edges;
.mw-parser-output .hlist ol {
image-rendering: -o-crisp-edges;
padding-left: 0;
image-rendering: crisp-edges;
image-rendering: pixelated;
-ms-interpolation-mode: nearest-neighbor;
}
}
 
/* reset hlist margins of Minerva
/* Simulate link styling for JS only links */
do not add li here (see T235416) */
.jslink {
.mw-parser-output .hlist dd,
color: #0645AD;
.mw-parser-output .hlist dt {
-webkit-user-select: none;
margin-right: 0;
  -moz-user-select: none;
    -ms-user-select: none;
        user-select: none;
}
}
.jslink:hover {
/* do not add li here. Minerva provides it already*/
text-decoration: underline;
.mw-parser-output .hlist dd:after {
cursor: pointer;
content: " · ";
font-weight: bold;
}
}
.jslink:active {
.mw-parser-output .hlist dt:after {
color: #FAA700;
content: ": ";
}
}


/* Hatnotes and disambiguation notices */
/* Should be removed and moved to templates once TemplateStyles is live */
.hatnote {
.heading-holder .hlist li:after,
font-style: italic;
.mw-parser-output .hlist dd:last-child:after,
.mw-parser-output .hlist dt:last-child:after,
.mw-parser-output .hlist li:last-child:after {
content: none;
}
}
.hatnote i {
/* Add parentheses around nested lists */
font-style: normal;
/* 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 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: " (";
font-weight: normal;
}
}
div.hatnote {
/* Should be removed and moved to templates once TemplateStyles is live */
padding-left: 1.6em;
.mw-parser-output .hlist dd dd:last-child:after,
margin-bottom: 0.5em;
.mw-parser-output .hlist dd dt: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: ") " !important; /* Override hlist-separated being dumb */
font-weight: normal;
padding-left: 0;
}
}
div.hatnote + div.hatnote {
 
margin-top: -0.5em;
/* Put ordinals in front of ordered list items */
/* Should be removed and moved to templates once TemplateStyles is live */
.mw-parser-output .hlist ol {
counter-reset: listitem;
}
}


/* Fix animated infobox images shifting the screen when images have different dimensions */
/* Should be removed and moved to templates once TemplateStyles is live */
.content span.animated a > img,
.mw-parser-output .hlist ol > li {
.content span.animated a > .lazy-image-placeholder,
counter-increment: listitem;
.content noscript span.animated > img {
    max-width: initial !important;
}
}


body.page-Main_Page #firstHeading {
/* Should be removed and moved to templates once TemplateStyles is live */
    display: none;
.mw-parser-output .hlist ol > li:before {
content: " " counter(listitem) " ";
white-space: nowrap;
}
}


/* Hide nomobile */
/* Should be removed and moved to templates once TemplateStyles is live */
.nomobile {
.mw-parser-output .hlist dd ol > li:first-child:before,
display: none;
.mw-parser-output .hlist dt ol > li:first-child:before,
.mw-parser-output .hlist li ol > li:first-child:before {
content: " (" counter(listitem) " ";
}
}


/* https://phabricator.wikimedia.org/T180396#5317728 */
@media print {
.navbox,
.hatnote,
.ambox {
display: none !important;
}
}




Navigation menu