-
Notifications
You must be signed in to change notification settings - Fork 1
/
shapes.css
202 lines (177 loc) · 3.71 KB
/
shapes.css
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
/** SHAPES **/
.example {
margin: 2em auto;
width: 300px;
height: 300px;
}
.three-d-shape {
margin: 0 auto;
}
/** Square examples **/
.rounded-corners-example {
background: #fdbe34;
border-radius: 20px;
}
.gradient-example {
background: linear-gradient(#fdbe34, #fecf6a 50%, #fede99 60%, #eee 75%);
border-radius: 20px;
}
.drop-shadow-example {
background: #fecf6a;
border-radius: 20px;
box-shadow: 10px 10px 20px #eeeeeeb5;
}
/** Triangle examples **/
.triangle-example {
border-style: solid;
border-top-color: #fecf6a;
}
.triangle-box-full {
width: 300px;
height: 300px;
background: #fff;
border-width: 32px;
border-left-color: #6afecf;
border-right-color: #6acffe;
border-bottom-color: #cf6afe;
}
.triangle-box-empty {
width: 0;
height: 0;
border-width: 150px;
border-left-color: #6afecf;
border-right-color: #6acffe;
border-bottom-color: #cf6afe;
}
.triangle {
width: 0;
height: 0;
border-width: 150px;
border-top-color: #fecf6a;
border-left-color: transparent;
border-right-color: transparent;
border-bottom-color: transparent;
}
/** Circle examples **/
.circle-example {
background: #fdbe34;
}
.circle-mid {
border-radius: 100px;
}
.circle-complete {
border-radius: 100%;
}
/** Cylinder **/
.cylinder-complete, .cylinder-example {
width: 180px;
height: 300px;
background: #fecf6a;
position: relative;
}
.cylinder-circle-step {
margin: 1em auto;
}
.cylinder-top-circle {
width: 180px;
height: 180px;
margin: 1em auto;
background: #fede99;
border-radius: 100%;
}
.cylinder-complete::before, .cylinder-mid::before, .cylinder-top-oval {
width: 180px;
height: 40px;
background: #fede99;
border-radius: 100%;
}
.cylinder-complete::before, .cylinder-mid::before {
position: absolute;
top: -19px;
left: 0;
content: '';
}
.cylinder-bottom-circle {
width: 180px;
height: 180px;
margin: 1em auto;
background: #fecf6a;
border-radius: 100%;
}
.cylinder-complete::after, .cylinder-bottom-oval {
width: 180px;
height: 53px;
background: #fecf6a;
border-radius: 100%;
}
.cylinder-complete::after {
position: absolute;
left: 0;
bottom: -25px;
content: '';
}
.arrow {
font-size: 3em;
}
/** Pyramid **/
.pyramid {
position: relative;
top: -50px;
left: 50px;
}
.pyramid-front {
position: absolute;
top: -200px;
width: 0;
height: 0;
border-style: solid;
border-width: 200px 150px;
border-top-color: transparent;
border-left-color: transparent;
border-right-color: transparent;
border-bottom-color: #6afecf;
transform: rotateY(52deg) rotateZ(-13deg);
}
.pyramid-side {
position: absolute;
left: 93px;
top: -234px;
width: 0;
height: 0;
border-style: solid;
border-width: 240px 73px 238px 53px;
border-top-color: transparent;
border-left-color: transparent;
border-right-color: transparent;
border-bottom-color: #3de4af;
transform: rotateY(-50deg) rotateZ(40deg);
}
/** Cube **/
.cube {
position: relative;
top: -50px;
left: -50px;
}
.cube-side {
position: absolute;
width: 200px;
height: 200px;
border-style: solid;
border-width: 40px 83px 36px;
border-top-color: transparent;
border-left-color: transparent;
border-right-color: #6acffe;
border-bottom-color: transparent;
}
.cube-front {
position: absolute;
left: 200px;
width: 0;
height: 200px;
border-style: solid;
border-width: 27px 125px 27px;
border-top-color: transparent;
border-left-color: cornflowerblue;
border-right-color: transparent;
border-bottom-color: transparent;
}