blob: d72a813640d8f6f46942063206fa84c1a6d512a0 (
plain)
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
|
// material design icons
@mixin svg-icon($url) {
background-image: $url;
}
// masked svg background icon
@mixin masked-icon($url, $color: var(--icon-md-color-default)) {
-webkit-mask-image: $url;
-webkit-mask-repeat: no-repeat;
-webkit-mask-position: center;
-webkit-mask-size: var(--icon-size);
mask-image: $url;
mask-repeat: no-repeat;
mask-position: center;
mask-size: var(--icon-size);
background-color: $color;
&.empty-content__icon {
mask-size: 64px;
-webkit-mask-size: 64px;
}
}
:root {
--icon-md-email: url('../icons/material-design/email.svg');
--icon-md-share-variant: url('../icons/material-design/share-variant.svg');
--icon-md-link-variant: url('../icons/material-design/link-variant.svg');
--icon-size: 18px;
--icon-md-color-default: #000;
--icon-color-dark: #000;
--icon-md-color-light: #fff;
}
[class*='icon-mask-md-'] {
background-color: #000;
}
// material design icons
// just svg background icon
.icon-svg-md-email { @include svg-icon(var(--icon-md-email)); }
.icon-svg-md-share { @include svg-icon(var(--icon-md-share-variant)); }
.icon-svg-md-link { @include svg-icon(var(--icon-md-link-variant)); }
// mask icons
|