-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlast-icon.scss
48 lines (44 loc) · 878 Bytes
/
last-icon.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
l-i {
--size: 1em;
display: inline-flex;
width: var(--size);
height: var(--size);
vertical-align: middle;
contain: strict;
justify-content: center;
align-items: center;
span,
svg,
i {
pointer-events: none;
}
// This is needed for ⚠️ icon as it goes outside of the limits of the div
// And it would be cut due to contain: strict usage
span {
font-size: 0.8em;
}
svg {
display: block;
width: 100%;
height: 100%;
}
// When rendering font icons (eg: material, symbols...)
i {
font-size: var(--size) !important;
color: currentColor;
}
}
p,
button,
a,
span {
l-i:not([size]) {
vertical-align: -0.125em;
}
}
// Optional features
@import "material-icons";
@import "material-symbols";
@import "icon-park";
@import "animations";
@import "transformations";