Line 1,126: |
Line 1,126: |
| ul.permissions-errors { | | ul.permissions-errors { |
| margin: 0; | | margin: 0; |
| + | } |
| + | |
| + | |
| + | /* Generic class for Times-based serif, texhtml class for inline math */ |
| + | .times-serif, |
| + | span.texhtml { |
| + | font-family: "Nimbus Roman No9 L", "Times New Roman", Times, serif; |
| + | font-size: 118%; |
| + | line-height: 1; |
| + | } |
| + | span.texhtml { |
| + | white-space: nowrap; |
| + | } |
| + | span.texhtml span.texhtml { |
| + | font-size: 100%; |
| + | } |
| + | span.mwe-math-mathml-inline { |
| + | font-size: 118%; |
| + | } |
| + | |
| + | /* Force tabular and lining display for digits and texhtml */ |
| + | .digits, |
| + | .texhtml { |
| + | -moz-font-feature-settings: "lnum", "tnum", "kern" 0; |
| + | -webkit-font-feature-settings: "lnum", "tnum", "kern" 0; |
| + | font-feature-settings: "lnum", "tnum", "kern" 0; |
| + | font-variant-numeric: lining-nums tabular-nums; |
| + | font-kerning: none; |
| + | } |
| + | |
| + | /* Make <math display="block"> be left aligned with one space indent for compatibility with style conventions */ |
| + | .mwe-math-fallback-image-display, |
| + | .mwe-math-mathml-display { |
| + | margin-left: 1.6em !important; |
| + | margin-top: 0.6em; |
| + | margin-bottom: 0.6em; |
| + | } |
| + | .mwe-math-mathml-display math { |
| + | display: inline; |
| + | } |
| + | |
| + | /* Fix styling of transcluded prefindex tables */ |
| + | table#mw-prefixindex-list-table, |
| + | table#mw-prefixindex-nav-table { |
| + | width: 98%; |
| + | } |
| + | |
| + | /* For portals, added 2011-12-07 -bv |
| + | On wide screens, show these as two columns |
| + | On narrow and mobile screens, let them collapse into a single column */ |
| + | .portal-column-left { |
| + | float: left; |
| + | width: 50%; |
| + | } |
| + | .portal-column-right { |
| + | float: right; |
| + | width: 49%; |
| + | } |
| + | .portal-column-left-wide { |
| + | float: left; |
| + | width: 60%; |
| + | } |
| + | .portal-column-right-narrow { |
| + | float: right; |
| + | width: 39%; |
| + | } |
| + | .portal-column-left-extra-wide { |
| + | float: left; |
| + | width: 70%; |
| + | } |
| + | .portal-column-right-extra-narrow { |
| + | float: right; |
| + | width: 29%; |
| + | } |
| + | @media only screen and (max-width: 800px) { |
| + | /* Decouple the columns on narrow screens */ |
| + | .portal-column-left, |
| + | .portal-column-right, |
| + | .portal-column-left-wide, |
| + | .portal-column-right-narrow, |
| + | .portal-column-left-extra-wide, |
| + | .portal-column-right-extra-narrow { |
| + | float: inherit; |
| + | width: inherit; |
| + | } |
| + | } |
| + | |
| + | /* Formerly for announcements, now used intermittently */ |
| + | #bodyContent .letterhead { |
| + | background-image: url('//upload.wikimedia.org/wikipedia/commons/e/e0/Tan-page-corner.png'); |
| + | background-repeat: no-repeat; |
| + | padding: 2em; |
| + | background-color: #faf9f2; |
| + | } |
| + | |
| + | /* hidden sortkey for tablesorter */ |
| + | /* deprecated, in process of being replaced with data-sort-value */ |
| + | td .sortkey, |
| + | th .sortkey { |
| + | display: none; |
| + | speak: none; |
| + | } |
| + | |
| + | /* Make it possible to hide checkboxes in <inputbox> */ |
| + | .inputbox-hidecheckboxes form .inputbox-element, |
| + | .inputbox-hidecheckboxes .mw-ui-checkbox { |
| + | display: none !important; |
| + | } |
| + | |
| + | /* Work-around for [[phab:T25965]] (Kaltura advertisement) */ |
| + | .k-player .k-attribution { |
| + | visibility: hidden; |
| + | } |
| + | |
| + | /* Move 'play' button of video player to bottom left corner */ |
| + | .PopUpMediaTransform a .play-btn-large { |
| + | margin: 0; |
| + | top: auto; |
| + | right: auto; |
| + | bottom: 0; |
| + | left: 0; |
| + | } |
| + | |
| + | /* Hide FlaggedRevs notice UI when there are no pending changes */ |
| + | .flaggedrevs_draft_synced, |
| + | .flaggedrevs_stable_synced { |
| + | display: none; |
| + | } |
| + | |
| + | /* Force imgs in galleries to have borders by wrapping them in class=bordered-images */ |
| + | .bordered-images img { |
| + | border: solid #ddd 1px; |
| + | } |
| + | |
| + | /* Gallery styles background changes are restricted to screen view. In printing we should avoid applying backgrounds. */ |
| + | @media screen { |
| + | /* The backgrounds for galleries. */ |
| + | #content .gallerybox div.thumb { |
| + | /* Light gray padding */ |
| + | background-color: #f8f9fa; |
| + | } |
| + | |
| + | /* Put a chequered background behind images, only visible if they have transparency. |
| + | '.filehistory a img' and '#file img:hover' are handled by MediaWiki core (as of 1.19) */ |
| + | .gallerybox .thumb img { |
| + | background: #fff url(//upload.wikimedia.org/wikipedia/commons/5/5d/Checker-16x16.png) repeat; |
| + | } |
| + | /* But not on articles, user pages, portals or with opt-out. */ |
| + | .ns-0 .gallerybox .thumb img, |
| + | .ns-2 .gallerybox .thumb img, |
| + | .ns-100 .gallerybox .thumb img, |
| + | .nochecker .gallerybox .thumb img { |
| + | background-image: none; |
| + | } |
| + | |
| } | | } |