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