Debian Codegraph @

skins/Timeless/resources/screen-common.less

raw
1 @import 'variables.less';
2
3 /* Page layout */
4
5 html,
6 body {
7 margin: 0;
8 padding: 0;
9 }
10
11 body {
12 font-family: @fonts;
13 color: @text;
14 // Footer colour; results in a weird distracting dark scrollbar in firefox, but fuck firefox
15 // Setting it here avoids a jump to white after the footer, which is even more distracting
16 background: @base30;
17 font-size: @font-size;
18 line-height: 1.5;
19 }
20
21 #mw-content {
22 .box;
23 background: @background;
24 padding: 1em @content-padding 3em;
25 }
26
27 #bodyContentOuter {
28 /* Set a z-index for the content to group it away from any nav stuff (extensions) - T200148 */
29 position: relative;
30 z-index: @z-index-base;
31 }
32
33 .mw-body {
34 word-wrap: break-word;
35 }
36
37 .mw-footer-container {
38 border-top: solid 1px @base20;
39 box-shadow: inset 0 7px 2px -4px rgba( 0, 0, 0, 0.1 );
40 color: @base100;
41
42 a {
43 color: darken( @blue-bright, 3% );
44
45 &:hover {
46 color: darken( @blue-bright, 6% );
47 }
48
49 &:visited {
50 color: darken( @blue-bright, 8% );
51
52 &:hover {
53 color: darken( @blue-bright, 12% );
54 }
55 }
56 }
57
58 ul {
59 margin: 0;
60 }
61 }
62
63 #p-logo {
64 text-align: center;
65 margin: auto;
66 }
67
68 #p-logo-text {
69 padding-right: 1em;
70 box-sizing: border-box;
71 max-width: @column-left-size;
72 text-align: center;
73 line-height: 1;
74
75 a {
76 display: flex;
77 height: 100%;
78 align-items: center;
79 justify-content: center;
80 color: @text;
81 font-family: @fonts-secondary;
82 font-variant: small-caps;
83 font-size: 1.85em;
84
85 /* 13+ character names */
86 &.long {
87 font-size: 1.5em;
88 line-height: 0.8;
89 }
90 }
91 }
92
93 /* Search */
94
95 #simpleSearch {
96 box-shadow: inset 0 2px 4px 0 rgba( 0, 0, 0, 0.05 );
97 background: @background;
98 position: relative;
99 border: solid 1px @base70;
100 }
101
102 #searchInput {
103 border: 0;
104 margin: 0;
105 height: 2.1em;
106 padding: 0.4em 4.5em 0.2em 2em;
107 box-shadow: none;
108 background: transparent;
109 width: 100%;
110 min-height: 0;
111 font-family: inherit;
112 }
113
114 #searchButton,
115 #mw-searchButton {
116 position: absolute;
117 top: 0;
118 margin: 0;
119 padding: 0;
120 right: 1.5em;
121 width: 2.5em;
122 height: 2.5em;
123 .icon;
124 background-image: url( images/search-ltr.svg );
125 /* @noflip */
126 background-position: center 40%;
127 box-shadow: none;
128 }
129
130 .suggestions {
131 background: @background;
132 box-shadow: 0 2px 2px 1px rgba( 0, 0, 0, 0.05 );
133
134 .suggestions-special {
135 background-color: @background;
136 border: 1px solid @base70;
137 border-bottom-width: @border;
138 padding: 0.75em 2em;
139 }
140
141 .suggestions-results {
142 background-color: @background;
143 border: 1px solid @base70;
144 border-bottom-width: @border;
145 }
146
147 .suggestions-result {
148 color: @text;
149 padding: 0.65em 2em 0.35em;
150 }
151
152 .suggestions-result-current {
153 background-color: @blue;
154 color: @background;
155 }
156 }
157
158 .dropdown-toggle {
159 .dropdown-header();
160 }
161
162 /* Footer */
163
164 .mw-footer {
165 padding-top: 0.5em;
166 padding-bottom: 1em;
167
168 ul,
169 li {
170 margin: 1em 0;
171 list-style: none;
172 padding: 0;
173 }
174
175 .footer-icons {
176 float: right;
177 margin: 0 0 0 1em;
178 }
179
180 #footer-places li {
181 display: inline-block;
182 margin: 0 1em 0 0;
183 }
184
185 #lastmod,
186 #credits,
187 #copyright {
188 display: block;
189 }
190 }
191
192 /* Content */
193
194 #mw-content-container {
195 background: @base80;
196 border-bottom: solid 4px @green;
197
198 /* Background image (default cat) */
199 background-image: @backdrop-image;
200 background-repeat: no-repeat;
201 background-position: center 10em;
202 }
203
204 .tools-inline,
205 .tools-inline & {
206 div,
207 ul,
208 li {
209 list-style: none;
210 display: inline-block;
211 margin: 0;
212 padding: 0;
213 }
214 }
215
216 .tools-inline li {
217 margin: 0.25em 0 1em;
218 border-bottom: solid 3px transparent;
219
220 &:hover {
221 border-bottom-color: @base70;
222 }
223
224 &.selected {
225 border-bottom-color: @blue;
226
227 a {
228 color: @text;
229 }
230 }
231
232 a {
233 .ca-icon( 'images/page-misc-grey' );
234
235 &:hover {
236 text-decoration: none;
237 }
238 }
239 }
240
241 #p-namespaces {
242 float: left;
243
244 li {
245 margin-right: 1em;
246 }
247 }
248
249 #p-views,
250 #p-more {
251 float: right;
252
253 li {
254 margin-left: 1em;
255 }
256 }
257
258 #ca-watch a {
259 .ca-icon( 'images/star' );
260 .ca-icon-only();
261 }
262
263 #ca-unwatch a {
264 .ca-icon( 'images/star-filled' );
265 .ca-icon-only();
266 }
267
268 #ca-unwatch.mw-watchlink-temp a {
269 .ca-icon( 'images/star-half-filled' );
270 .ca-icon-only();
271 }
272
273 #ca-edit a {
274 .ca-icon( 'images/pencil-grey' );
275 }
276
277 #ca-history a {
278 .ca-icon( 'images/clock-grey' );
279 }
280
281 #ca-talk a {
282 .ca-icon( 'images/talk-grey' );
283 }
284
285 #t-contributions a {
286 .ca-icon( 'images/puzzle-grey' );
287 }
288
289 #ca-addsection a {
290 .ca-icon( 'images/plus-grey' );
291 }
292
293 #ca-viewsource a {
294 .ca-icon( 'images/brackets-grey' );
295 }
296
297 #ca-view a,
298 #ca-view-foreign a {
299 .ca-icon( 'images/eyeball-grey' );
300 }
301
302 #ca-view {
303 .hidden();
304 }
305
306 .tools-inline li[ id^='ca-nstab-' ] a {
307 .ca-icon( 'images/page-grey' );
308 }
309
310 #siteNotice {
311 font-size: 95%;
312 margin: 0.5em auto 1.5em;
313 }
314
315 #localNotice {
316 .box();
317 padding: 0;
318 text-align: center;
319
320 p {
321 margin-left: 1em;
322 margin-right: 1em;
323 }
324 }
325
326 /* Misc */
327
328 a {
329 text-decoration: none;
330 color: @link;
331
332 &:hover {
333 color: darken( @link, 10% );
334 text-decoration: underline;
335 }
336
337 &:visited {
338 color: @link-visited;
339
340 &:hover {
341 color: darken( @link-visited, 10% );
342 }
343 }
344 }
345
346 a.new,
347 .new a {
348 color: @link-red;
349
350 &:hover {
351 color: darken( @link-red, 10% );
352 }
353
354 &:visited {
355 color: @link-red-visited;
356
357 &:hover {
358 color: darken( @link-red-visited, 10% );
359 }
360 }
361 }
362
363 .mw-parser-output a.extiw,
364 .mw-parser-output a.extiw:active,
365 .mw-parser-output a.external {
366 color: @link-ext;
367
368 &:hover {
369 color: darken( @link-ext, 10% );
370 }
371
372 &:visited {
373 color: @link-ext-visited;
374
375 &:hover {
376 color: darken( @link-ext-visited, 10% );
377 }
378 }
379 }
380
381 a.mw-selflink {
382 color: inherit;
383 font-weight: bold;
384 text-decoration: inherit;
385 }
386
387 .mw-editsection {
388 font-family: @fonts;
389 background-image: url( images/pencil-grey.svg );
390 background-repeat: no-repeat;
391 background-position: left bottom;
392 padding-left: 20px;
393 padding-top: 0.5em;
394
395 a {
396 display: inline-block;
397 padding: 0.5em 0 0.25em;
398 margin-right: 1em;
399
400 &:first-of-type {
401 /* make the icon part of the first link */
402 padding-left: 20px;
403 margin-left: -20px;
404 }
405 }
406 }
407
408 .mw-editsection-bracket {
409 display: none;
410 }
411
412 .mw-indicators {
413 float: right;
414 margin-left: 1em;
415
416 img {
417 /* Line up to baseline; expected indicator icon size is 20px */
418 margin-top: -0.5em;
419 }
420 }
421
422 .mw-indicator {
423 display: inline-block;
424 margin: 0.65em 0 0 0.25em;
425 }
426
427 div.magnify a {
428 display: block;
429 text-indent: 20px;
430 white-space: nowrap;
431 overflow: hidden;
432 width: 20px;
433 height: 20px;
434 margin: 0 0 0.5em 0.5em;
435 background-image: url( images/magnify-ltr.svg );
436 }
437
438 /* Subtitle area
439 * @see https://phabricator.wikimedia.org/T173951
440 */
441 #contentSub {
442 font-size: 84%;
443 color: @base20;
444
445 /* This forces "redirect page" (on a redirect page) etc. on a new line */
446 .subpages {
447 display: block;
448 }
449 }
450
451 /**
452 * Old-school "you have new messages" notification bar for when the Echo
453 * extension isn't installed
454 * Styles copied from /resources/src/mediawiki.skinning/interface.css@REL1_34
455 * @see https://phabricator.wikimedia.org/T294679
456 */
457 .usermessage {
458 background-color: #ffce7b;
459 border: 1px solid #ffa500;
460 color: #000;
461 font-weight: bold;
462 margin: 2em 0 1em;
463 padding: 0.5em 1em;
464 vertical-align: middle;
465 }
466
467 /* pre and code styles copypasted from core
468 * /resources/src/mediawiki.skinning/elements.css and modified a bit
469 * @see https://phabricator.wikimedia.org/T177142
470 */
471
472 .screenplay,
473 code,
474 tt,
475 kbd,
476 pre,
477 samp,
478 .skin-timeless .monospace {
479 font-family: @fonts-mono;
480 }
481
482 .skin-timeless .serif {
483 font-family: @fonts-serif;
484 }
485
486 .skin-timeless .sans-serif {
487 font-family: @fonts-sans;
488 }
489
490 code,
491 pre,
492 .mw-code {
493 color: #000;
494 background-color: @base90;
495 border: 1px solid @base70;
496 }
497
498 code {
499 padding: 1px 4px;
500 }
501
502 pre,
503 .mw-code {
504 padding: 1em;
505 /* Wrap lines in overflow. T2260, T103780 */
506 white-space: pre-wrap;
507 }
508
509 .mw-body {
510 .mw-heading,
511 h1,
512 h2,
513 h3,
514 h4,
515 h5,
516 h6,
517 dt {
518 font-weight: normal;
519 font-family: @fonts-secondary;
520 line-height: 1.125;
521 margin: 1.25em 0 0.5em;
522 }
523
524 dt {
525 font-weight: bold;
526 font-family: @fonts-secondary;
527 line-height: 1.125;
528 margin: 1.5em 0 0.5em;
529 margin-bottom: 0.1em;
530 }
531
532 dl {
533 margin-top: 0.2em;
534 margin-bottom: 0.5em;
535 }
536
537 form dt {
538 margin: 0 0.5em 0 0;
539 }
540
541 h1.firstHeading {
542 margin: 0.25em 0 0.5em;
543 border-bottom: solid 4px @blue;
544 display: block;
545 }
546
547 .mw-heading1,
548 h1 {
549 font-size: 2em;
550 border-bottom: solid 3px @base70;
551 }
552
553 .mw-heading2,
554 h2 {
555 font-size: 1.8em;
556 border-bottom: solid 2px @base70;
557 }
558
559 .mw-heading1,
560 h1,
561 .mw-heading2,
562 h2 {
563 // Introduce a "block formatting context" so that the border-bottom underline doesn't overlap
564 // thumbnails, infoboxes and other floated content.
565 // https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Block_formatting_context
566 //
567 // It also allows floated content inside the heading to not be affected by those other floats
568 // (e.g. [edit] links when floated by gadgets, or [subscribe] links in DiscussionTools T318872).
569 //
570 // Other skins commonly use 'overflow: hidden' for this, but in our case it causes text in
571 // languages with tall scripts to be cut off (T195822). 'display: flow-root' works in all
572 // browsers supported by MediaWiki except IE 11 (https://caniuse.com/?search=flow-root).
573 display: flow-root;
574 }
575
576 .mw-heading3,
577 h3 {
578 font-size: 1.6em;
579 }
580
581 .mw-heading4,
582 h4 {
583 font-size: 1.4em;
584 }
585
586 .mw-heading5,
587 h5 {
588 font-size: 1.25em;
589 }
590
591 .mw-heading6,
592 h6 {
593 font-size: 1.2em;
594 }
595
596 // Override the styles above for `hN` nested inside `.mw-heading`, as used on wikitext pages.
597 .mw-heading {
598 h1,
599 h2,
600 h3,
601 h4,
602 h5,
603 h6 {
604 font-size: inherit;
605 border-bottom: 0;
606 // Must be inline to allow `.mw-editsection` to be shown on the same line
607 display: inline;
608 }
609 }
610
611 dt {
612 margin-top: 1em;
613 }
614
615 dd {
616 margin-bottom: 1em;
617 }
618
619 .mw-changeslist-legend dt {
620 margin: 0 0.5em 0 0;
621 }
622
623 .mw-changeslist-legend dd {
624 margin-bottom: 0;
625 }
626 }
627
628 // Keep images from overflowing
629 .mw-body-content a > img,
630 .mw-body-content .floatnone > img {
631 height: auto !important;
632 max-width: 100% !important;
633 }
634
635 a > img,
636 .floatnone > img {
637 // Hopefully these are only templates or something sane to begin with
638 // See: T269970
639 .mw-body-content table & {
640 height: unset !important;
641 max-width: unset !important;
642 }
643 }
644
645 #siteSub {
646 margin: -0.5em 0 0.5em 0;
647 font-style: italic;
648 font-family: @fonts-secondary;
649 display: none;
650 }
651
652 hr {
653 border-width: 1px;
654 border-color: @base70;
655 border-style: solid none solid none;
656 margin: 0.5em 0;
657 }
658
659 pre {
660 overflow: auto;
661 white-space: pre-wrap;
662 }
663
664 p {
665 margin: 1em 0;
666 }
667
668 ul {
669 padding: 0;
670 margin: 0.3em 0 0 1.6em;
671 }
672
673 .center {
674 margin-right: auto;
675 margin-left: auto;
676 text-align: center;
677 }
678
679 /* Thumbnails */
680 /* @noflip */
681 .floatright,
682 .tright {
683 margin: 0 0 0.5em 0.5em;
684 padding: 0 0 1em 1.5em;
685 }
686
687 /* @noflip */
688 .floatleft,
689 .tleft {
690 margin: 0 0.5em 0.5em 0;
691 padding: 0 1.5em 1em 0;
692 }
693
694 .thumbinner {
695 .box;
696 padding: 0.75em;
697 /* Properly center framed thumbnail images (T219717) */
698 margin-left: auto;
699 margin-right: auto;
700 overflow: hidden;
701 }
702
703 .thumbcaption {
704 font-size: 95%;
705 padding: 0.5em 0 0;
706 /* For the magnify link on empty captions */
707 min-height: 1em;
708
709 &:empty {
710 padding: 0;
711 min-height: 0;
712 }
713 }
714
715 .thumbinner .thumbimage,
716 .thumbborder {
717 border: solid 1px @base80;
718 }
719
720 .mw-body li.gallerybox div.thumb {
721 .box;
722 padding: 0;
723 }
724
725 /* Tables of contents */
726 ul#filetoc,
727 .toc,
728 .toccolours,
729 .mw-warning {
730 display: table;
731 .box;
732 padding: 1.25em 1.75em;
733 margin-top: 1em;
734 margin-bottom: 1em;
735 min-width: 15em;
736 font-size: 100%;
737 }
738
739 .toc {
740 line-height: 1.2;
741
742 ul {
743 margin: 1em 0 0;
744 list-style: none;
745 text-align: left;
746 }
747
748 li {
749 margin: 0.3em 0;
750
751 &:last-child {
752 margin-bottom: 0.5em;
753 }
754 }
755 }
756
757 ul#filetoc {
758 display: block;
759 margin-bottom: 2em;
760 }
761
762 .mw-body .toctitle {
763 border-bottom: solid 2px @base70;
764 text-align: unset;
765
766 h2 {
767 border-bottom: 0;
768 font-size: 1em;
769 font-family: @fonts;
770 margin: 0;
771 display: inline;
772 }
773 }
774
775 .toctogglespan {
776 float: right;
777 }
778
779 /* Remove brackets around the show/hide button of the TOC
780 The selectors have a higher specifity than in core */
781 body :not( :checked ) > .toctogglespan::before,
782 body :not( :checked ) > .toctogglespan::after {
783 content: '';
784 }
785
786 .toctogglelabel {
787 padding-left: 0; /* Overwrite label { padding-left: 0.5em; } from forms.less */
788 margin-left: 0.5em; /* Create new distance to the TOC title without increasing the focus ring */
789 }
790
791 .toclevel-1 {
792 margin-bottom: 0.25em;
793 }
794
795 .tocnumber {
796 color: @base20;
797 }
798
799 .skin-timeless .mw-body .oo-ui-tagMultiselectWidget-handle,
800 .skin-timeless .mw-body .oo-ui-capsuleMultiselectWidget-handle {
801 margin: 0; /* wat */
802 }
803
804 .mw-body .mw-rcfilters-ui-changesListWrapperWidget .mw-changeslist-legend, /* wat */
805 .mw-changeslist-legend,
806 .mw-body .mw-search-profile-tabs,
807 .mw-body fieldset#mw-searchoptions,
808 .mw_metadata,
809 .wikitable,
810 .mw-datatable {
811 color: @text;
812 .box;
813 padding: 1.25em 1.75em;
814 }
815
816 .mw-body .mw-search-profile-tabs {
817 padding: 0.5em;
818 }
819
820 .mw_metadata,
821 .mw-datatable,
822 .wikitable {
823 border-color: @base70;
824
825 > tr > th,
826 > tr > td,
827 > * > tr > th,
828 > * > tr > td {
829 border: 1px solid @base70;
830 padding: 0.4em 0.5em;
831 }
832 }
833
834 .mw-datatable th {
835 background: @blue-bright;
836 }
837
838 .mw_metadata th,
839 .wikitable th {
840 background: @base80;
841 }
842
843 .mw_metadata {
844 border-bottom-width: 3px;
845 }
846
847 /* Color bars */
848
849 .color-bar {
850 width: 100%;
851 }
852
853 .color-left {
854 height: @color-height;
855 background: @red-dark;
856 width: 50%;
857 float: left;
858 }
859
860 .color-right {
861 display: inline-block;
862 height: @color-height;
863 background: @green-dark;
864 width: 50%;
865 float: right;
866 }
867
868 .color-middle-container {
869 max-width: @content-width;
870 margin: 0 auto -@color-height;
871 position: relative;
872 }
873
874 .color-middle {
875 height: @color-height;
876 background: @blue-dark;
877 margin-left: @column-left-size + 1em;
878 margin-right: @column-right-size + 1em;
879 }
880
881 /* Portlets */
882 .emptyPortlet,
883 #mw-page-header-links .emptyPortlet {
884 display: none;
885 }
886
887 #p-lang.emptyPortlet {
888 display: inherit;
889 }
890
891 /* Hidden stuff */
892
893 #p-namespaces h3,
894 #p-views h3,
895 #p-more h3,
896 #p-search h3 {
897 .hidden;
898 }