Debian Codegraph @

skins/Timeless/resources/screen-mobile.less

raw
1 @import 'variables.less';
2
3 // Override default here because mobile narrow
4 @content-padding: 0.45em;
5
6 /* Layout */
7
8 #mw-data-after-content,
9 .mw-footer {
10 padding: 0 @content-padding;
11 }
12
13 #mw-footer .footer-icons {
14 clear: both;
15 margin-bottom: 0.5em;
16 }
17
18 .color-middle {
19 margin: auto;
20 width: 34%;
21 }
22
23 .categories-bottom();
24
25 #p-variants-desktop,
26 #mw-page-header-links #ca-view,
27 #mw-header-nav-hack,
28 #page-tools h2,
29 #other-languages h2,
30 #p-logo {
31 display: none;
32 }
33
34 #mw-header-container {
35 background: @background;
36 padding: 3.75em @content-padding 0.35em;
37 }
38
39 #mw-header-hack {
40 position: relative;
41 z-index: @z-index-stacking-1;
42 box-shadow: 0 3px 3px 2px rgba( 0, 0, 0, 0.075 ), 0 0 2px rgba( 0, 0, 0, 0.2 );
43 }
44
45 .color-right,
46 .color-middle,
47 .color-left {
48 background: @red-dark;
49 }
50
51 /* Dropdowns */
52 .sidebar-inner,
53 .dropdown {
54 display: none;
55 .nav-block();
56 background: @background;
57 box-shadow: 0 2px 3px 1px rgba( 0, 0, 0, 0.05 );
58 position: absolute;
59 padding: 2em 2.5em 1em;
60 margin: 0;
61 min-width: 9.153em;
62 max-width: 80%;
63 top: 3.25em;
64 right: 0;
65 overflow: visible;
66 z-index: @z-index-off-canvas;
67
68 h3 {
69 margin: 0.5em 0 1.5em;
70 }
71
72 ul {
73 margin: 1em 0 2em;
74 }
75
76 li {
77 margin: 0 0 0.75em;
78 }
79 }
80
81 #menus-cover {
82 display: none;
83 position: fixed;
84 top: 0;
85 left: 0;
86 // More an overlay than an offcanvas menu.
87 z-index: @z-index-off-canvas-backdrop;
88 width: 100%;
89 height: 100%;
90 background: @base80;
91 opacity: 0.8;
92 overflow: hidden;
93 }
94
95 /* Dropdown toggles */
96
97 #user-tools h2,
98 .sidebar-chunk h2 {
99 .dropdown-header();
100 margin: 0;
101 width: 30px;
102 height: 30px;
103 position: absolute;
104 top: 1em;
105 padding-bottom: 0;
106 font-size: 1em;
107 background-repeat: no-repeat;
108 background-position: center center;
109
110 span {
111 display: inline-block;
112 .icon();
113 }
114
115 &::after {
116 position: absolute;
117 top: 0.65em;
118 left: 23px;
119 }
120 }
121
122 #user-tools h2 {
123 right: @content-padding + 0.75em;
124 background-image: url( images/user-large-grey.svg );
125 }
126
127 #site-navigation {
128 h2 {
129 left: @content-padding;
130 background-image: url( images/menu-large-grey.svg );
131 }
132
133 .sidebar-inner {
134 left: 0;
135 right: auto;
136 }
137 }
138
139 #site-tools h2 {
140 right: @content-padding + 4.5em;
141 background-image: url( images/gear-large-grey.svg );
142 }
143
144 /* Logo */
145
146 #p-logo-text {
147 position: absolute;
148 top: 1em;
149 left: @content-padding + 4em;
150 text-align: left;
151
152 a {
153 padding-left: 0;
154 }
155 }
156
157 /* Page actions */
158
159 #p-namespaces li {
160 margin-right: 1.5em;
161 }
162
163 .tools-inline li a {
164 .ca-icon-only();
165 }
166
167 #ca-more,
168 #ca-languages {
169 &::after {
170 margin-left: -0.35em;
171 }
172
173 span {
174 .ca-icon-only();
175 display: inline-block;
176 overflow: visible;
177 }
178 }
179
180 #ca-more span {
181 background-image: url( images/gear-grey.svg );
182 background-repeat: no-repeat;
183 }
184
185 #ca-languages span {
186 background-image: url( images/languages-grey.svg );
187 background-repeat: no-repeat;
188 }
189
190 /* Full-width thumbnails */
191
192 div.thumb {
193 float: none;
194 }
195
196 .thumb {
197 margin: 1em auto;
198 }
199
200 .floatright,
201 .tright {
202 margin-left: 0;
203 padding-left: 0;
204 }
205
206 .floatleft,
207 .tleft {
208 margin-right: 0;
209 padding-right: 0;
210 }
211
212 .thumbinner {
213 padding: 1em 1.5em;
214 width: 100% !important;
215 box-sizing: border-box;
216 }
217
218 .thumbimage {
219 display: block;
220 margin: 0 auto 0.5em;
221 }
222
223 figure[ typeof~='mw:File/Thumb' ],
224 figure[ typeof~='mw:File/Frame' ] {
225 width: 100% !important;
226 float: none !important;
227 margin: 1em 0 !important;
228 box-sizing: border-box;
229
230 > :not( figcaption ) .mw-file-element {
231 max-width: calc( 100% - 3em ) !important;
232 margin: 1em auto;
233 box-sizing: border-box;
234 }
235
236 > figcaption {
237 padding: 0 1.5em 1em 1.5em;
238 }
239 }
240
241 figure[ typeof~='mw:File/Thumb' ] {
242 > .mw-file-description::after,
243 > .mw-file-magnify::after {
244
245 // Default where page content language is not set
246 // Allow to flip
247 right: 1.5em;
248
249 // Defaults for page content language
250
251 .mw-content-ltr & {
252 /* @noflip */
253 right: 1.5em;
254 }
255
256 .mw-content-rtl & {
257 /* @noflip */
258 left: 1.5em;
259 }
260 }
261 }
262
263 .mw-body {
264 border: 0;
265
266 table {
267 width: 100%;
268 margin-left: 0;
269 margin-right: 0;
270
271 table {
272 // HOLD ON WHAT ABORT ABORT
273 width: unset;
274 margin-left: unset;
275 margin-right: unset;
276 }
277 }
278 }
279
280 #mw-content {
281 padding: @content-padding;
282 border-width: 0;
283 }
284
285 #mw-content-block {
286 background: @background;
287 }
288
289 /* Table of contents */
290 .toc,
291 .mw-warning {
292 width: 100%;
293 box-sizing: border-box;
294 }
295
296 /* Misc */
297
298 .nomobile {
299 display: none;
300 }