-
Notifications
You must be signed in to change notification settings - Fork 112
Expand file tree
/
Copy path_shapes.scss
More file actions
130 lines (103 loc) · 2.07 KB
/
_shapes.scss
File metadata and controls
130 lines (103 loc) · 2.07 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
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
// Sass for custom Deis shape blocks
// see docs here: http://codepen.io/flynnduism/pen/BjGZPp
// circles, squares, triangles
.geo-shapes {
padding-bottom: 2em;
hr {
border-width: 5px 0 0;
margin-top: -0.667em;
margin-left: 40%;
margin-right: 40%;
opacity: 0.13;
}
span {
position: relative;
z-index: 650;
margin: 0 0 -2em;
}
}
// block shapes
.shapes {
.row {
display: block;
span {
display: inline-block;
width: 10%;
padding-bottom: 10%;
height: 0;
overflow: hidden;
float: left;
position: relative;
em {
transform: rotate(45deg);
display: block;
width: 150%;
padding-bottom: 150%;
position: absolute;
right: -75%;
top: -81.5%;
height: 0;
}
}
}
.shape-row-6 > span {
width: 16.666%;
padding-bottom: 16.666%;
}
.shape-row-8 > span {
width: 12.5%;
padding-bottom: 12.5%;
}
.shape-row-12 > span {
width: 8.3333%;
padding-bottom: 8.3333%;
}
// shape colors
.s-p { background: $pink }
.s-b { background: $blue }
.s-g { background: $green }
//lighter colors
.s-pl { background: $lightpink }
.s-bl { background: $lightblue }
.s-gl { background: $lightgreen }
// darker deis colors
.s-pd { background: $darkpink }
.s-bd { background: $darkblue }
.s-gd { background: $darkgreen }
.s-d1 { background: $dark1 }
.s-d2 { background: $dark2 }
.s-l1 { background: $light1}
.s-l2 { background: $light2 }
.s-w { background: white }
// hover effect
&.shapes-animate {
.row {
display: block;
span {
transition: all 0.85s ease-in-out;
&:hover {
transform: rotate(90deg);
}
}
}
}
}
// vertical alignment
.shape-position {
width: 100%;
.row {
max-width: 100%;
}
&.shape-position-top {
@include topper;
}
&.shape-position-bottom {
@include bottomer;
.row span em {
transform: rotate(45deg);
left: -75%;
right: auto;
top: -81.5%;
}
}
}