Debian Codegraph @

js-packages/@fortawesome/fontawesome-free/scss/_stacked.scss

raw
1 // stacking icons
2 // -------------------------
3 @use 'variables' as v;
4
5 .#{v.$css-prefix}-stack {
6 display: inline-block;
7 height: 2em;
8 line-height: 2em;
9 position: relative;
10 vertical-align: v.$stack-vertical-align;
11 width: v.$stack-width;
12 }
13
14 .#{v.$css-prefix}-stack-1x,
15 .#{v.$css-prefix}-stack-2x {
16 --#{v.$css-prefix}-width: 100%;
17
18 inset: 0;
19 position: absolute;
20 text-align: center;
21 width: var(--#{v.$css-prefix}-width);
22 z-index: var(--#{v.$css-prefix}-stack-z-index, #{v.$stack-z-index});
23 }
24
25 .#{v.$css-prefix}-stack-1x {
26 line-height: inherit;
27 }
28
29 .#{v.$css-prefix}-stack-2x {
30 font-size: 2em;
31 }
32
33 .#{v.$css-prefix}-inverse {
34 color: var(--#{v.$css-prefix}-inverse, #{v.$inverse});
35 }