Dotclear

source: admin/style/scss/partials/_forms.scss @ 3517:7db06cb5e221

Revision 3517:7db06cb5e221, 2.9 KB checked in by franck <carnet.franck.paul@…>, 9 years ago (diff)

Minor CSS enhancements

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}
121input + input[type=checkbox] {
122     // Used for js expand/hide (lists, options, ...)
123     margin-left: .33em;
124}
125a input {
126     // Used for js expand/hide (lists, options, ...)
127     margin-right: .33em;
128}
129
130input[type=file] {
131     margin-top: .3em;
132     margin-bottom: .3em;
133}
134
135optgroup {
136     font-weight: bold;
137     font-style: normal;
138}
139
140option {
141     font-weight: normal;
142}
143
144label,
145label span {
146     display: block;
147}
148
149label.ib,
150input.ib {
151     display: inline-block;
152}
153
154label.classic {
155     display: inline;
156}
157
158label.classic input,
159label span input,
160label.classic select,
161label span select {
162     display: inline;
163}
164
165label.required {
166     font-weight: bold;
167}
168
169label.required abbr {
170     color: #900;
171     font-size: 1.3em;
172}
173
174label.bold {
175     text-transform: uppercase;
176     font-weight: bold;
177     margin-top: 2em;
178}
179
180label.area,
181p.area {
182     width: inherit !important;
183}
184
185p.field {
186     position: relative;
187     label {
188          display: inline-block;
189          width: 14em;
190     }
191     &.wide label {
192          width: 21em;
193     }
194     input,
195     select {
196          display: inline-block;
197     }
198}
199
200.form-note {
201     font-style: italic;
202     font-weight: normal;
203     color: #676e78;
204}
205
206p.form-note {
207     margin-top: -.7em;
208}
209
210span.form-note {
211     text-transform: none;
212}
213
214// .more-info Additional information on fieldset, field, … (may be hide from user-prefs)
215.more-info {}
216
217.no-more-info {
218     display: none;
219}
Note: See TracBrowser for help on using the repository browser.

Sites map