-
Notifications
You must be signed in to change notification settings - Fork 45
/
background-shapes.scss
92 lines (75 loc) · 1.74 KB
/
background-shapes.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
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
@import '@bolt/tools-all';
.c-bolt-background-shapes {
width: 300px;
@include respond-to(small) {
width: 500px;
}
@include respond-to(large) {
width: 900px;
}
&__shape {
// To support IE, use the "bottom padding" hack to position svgs within the grid.
// See https://css-tricks.com/scale-svg/#article-header-id-10
position: relative;
height: 0;
padding-bottom: 100%;
svg {
display: block;
position: absolute;
width: 100%;
height: 100%;
}
&--orange {
.c-bolt-background-shapes__svg {
fill: bolt-color(orange);
}
.c-bolt-background-shapes__svg-outline {
stroke: bolt-color(orange);
}
}
&--yellow {
.c-bolt-background-shapes__svg {
fill: bolt-color(yellow);
}
.c-bolt-background-shapes__svg-outline {
stroke: bolt-color(yellow);
}
}
&--teal {
.c-bolt-background-shapes__svg {
fill: bolt-color(teal);
}
.c-bolt-background-shapes__svg-outline {
stroke: bolt-color(teal);
}
}
&--indigo {
.c-bolt-background-shapes__svg {
fill: bolt-color(indigo);
}
.c-bolt-background-shapes__svg-outline {
stroke: bolt-color(indigo);
}
}
&--interior-yellow {
.c-bolt-background-shapes__svg-interior {
fill: bolt-color(yellow);
}
}
&--interior-indigo {
.c-bolt-background-shapes__svg-interior {
fill: bolt-color(indigo);
}
}
&--interior-teal {
.c-bolt-background-shapes__svg-interior {
fill: bolt-color(teal);
}
}
&--interior-orange {
.c-bolt-background-shapes__svg-interior {
fill: bolt-color(orange);
}
}
}
}