-
Notifications
You must be signed in to change notification settings - Fork 1
/
_forms.sass
85 lines (85 loc) · 1.89 KB
/
_forms.sass
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
/* BASE FORM STYLES
/* =====================================================
form
padding: 20px
fieldset
background: $fieldset-background-color
border: $fieldset-border-settings
padding: 10px
position: relative
display: block
legend
+text-options(1.4em, normal, #999)
input[type="text"]
width: 96%
max-width: 350px
label
position: relative
line-height: 18px
display: block
+text-options(1.3em, bold, "")
label.inline,
label.checkbox
+inline-block
vertical-align: middle
margin-right: 5px
input[type="text"],
input[type="password"],
input[type="select"],
input[type="search"]
width: 98%
max-width: 350px
display: block
font-size: 1.4em
padding: 5px
color: #666
&:focus
background-color: $form-field-focus-background-color
input[type="radio"]
margin: 0 4px 3px 1px
input[type="checkbox"]
+inline-block
vertical-align: middle
input[type="file"]
margin: 0px 6px 3px 6px
input[type="submit"],
input[type="reset"],
input[type="button"]
position: relative
select
display: block
margin: 0px
textarea
width: 98%
max-width: 600px
line-height: 18px
display: block
overflow: auto
border: $text-area-border-settings
font-size: 1.4em
padding: 5px
color: #666
min-height: 75px
&:focus
background-color: $form-field-focus-background-color
div
padding: 5px 0
margin-bottom: 10px
div.inline
&.highlight
background: $highlight-form-section-background
border: 1px solid $highlight-form-section-border-color
padding: 10px
label.full-line
width: 100%
display: block
float: none
margin-bottom: 10px
label, input, select
float: left
margin-right: 10px
input[type="checkbox"]
margin: 2px 0 0 10px
label.inline,
label.checkbox
margin: 0 5px