-
Notifications
You must be signed in to change notification settings - Fork 0
/
_forms.scss
106 lines (89 loc) · 1.75 KB
/
_forms.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
input,
select,
textarea,
fieldset {
font-size: $form-field-font-size;
margin-top: 0;
margin-bottom: $space-1;
}
input[type=text],
input[type=datetime],
input[type=datetime-local],
input[type=email],
input[type=month],
input[type=number],
input[type=password],
input[type=search],
input[type=tel],
input[type=time],
input[type=url],
input[type=week] {
box-sizing: border-box;
height: $form-field-height;
padding: $form-field-padding-y $form-field-padding-x;
vertical-align: middle;
-webkit-appearance: none;
}
select {
box-sizing: border-box;
line-height: 1.75;
padding: $form-field-padding-y $form-field-padding-x;
}
select:not([multiple]) {
height: $form-field-height;
vertical-align: middle;
}
textarea {
box-sizing: border-box;
line-height: 1.75;
padding: $form-field-padding-y $form-field-padding-x;
}
.form-stacked input,
.form-stacked textarea,
.form-stacked select {
width: 100%;
}
.field-light {
background-color: white;
transition: box-shadow .2s ease;
border-style: solid;
border-width: $border-width;
border-color: $border-color;
border-radius: $border-radius;
}
.field-light:focus {
outline: none;
border-color: $blue;
box-shadow: 0 0 2px rgba($blue,.5);
}
.field-light:disabled {
color: $mid-gray;
background-color: $darken-2;
}
.field-light:read-only:not(select) {
background-color: $darken-2;
}
.field-light:invalid {
border-color: $red;
}
.field-light.is-success {
border-color: $green;
}
.field-light.is-warning {
border-color: $yellow;
}
.field-light.is-error {
border-color: $red;
}
.radio-light,
.checkbox-light {
transition: box-shadow .2s ease;
}
.radio-light {
border-radius: 50%;
}
.radio-light:focus,
.checkbox-light:focus {
outline: none;
box-shadow: 0 0 2px rgba($blue, .5);
}