-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.scss
47 lines (39 loc) · 862 Bytes
/
styles.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
.btn-11 {
position: relative;
$btn-color: rgb(41, 221, 137);
$btn-color-dark: shade($btn-color, 40%);
color: tint($btn-color);
border: 4px solid black;
&:before,
&:after {
// @include absolute(50%);
content: "";
// @include size(20px);
background-color: $btn-color;
border-radius: 50%;
}
&:before {
left: -20px;
transform: translate(-50%, -50%);
animation: criss-cross-left 0.8s reverse;
}
&:after {
right: -20px;
transform: translate(50%, -50%);
animation: criss-cross-right 0.8s reverse;
}
&:hover {
color: tint($btn-color, 75%);
&:before,
&:after {
}
&:before {
animation: criss-cross-left 0.8s both;
animation-direction: alternate;
}
&:after {
animation: criss-cross-right 0.8s both;
animation-direction: alternate;
}
}
}