This repository has been archived by the owner on Jan 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_forms.scss
114 lines (97 loc) · 1.83 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
107
108
109
110
111
112
113
114
fieldset {
background-color: transparent;
border: 0;
margin: 0;
padding: 0;
}
legend {
font-weight: 600;
margin-bottom: $small-spacing / 2;
padding: 0;
}
label {
display: block;
font-weight: 600;
margin-bottom: $small-spacing / 2;
}
input,
select {
display: block;
font-family: $base-font-family;
font-size: $base-font-size;
}
#{$all-text-inputs},
select[multiple] {
background-color: $base-background-color;
border: $base-border;
border-radius: $base-border-radius;
box-shadow: $form-box-shadow;
box-sizing: border-box;
font-family: $base-font-family;
font-size: $base-font-size;
margin-bottom: $small-spacing;
padding: $base-spacing / 3;
transition: border-color $base-duration $base-timing;
width: 100%;
&:hover {
border-color: shade($base-border-color, 20%);
}
&:focus {
border-color: $action-color;
box-shadow: $form-box-shadow-focus;
outline: none;
}
&:disabled {
background-color: shade($base-background-color, 5%);
cursor: not-allowed;
&:hover {
border: $base-border;
}
}
}
textarea {
resize: vertical;
}
[type="search"] {
appearance: none;
}
[type="checkbox"],
[type="radio"] {
display: inline;
margin-right: $small-spacing / 2;
}
[type="file"] {
margin-bottom: $small-spacing;
width: 100%;
}
select {
margin-bottom: $base-spacing;
max-width: 100%;
width: auto;
}
.select {
position: relative;
select {
position: relative;
padding: .6em 2em .4em 1em;
cursor: pointer;
@include appearance(none);
width: 100%;
border: none;
border-radius: $base-border-radius;
color: $base-font-color;
&::-ms-expand {
display: none;
}
}
&::after {
@include icon-font();
content: "\e602";
position: absolute;
z-index: 1;
right: 1em;
top: 1em;
color: $base-font-color;
pointer-events: none;
}
}