Merge "Fix 'Tags' padding to keep it farther from the edge and document the source...
[lhc/web/wiklou.git] / resources / src / mediawiki.special.preferences.styles.ooui.css
1 /* Reuses colors from mediawiki.legacy/shared.css */
2 .mw-email-not-authenticated .oo-ui-labelWidget,
3 .mw-email-none .oo-ui-labelWidget {
4 border: 1px solid #fde29b;
5 background-color: #fdf1d1;
6 color: #000;
7 padding: 0.5em;
8 }
9 /* Authenticated email field has its own class too. Unstyled by default */
10 /*
11 .mw-email-authenticated .oo-ui-labelWidget { }
12 */
13
14 /* This is needed because add extra buttons in a weird way */
15 .mw-prefs-buttons .mw-htmlform-submit-buttons {
16 margin: 0;
17 display: inline;
18 }
19
20 .mw-prefs-buttons {
21 margin-top: 1em;
22 }
23
24 #prefcontrol {
25 margin-right: 0.5em;
26 }
27
28 /*
29 * Hide, but keep accessible for screen-readers.
30 */
31 .client-js .mw-navigation-hint {
32 overflow: hidden;
33 height: 0;
34 zoom: 1;
35 }
36
37 /* Override OOUI styles so that dropdowns near the bottom of the form don't get clipped,
38 * e.g.'Appearance' / 'Threshold for stub link formatting'. This is hacky and bad, it would be
39 * better solved by setting overlays for the widgets, but we can't do it from PHP... */
40 #preferences .oo-ui-panelLayout {
41 position: static;
42 overflow: visible;
43 -webkit-transform: none;
44 transform: none;
45 }
46
47 #preferences .oo-ui-menuLayout .oo-ui-panelLayout-framed .oo-ui-panelLayout-framed {
48 border-width: 0;
49 border-radius: 0;
50 box-shadow: none;
51 padding-left: 0;
52 padding-right: 0;
53 }
54
55 .mw-prefs-faketabs > .oo-ui-menuLayout > .oo-ui-menuLayout-menu a {
56 color: inherit;
57 text-decoration: none;
58 }
59
60 /* Adjust the borders when JS is disabled: frame each prefsection instead of the
61 * whole tabLayout wrapper */
62 .client-nojs #preferences .oo-ui-menuLayout .oo-ui-panelLayout-framed .oo-ui-panelLayout-framed {
63 border-color: #c8ccd1;
64 border-width: 1px 0 0;
65 }
66
67 .client-nojs .mw-prefs-faketabs {
68 border-width: 0;
69 border-radius: 0;
70 box-shadow: none;
71 }
72
73 .client-nojs .mw-prefs-faketabs > .oo-ui-menuLayout > .oo-ui-menuLayout-content > .oo-ui-stackLayout {
74 margin-bottom: 1em;
75 }
76
77 /* Hide the tab menu when JS is disabled as we can't use this feature */
78 .client-nojs .mw-prefs-faketabs > .oo-ui-menuLayout > .oo-ui-menuLayout-menu {
79 display: none;
80 }
81
82 .client-nojs #preferences .oo-ui-panelLayout-framed .oo-ui-panelLayout-framed:last-child {
83 padding-bottom: 0;
84 margin-bottom: 0;
85 }
86
87 /* Hide top level legends when JS is enabled, as they will not be visible
88 * when the real tabLayout is built */
89 .client-js #preferences .oo-ui-tabPanelLayout > fieldset > legend {
90 display: none;
91 }
92
93 .client-js #preferences .oo-ui-tabPanelLayout {
94 padding-top: 0.5em;
95 }
96
97 .client-js #preferences .oo-ui-panelLayout-framed .oo-ui-panelLayout-framed {
98 margin-left: 0;
99 margin-bottom: 0;
100 padding: 0;
101 border-width: 0;
102 border-radius: 0;
103 box-shadow: none;
104 }
105
106 .client-js #preferences > .oo-ui-panelLayout > .oo-ui-fieldsetLayout > .oo-ui-fieldsetLayout-header {
107 margin-bottom: 1em;
108 }
109
110 /* Make the "Basic information" section more compact */
111 /* OOUI's `align: 'left'` for FieldLayouts sucks, so we do our own */
112 #mw-htmlform-info > .oo-ui-fieldLayout-align-top > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-header {
113 width: 20%;
114 display: inline-block;
115 vertical-align: middle;
116 padding: 0;
117 }
118
119 #mw-htmlform-info > .oo-ui-fieldLayout-align-top .oo-ui-fieldLayout-help {
120 margin-right: 0;
121 }
122
123 #mw-htmlform-info > .oo-ui-fieldLayout.oo-ui-fieldLayout-align-top > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-field {
124 width: 80%;
125 display: inline-block;
126 vertical-align: middle;
127 }
128
129 /* Expand the dropdown and textfield of "Time zone" field to the */
130 /* usual maximum width and display them on separate lines. */
131 #wpTimeCorrection .oo-ui-dropdownInputWidget,
132 #wpTimeCorrection .oo-ui-textInputWidget {
133 display: block;
134 max-width: 50em;
135 }
136
137 #wpTimeCorrection .oo-ui-textInputWidget {
138 margin-top: 0.5em;
139 }
140
141 /* HACK: expand width of gadget descriptions.
142 * This should be moved to the Gadgets extension */
143 #mw-htmlform-gadgets .oo-ui-fieldLayout.oo-ui-fieldLayout-align-inline > .oo-ui-fieldLayout-body {
144 max-width: none;
145 }