| 1 |
/* |
| 2 |
** Desktop-specific styles for MonoBook |
| 3 |
*/ |
| 4 |
|
| 5 |
@import 'variables.less'; |
| 6 |
@import 'mediawiki.mixins.less'; |
| 7 |
|
| 8 |
#column-content { |
| 9 |
float: right; |
| 10 |
margin: 0 0 0.6em -12.2em; |
| 11 |
} |
| 12 |
|
| 13 |
.mw-body { |
| 14 |
margin: @top-area-height 0 0 12.2em; |
| 15 |
border-right: 0; |
| 16 |
} |
| 17 |
|
| 18 |
#mw-data-after-content { |
| 19 |
margin-left: 12.2em; |
| 20 |
} |
| 21 |
|
| 22 |
#column-one { |
| 23 |
padding-top: 160px; |
| 24 |
} |
| 25 |
|
| 26 |
/* |
| 27 |
** edit views etc |
| 28 |
*/ |
| 29 |
.special li { |
| 30 |
line-height: 1.4em; |
| 31 |
margin: 0; |
| 32 |
padding: 0; |
| 33 |
} |
| 34 |
|
| 35 |
/* |
| 36 |
** Structural Elements |
| 37 |
*/ |
| 38 |
|
| 39 |
/* |
| 40 |
** general portlet styles (elements in the quickbar) |
| 41 |
*/ |
| 42 |
.mw-portlet, |
| 43 |
.portlet { |
| 44 |
border: 0; |
| 45 |
margin: 0 0 0.5em; |
| 46 |
padding: 0; |
| 47 |
float: none; |
| 48 |
width: 11.6em; |
| 49 |
} |
| 50 |
|
| 51 |
.mw-portlet label, |
| 52 |
.portlet h3 { |
| 53 |
padding: 0 1em 0 0.5em; |
| 54 |
font-weight: normal; |
| 55 |
} |
| 56 |
|
| 57 |
.mw-portlet > div, |
| 58 |
.pBody { |
| 59 |
background-color: #fff; |
| 60 |
border: 1px solid #aaa; |
| 61 |
padding: 0 0.8em 0.3em 0.5em; |
| 62 |
} |
| 63 |
|
| 64 |
/* |
| 65 |
** Logo properties |
| 66 |
*/ |
| 67 |
#p-logo { |
| 68 |
top: 0; |
| 69 |
left: 0; |
| 70 |
height: 155px; |
| 71 |
width: 12em; |
| 72 |
} |
| 73 |
|
| 74 |
#p-logo a, |
| 75 |
#p-logo a:hover { |
| 76 |
height: 155px; |
| 77 |
width: 12.2em; |
| 78 |
background-position: 35% 50% !important; /* stylelint-disable-line declaration-no-important */ |
| 79 |
} |
| 80 |
|
| 81 |
/* |
| 82 |
** Search portlet |
| 83 |
*/ |
| 84 |
#p-search { |
| 85 |
position: relative; |
| 86 |
z-index: 3; |
| 87 |
} |
| 88 |
|
| 89 |
input.searchButton { |
| 90 |
margin-top: 1px; |
| 91 |
font-size: 95%; |
| 92 |
} |
| 93 |
|
| 94 |
#searchButton { |
| 95 |
padding-left: 0.5em; |
| 96 |
padding-right: 0.5em; |
| 97 |
font-weight: bold; |
| 98 |
} |
| 99 |
|
| 100 |
#searchInput { |
| 101 |
width: 10.9em; |
| 102 |
margin: 0; |
| 103 |
font-size: 95%; |
| 104 |
} |
| 105 |
|
| 106 |
#p-search .pBody { |
| 107 |
padding: 0.5em 0.4em 0.4em 0.4em; |
| 108 |
text-align: center; |
| 109 |
} |
| 110 |
|
| 111 |
#p-search #searchform div div { |
| 112 |
margin-top: 0.4em; |
| 113 |
font-size: 95%; |
| 114 |
} |
| 115 |
|
| 116 |
/* |
| 117 |
** the personal toolbar |
| 118 |
*/ |
| 119 |
#p-personal { |
| 120 |
position: absolute; |
| 121 |
left: 0; |
| 122 |
top: 0; |
| 123 |
z-index: 3; |
| 124 |
width: 100%; |
| 125 |
white-space: nowrap; |
| 126 |
padding: 0; |
| 127 |
margin: 0; |
| 128 |
border: 0; |
| 129 |
background: none; |
| 130 |
overflow: visible; |
| 131 |
line-height: 1.2em; |
| 132 |
} |
| 133 |
|
| 134 |
#p-personal h3 { |
| 135 |
position: absolute; |
| 136 |
top: -9999px; |
| 137 |
} |
| 138 |
|
| 139 |
#p-personal .portlet, |
| 140 |
#p-personal .pBody { |
| 141 |
z-index: 0; |
| 142 |
padding: 0; |
| 143 |
margin: 0; |
| 144 |
border: 0; |
| 145 |
overflow: visible; |
| 146 |
background: none; |
| 147 |
} |
| 148 |
|
| 149 |
/* this is the ul contained in the portlet */ |
| 150 |
#p-personal ul { |
| 151 |
border: 0; |
| 152 |
line-height: 1.4em; |
| 153 |
color: #2f6fab; |
| 154 |
padding: 0; |
| 155 |
padding-right: 2em; |
| 156 |
/* Avoid overlap with the logo. */ |
| 157 |
padding-left: 14em; |
| 158 |
margin: 0; |
| 159 |
float: right; |
| 160 |
list-style-type: none; |
| 161 |
list-style-image: none; |
| 162 |
z-index: 0; |
| 163 |
background: none; |
| 164 |
cursor: default; |
| 165 |
box-sizing: border-box; |
| 166 |
max-width: 100%; |
| 167 |
} |
| 168 |
|
| 169 |
#p-personal li { |
| 170 |
z-index: 0; |
| 171 |
border: 0; |
| 172 |
padding: 0; |
| 173 |
color: #2f6fab; |
| 174 |
display: inline; |
| 175 |
margin-left: 1em; |
| 176 |
line-height: 1.2em; |
| 177 |
background: none; |
| 178 |
} |
| 179 |
|
| 180 |
#p-personal li a { |
| 181 |
color: #005896; |
| 182 |
text-decoration: none; |
| 183 |
padding-bottom: 0.2em; |
| 184 |
|
| 185 |
&.new { |
| 186 |
color: @color-link-new; |
| 187 |
} |
| 188 |
} |
| 189 |
|
| 190 |
#p-personal li a:hover { |
| 191 |
background-color: #fff; |
| 192 |
text-decoration: none; |
| 193 |
} |
| 194 |
|
| 195 |
#p-personal li.active a:hover { |
| 196 |
background-color: transparent; |
| 197 |
} |
| 198 |
|
| 199 |
/* The icon in front of the username / login link */ |
| 200 |
li#pt-userpage, |
| 201 |
li#pt-anonuserpage { |
| 202 |
/* @embed */ |
| 203 |
background-image: url( images/icon-user.svg ); |
| 204 |
background-position: top left; |
| 205 |
background-repeat: no-repeat; |
| 206 |
padding-left: 20px; |
| 207 |
} |
| 208 |
|
| 209 |
#p-lang { |
| 210 |
position: relative; |
| 211 |
z-index: 3; |
| 212 |
} |
| 213 |
|
| 214 |
/* |
| 215 |
** the page-related actions- page/talk, edit etc |
| 216 |
*/ |
| 217 |
#p-cactions { |
| 218 |
position: absolute; |
| 219 |
top: 1.3em; |
| 220 |
left: 11.5em; |
| 221 |
margin: 0; |
| 222 |
white-space: nowrap; |
| 223 |
width: 76%; |
| 224 |
line-height: 1.1em; |
| 225 |
overflow: visible; |
| 226 |
background: none; |
| 227 |
border-collapse: collapse; |
| 228 |
padding-left: 1em; |
| 229 |
font-size: 95%; |
| 230 |
} |
| 231 |
|
| 232 |
#p-cactions h3 { |
| 233 |
position: absolute; |
| 234 |
top: -9999px; |
| 235 |
} |
| 236 |
|
| 237 |
#p-cactions ul { |
| 238 |
list-style-type: none; |
| 239 |
list-style-image: none; |
| 240 |
} |
| 241 |
|
| 242 |
#p-cactions li { |
| 243 |
display: inline; |
| 244 |
border: 1px solid #aaa; |
| 245 |
border-bottom: 0; |
| 246 |
margin: 0 0.5em 0 0; |
| 247 |
padding: 0 0 1em 0; |
| 248 |
overflow: visible; |
| 249 |
background: #fff; |
| 250 |
} |
| 251 |
|
| 252 |
#p-cactions li.selected { |
| 253 |
border-color: #fabd23; |
| 254 |
font-weight: bold; |
| 255 |
} |
| 256 |
|
| 257 |
#p-cactions li.selected a { |
| 258 |
z-index: 3; |
| 259 |
background-color: #fff; |
| 260 |
} |
| 261 |
|
| 262 |
#p-cactions li a { |
| 263 |
background-color: #fbfbfb; |
| 264 |
color: #002bb8; |
| 265 |
border: 0; |
| 266 |
padding: 0 0.8em 0.3em; |
| 267 |
position: relative; |
| 268 |
z-index: 0; |
| 269 |
margin: 0; |
| 270 |
text-decoration: none; |
| 271 |
} |
| 272 |
|
| 273 |
#p-cactions li a:hover { |
| 274 |
z-index: 3; |
| 275 |
text-decoration: none; |
| 276 |
background-color: #fff; |
| 277 |
} |
| 278 |
|
| 279 |
#p-cactions li.istalk { |
| 280 |
margin-right: 0; |
| 281 |
} |
| 282 |
|
| 283 |
#p-cactions li.istalk a { |
| 284 |
padding-right: 0.5em; |
| 285 |
} |
| 286 |
|
| 287 |
#p-cactions .new a { |
| 288 |
color: #c20; |
| 289 |
} |
| 290 |
|
| 291 |
#p-cactions #ca-addsection a { |
| 292 |
padding-left: 0.4em; |
| 293 |
padding-right: 0.4em; |
| 294 |
} |
| 295 |
|
| 296 |
#p-cactions .pBody { |
| 297 |
font-size: 1em; |
| 298 |
background-color: transparent; |
| 299 |
color: inherit; |
| 300 |
border-collapse: inherit; |
| 301 |
border: 0; |
| 302 |
padding: 0; |
| 303 |
} |
| 304 |
|
| 305 |
/* offsets to distinguish the tab groups */ |
| 306 |
li#ca-talk { |
| 307 |
margin-right: 1.6em; |
| 308 |
} |
| 309 |
|
| 310 |
li#ca-watch, |
| 311 |
li#ca-unwatch, |
| 312 |
li#ca-varlang-0, |
| 313 |
li#ca-print { |
| 314 |
margin-left: 1.6em; |
| 315 |
} |
| 316 |
|
| 317 |
/* Historically not present in Monobook skin */ |
| 318 |
#p-cactions li#ca-view, |
| 319 |
/* |
| 320 |
** mobile toggles; not used here |
| 321 |
*/ |
| 322 |
#p-personal #pt-notifications, |
| 323 |
#echo-hack-badges, |
| 324 |
#p-cactions-mobile, |
| 325 |
#sidebar-mobilejs, |
| 326 |
.mobile-close-button, |
| 327 |
.menu-toggle, |
| 328 |
.menus-cover { |
| 329 |
display: none; |
| 330 |
} |
| 331 |
|
| 332 |
/* |
| 333 |
** footer |
| 334 |
*/ |
| 335 |
#f-poweredbyico, |
| 336 |
#f-copyrightico { |
| 337 |
margin: 0 8px; |
| 338 |
position: relative; |
| 339 |
top: -2px; /* Bump it up just a tad */ |
| 340 |
} |
| 341 |
|
| 342 |
#f-poweredbyico { |
| 343 |
float: right; |
| 344 |
height: 1%; |
| 345 |
} |
| 346 |
|
| 347 |
#f-copyrightico { |
| 348 |
float: left; |
| 349 |
height: 1%; |
| 350 |
} |