Debian Codegraph @

resources/forms.less

raw
1 @import "variables.less";
2
3 /*
4 * FORM STUFF
5 */
6
7 /* pile of bad hacks to try to catch all the different ones */
8 #searchInput,
9 .oo-ui-textInputWidget input,
10 .oo-ui-textInputWidget textarea,
11 .oo-ui-textInputWidget.oo-ui-widget-enabled input,
12 .oo-ui-textInputWidget.oo-ui-widget-enabled textarea,
13 input[name="target"],
14 input[name="user"],
15 input[name="mime"],
16 input[size$="0"],
17 input[type="text"],
18 input[type="checkbox"],
19 input[type="radio"],
20 input#wpTemplateSandboxPage,
21 input.mw-summary,
22 input.mw-input,
23 .mw-input input,
24 .mw-ui-input:invalid,
25 textarea,
26 .mw-ui-input-inline {
27 padding: 0.35em;
28 box-shadow: 0 1px 4px -1px #ddd inset;
29 border: solid 1px @bold-border;
30 }
31
32 #searchInput,
33 input[type="submit"].searchButton {
34 padding: 0.45em;
35 margin: 0;
36 font-weight: normal;
37 }
38
39 input[type="radio"] {
40 border-radius: 7px;
41 }
42
43 .oo-ui-buttonElement > .oo-ui-buttonElement-button {
44 font-weight: normal;
45 }
46
47 .oo-ui-buttonElement-framed > .oo-ui-buttonElement-button,
48 input[type="submit"],
49 input[type="button"],
50 .mw-ui-button.mw-ui-progressive,
51 #mw-createaccount-join,
52 .mw-ui-button,
53 .oo-ui-buttonElement-framed.oo-ui-widget-enabled.oo-ui-flaggedElement-primary.oo-ui-flaggedElement-progressive > .oo-ui-buttonElement-button,
54 .oo-ui-buttonElement-framed.oo-ui-widget-enabled > .oo-ui-buttonElement-button,
55 button {
56 color: #000;
57 padding: 0.35em 1em;
58 border: solid 1px #aaa;
59 border-radius: 3px;
60 box-shadow: none;
61 text-shadow: 0 1px 1px #fff;
62 min-height: 1em;
63 .vertical-gradient ( #fcfcfc, #ededed, 0, 100% );
64
65 &:focus {
66 .vertical-gradient ( #fff, #f6f6f6, 0, 100% );
67 border: solid 1px #aaa;
68 box-shadow: none;
69 }
70
71 &:hover {
72 .vertical-gradient ( #fff, #f6f6f6, 0, 100% );
73 border: solid 1px #777;
74 box-shadow: none;
75 }
76
77 &:active {
78 background: #fff;
79 border: solid 1px #777;
80 box-shadow: none;
81 }
82 }
83
84 .mw-ui-button.mw-ui-progressive,
85 .oo-ui-buttonElement-framed.oo-ui-widget-enabled.oo-ui-flaggedElement-primary.oo-ui-flaggedElement-progressive > .oo-ui-buttonElement-button,
86 input[type="submit"] {
87 font-weight: bold;
88 }
89
90 textarea {
91 width: 100%;
92 resize: vertical;
93 box-sizing: border-box;
94 line-height: 1.3em;
95 }
96
97 div.editOptions {
98 border-bottom: solid 1px @soft-border;
99 padding: 1em 0;
100 }
101
102 .mw-editform #editpage-copywarn {
103 line-height: unset;
104 }
105
106 .oo-ui-defaultOverlay {
107 font-size: @smaller-text;
108 }