forked from wikimedia-gadgets/twinkle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
morebits.css
369 lines (313 loc) · 7.57 KB
/
morebits.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
/**
* morebits.css
* ===========
* Styles to support morebits.js.
*
* The morebits library is maintained by the maintainers of Twinkle.
* For queries, suggestions, help, etc., head to [[WT:TW]].
* The latest development source is available at [https://github.com/wikimedia-gadgets/twinkle/blob/master/morebits.css].
*/
/* Define CSS variables */
html {
--morebits-color-status-status: #4682B4;
--morebits-color-legend: #31628F;
--morebits-color-tooltip: #0000cd;
--morebits-color-info: #228B22;
--morebits-color-warning: #FF4500;
--morebits-color-titlebar-links: #3062AD;
--morebits-bgcolor-dialog: #F0F8FF;
--morebits-bgcolor-titlebar: #BCCADF;
}
@media screen {
html.skin-theme-clientpref-night {
--morebits-color-status-status: #A6C4DE;
--morebits-color-legend: #6B9DCC;
--morebits-color-tooltip: #7A7AFF;
--morebits-color-info: #6BDB6B;
--morebits-color-warning: #FF6D38;
--morebits-color-titlebar-links: #8BADDF;
--morebits-bgcolor-dialog: #141c26;
--morebits-bgcolor-titlebar: #1c2a52;
}
}
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os {
--morebits-color-status-status: #A6C4DE;
--morebits-color-legend: #6B9DCC;
--morebits-color-tooltip: #7A7AFF;
--morebits-color-info: #6BDB6B;
--morebits-color-warning: #FF6D38;
--morebits-color-titlebar-links: #8BADDF;
--morebits-bgcolor-dialog: #141c26;
--morebits-bgcolor-titlebar: #1c2a52;
}
}
/* Morebits.status */
.morebits_status_status {
color: var(--morebits-color-status-status, #4682B4);
}
.morebits_status_info {
color: var(--morebits-color-info, #228B22);
}
.morebits_status_warn {
color: var(--morebits-color-warning, #FF4500);
}
.morebits_status_error {
color: var(--morebits-color-warning, #FF4500);
font-weight: bold;
}
/* Morebits.quickForm */
form.quickform
{
width: 96%;
vertical-align: middle;
margin: auto;
padding: .5em;
color: var(--color-base, #202122);
}
form.quickform *
{
font-family: sans-serif;
}
form.quickform fieldset
{
margin: .4em 0 1em;
}
form.quickform legend
{
color: var(--morebits-color-legend, #31628F);
font-weight: bold;
}
form.quickform input[type=text], form.quickform select
{
min-width: 15em;
font-size: 110%;
}
form.quickform select
{
border: 1px solid gray;
margin-left: .2em;
}
form.quickform input[type=checkbox],
form.quickform input[type=radio] {
height: 13px;
margin-top: 2px;
margin-right: 2px;
margin-bottom: 2px;
padding: 0;
width: 13px;
vertical-align: top;
}
form.quickform div {
line-height: 18px;
}
form.quickform h5
{
margin: .5em 0 0;
padding: .3em .2em .2em;
font-size: 108%; /* 100% is 12px => 108% is 12.96px */
}
/* only give the top border to headers with something above them */
form.quickform div + h5, form.quickform div + div > h5, form.quickform h5 + h5
{
border-top: 1px solid #88A;
}
form.quickform textarea
{
width: 100%;
height: 4em;
font-size: 150%;
}
form.quickform input:disabled + label
{
color: var(--color-disabled, #72777d);
}
form.quickform span.quickformDescription
{
font-style: italic;
}
form.quickform span.quickformDescription code
{
font-style: normal;
font-family: monospace;
}
form.quickform .quickformSubgroup
{
margin-bottom: .5em;
margin-left: 3em;
}
/* The tooltip button and the content itself */
form.quickform .morebits-tooltipButton
{
color: var(--morebits-color-tooltip, mediumblue);
font-weight: bold;
cursor: help;
padding: .3em;
}
.morebits-ui-tooltip
{
padding: 4px 6px 4px 6px;
font-size: 13px;
}
/* Scrollbox styles, for use within Morebits.simpleWindow */
div.morebits-scrollbox
{
background: var(--background-color-base, #fff);
color: inherit;
border: 1px solid gray;
margin-bottom: .6em;
margin-top: .6em;
max-height: 20em;
overflow: auto;
padding: 6px 6px 0;
}
div.morebits-scrollbox > h5:first-child
{
border: none;
margin-top: 0;
padding-top: 0;
}
div.morebits-scrollbox > :last-child
{
margin-bottom: 6px;
}
/* Previewbox */
div.morebits-previewbox
{
background: inherit;
color: inherit;
border: 2px inset;
margin: .4em auto .2em;
padding: .2em .4em;
}
div.morebits-previewbox *:not(img)
{
vertical-align: baseline;
}
div.morebits-previewbox .mw-editsection
{
display: none;
}
div.morebits-usertext {
border: 1px solid #a2a9b1;
background-color: var(--background-color-neutral-subtle, #f8f9fa);
color: inherit;
padding: 5px;
font-size: 95%;
}
/* Morebits.simpleWindow */
.morebits-dialog {
border: 1px #666 solid;
font-family: sans-serif;
background-color: var(--morebits-bgcolor-dialog, #F0F8FF);
color: inherit;
background-image: none;
}
/* px translations in comments are w.r.t standard browser settings,
in other settings, the sizes would be scaled accordingly */
.skin-vector .morebits-dialog {
font-size: 75%; /* 100% is 16px => 75% is 12px */
}
.skin-timeless .morebits-dialog {
font-size: 79%; /* 100% is 15.2px => 79% is 12.008px */
}
.skin-monobook .morebits-dialog,
.skin-modern .morebits-dialog {
font-size: 120%; /* 100% is 10px => 120% is 12px */
}
body .ui-dialog.morebits-dialog .ui-dialog-titlebar {
height: 1em;
background-color: var(--morebits-bgcolor-titlebar, #BCCADF) !important;
color: inherit;
background-image: none !important;
font: bold 108% sans-serif; /* 100% is 12px (from above) => 108% is 12.96px */
overflow: hidden;
padding: .4em .3em .5em !important;
white-space: nowrap;
}
.morebits-dialog-scriptname {
font-weight: normal;
}
.ui-dialog.morebits-dialog .ui-dialog-titlebar-close {
height: 100%;
right: 0;
top: auto;
width: 2em;
margin: -.5em -.15em 0;
}
.ui-dialog.morebits-dialog .ui-dialog-titlebar-close span {
margin: .33em;
}
.ui-dialog.morebits-dialog .morebits-dialog-content {
padding: 0;
}
body .ui-dialog.morebits-dialog .ui-dialog-buttonpane {
background-color: var(--morebits-bgcolor-titlebar, #BCCADF);
color: inherit;
margin: 0;
min-height: .5em;
padding-left: 1.2em !important;
}
body .ui-dialog.morebits-dialog .ui-dialog-buttonpane button {
float: none;
margin: .2em 0 -.1em;
cursor: auto;
}
.morebits-dialog-buttons {
font-size: 108%; /* 100% is 12px => 108% is 12.96px */
}
.morebits-dialog-footerlinks {
font-size: 97%; /* 100% is 12px (from above) => 97% is 11.64px */
float: right;
margin: .7em .4em 0 0;
}
body .ui-dialog.morebits-dialog .morebits-dialog-footerlinks a {
color: var(--morebits-color-titlebar-links, #3062AD);
}
.morebits-dialog-buttons[data-empty] + .morebits-dialog-footerlinks {
margin: .1em .4em -.2em 0;
}
.ui-icon {
vertical-align: -3px;
}
.ui-icon-inline {
display: inline-block;
}
.morebits-ui-tooltip {
background: var(--background-color-neutral-subtle, #f8f9fa);
color: inherit;
border-color: var(--border-color-base, #a2ab91);
box-shadow: 0 0 5px #a2ab91;
}
/* For styling message/warning boxes. Cannot use MediaWiki ombox class because it will be deprecated soon. */
table.morebits-ombox {
margin: 4px 10%;
border-collapse: collapse;
border: 1px solid #a2a9b1;
background: var(--background-color-neutral-subtle, #f8f9fa);
color: inherit;
box-sizing: border-box;
}
table.morebits-ombox-content {
border: 1px solid #f28500;
}
td.morebits-mbox-image {
border: none;
padding: 2px 0 2px 0.9em;
text-align: center;
}
th.morebits-mbox-text, td.morebits-mbox-text {
border: none;
padding: 0.25em 0.9em;
width: 100%;
}
/* Override select2 silliness */
.select2-morebits,
.select2-morebits .select2-results,
.select2-morebits .select2-results__option[aria-selected=true],
.select2-morebits .select2-selection__rendered,
.select2-morebits .select2-selection--multiple,
.select2-morebits .select2-selection__choice {
background: var(--background-color-base, #fff) !important;
color: inherit !important;
}