Dotclear

source: admin/style/scss/partials/_forms.scss @ 3439:640a478849cf

Revision 3439:640a478849cf, 2.7 KB checked in by franck <carnet.franck.paul@…>, 9 years ago (diff)

Prettify scss code

Line 
1input[type=text],
2input[type=password],
3input[type=submit],
4input[type=button],
5input[type=reset],
6a.button,
7button,
8textarea,
9select,
10legend {
11     border-radius: 3px;
12     max-width: 100%;
13}
14
15form {
16     display: block;
17     margin: 0;
18     padding: 0;
19}
20
21fieldset {
22     display: block;
23     margin: 1em 0;
24     padding: 1em 0.5em;
25     border-width: 1px 0;
26     border-style: solid;
27     border-color: #ccc;
28     background: #f7f7f7;
29}
30
31input[type=text],
32textarea {
33     font-family: $sans-serif-input;
34     font-size: 100%;
35}
36
37legend {
38     padding: 0.2em 0.6em;
39     border-width: 1px;
40     border-style: solid;
41     border-color: #676e78;
42     background: #fff;
43     margin-bottom: 0.5em;
44}
45
46label .maximal,
47textarea.maximal,
48input.maximal,
49select.maximal {
50     width: 99%;
51}
52
53input[type=text],
54input[type=password],
55textarea,
56select {
57     background: #fcfcfc;
58     color: #000;
59     border-width: 1px;
60     border-style: solid;
61     border-color: #dfdfdf;
62     box-shadow: 1px 1px 2px #f3f3f3 inset;
63     padding: 3px;
64     vertical-align: top;
65}
66
67input:focus,
68textarea:focus,
69select:focus {
70     border-color: #9bca1c;
71}
72
73textarea {
74     padding: 2px 0;
75     &.maximal {
76          resize: vertical;
77     }
78     .area & {
79          display: block;
80          width: 100%;
81          resize: vertical;
82     }
83}
84
85select {
86     padding: 2px 0;
87     vertical-align: middle;
88}
89
90select.l10n option {
91     padding-left: 16px;
92}
93
94option.avail10n {
95     background: transparent url(../images/check-on.png) no-repeat 0 50%;
96}
97
98input.invalid,
99textarea.invalid,
100select.invalid {
101     border: 1px solid red;
102     background: #FFBABA;
103     color: #900;
104     box-shadow: 0 0 0 3px rgba(218, 62, 90, 0.3);
105}
106
107input[type=text],
108input[type=password],
109textarea {
110     margin-right: .3em;
111}
112
113input[type=checkbox],
114input[type=radio],
115input[type=file] {
116     border: none;
117     margin: 0 .33em 0 0;
118     padding: 0;
119     background: transparent;
120}
121
122input[type=file] {
123     margin-top: .3em;
124     margin-bottom: .3em;
125}
126
127optgroup {
128     font-weight: bold;
129     font-style: normal;
130}
131
132option {
133     font-weight: normal;
134}
135
136label,
137label span {
138     display: block;
139}
140
141label.ib,
142input.ib {
143     display: inline-block;
144}
145
146label.classic {
147     display: inline;
148}
149
150label.classic input,
151label span input,
152label.classic select,
153label span select {
154     display: inline;
155}
156
157label.required {
158     font-weight: bold;
159}
160
161label.required abbr {
162     color: #900;
163     font-size: 1.3em;
164}
165
166label.bold {
167     text-transform: uppercase;
168     font-weight: bold;
169     margin-top: 2em;
170}
171
172label.area,
173p.area {
174     width: inherit !important;
175}
176
177p.field {
178     position: relative;
179     label {
180          display: inline-block;
181          width: 14em;
182     }
183     &.wide label {
184          width: 21em;
185     }
186     input,
187     select {
188          display: inline-block;
189     }
190}
191
192.form-note {
193     font-style: italic;
194     font-weight: normal;
195     color: #676e78;
196}
197
198p.form-note {
199     margin-top: -.7em;
200}
201
202span.form-note {
203     text-transform: none;
204}
205
206// .more-info Additional information on fieldset, field, … (may be hide from user-prefs)
207.more-info {}
208
209.no-more-info {
210     display: none;
211}
Note: See TracBrowser for help on using the repository browser.

Sites map