forked from jgthms/marksheet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuttons.sass
More file actions
53 lines (47 loc) · 1.18 KB
/
Copy pathbuttons.sass
File metadata and controls
53 lines (47 loc) · 1.18 KB
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
%button
+control($background, $border, $text)
box-shadow: $shadow-black
cursor: pointer
height: auto
line-height: 1
padding: 8px 12px 10px
text-align: left
.fa
+fa(21px, 24px)
left: 20px
margin-top: -12px
position: absolute
top: 50%
strong
color: inherit
&:active,
&:focus
box-shadow: $shadow-black-inset
=button($color, $text: white, $is-light: false)
@extend %button
background: linear-gradient(saturate(lighten($color, 10%), 10%), $color)
border-color: darken($color, 10%)
color: $text
@if $is-light
box-shadow: inset 0 1px 0 0 rgba(white, .3), 0 1px 2px rgba(black, .05)
text-shadow: 0 1px 1px white
@else
box-shadow: inset 0 1px 0 0 rgba(white, .3), 0 1px 2px rgba(black, .3)
text-shadow: 0 1px 1px rgba(black, .2)
&:hover
background: linear-gradient(saturate(lighten($color, 15%), 15%), $color)
border-color: darken($color, 20%)
color: $text
&:active,
&:focus
background: $color
%button--primary
+button($link)
%button--secondary
+button($background, $text, true)
%button--grey
+button($border-dark, $text, true)
%button--border
+button($border, $text, true)
%button--dark
+button($dark)