-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.less
104 lines (84 loc) · 1.45 KB
/
style.less
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
// ! Color Palette
// ? "vintage card" @ color.adobe.com
@color_11: #5C4B51;
@color_12: #8CBEB2;
@color_13: #F2EBBF;
@color_14: #F3B562;
@color_15: #F06060;
// ? "vintage pop" @ color.adobe.com
@color_21: #7a6e72;
@color_22: #FFC636;
@color_23: #00ADA9;
@color_24: #FFFFFF;
@color_25: #FF6444;
// ! Mix-ins
.fill-interpolation() {
fill: black;
&[level="0"] {
fill: @color_11;
}
&[level="1"] {
fill: @color_12;
}
&[level="2"] {
fill: @color_14;
}
&[level="3"] {
fill: @color_15;
}
}
.stroke-interpolation() {
stroke: black;
&[level="0"] {
stroke: @color_21;
}
&[level="1"] {
stroke: @color_22;
}
&[level="2"] {
stroke: @color_23;
}
&[level="3"] {
stroke: @color_25;
}
}
// ! Selectors
#svg-experiment {
background-color: @color_13;
}
// ? Patterns
#pattern-circles {
stroke: black;
stroke-width: 1;
fill-opacity: 0.75;
}
#pattern-paths {
stroke: black;
stroke-width: 2;
stroke-linecap: round;
fill: transparent;
}
#pattern-lines {
stroke: black;
}
#background-grid {
stroke: black;
stroke-width: 0.5;
stroke-opacity: 0.1;
}
// ? Fill shapes
#fill-shape {
fill: black;
.fill-interpolation();
}
// ? Paths
*[id^="zz-path"] {
fill: transparent;
stroke-width: 5;
.stroke-interpolation();
}
#drop-shadow {
fill: transparent;
stroke: #444;
stroke-width: 5;
}