blob: db4a796ca92139ac0bc08e3eb3c565363136dec3 (
plain)
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
|
fieldset {
background-color: lighten($base-border-color, 10%);
border: $base-border;
margin: 0 0 $small-spacing;
padding: $base-spacing;
}
input,
label,
select {
display: block;
font-family: $base-font-family;
font-size: $base-font-size;
}
label {
font-weight: 600;
margin-bottom: $small-spacing / 2;
&.required::after {
content: "*";
}
abbr {
display: none;
}
}
#{$all-text-inputs},
select[multiple=multiple],
textarea {
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: $base-spacing / 2;
padding: $base-spacing / 3;
transition: border-color;
width: 100%;
&:hover {
border-color: darken($base-border-color, 10%);
}
&:focus {
border-color: $action-color;
box-shadow: $form-box-shadow-focus;
outline: none;
}
}
textarea {
resize: vertical;
}
input[type="search"] {
@include appearance(none);
}
input[type="checkbox"],
input[type="radio"] {
display: inline;
margin-right: $small-spacing / 2;
}
input[type="file"] {
padding-bottom: $small-spacing;
width: 100%;
}
select {
margin-bottom: $base-spacing;
max-width: 100%;
width: auto;
}
|