-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbackground.scss
105 lines (86 loc) · 1.74 KB
/
background.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
93
94
95
96
97
98
99
100
101
102
103
104
105
@import 'common';
%bg-dark-primary {
background-color: $bg-dark-primary;
}
%bg-dark-secondary {
background-color: $bg-dark-secondary;
}
%bg-dark-tertiary {
background-color: $bg-dark-tertiary;
}
%bg-dark-premium-primary {
background-color: $bg-dark-premium-primary;
}
%bg-dark-premium-secondary {
background-color: $bg-dark-premium-secondary;
}
%bg-dark-premium-tertiary {
background-color: $bg-dark-premium-tertiary;
}
%bg-light-primary {
background-color: $bg-light-primary;
}
%bg-light-secondary {
background-color: $bg-light-secondary;
}
%bg-light-tertiary {
background-color: $bg-light-tertiary;
}
// stylelint-disable no-descending-specificity
.bg-dark {
&,
&.bg-primary,
.bg-primary {
@extend %bg-dark-primary;
}
&.bg-secondary,
.bg-secondary {
@extend %bg-dark-secondary;
}
&.bg-tertiary,
.bg-tertiary {
@extend %bg-dark-tertiary;
}
&.bg-premium-primary,
.bg-premium-primary {
@extend %bg-dark-premium-primary;
}
&.bg-premium-secondary,
.bg-premium-secondary {
@extend %bg-dark-premium-secondary;
}
&.bg-premium-tertiary,
.bg-premium-tertiary {
@extend %bg-dark-premium-tertiary;
}
}
.bg-primary,
.bg-dark .bg-light,
.bg-dark .bg-light.bg-primary,
.bg-dark .bg-light .bg-primary {
@extend %bg-light-primary;
}
.bg-secondary,
.bg-dark .bg-light .bg-secondary,
.bg-dark .bg-light.bg-secondary {
@extend %bg-light-secondary;
}
.bg-tertiary,
.bg-dark .bg-light .bg-tertiary,
.bg-dark .bg-light.bg-tertiary {
@extend %bg-light-tertiary;
}
.bg-striped,
.bg-dark .bg-light.bg-striped,
.bg-dark .bg-light .bg-striped {
> :nth-child(2n):not(.bg-dark) {
@extend %bg-light-secondary;
}
}
.bg-dark .bg-striped,
.bg-dark.bg-striped {
> :nth-child(2n):not(.bg-light) {
@extend %bg-dark-secondary;
}
}
// stylelint-enable