-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.sass
116 lines (94 loc) · 2.07 KB
/
style.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
*
margin: 0
padding: 0
border: 0
outline: 0
$height-ratio: 1.7
$piece-width: 100px
$piece-height: $piece-width * $height-ratio
$container-width: $piece-width * 4
@mixin flip
+rotate(180)
@mixin rotate($deg)
-moz-transform: rotate(#{$deg}deg)
-webkit-transform: rotate(#{$deg}deg)
-o-transform: rotate(#{$deg}deg)
-ms-transform: rotate(#{$deg}deg)
-khtml-transform: rotate(#{$deg}deg)
transform: rotate(#{$deg}deg)
@mixin opacity($amt)
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=#{$amt})"
filter: alpha(opacity=#{$amt})
-moz-opacity: #{$amt}
-khtml-opacity: #{$amt}
opacity: #{$amt}
a,
a:visited
color: black
text-decoration: none
#container
width: $container-width
margin: 10% auto
position: relative
> div
position: absolute
.triangles
+rotate(30.5)
top: -80px
left: 115px
> div
height: 0
width: 0
border-right: $piece-width solid transparent
border-left: $piece-width solid transparent
border-bottom: $piece-height solid black
position: absolute
.orange
left: 0
border-bottom-color: #ffab00
.red
+flip
left: $piece-width
border-bottom-color: #f90000
.purple
left: $piece-width * 2
border-bottom-color: #711e4b
z-index: 5000
.blue
border-bottom-color: #0091c9
top: $piece-height
&.first
+flip
left: $piece-width * 2
&.second
left: $piece-width
.green
+flip
border-bottom-color: #10a960
top: $piece-height
.circle
width: 120px
height: 120px
margin: ($piece-height / 8) ($piece-width / 2)
background: transparent
border: 50px solid white
border-radius: 999px
left: 42px
top: 39px
.title
border: 0
width: $container-width
text-align: center
font-weight: bold
font-family: helvetica
font-size: 80px
top: ($piece-height * 2) + 50px
#fork-me-on-github
+opacity(.3)
img
position: absolute
top: 0
left: 0
border: 0
&:hover
+opacity(1)