-
Notifications
You must be signed in to change notification settings - Fork 1
/
_forms.scss
63 lines (52 loc) · 1.03 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
@charset "utf-8";
// フォーム
fieldset {
margin: 0;
padding: 0;
border: 0;
}
label,
button {
cursor: pointer;
}
.form-control {
@include inline-block();
transition: border linear 0.2s, box-shadow linear 0.2s;
border-radius: 4px;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
padding: .5em;
border: 1px solid #ccc;
color: #555555;
vertical-align: middle;
width: 100%;
box-sizing: border-box;
&[disabled],
fieldset[disabled] & {
cursor: not-allowed;
background-color: #eee;
opacity: 1; // iOS fix for unreadable disabled content
}
}
.form-control--inline {
width: auto;
}
textarea {
resize: vertical;
}
.form-control:focus,
select:focus {
@include box-shadow(inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(lighten($base-link-color, 40%), 0.6));
outline: 0;
border-color: rgba(lighten($base-link-color, 40%), 0.8);
}
.lt-ie9 {
input:focus,
select:focus,
textarea:focus {
outline: thin dotted;
}
}
select {
border: 1px solid #cccccc;
background-color: #ffffff;
}