forked from jgthms/css-reference
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontrols.sass
127 lines (118 loc) · 2.42 KB
/
controls.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
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
115
116
117
118
119
120
121
122
123
124
125
126
127
.input,
.textarea,
.button
-moz-appearance: none
-webkit-appearance: none
background: $background
border: none
font-size: 1em
line-height: 1.6
padding: 0.6em 1em
.textarea
max-height: 100%
max-width: 100%
min-height: 6em
.button
border-radius: 3px
box-shadow: 0 2px 2px rgba(#000, 0.2)
cursor: pointer
font-weight: $weight-bold
padding-left: 1.2em
padding-right: 1.2em
text-align: center
transition-duration: $speed
transition-property: background, box-shadow, color, transform
will-change: box-shadow
&:hover
box-shadow: 0 4px 8px rgba(#000, 0.2)
transform: translateY(-1px)
&:active
box-shadow: 0 0 0 rgba(#000, 0.01)
transform: translateY(0)
.button.is-primary
background: $primary
color: $primary-invert
&:hover
background: darken($primary, 5%)
&:active
background: darken($primary, 10%)
.button.is-facebook
background: $facebook
color: #fff
&:hover
background: darken($facebook, 5%)
&:active
background: darken($facebook, 10%)
.button.is-twitter
background: $twitter
color: #fff
&:hover
background: darken($twitter, 5%)
&:active
background: darken($twitter, 10%)
.icon
display: block
pointer-events: none
position: relative
transition-duration: $speed
transition-property: opacity
.icon.is-back
height: 7px
transform: rotate(-45deg)
transform-origin: center center
width: 7px
&:before,
&:after
background: $plum-invert
border-radius: 4px
content: ""
display: block
transition-duration: $speed
transition-property: background
&:before
height: 2px
&:after
height: 7px
margin-top: -2px
width: 2px
.icon.is-close
height: 14px
transform: rotate(45deg)
transform-origin: center center
width: 14px
&:before,
&:after
background: $link-invert
border-radius: 4px
content: ""
display: block
position: absolute
&:before
height: 4px
left: 0
margin-top: -2px
top: 50%
width: 14px
&:after
height: 14px
left: 50%
margin-left: -2px
top: 0
width: 4px
.icon.is-search
border: 2px solid $text-light
border-radius: 290486px
height: 12px
transform: rotate(-45deg) translateX(4px) translateY(-5px)
transform-origin: center center
width: 12px
&:before
background: $text-light
border-radius: 290486px
content: ""
height: 7px
left: 50%
margin-left: -1px
position: absolute
top: 100%
width: 2px