| 1 |
/* |
| 2 |
** MediaWiki 'monobook' style sheet for CSS2-capable browsers. |
| 3 |
** Copyright Gabriel Wicke - http://wikidev.net/ |
| 4 |
** License: GPL (http://www.gnu.org/copyleft/gpl.html) |
| 5 |
** |
| 6 |
** Loosely based on http://www.positioniseverything.net/ordered-floats.html by Big John |
| 7 |
** and the Plone 2.0 styles, see http://plone.org/ (Alexander Limi,Joe Geldart & Tom Croucher, |
| 8 |
** Michael Zeltner and Geir Bækholt) |
| 9 |
** All you guys rock :) |
| 10 |
*/ |
| 11 |
|
| 12 |
@import 'variables.less'; |
| 13 |
@import 'mediawiki.mixins.less'; |
| 14 |
|
| 15 |
/* |
| 16 |
** Common styles across desktop and mobile |
| 17 |
*/ |
| 18 |
|
| 19 |
#column-content { |
| 20 |
width: 100%; |
| 21 |
margin: 0; |
| 22 |
padding: 0; |
| 23 |
} |
| 24 |
|
| 25 |
.mw-body { |
| 26 |
padding: 1em; |
| 27 |
position: relative; |
| 28 |
z-index: 2; |
| 29 |
background: @content-background; |
| 30 |
color: @color-base; |
| 31 |
border: 1px solid @content-border; |
| 32 |
line-height: 1.5em; |
| 33 |
} |
| 34 |
|
| 35 |
/* Hide, but keep accessible for screen-readers */ |
| 36 |
#column-one h2 { |
| 37 |
.mixin-screen-reader-text(); |
| 38 |
} |
| 39 |
|
| 40 |
/* the left column width is specified in class .portlet */ |
| 41 |
|
| 42 |
/* Font size: |
| 43 |
** We take advantage of keyword scaling- browsers won't go below 9px |
| 44 |
** See "Note 1" at https://www.w3.org/TR/CSS2/fonts.html#value-def-absolute-size |
| 45 |
** More at http://www.w3.org/2003/07/30-font-size |
| 46 |
** http://style.cleverchimp.com/font_size_intervals/altintervals.html |
| 47 |
** https://web.archive.org/web/20180201141931/http://style.cleverchimp.com/font_size_intervals/altintervals.html |
| 48 |
** This affects users whose browser font size setting is < 14.4px, |
| 49 |
** making #globalWrapper's font-size 11.43px at minimum. |
| 50 |
** Gadgets have their own monobook-specific css rule to set the font-size similar to #globalWrapper. |
| 51 |
*/ |
| 52 |
body { |
| 53 |
font-family: sans-serif; |
| 54 |
font-size: x-small; // Typical: 16px * 0.625 == 10px. |
| 55 |
/* stylelint-disable @stylistic/value-list-comma-newline-after, @stylistic/declaration-colon-newline-after */ |
| 56 |
/* @embed */ |
| 57 |
background: url( images/headbg.svg ) 0 0 no-repeat, |
| 58 |
@background url( images/headbg-gradient.svg ) 0 0 repeat-x; |
| 59 |
/* stylelint-enable @stylistic/value-list-comma-newline-after, @stylistic/declaration-colon-newline-after */ |
| 60 |
color: @color-base; |
| 61 |
direction: ltr; /* Needed for RTL flipping */ |
| 62 |
unicode-bidi: embed; |
| 63 |
} |
| 64 |
|
| 65 |
/* scale back up to a sane default */ |
| 66 |
#globalWrapper { |
| 67 |
font-size: 127%; // Typical: x-small * 127% == 12.7px; |
| 68 |
width: 100%; |
| 69 |
margin: 0; |
| 70 |
padding: 0; |
| 71 |
position: relative; |
| 72 |
z-index: 0; |
| 73 |
} |
| 74 |
|
| 75 |
/* general styles */ |
| 76 |
ul { |
| 77 |
list-style: square url( images/bullet.svg ); |
| 78 |
} |
| 79 |
|
| 80 |
pre, |
| 81 |
.mw-code { |
| 82 |
line-height: 1.1em; |
| 83 |
} |
| 84 |
|
| 85 |
.firstHeading { |
| 86 |
margin-top: 0.4em; |
| 87 |
margin-bottom: 0.1em; |
| 88 |
padding-top: 0; |
| 89 |
/* Change the default from mediawiki.skinning CSS to let indicators float into heading area (T373617) */ |
| 90 |
display: block; |
| 91 |
} |
| 92 |
|
| 93 |
.mw-indicators { |
| 94 |
line-height: 1.5em; |
| 95 |
font-size: 95%; |
| 96 |
} |
| 97 |
|
| 98 |
.mw-indicator { |
| 99 |
display: inline-block; |
| 100 |
} |
| 101 |
|
| 102 |
.mw-jump-link:not( :focus ) { |
| 103 |
.mixin-screen-reader-text; |
| 104 |
.user-select( none ); |
| 105 |
} |
| 106 |
|
| 107 |
/* |
| 108 |
** the main content area |
| 109 |
*/ |
| 110 |
|
| 111 |
#siteNotice { |
| 112 |
font-size: 95%; |
| 113 |
padding: 0 0.9em; |
| 114 |
|
| 115 |
p { |
| 116 |
margin: 0; |
| 117 |
padding: 0; |
| 118 |
} |
| 119 |
} |
| 120 |
|
| 121 |
#localNotice { |
| 122 |
margin: 0; |
| 123 |
} |
| 124 |
|
| 125 |
/* |
| 126 |
** classes for special content elements like town boxes |
| 127 |
** intended to be referenced directly from the wiki src |
| 128 |
*/ |
| 129 |
|
| 130 |
/* |
| 131 |
** User styles |
| 132 |
*/ |
| 133 |
/* table standards */ |
| 134 |
table.rimage { |
| 135 |
float: right; |
| 136 |
position: relative; |
| 137 |
margin-left: 1em; |
| 138 |
margin-bottom: 1em; |
| 139 |
text-align: center; |
| 140 |
} |
| 141 |
|
| 142 |
/* |
| 143 |
** Structural Elements |
| 144 |
*/ |
| 145 |
|
| 146 |
/* |
| 147 |
** general portlet styles (elements in the quickbar) |
| 148 |
*/ |
| 149 |
.mw-portlet, |
| 150 |
.portlet { |
| 151 |
overflow: hidden; |
| 152 |
|
| 153 |
label, |
| 154 |
h3 { |
| 155 |
background: transparent; |
| 156 |
display: inline; |
| 157 |
height: 1em; |
| 158 |
font-size: 91%; |
| 159 |
white-space: nowrap; |
| 160 |
} |
| 161 |
|
| 162 |
ul { |
| 163 |
line-height: 1.5em; |
| 164 |
font-size: 95%; |
| 165 |
} |
| 166 |
|
| 167 |
li { |
| 168 |
padding: 0; |
| 169 |
margin: 0; |
| 170 |
} |
| 171 |
} |
| 172 |
|
| 173 |
.mw-portlet > div, |
| 174 |
.pBody { |
| 175 |
font-size: 95%; |
| 176 |
color: @color-base; |
| 177 |
border-collapse: collapse; |
| 178 |
|
| 179 |
/* allows .pBody styles to wrap around content added via SkinAfterPortlet hook */ |
| 180 |
&::after { |
| 181 |
content: ''; |
| 182 |
clear: both; |
| 183 |
display: block; |
| 184 |
} |
| 185 |
} |
| 186 |
|
| 187 |
/* Set `text-transform` only on languages where capitalization is not significant. |
| 188 |
** Translates to all, which don't carry `.monobook-capitalize-all-nouns` at `body`. |
| 189 |
*/ |
| 190 |
body:not( .monobook-capitalize-all-nouns ) { |
| 191 |
.portlet h3, |
| 192 |
#p-personal ul, |
| 193 |
#p-cactions ul li a { |
| 194 |
text-transform: lowercase; |
| 195 |
} |
| 196 |
} |
| 197 |
|
| 198 |
/* Don't lowercase username */ |
| 199 |
li#pt-userpage, |
| 200 |
/* Sometimes people don't want personal tools to be lowercase! */ |
| 201 |
.no-text-transform { |
| 202 |
text-transform: none; |
| 203 |
} |
| 204 |
|
| 205 |
/* |
| 206 |
** Logo properties |
| 207 |
*/ |
| 208 |
#p-logo { |
| 209 |
position: absolute; |
| 210 |
z-index: 3; |
| 211 |
overflow: visible; |
| 212 |
|
| 213 |
a, |
| 214 |
a:hover { |
| 215 |
display: block; |
| 216 |
background-repeat: no-repeat; |
| 217 |
text-decoration: none; |
| 218 |
} |
| 219 |
} |
| 220 |
|
| 221 |
/* |
| 222 |
** the personal toolbar |
| 223 |
*/ |
| 224 |
/* "Not logged in" text in gray */ |
| 225 |
li#pt-anonuserpage { |
| 226 |
color: @color-subtle; |
| 227 |
} |
| 228 |
|
| 229 |
/* |
| 230 |
** footer |
| 231 |
*/ |
| 232 |
.mw-footer { |
| 233 |
background-color: @content-background; |
| 234 |
border-top: 1px solid @orange-border; |
| 235 |
border-bottom: 1px solid @orange-border; |
| 236 |
margin: 0.6em 0 1em 0; |
| 237 |
overflow: hidden; |
| 238 |
padding: 0.4em 0 0.3em 0; |
| 239 |
text-align: center; |
| 240 |
font-size: 90%; |
| 241 |
|
| 242 |
li { |
| 243 |
display: inline; |
| 244 |
margin: 0 1.3em; |
| 245 |
} |
| 246 |
} |
| 247 |
|
| 248 |
#userloginprompt, |
| 249 |
#languagelinks { |
| 250 |
font-size: 85%; |
| 251 |
} |
| 252 |
|
| 253 |
/** |
| 254 |
* This was originally added by Gabriel Wicke in r3681 (committed on 25 May 2004) |
| 255 |
* with the commit message "tweaks to page history". |
| 256 |
* Unlike the other IE/Mac fixes that used to be present here, this seems to get |
| 257 |
* applied on more modern browsers, so let's keep it here until someone has the |
| 258 |
* time to properly test it out. |
| 259 |
*/ |
| 260 |
#pagehistory li.selected { |
| 261 |
position: relative; |
| 262 |
} |
| 263 |
|
| 264 |
div.patrollink { |
| 265 |
clear: both; |
| 266 |
} |
| 267 |
|
| 268 |
.toggle { |
| 269 |
margin-left: 2em; |
| 270 |
text-indent: -2em; |
| 271 |
} |
| 272 |
|
| 273 |
/* @bug 1714 */ |
| 274 |
input#wpSave, |
| 275 |
input#wpDiff { |
| 276 |
margin-right: 0.33em; |
| 277 |
} |
| 278 |
|
| 279 |
#wpSave { |
| 280 |
font-weight: bold; |
| 281 |
} |
| 282 |
|
| 283 |
/* noarticletext */ |
| 284 |
div.noarticletext { |
| 285 |
border: 1px solid @content-border; |
| 286 |
background: @content-background; |
| 287 |
padding: 0.2em 1em; |
| 288 |
color: @color-base; |
| 289 |
} |
| 290 |
|
| 291 |
#powersearch p { |
| 292 |
margin-top: 0; |
| 293 |
} |
| 294 |
|
| 295 |
.mw-summary-preview { |
| 296 |
margin: 0.1em 0; |
| 297 |
} |
| 298 |
|
| 299 |
/* Friendlier slave lag warnings */ |
| 300 |
div.mw-lag-warn-normal, |
| 301 |
div.mw-lag-warn-high { |
| 302 |
padding: 3px; |
| 303 |
text-align: center; |
| 304 |
margin: 3px auto; |
| 305 |
} |
| 306 |
|
| 307 |
div.mw-lag-warn-normal { |
| 308 |
border: 1px solid #fc6; |
| 309 |
background-color: #ffc; |
| 310 |
} |
| 311 |
|
| 312 |
div.mw-lag-warn-high { |
| 313 |
font-weight: bold; |
| 314 |
border: 2px solid #f03; |
| 315 |
background-color: #fcc; |
| 316 |
} |
| 317 |
|
| 318 |
.MediaTransformError { |
| 319 |
background-color: @content-border; |
| 320 |
padding: 0.1em; |
| 321 |
|
| 322 |
td { |
| 323 |
text-align: center; |
| 324 |
vertical-align: middle; |
| 325 |
font-size: 90%; |
| 326 |
} |
| 327 |
} |
| 328 |
|
| 329 |
/* Tooltips are outside of the normal body code, so this helps make the size of the text sensible */ |
| 330 |
.tipsy { |
| 331 |
font-size: 127%; |
| 332 |
} |
| 333 |
|
| 334 |
// Directionality styles previously provided by the deprecated`legacy` feature (T287410) |
| 335 |
// for HTML elements which do not carry dir HTML attributes. |
| 336 |
// These have been copied across to MonoBook to minimize disruption caused by T287701. |
| 337 |
// If you are reading this comment in 2022, please consider checking usage in wikitext and |
| 338 |
// removing them both. |
| 339 |
.mw-content-ltr { |
| 340 |
/* @noflip */ |
| 341 |
direction: ltr; |
| 342 |
} |
| 343 |
|
| 344 |
.mw-content-rtl { |
| 345 |
/* @noflip */ |
| 346 |
direction: rtl; |
| 347 |
} |
| 348 |
|
| 349 |
// MonoBook makes use of Skin::getClear, must provide its own style following T287410. |
| 350 |
.visualClear { |
| 351 |
clear: both; |
| 352 |
} |