forked from thatryan/gravity-forms-sass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_form-default.scss
88 lines (78 loc) · 1.6 KB
/
_form-default.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
label {
color: $input-label;
font-weight: 700;
}
input[type="text"],
input[type="search"],
input[type="password"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="file"],
textarea,
select {
@include form-spacing(padding, $form-space);
background: $input-bg;
color: $input-color;
border: 1px solid $input-border;
line-height: normal;
display: block;
width: 100%;
box-shadow: $input-shadow;
transition: $input-transition;
&:focus {
border-color: $input-border-focus;
outline: none;
}
}
input[type="file"] {
&:hover { cursor: pointer; }
}
input[type="search"] {
width: auto;
display: inline-block;
}
select {
height: ceil($form-line-height * 1.33);
}
select[multiple],
select[size] {
height: auto;
}
input[type="checkbox"],
input[type="radio"] {
width: auto;
display: inline-block;
}
input[type="submit"],
input[type="reset"],
input[type="button"],
button {
@include form-spacing(padding, $form-space $form-space * 2);
@include form-font-size(14px);
background: $form-button-background;
color: $form-button-color;
display: inline-block;
font-weight: 400;
text-transform: uppercase;
border: 0;
transition: $input-transition;
&:hover {
background: $form-button-background-hover;
}
}
// WebKit-style focus
// @link https://github.com/twbs/bootstrap-sass/blob/master/assets/stylesheets/bootstrap/mixins/_tab-focus.scss [props]
input[type="checkbox"],
input[type="radio"],
input[type="submit"],
input[type="reset"],
input[type="button"],
button {
&:focus {
outline: thin dotted;
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
}
}