| 1 |
/* |
| 2 |
** Mobile styles for MonoBook |
| 3 |
*/ |
| 4 |
|
| 5 |
@import 'variables.less'; |
| 6 |
@import 'mediawiki.mixins.less'; |
| 7 |
|
| 8 |
#column-content { |
| 9 |
padding-top: 6em; |
| 10 |
} |
| 11 |
|
| 12 |
.mw-body { |
| 13 |
border-right: 0; |
| 14 |
border-left: 0; |
| 15 |
} |
| 16 |
|
| 17 |
/* |
| 18 |
** Navigation |
| 19 |
*/ |
| 20 |
.menu-toggle { |
| 21 |
display: block; |
| 22 |
width: @block-size; |
| 23 |
height: @block-size; |
| 24 |
background: @content-background; |
| 25 |
border: solid 1px @orange-border; |
| 26 |
box-sizing: border-box; |
| 27 |
background-position: 50% 50%; |
| 28 |
background-repeat: no-repeat; |
| 29 |
z-index: 4; |
| 30 |
} |
| 31 |
|
| 32 |
#sidebar-toggle { |
| 33 |
background-image: url( images/icon-triangle-down.svg ); |
| 34 |
position: absolute; |
| 35 |
top: @top-position; |
| 36 |
left: 1em; |
| 37 |
} |
| 38 |
|
| 39 |
#p-personal-toggle { |
| 40 |
background-image: url( images/icon-user.svg ); |
| 41 |
position: absolute; |
| 42 |
top: @top-position; |
| 43 |
right: 1em; |
| 44 |
} |
| 45 |
|
| 46 |
#globalWrapper-toggle { |
| 47 |
background-image: url( images/icon-triangle-up.svg ); |
| 48 |
margin: 1em auto; |
| 49 |
} |
| 50 |
|
| 51 |
/* |
| 52 |
** search |
| 53 |
*/ |
| 54 |
#p-search { |
| 55 |
position: absolute; |
| 56 |
z-index: 3; |
| 57 |
top: @top-position; |
| 58 |
left: 0; |
| 59 |
width: 100%; |
| 60 |
padding: 0 @block-size + 20px; |
| 61 |
box-sizing: border-box; |
| 62 |
|
| 63 |
h3 { |
| 64 |
.mixin-screen-reader-text(); |
| 65 |
} |
| 66 |
} |
| 67 |
|
| 68 |
#searchBody { |
| 69 |
border: solid 1px @orange-border; |
| 70 |
background-color: @content-background; |
| 71 |
height: @block-size; |
| 72 |
box-sizing: border-box; |
| 73 |
} |
| 74 |
|
| 75 |
#searchform { |
| 76 |
position: relative; |
| 77 |
width: 100%; |
| 78 |
padding: 3px 42px 3px 9px; |
| 79 |
box-sizing: border-box; |
| 80 |
} |
| 81 |
|
| 82 |
#searchInput { |
| 83 |
width: 100%; |
| 84 |
height: @block-size - 8px; |
| 85 |
border: solid 1px @content-border; |
| 86 |
padding: 0 0.25em; |
| 87 |
box-sizing: border-box; |
| 88 |
} |
| 89 |
|
| 90 |
#searchButton { |
| 91 |
position: absolute; |
| 92 |
box-sizing: border-box; |
| 93 |
top: 1px; |
| 94 |
right: 6px; |
| 95 |
height: @block-size - 4px; |
| 96 |
width: @block-size; |
| 97 |
text-indent: -99999px; |
| 98 |
border: 0; |
| 99 |
background: none; |
| 100 |
background-image: url( images/icon-search.svg ); |
| 101 |
background-position: 50% 50%; |
| 102 |
background-repeat: no-repeat; |
| 103 |
cursor: pointer; |
| 104 |
} |
| 105 |
|
| 106 |
#mw-searchButton { |
| 107 |
display: none; |
| 108 |
} |
| 109 |
|
| 110 |
/* |
| 111 |
** site nav, nojs layout |
| 112 |
*/ |
| 113 |
.client-nojs { |
| 114 |
#p-cactions, |
| 115 |
#p-personal, |
| 116 |
#sidebar .generated-sidebar, |
| 117 |
#p-tb, |
| 118 |
#p-lang { |
| 119 |
margin: 1em; |
| 120 |
overflow: visible; |
| 121 |
|
| 122 |
.pBody { |
| 123 |
border: solid 1px @content-border; |
| 124 |
background: @content-background; |
| 125 |
padding: 0.5em; |
| 126 |
} |
| 127 |
|
| 128 |
ul { |
| 129 |
margin: 0; |
| 130 |
} |
| 131 |
|
| 132 |
li { |
| 133 |
display: inline-block; |
| 134 |
border-left: solid 1px @content-border; |
| 135 |
padding: 0 0.5em; |
| 136 |
white-space: nowrap; |
| 137 |
|
| 138 |
&:first-child { |
| 139 |
border-left: 0; |
| 140 |
padding-left: 0; |
| 141 |
} |
| 142 |
|
| 143 |
// wtf echo |
| 144 |
&#pt-notifications-alert, |
| 145 |
&#pt-notifications-notice { |
| 146 |
border-left: 0; |
| 147 |
} |
| 148 |
|
| 149 |
&.selected { |
| 150 |
font-weight: bold; |
| 151 |
|
| 152 |
a { |
| 153 |
color: @color-base; |
| 154 |
} |
| 155 |
} |
| 156 |
} |
| 157 |
|
| 158 |
h3 { |
| 159 |
font-weight: normal; |
| 160 |
} |
| 161 |
} |
| 162 |
} |
| 163 |
|
| 164 |
/* |
| 165 |
** fake cactions |
| 166 |
*/ |
| 167 |
#p-cactions-mobile { |
| 168 |
position: absolute; |
| 169 |
top: 3.75em; |
| 170 |
left: 0; |
| 171 |
padding: 0 1em; |
| 172 |
width: 100%; |
| 173 |
box-sizing: border-box; |
| 174 |
|
| 175 |
h3 { |
| 176 |
display: none; |
| 177 |
} |
| 178 |
|
| 179 |
ul { |
| 180 |
margin: 0; |
| 181 |
list-style: none; |
| 182 |
} |
| 183 |
|
| 184 |
li { |
| 185 |
display: inline-block; |
| 186 |
border: 1px solid @content-border; |
| 187 |
border-bottom: 0; |
| 188 |
margin-right: 0.5em; |
| 189 |
height: 2.5em; |
| 190 |
|
| 191 |
// The mobile icon cactions tabs |
| 192 |
a { |
| 193 |
display: block; |
| 194 |
position: relative; |
| 195 |
width: 1em; |
| 196 |
padding: 0.5em 1em 0.75em; |
| 197 |
background-color: #fbfbfb; |
| 198 |
background-image: url( images/icon-page.svg ); |
| 199 |
background-position: 50% 50%; |
| 200 |
background-repeat: no-repeat; |
| 201 |
text-transform: lowercase; |
| 202 |
text-indent: -99999px; |
| 203 |
} |
| 204 |
|
| 205 |
&#ca-talk-mobile a { |
| 206 |
background-image: url( images/icon-chat.svg ); |
| 207 |
} |
| 208 |
|
| 209 |
&#ca-more { |
| 210 |
border: 0; |
| 211 |
|
| 212 |
a { |
| 213 |
background-color: transparent; |
| 214 |
background-image: url( images/icon-triangle-ltr.svg ); |
| 215 |
background-position: 100% 40%; |
| 216 |
text-indent: 0; |
| 217 |
padding-left: 0.5em; |
| 218 |
padding-right: 1.35em; |
| 219 |
width: auto; |
| 220 |
} |
| 221 |
} |
| 222 |
|
| 223 |
&#ca-languages a { |
| 224 |
background-image: url( images/icon-globe.svg ); |
| 225 |
} |
| 226 |
|
| 227 |
&#ca-tools a { |
| 228 |
background-image: url( images/icon-tools.svg ); |
| 229 |
} |
| 230 |
|
| 231 |
&.selected { |
| 232 |
border-color: @orange-border; |
| 233 |
font-weight: bold; |
| 234 |
} |
| 235 |
|
| 236 |
&.selected a, |
| 237 |
&:hover a { |
| 238 |
z-index: 3; |
| 239 |
background-color: @content-background; |
| 240 |
text-decoration: none; |
| 241 |
} |
| 242 |
|
| 243 |
&#ca-languages, |
| 244 |
&#ca-tools { |
| 245 |
float: right; |
| 246 |
margin-right: 0; |
| 247 |
margin-left: 0.5em; |
| 248 |
} |
| 249 |
} |
| 250 |
} |
| 251 |
|
| 252 |
/* |
| 253 |
** footer |
| 254 |
*/ |
| 255 |
.mw-footer li { |
| 256 |
margin-left: 0; |
| 257 |
} |
| 258 |
|
| 259 |
#f-poweredbyico, |
| 260 |
#f-copyrightico { |
| 261 |
display: inline-block; |
| 262 |
margin: 0 0.5em 1em; |
| 263 |
} |
| 264 |
|
| 265 |
/* |
| 266 |
** images |
| 267 |
*/ |
| 268 |
div.thumb { |
| 269 |
float: none; |
| 270 |
margin: 1em auto; |
| 271 |
} |
| 272 |
|
| 273 |
div.tright { |
| 274 |
margin-left: 0; |
| 275 |
padding-left: 0; |
| 276 |
} |
| 277 |
|
| 278 |
div.tleft { |
| 279 |
margin-right: 0; |
| 280 |
padding-right: 0; |
| 281 |
} |
| 282 |
|
| 283 |
.thumbinner { |
| 284 |
width: 100% !important; /* stylelint-disable-line declaration-no-important */ |
| 285 |
box-sizing: border-box; |
| 286 |
} |
| 287 |
|
| 288 |
.monobook-body { |
| 289 |
overflow: auto; |
| 290 |
} |
| 291 |
|
| 292 |
/* |
| 293 |
** table of contents |
| 294 |
*/ |
| 295 |
#toc, |
| 296 |
.toc, |
| 297 |
.mw-warning { |
| 298 |
width: 100%; |
| 299 |
box-sizing: border-box; |
| 300 |
} |
| 301 |
|
| 302 |
.nomobile { |
| 303 |
display: none; |
| 304 |
} |