Dotclear

source: admin/style/scss/partials/_forms.scss @ 3779:2ea63a0f4208

Revision 3779:2ea63a0f4208, 5.4 KB checked in by franck <carnet.franck.paul@…>, 7 years ago (diff)

Still some unwanted backgrounds for input

Line 
1input[type=text],
2input[type=color],
3input[type=email],
4input[type=url],
5input[type=datetime],
6input[type=date],
7input[type=time],
8input[type=file],
9input[type=number],
10input[type=password],
11input[type=submit],
12input[type=button],
13input[type=reset],
14a.button, button, textarea, select, legend {
15  max-width: 100%;
16}
17input[type=text],
18input[type=color],
19input[type=email],
20input[type=url],
21input[type=datetime],
22input[type=date],
23input[type=time],
24input[type=file],
25input[type=number],
26input[type=password],
27input[type=submit],
28input[type=button],
29input[type=reset],
30a.button, button, textarea, legend {
31  border-radius: 3px;
32}
33form {
34  display: block;
35  margin: 0;
36  padding: 0;
37}
38fieldset {
39  display: block;
40  margin: 1em 0;
41  padding: 1em 0.5em;
42  border-width: 1px 0;
43  border-style: solid;
44  border-color: $fieldset-border;
45  background: $fieldset-background;
46  &:focus-within {
47    background-color: $fieldset-focus-background;
48  }
49}
50input[type=text],
51input[type=color],
52input[type=email],
53input[type=url],
54input[type=datetime],
55input[type=date],
56input[type=time],
57input[type=file],
58input[type=number],
59textarea {
60  font-family: $sans-serif-input;
61  font-size: 100%;
62}
63legend {
64  padding: 0.2em 0.6em;
65  border-width: 1px;
66  border-style: solid;
67  border-color: $legend-border;
68  background: $legend-background;
69  margin-bottom: 0.5em;
70}
71label .maximal, textarea.maximal, input.maximal, select.maximal {
72  width: 99%;
73}
74input[type=text],
75input[type=password],
76input[type=color],
77input[type=email],
78input[type=url],
79input[type=datetime],
80input[type=date],
81input[type=time],
82input[type=file],
83input[type=number],
84textarea, select, input:not([type=file]):invalid, input:not([type=file]):invalid:placeholder-shown {
85//  color: $input-color;
86  box-shadow: 1px 1px 2px $input-shadow inset;
87  padding: 3px;
88  vertical-align: top;
89}
90input[type=text],
91input[type=password],
92input[type=color],
93input[type=email],
94input[type=url],
95input[type=datetime],
96input[type=date],
97input[type=time],
98input[type=file],
99input[type=number],
100textarea, input:not([type=file]):invalid, input:not([type=file]):invalid:placeholder-shown {
101//  background: $input-background;
102  border-width: 1px;
103  border-style: solid;
104  border-color: $input-border;
105}
106input[type=file] {
107//  color: $input-file-color;
108//  background: $input-file-background;
109}
110// Special for invalid but not required fields
111input:invalid:not(:required), textarea:invalid:not(:required), select:invalid:not(:required), input:not([type=file]):invalid:not(:focus):not(:required) {
112  color: $invalid-input-color;
113  box-shadow: 0 0 0 3px $invalid-input-shadow;
114}
115input:invalid:not(:required), textarea:invalid:not(:required), input:not([type=file]):invalid:not(:focus):not(:required) {
116  border: 1px solid $invalid-input-border;
117  background: $invalid-input-background;
118}
119//
120input:focus, textarea:focus {
121  border-color: $input-focus;
122}
123textarea {
124  padding: 2px 0;
125  &.maximal {
126    resize: vertical;
127  }
128  .area & {
129    display: block;
130    width: 100%;
131    resize: vertical;
132  }
133}
134select {
135  padding: 2px 0;
136  vertical-align: middle;
137}
138@media not all and (min-resolution:.001dpcm) {
139  @supports (-webkit-appearance: none) {
140    /* Safari 10.1+ only (https://browserstrangeness.bitbucket.io/css_hacks.html#webkit) */
141    select {
142      font-size: initial;
143    }
144  }
145}
146select.l10n option {
147  padding-left: 16px;
148}
149option.avail10n {
150  background: transparent url(../images/check-on.png) no-repeat 0 50%;
151}
152input[type=text],
153input[type=color],
154input[type=email],
155input[type=url],
156input[type=datetime],
157input[type=date],
158input[type=time],
159input[type=number],
160input[type=password],
161textarea {
162  margin-right: .3em;
163}
164input[type=checkbox], input[type=radio], input[type=file] {
165  border: none;
166  margin: 0 .33em 0 0;
167  padding: 0;
168//  background: transparent;
169}
170input+input[type=checkbox] {
171  // Used for js expand/hide (lists, options, ...)
172  margin-left: .33em;
173}
174a input {
175  // Used for js expand/hide (lists, options, ...)
176  margin-right: .33em;
177}
178input[type=file] {
179  margin-top: .3em;
180  margin-bottom: .3em;
181}
182optgroup {
183  font-weight: bold;
184  font-style: normal;
185}
186option {
187  font-weight: normal;
188}
189label, label span {
190  display: block;
191}
192label.ib, input.ib {
193  display: inline-block;
194}
195label.classic {
196  display: inline;
197}
198label.classic input, label span input, label.classic select, label span select {
199  display: inline;
200}
201label.required {
202  font-weight: bold;
203}
204label.required abbr {
205  color: $error-alt;
206  font-size: 1.3em;
207  text-decoration: none;
208}
209label.bold {
210  text-transform: uppercase;
211  font-weight: bold;
212  margin-top: 2em;
213}
214label.area, p.area {
215  width: inherit !important;
216}
217p.field {
218  position: relative;
219  label {
220    display: inline-block;
221    width: 14em;
222  }
223  &.wide label {
224    width: 21em;
225  }
226  input, select {
227    display: inline-block;
228  }
229}
230.form-note, .form-stats {
231  font-style: italic;
232  font-weight: normal;
233  color: $form-note-color;
234}
235p.form-note, p.form-stats {
236  margin-top: -.7em;
237}
238span.form-note, span.form-stats {
239  text-transform: none;
240}
241.missing {
242  background-color: inherit;
243  animation-name: kf-missing;
244  animation-duration: 1s;
245}
246@keyframes kf-missing {
247  50% {
248    background-color: $error-background;
249  }
250}
251.focus {
252  background-color: inherit;
253  animation-name: kf-focus;
254  animation-duration: 1s;
255}
256@keyframes kf-focus {
257  50% {
258    background-color: $input-focus;
259  }
260}
261// .more-info Additional information on fieldset, field, … (may be hide from user-prefs)
262.more-info {}
263.no-more-info {
264  display: none;
265}
Note: See TracBrowser for help on using the repository browser.

Sites map