This repository has been archived by the owner on Jan 8, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlegacy.css
1298 lines (1278 loc) · 29.8 KB
/
legacy.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
@media screen {
/* stylelint-disable selector-class-pattern */
/**
* NOTE: This feature is enabled for all skins. Please read the instructions below before adding anything
* new to this file.
*
* This feature provides various styles associated with the body content of an article.
* The article body is considered to be anything that can be generated by OutputPage::getHTML()
* that is (or could be considered) universal to all pages in the main namespace.
*
* It is expected that this HTML is wrapped by SkinTemplate::wrapHTML and that the wrapping
* element makes use of the `mw-body-content` class.
*
* All styles here should be be scoped to the `.mw-body-content` or one of its child class
* e.g. `mw-parser-output class` where more appropriate.
*
* Styles here should be limited to CSS classes generated by PHP code inside MediaWiki core.
* Classes added that require an on-wiki template in the Template space and cannot be reproduced
* with a vanilla MediaWiki install are not allowed here. Please use MediaWiki:Common.css and
* MediaWiki:<skin>.css for such styles.
*/
/* stylelint-disable selector-class-pattern */
/* stylelint-disable selector-no-vendor-prefix */
/* stylelint-enable selector-no-vendor-prefix */
/**
* It's possible to add HTML elements inside wikitext, for example <div style="float:right;"></div>
* Editors have grown to expect that any floated elements added inside wikitext will be cleared
* automatically by the skin. This rule encapsulates that user expectation in a central place that
* applies to all skins.
* Note, this applies to mw-body-content not mw-parser-output as on pages such as the category page,
* the body of a page includes other sibling elements aside from the output of the parser.
*/
.mw-body-content:after {
clear: both;
content: '';
display: block;
}
.mw-body-content a.external.free {
word-wrap: break-word;
}
.mw-body-content .error {
font-size: larger;
color: #d33;
}
/* External URLs should always be treated as LTR (T6330) */
/* @noflip */
.rtl .mw-parser-output a.external.free,
.rtl .mw-parser-output a.external.autonumber {
direction: ltr;
unicode-bidi: embed;
}
/* body */
.mw-hide-empty-elt .mw-parser-output:not( .mw-show-empty-elt ) .mw-empty-elt {
display: none;
}
/* stylelint-disable property-no-unknown -- https://github.com/wikimedia/stylelint-config-wikimedia/issues/145 */
/* Taken from https://www.w3.org/TR/predefined-counter-styles/#meetei-styles */
@counter-style meetei {
system: numeric;
symbols: '\ABF0' '\ABF1' '\ABF2' '\ABF3' '\ABF4' '\ABF5' '\ABF6' '\ABF7' '\ABF8' '\ABF9';
suffix: ') ';
}
/* Taken from https://www.w3.org/TR/predefined-counter-styles/#ol-chiki-styles */
@counter-style santali {
system: numeric;
symbols: '\1C50' '\1C51' '\1C52' '\1C53' '\1C54' '\1C55' '\1C56' '\1C57' '\1C58' '\1C59';
}
/* stylelint-enable */
/**
* CSS in this file is used by *all* skins (that have any CSS at all). Be
* careful what you put in here, since what looks good in one skin may not in
* another, but don't ignore the poor pre-Monobook users either.
*
* NOTE: The images which are referenced in this file are no longer in use in
* essential interface components. They should NOT be embedded, because that
* optimizes for the uncommon case at the cost of bloating the size of render-
* blocking CSS common to all pages.
*/
/* stylelint-disable selector-class-pattern */
/* stylelint-disable selector-no-vendor-prefix */
/* stylelint-enable selector-no-vendor-prefix */
/* stylelint-disable selector-class-pattern */
/* GENERAL CLASSES FOR DIRECTIONALITY SUPPORT */
/**
* These classes should be used for text depending on the content direction.
* Content stuff like editsection, ul/ol and TOC depend on this.
*/
.mw-content-ltr {
/* @noflip */
direction: ltr;
}
.mw-content-rtl {
/* @noflip */
direction: rtl;
}
/* Most input fields should be in site direction */
.sitedir-ltr textarea,
.sitedir-ltr input,
textarea[dir='ltr'][dir='ltr'],
input[dir='ltr'][dir='ltr'] {
/* @noflip */
direction: ltr;
}
.sitedir-rtl textarea,
.sitedir-rtl input,
textarea[dir='rtl'][dir='rtl'],
input[dir='rtl'][dir='rtl'] {
/* @noflip */
direction: rtl;
}
.mw-userlink {
word-wrap: break-word;
-webkit-hyphens: auto;
-moz-hyphens: auto;
-ms-hyphens: auto;
hyphens: auto;
unicode-bidi: embed;
}
/* User-Agent styles for new HTML5 elements */
mark {
background-color: #ff0;
color: #000;
}
/* Helper for wbr element on IE 8+; in HTML5, but not supported by default as of IE 11. */
/* Note canonical HTML5 styles recommend "content: \u200B", but this doesn't work as of IE 11. */
wbr {
display: inline-block;
}
/* Input types that should follow user direction, like buttons */
/* TODO: What about buttons in wikipage content ? */
input[type='submit'],
input[type='button'],
input[type='reset'],
input[type='file'] {
direction: ltr;
}
/* Default style for semantic tags */
abbr[title],
.explain[title] {
border-bottom: 1px dotted;
cursor: help;
}
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
@supports ( text-decoration: underline dotted ) {
abbr[title],
.explain[title] {
border-bottom: 0;
text-decoration: underline dotted;
}
}
/* Comment portions of RC entries */
span.comment {
font-style: italic;
unicode-bidi: -moz-isolate;
unicode-bidi: isolate;
}
/**
* rev_deleted stuff
*/
li span.deleted,
span.history-deleted {
text-decoration: line-through;
color: #72777d;
font-style: italic;
}
/**
* Patrol stuff
*/
/**
* Forms
*/
td.mw-label {
text-align: right;
vertical-align: middle;
}
td.mw-input {
text-align: left;
}
td.mw-submit {
text-align: left;
white-space: nowrap;
}
/* stylelint-disable selector-class-pattern */
a.new {
color: #dd3333;
}
/* self links */
a.mw-selflink {
color: inherit;
font-weight: bold;
text-decoration: inherit;
}
a.mw-selflink:hover {
cursor: inherit;
text-decoration: inherit;
}
a.mw-selflink:active,
a.mw-selflink:visited {
color: inherit;
}
a.new:visited {
color: #a55858;
}
/* Interwiki & External links */
.mw-parser-output a.extiw,
.mw-parser-output a.external {
color: #3366bb;
}
.mw-parser-output a.extiw:visited,
.mw-parser-output a.external:visited {
color: #663366;
}
.mw-parser-output a.extiw:active,
.mw-parser-output a.external:active {
color: #bb6633;
}
/* Underline preference */
.mw-underline-always a {
text-decoration: underline;
}
.mw-underline-never a {
text-decoration: none;
}
/* Plainlinks - this can be used to switch
* off special external link styling */
.plainlinks a.external {
background: none !important;
/* stylelint-disable-line declaration-no-important */
padding: 0 !important;
/* stylelint-disable-line declaration-no-important */
}
/* stylelint-disable selector-class-pattern */
/**
* NOTE: This file is exclusively used by the legacy stylesheet, deprecated in 1.37
* It is frozen, please don't add to it further.
*/
/* @noflip */
div.tright,
div.floatright,
table.floatright {
clear: right;
float: right;
}
/* @noflip */
div.tleft,
div.floatleft,
table.floatleft {
float: left;
clear: left;
}
/* Directionality-specific styles for thumbnails - their positioning depends on content language */
/* @noflip */
.mw-content-ltr .thumbcaption {
text-align: left;
}
/* @noflip */
.mw-content-ltr .magnify {
float: right;
}
/* @noflip */
.mw-content-rtl .thumbcaption {
text-align: right;
}
/* @noflip */
.mw-content-rtl .magnify {
float: left;
}
/* stylelint-disable selector-class-pattern */
#catlinks {
/**
* Overrides text justification (user preference)
* See T33990
*/
text-align: left;
}
.catlinks {
border: 1px solid #a2a9b1;
background-color: #f8f9fa;
padding: 5px;
margin-top: 1em;
clear: both;
}
.catlinks ul {
display: inline;
margin: 0;
padding: 0;
list-style: none;
}
.catlinks li {
display: inline-block;
line-height: 1.25em;
border-left: 1px solid #a2a9b1;
margin: 0.125em 0;
padding: 0 0.5em;
/* (T7346) make category redirects italic */
}
.catlinks li:first-child {
padding-left: 0.25em;
border-left: 0;
}
.catlinks li a.mw-redirect {
font-style: italic;
}
/**
* Hidden categories
*/
.mw-hidden-cats-hidden,
.catlinks-allhidden {
display: none;
}
/* stylelint-disable selector-class-pattern */
/*
* mediawiki.action.styles
* Miscellaneous styles for actions that do not have a dedicated style module.
*/
/* action=credits, T14205. */
#mw-credits a {
unicode-bidi: embed;
}
/* action=view, for pages containing custom CSS or JavaScript. */
#mw-clearyourcache {
direction: ltr;
unicode-bidi: embed;
}
/* action=view, when revision patrolling is enabled. */
div.patrollink {
font-size: 75%;
text-align: right;
}
/* action=view, when viewing individual revisions, using oldid. */
#mw-revision-info,
#mw-revision-info-current,
#mw-revision-nav {
direction: ltr;
}
/*
* Convenience links to edit delete and protect reasons, for actions protect and delete.
*/
p.mw-protect-editreasons,
p.mw-delete-editreasons {
font-size: 90%;
text-align: right;
}
/* The auto-generated edit comments */
.autocomment,
.autocomment a,
.autocomment a:visited {
color: #72777d;
}
/**
* Recreating deleted page warning
* Reupload file warning
* Page protection warning
* incl. log entries for these warnings
*/
/* (show/hide) revision deletion links */
span.mw-revdelundel-link,
strong.mw-revdelundel-link {
font-size: 90%;
}
/* red links; see T38276 */
a.new {
color: #ba0000;
}
/**
* wikitable class for skinning normal tables.
* Keep in sync with content.tables-print.less.
*/
.wikitable {
background-color: #f8f9fa;
color: #202122;
margin: 1em 0;
border: 1px solid #a2a9b1;
border-collapse: collapse;
}
.wikitable > tr > th,
.wikitable > tr > td,
.wikitable > * > tr > th,
.wikitable > * > tr > td {
border: 1px solid #a2a9b1;
padding: 0.2em 0.4em;
}
.wikitable > tr > th,
.wikitable > * > tr > th {
background-color: #eaecf0;
text-align: center;
}
.wikitable > caption {
font-weight: bold;
}
/* Error, warning, success and neutral messages */
.error,
.warning,
.success {
font-size: larger;
}
.error {
color: #d33;
}
.warning {
color: #ac6600;
}
.success {
color: #14866d;
}
.visualClear {
clear: both;
}
/*!
* mw-datatable styles used by TablePager.
* These were previously available through legacy.less and are still imported there.
* After legacy.less has been removed, this file can be merged into TablePager.less.
*/
.mw-datatable {
border: 1px solid #a2a9b1;
border-collapse: collapse;
}
.mw-datatable td,
.mw-datatable th {
border: 1px solid #a2a9b1;
padding: 0.2em 0.4em;
}
.mw-datatable th {
background-color: #eaeeff;
}
.mw-datatable td {
background-color: #fff;
}
.mw-datatable tr:hover td {
background-color: #eaf3ff;
}
.mw-ajax-loader {
background-image: url(/w/resources/src/mediawiki.skinning/images/ajax-loader.gif?57f34);
background-position: center center;
background-repeat: no-repeat;
padding: 16px;
position: relative;
top: -16px;
}
.mw-small-spinner {
padding: 10px !important;
/* stylelint-disable-line declaration-no-important */
margin-right: 0.6em;
background-image: url(/w/resources/src/mediawiki.skinning/images/spinner.gif?ca65b);
background-position: center center;
background-repeat: no-repeat;
}
/* Correct directionality when page dir is different from site/user dir */
.mw-content-ltr ul,
.mw-content-rtl .mw-content-ltr ul {
/* @noflip */
margin: 0.3em 0 0 1.6em;
padding: 0;
}
.mw-content-rtl ul,
.mw-content-ltr .mw-content-rtl ul {
/* @noflip */
margin: 0.3em 1.6em 0 0;
padding: 0;
}
.mw-content-ltr ol,
.mw-content-rtl .mw-content-ltr ol {
/* @noflip */
margin: 0.3em 0 0 3.2em;
padding: 0;
}
.mw-content-rtl ol,
.mw-content-ltr .mw-content-rtl ol {
/* @noflip */
margin: 0.3em 3.2em 0 0;
padding: 0;
}
/* @noflip */
.mw-content-ltr dd,
.mw-content-rtl .mw-content-ltr dd {
margin-left: 1.6em;
margin-right: 0;
}
/* @noflip */
.mw-content-rtl dd,
.mw-content-ltr .mw-content-rtl dd {
margin-right: 1.6em;
margin-left: 0;
}
/* Language specific height correction for titles. Ref T31405 and T32809 */
/* Languages like hi or ml require slightly more vertical space to show diacritics properly */
h1:lang( anp ),
h1:lang( as ),
h1:lang( bh ),
h1:lang( bho ),
h1:lang( bn ),
h1:lang( gu ),
h1:lang( hi ),
h1:lang( kn ),
h1:lang( ks ),
h1:lang( ml ),
h1:lang( mr ),
h1:lang( my ),
h1:lang( mai ),
h1:lang( ne ),
h1:lang( new ),
h1:lang( or ),
h1:lang( pa ),
h1:lang( pi ),
h1:lang( sa ),
h1:lang( ta ),
h1:lang( te ) {
line-height: 1.6em !important;
/* stylelint-disable-line declaration-no-important */
}
/* stylelint-disable selector-list-comma-newline-after */
h2:lang( anp ),
h3:lang( anp ),
h4:lang( anp ),
h5:lang( anp ),
h6:lang( anp ),
h2:lang( as ),
h3:lang( as ),
h4:lang( as ),
h5:lang( as ),
h6:lang( as ),
h2:lang( bho ),
h3:lang( bho ),
h4:lang( bho ),
h5:lang( bho ),
h6:lang( bho ),
h2:lang( bh ),
h3:lang( bh ),
h4:lang( bh ),
h5:lang( bh ),
h6:lang( bh ),
h2:lang( bn ),
h3:lang( bn ),
h4:lang( bn ),
h5:lang( bn ),
h6:lang( bn ),
h2:lang( gu ),
h3:lang( gu ),
h4:lang( gu ),
h5:lang( gu ),
h6:lang( gu ),
h2:lang( hi ),
h3:lang( hi ),
h4:lang( hi ),
h5:lang( hi ),
h6:lang( hi ),
h2:lang( kn ),
h3:lang( kn ),
h4:lang( kn ),
h5:lang( kn ),
h6:lang( kn ),
h2:lang( ks ),
h3:lang( ks ),
h4:lang( ks ),
h5:lang( ks ),
h6:lang( ks ),
h2:lang( ml ),
h3:lang( ml ),
h4:lang( ml ),
h5:lang( ml ),
h6:lang( ml ),
h2:lang( mr ),
h3:lang( mr ),
h4:lang( mr ),
h5:lang( mr ),
h6:lang( mr ),
h2:lang( my ),
h3:lang( my ),
h4:lang( my ),
h5:lang( my ),
h6:lang( my ),
h2:lang( mai ),
h3:lang( mai ),
h4:lang( mai ),
h5:lang( mai ),
h6:lang( mai ),
h2:lang( ne ),
h3:lang( ne ),
h4:lang( ne ),
h5:lang( ne ),
h6:lang( ne ),
h2:lang( new ),
h3:lang( new ),
h4:lang( new ),
h5:lang( new ),
h6:lang( new ),
h2:lang( or ),
h3:lang( or ),
h4:lang( or ),
h5:lang( or ),
h6:lang( or ),
h2:lang( pa ),
h3:lang( pa ),
h4:lang( pa ),
h5:lang( pa ),
h6:lang( pa ),
h2:lang( pi ),
h3:lang( pi ),
h4:lang( pi ),
h5:lang( pi ),
h6:lang( pi ),
h2:lang( sa ),
h3:lang( sa ),
h4:lang( sa ),
h5:lang( sa ),
h6:lang( sa ),
h2:lang( ta ),
h3:lang( ta ),
h4:lang( ta ),
h5:lang( ta ),
h6:lang( ta ),
h2:lang( te ),
h3:lang( te ),
h4:lang( te ),
h5:lang( te ),
h6:lang( te ) {
line-height: 1.4em;
}
/* stylelint-enable selector-list-comma-newline-after */
h2:lang( th ) {
line-height: 1.6;
}
/* Localised ordered list numbering for some languages */
ol:lang( azb ) li,
ol:lang( bcc ) li,
ol:lang( bgn ) li,
ol:lang( bqi ) li,
ol:lang( fa ) li,
ol:lang( glk ) li,
ol:lang( kk-arab ) li,
ol:lang( lrc ) li,
ol:lang( luz ) li,
ol:lang( mzn ) li {
list-style-type: persian;
}
ol:lang( ckb ) li,
ol:lang( sdh ) li {
list-style-type: arabic-indic;
}
ol:lang( hi ) li,
ol:lang( mai ) li,
ol:lang( mr ) li,
ol:lang( ne ) li {
list-style-type: devanagari;
}
ol:lang( as ) li,
ol:lang( bn ) li {
list-style-type: bengali;
}
ol:lang( mni ) li {
list-style-type: meetei;
}
ol:lang( or ) li {
list-style-type: oriya;
}
ol:lang( sat ) li {
list-style-type: santali;
}
/* stylelint-disable selector-class-pattern */
.toc .toctitle {
direction: ltr;
}
/* Correct directionality when page dir is different from site/user dir */
/* @noflip */
.mw-content-ltr .toc ul,
.mw-content-rtl .mw-content-ltr .toc ul {
text-align: left;
}
/* @noflip */
.mw-content-rtl .toc ul,
.mw-content-ltr .mw-content-rtl .toc ul {
text-align: right;
}
/* @noflip */
.mw-content-ltr .toc ul ul,
.mw-content-rtl .mw-content-ltr .toc ul ul {
margin: 0 0 0 2em;
}
/* @noflip */
.mw-content-rtl .toc ul ul,
.mw-content-ltr .mw-content-rtl .toc ul ul {
margin: 0 2em 0 0;
}
/* Print footer should be hidden by default in screen. */
.printfooter {
display: none;
}
/* For developers */
.xdebug-error {
position: absolute;
z-index: 99;
}
.mw-editsection {
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
}
/* Display editsection links smaller and next to headings */
.mw-editsection,
.mw-editsection-like {
font-size: small;
font-weight: normal;
margin-left: 1em;
vertical-align: baseline;
/* Reset line-height; headings tend to have it set to larger values */
line-height: 1em;
}
/* Correct directionality when page dir is different from site/user dir */
.mw-content-ltr .mw-editsection,
.mw-content-rtl .mw-content-ltr .mw-editsection,
.mw-content-ltr .mw-editsection-like,
.mw-content-rtl .mw-content-ltr .mw-editsection-like {
/* @noflip */
margin-left: 1em;
/* @noflip */
margin-right: 0;
}
.mw-content-rtl .mw-editsection,
.mw-content-ltr .mw-content-rtl .mw-editsection,
.mw-content-rtl .mw-editsection-like,
.mw-content-ltr .mw-content-rtl .mw-editsection-like {
/* @noflip */
margin-right: 1em;
/* @noflip */
margin-left: 0;
}
/* Prevent citations and subscripts from interfering with the line-height */
sup,
sub {
line-height: 1;
}
/**
* Table of Contents
*
* Default styles for the display of table of contents in @media screen.
*
* Styles relating to i18n are inside the i18n.less file in the same subfolder.
* Styles for @media print are inside print.css.
*/
/* stylelint-disable selector-class-pattern */
/* Table of Contents */
.toc,
.toccolours {
border: 1px solid #a2a9b1;
background-color: #f8f9fa;
padding: 5px;
font-size: 95%;
}
/**
* We want to display the ToC element with intrinsic width in block mode. The fit-content
* value for width is however not supported by large groups of browsers.
*
* We use display:table. Even though it should only contain other table-* display
* elements, there are no known problems with using this.
*/
.toc {
display: table;
padding: 7px;
}
.toc h2 {
display: inline;
border: 0;
padding: 0;
font-size: 100%;
font-weight: bold;
}
.toc .toctitle {
text-align: center;
}
.toc ul {
list-style: none;
margin: 0.3em 0;
padding: 0;
text-align: left;
}
.toc ul ul {
margin: 0 0 0 2em;
}
/* CSS for backwards-compatibility with cached page renders and creative uses in wikitext */
table.toc {
border-collapse: collapse;
/* Remove additional paddings inside table-cells that are not present in <div>s */
}
table.toc td {
padding: 0;
}
/* Separate columns for tocnumber and toctext */
.tocnumber,
.toctext {
display: table-cell;
/*
* Text decorations are not propagated to the contents of inline blocks and inline tables,
* according to <https://www.w3.org/TR/css-text-decor-3/#line-decoration>, and 'display: table-cell'
* generates an inline table when used without any parent table-rows and tables.
*/
text-decoration: inherit;
}
/* Space between the columns for tocnumber and toctext */
.tocnumber {
color: #202122;
padding-left: 0;
padding-right: 0.5em;
}
.mw-content-ltr .tocnumber {
/* @noflip */
padding-left: 0;
/* @noflip */
padding-right: 0.5em;
}
.mw-content-rtl .tocnumber {
/* @noflip */
padding-left: 0.5em;
/* @noflip */
padding-right: 0;
}
/* Overwrite the style="display:none" and make the checkbox invisible on another way to */
/* allow to focus the checkbox with keyboard. */
.toctogglecheckbox {
display: inline !important;
/* stylelint-disable-line declaration-no-important */
position: absolute;
opacity: 0;
z-index: -1;
}
.toctogglespan {
font-size: 94%;
}
.toctogglespan:before {
content: ' [';
}
.toctogglespan:after {
content: ']';
}
/* Make the label look like a link. */
.toctogglelabel {
cursor: pointer;
color: #0645ad;
}
.toctogglelabel:hover {
text-decoration: underline;
}
/* Show a focus ring around the label when focusing the invisible checkbox. */
/* This simulates that the label is in focus. */
.toctogglecheckbox:focus + .toctitle .toctogglelabel {
text-decoration: underline;
outline: dotted 1px;
/* Firefox style for focus */
outline: auto -webkit-focus-ring-color;
/* Webkit style for focus */
}
/* Change the text of the button based on the state of the checkbox. */
.toctogglecheckbox:checked + .toctitle .toctogglelabel:after {
content: '(showtoc)';
}
.toctogglecheckbox:not( :checked ) + .toctitle .toctogglelabel:after {
content: '(hidetoc)';
}
/* stylelint-disable selector-class-pattern */
.toc .toctitle {
direction: ltr;
}
/* Correct directionality when page dir is different from site/user dir */
/* @noflip */
.mw-content-ltr .toc ul,
.mw-content-rtl .mw-content-ltr .toc ul {
text-align: left;
}
/* @noflip */
.mw-content-rtl .toc ul,
.mw-content-ltr .mw-content-rtl .toc ul {
text-align: right;
}
/* @noflip */
.mw-content-ltr .toc ul ul,
.mw-content-rtl .mw-content-ltr .toc ul ul {
margin: 0 0 0 2em;
}
/* @noflip */
.mw-content-rtl .toc ul ul,
.mw-content-ltr .mw-content-rtl .toc ul ul {
margin: 0 2em 0 0;
}}@media print {
/* stylelint-disable selector-class-pattern */
.mw-parser-output a.external {
/* Expand URLs for printing */
/* Expand protocol-relative URLs for printing */
}
.mw-parser-output a.external.text:after,
.mw-parser-output a.external.autonumber:after {
content: ' (' attr(href) ')';
word-break: break-all;
word-wrap: break-word;
}
.mw-parser-output a.external.text[href^='//']:after,
.mw-parser-output a.external.autonumber[href^='//']:after {
content: ' (https:' attr(href) ')';
}
/* Hide the complete TOC on print when the TOC is hidden. */
/* stylelint-disable selector-class-pattern */
.toctogglecheckbox:checked + .toctitle {
display: none;
}
.toc {
background-color: #f9f9f9;
border: 1pt solid #aaa;
padding: 5px;
display: table;
}
/* Separate columns for `.tocnumber` and `.toctext` */
.tocnumber,
.toctext {
display: table-cell;
}
/* Space between those columns */
.tocnumber {
padding-left: 0;
padding-right: 0.5em;
}
/* @noflip */
.mw-content-ltr .tocnumber {
padding-left: 0;
padding-right: 0.5em;
}
/* @noflip */
.mw-content-rtl .tocnumber {
padding-left: 0.5em;
padding-right: 0;
}
/**
* MediaWiki print style sheet
* Largely based on work by Gabriel Wicke
*
* Originally derived from Plone (https://plone.org/) styles
* Copyright Alexander Limi
*/
/* stylelint-disable selector-class-pattern */
/**
* Hide all the elements irrelevant for printing
* Skins however can and should override.
*/
/* General hide-in-print class, please only use sparely */
.noprint,
.mw-cite-backlink,
.mw-redirectedfrom,
.patrollink,
#column-one,
#footer-places,
#mw-navigation,
#f-poweredbyico,
#f-copyrightico,
li#about,
li#disclaimer,
li#mobileview,
li#privacy {
display: none;
}
/**
* Generic HTML elements
*/
body {
background: #fff;
color: #000;
margin: 0;
padding: 0;
}
/* stylelint-disable selector-class-pattern */
.mw-parser-output a.external {
/* Expand URLs for printing */
/* Expand protocol-relative URLs for printing */
}
.mw-parser-output a.external.text:after,
.mw-parser-output a.external.autonumber:after {
content: ' (' attr(href) ')';
word-break: break-all;
word-wrap: break-word;
}
.mw-parser-output a.external.text[href^='//']:after,
.mw-parser-output a.external.autonumber[href^='//']:after {
content: ' (https:' attr(href) ')';
}
/* Prevent citations and subscripts from interfering with the line-height */
sup,
sub {
line-height: 1;
}
/**
* MediaWiki-specific elements
*/