-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_objects.shapes.scss
More file actions
62 lines (53 loc) · 2.08 KB
/
_objects.shapes.scss
File metadata and controls
62 lines (53 loc) · 2.08 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
54
55
56
57
58
59
60
61
62
$foo-itcss-o-shapes-circle-width: 50px !default;
$foo-itcss-o-shapes-circle-height: $foo-itcss-o-shapes-circle-width !default;
$foo-itcss-o-shapes-triangle-color: black !default;
.o-circle {
border-radius: 50%;
width: $foo-itcss-o-shapes-circle-width;
height: $foo-itcss-o-shapes-circle-height;
display: inline-block;
}
@keyframes circle-spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.o-circle--animated {
background-image: -moz-radial-gradient(45px 45px 45deg, circle cover, yellow 0%, orange 100%, red 95%);
background-image: -webkit-radial-gradient(45px 45px, circle cover, yellow, orange);
background-image: radial-gradient(45px 45px 45deg, circle cover, yellow 0%, orange 100%, red 95%);
animation-name: circle-spin;
animation-duration: 3s;
animation-iteration-count: infinite;
animation-timing-function: linear;
}
.o-triangle {
display: inline-block;
width: 0;
height: 0;
/*default arrow up*/
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 5px solid $foo-itcss-o-shapes-triangle-color;
font-size: 0;
line-height: 0;
}
.o-triangle--arrow-up {
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 5px solid $foo-itcss-o-shapes-triangle-color;
}
.o-triangle--arrow-down {
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 5px solid $foo-itcss-o-shapes-triangle-color;
}
.o-triangle--arrow-left {
border-bottom: 5px solid transparent;
border-top: 5px solid transparent;
border-right: 5px solid $foo-itcss-o-shapes-triangle-color;
}
.o-triangle--arrow-right {
border-bottom: 5px solid transparent;
border-top: 5px solid transparent;
border-left: 5px solid $foo-itcss-o-shapes-triangle-color;
}