Debian Codegraph @

skins/Timeless/resources/forms.less

raw
1 @import 'variables.less';
2
3 input {
4 font-family: @fonts;
5 }
6
7 // Because weird special cases that get broken by this usually aren't forms?
8 form {
9 // Special-case out the datetime widget and revision-compare button
10 input:not( .mw-widgets-datetime-dateTimeInputWidget-editField ):not( .mw-history-compareselectedversions-button ) {
11 margin: 0.5em 0;
12 padding: 0.35em;
13 }
14
15 // Special-case out also rather more normal multiselect
16 .oo-ui-tagMultiselectWidget-handle input {
17 margin: unset;
18 padding: unset;
19 }
20
21 // Padding on checkboxes seems to cause misalignment with its text
22 .oo-ui-checkboxInputWidget input:not( .mw-widgets-datetime-dateTimeInputWidget-editField ):not( .mw-history-compareselectedversions-button ) {
23 margin: unset;
24 }
25 }
26
27 .oo-ui-buttonElement-framed.oo-ui-labelElement > .oo-ui-buttonElement-button,
28 .oo-ui-textInputWidget .oo-ui-inputWidget-input,
29 .oo-ui-dropdownWidget-handle,
30 button,
31 textarea,
32 select {
33 padding: 0.35em;
34 box-sizing: border-box;
35 height: unset;
36 }
37
38 .oo-ui-buttonElement-framed.oo-ui-labelElement > .oo-ui-buttonElement-button,
39 button {
40 padding: 0.35em 1em;
41 }
42
43 .mw-input-with-label {
44 display: block; // wat (this is probably an awful idea but aaaaaah whatever)
45 }
46
47 // Fix for half-arsed date input conversion on special:contributions and anywhere else
48 // that's not actually ooui: add just enough margin to keep multiple widgets from fondling
49 // each other
50 .mw-widget-dateInputWidget {
51 margin: 0 0 0.2em 0;
52 }
53
54 // More fondling, because we've removed the default margins in normalise
55 input[ type='radio' ],
56 input[ type='checkbox' ] {
57 margin: 0.35em 0.2em 0.25em 0.35em;
58 box-sizing: border-box;
59 }
60
61 textarea,
62 #searchInput {
63 box-sizing: border-box;
64 box-shadow: inset 0 1px 1px 1px rgba( 0, 0, 0, 0.05 );
65 }
66
67 textarea {
68 width: 100%;
69 // stylelint-disable-next-line plugin/no-unsupported-browser-features
70 resize: vertical;
71 box-sizing: border-box;
72 line-height: 1.3em;
73 }
74
75 div.editOptions {
76 padding: 1.25em 1.75em;
77 border: solid @base70;
78 border-width: 0 1px @border;
79 background: @base80;
80
81 // For Extension:TemplateSandbox and the like
82 fieldset {
83 margin-top: 1em;
84 }
85 }
86
87 form:not( .oo-ui-layout ) {
88 textarea,
89 input {
90 border: solid 1px @base70;
91 border-radius: 2px;
92 }
93
94 input[ type='file' ] {
95 border: unset;
96 border-radius: unset;
97 }
98
99 button[ type='submit' ],
100 input[ type='submit' ] {
101 border-radius: 2px;
102 padding: 0.35em 1em;
103 background-color: #36c;
104 font-weight: bold;
105 color: #fff;
106 border: solid 1px #36c;
107
108 &:not( :disabled ):hover,
109 &:not( :disabled ):active {
110 background-color: #47f;
111 }
112 }
113
114 fieldset {
115 border: 0;
116 margin: 1.5em 0 0;
117 padding: 0;
118
119 legend {
120 font-weight: bold;
121 font-size: 110%;
122 }
123 }
124 }
125
126 // Essentially revert T182320 (core change)
127 .mw-editfont-monospace,
128 .mw-editfont-sans-serif,
129 .mw-editfont-serif {
130 font-size: inherit;
131 }
132
133 body .mw-editfont-monospace {
134 font-family: @fonts-mono;
135 }
136
137 body .mw-editfont-sans-serif {
138 font-family: @fonts-sans;
139 }
140
141 body .mw-editfont-serif {
142 font-family: @fonts-serif;
143 }
144
145 /* Extension:TemplateSandbox stuff */
146 .mw-templatesandbox-page label {
147 padding: 0;
148 }
149
150 #wpTemplateSandboxPreview {
151 margin-left: 0.5em;
152 }
153
154 /* fixes for non-JavaScript filtering on Special:Watchlist
155 * @see https://phabricator.wikimedia.org/T225412
156 */
157 .mw-special-Watchlist .mw-input-with-label {
158 display: inline-block;
159 }