|
1 | | -/* Fix width for the 'reason' selectorother field */ |
2 | | -#mw-input-wpreason { |
3 | | - display: inline-flex; |
4 | | - width: 100%; |
5 | | - max-width: 50em; |
6 | | - |
7 | | - .oo-ui-dropdownInputWidget { |
8 | | - max-width: initial; |
9 | | - } |
10 | | - |
11 | | - .oo-ui-inputWidget { |
12 | | - margin-right: 0; |
13 | | - } |
14 | | - |
15 | | - .oo-ui-textInputWidget { |
16 | | - margin-left: 0.5em; |
17 | | - } |
18 | | -} |
| 1 | +@import 'mediawiki.skin.variables.less'; |
19 | 2 |
|
20 | 3 | .ext-createwiki-tabs { |
21 | 4 | .ext-createwiki-fieldset-wrapper { |
|
36 | 19 | .ext-createwiki-tabs > .oo-ui-menuLayout-content > .oo-ui-indexLayout-stackLayout > .oo-ui-tabPanelLayout { |
37 | 20 | /* Decrease contrast of `border` slightly as padding/border combination is sufficient |
38 | 21 | * accessibility wise and focus of content is more important here. */ |
39 | | - border-color: #c8ccd1; |
| 22 | + border-color: @border-color-subtle; |
40 | 23 | } |
41 | 24 |
|
42 | 25 | /* JavaScript disabled */ |
|
54 | 37 | } |
55 | 38 |
|
56 | 39 | .ext-createwiki-section-fieldset { |
57 | | - // <legend> is hard to style, so apply border to top of group |
58 | | - > .oo-ui-fieldsetLayout-group { |
59 | | - padding-top: 1.5em; |
60 | | - border-top: 1px solid #c8ccd1; |
| 40 | + > .oo-ui-fieldsetLayout-header { |
| 41 | + margin-bottom: @spacing-150; |
61 | 42 | } |
62 | 43 |
|
63 | 44 | // Remove spacing between legend and underline |
|
66 | 47 | } |
67 | 48 | } |
68 | 49 |
|
69 | | - // Spacing between sections |
70 | | - > .oo-ui-menuLayout-content > .oo-ui-indexLayout-stackLayout > .oo-ui-tabPanelLayout:not( :last-child ) { |
71 | | - margin-bottom: 1em; |
| 50 | + .oo-ui-tabPanelLayout + .oo-ui-tabPanelLayout { |
| 51 | + margin-top: @spacing-100; |
72 | 52 | } |
73 | 53 | } |
74 | 54 | } |
|
77 | 57 | .client-js .ext-createwiki-tabs { |
78 | 58 | .oo-ui-tabPanelLayout { |
79 | 59 | // Panels don't need borders as the IndexLayout is inside a framed wrapper. |
80 | | - border: 0; |
| 60 | + border-width: 0; |
81 | 61 |
|
82 | 62 | // Hide section legend, only used in nojs mode |
83 | 63 | > fieldset > legend { |
|
93 | 73 | } |
94 | 74 | } |
95 | 75 |
|
96 | | -#mw-htmlform-info { |
97 | | - > .oo-ui-fieldLayout-align-top > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-header { |
98 | | - display: inline-block; |
99 | | - width: 20%; |
100 | | - padding: 0; |
101 | | - vertical-align: middle; |
102 | | - } |
103 | | - |
104 | | - > .oo-ui-fieldLayout-align-top .oo-ui-fieldLayout-help { |
105 | | - margin-right: 0; |
106 | | - } |
107 | | - |
108 | | - > .oo-ui-fieldLayout.oo-ui-fieldLayout-align-top > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-field { |
109 | | - display: inline-block; |
110 | | - width: 80%; |
111 | | - vertical-align: middle; |
112 | | - } |
113 | | -} |
114 | | - |
115 | | -/* Compact number inputs */ |
116 | | -.mw-htmlform-field-HTMLFloatField, |
117 | | -.mw-htmlform-field-HTMLIntField { |
118 | | - .oo-ui-inputWidget { |
119 | | - max-width: 10em; |
120 | | - } |
121 | | -} |
122 | | - |
123 | 76 | .mw-special-RequestWikiQueue { |
124 | 77 | #mw-section-details, |
125 | 78 | #mw-section-comments, |
|
130 | 83 | } |
131 | 84 |
|
132 | 85 | span > label { |
133 | | - font-weight: bold; |
| 86 | + font-weight: @font-weight-bold; |
134 | 87 | } |
135 | 88 |
|
| 89 | + // HACK: Pretend to be a read-only OOUI TextInputWidget |
136 | 90 | div > label { |
137 | | - display: block; |
138 | | - width: 100%; |
139 | | - max-height: 15em; |
140 | | - box-sizing: border-box; |
141 | | - padding: 8px; |
142 | | - border: 1.5px solid #ccc; |
143 | | - border-radius: 4px; |
144 | | - background-color: #f5f5f5; |
145 | | - color: #333; |
146 | | - font-family: 'Arial', sans-serif; |
147 | | - line-height: 1.5em; |
| 91 | + max-width: 50em; |
148 | 92 | overflow-y: auto; |
| 93 | + display: block; |
| 94 | + background-color: @background-color-interactive-subtle; |
| 95 | + border: @border-base; |
| 96 | + padding: @spacing-30 @spacing-50; |
| 97 | + border-radius: @border-radius-base; |
149 | 98 | } |
150 | 99 | } |
151 | 100 | } |
|
0 commit comments