|
26 | 26 | // $ TEXT SIZES |
27 | 27 | // ---------------------------------------------------------------------------- |
28 | 28 | // Declare font sizes |
29 | | -.fs-display4 { font-size: @fs-display4 !important; } |
30 | | -.fs-display3 { font-size: @fs-display3 !important; } |
31 | | -.fs-display2 { font-size: @fs-display2 !important; } |
32 | | -.fs-display1 { font-size: @fs-display1 !important; } |
33 | | -.fs-headline2 { font-size: @fs-headline2 !important; } |
34 | | -.fs-headline1 { font-size: @fs-headline1 !important; } |
35 | | -.fs-title { font-size: @fs-title !important; } |
36 | | -.fs-subheading { font-size: @fs-subheading !important; } |
37 | | -.fs-body3 { font-size: @fs-body3 !important; } |
38 | | -.fs-body2 { font-size: @fs-body2 !important; } |
39 | | -.fs-body1 { font-size: @fs-body1 !important; } |
| 29 | +.fs-display4 { font-size: var(--fs-display4) !important; } |
| 30 | +.fs-display3 { font-size: var(--fs-display3) !important; } |
| 31 | +.fs-display2 { font-size: var(--fs-display2) !important; } |
| 32 | +.fs-display1 { font-size: var(--fs-display1) !important; } |
| 33 | +.fs-headline2 { font-size: var(--fs-headline2) !important; } |
| 34 | +.fs-headline1 { font-size: var(--fs-headline1) !important; } |
| 35 | +.fs-title { font-size: var(--fs-title) !important; } |
| 36 | +.fs-subheading { font-size: var(--fs-subheading) !important; } |
| 37 | +.fs-body3 { font-size: var(--fs-body3) !important; } |
| 38 | +.fs-body2 { font-size: var(--fs-body2) !important; } |
| 39 | +.fs-body1 { font-size: var(--fs-body1) !important; } |
40 | 40 |
|
41 | 41 | .fs-caption, |
42 | | -.fs-category { font-size: @fs-caption !important; } |
43 | | -.fs-fine { font-size: @fs-fine !important; } |
| 42 | +.fs-category { font-size: var(--fs-caption) !important; } |
| 43 | +.fs-fine { font-size: var(--fs-fine) !important; } |
44 | 44 |
|
45 | 45 | #stacks-internals #screen-sm({ |
46 | 46 | .fs-display4 { font-size: 3.8rem !important; } |
|
77 | 77 | // ============================================================================ |
78 | 78 | // $ LINE HEIGHTS |
79 | 79 | // ---------------------------------------------------------------------------- |
80 | | -.lh-xs { line-height: @lh-xs !important; } |
81 | | -.lh-sm { line-height: @lh-sm !important; } |
82 | | -.lh-md { line-height: @lh-md !important; } |
83 | | -.lh-lg { line-height: @lh-lg !important; } |
84 | | -.lh-xl { line-height: @lh-xl !important; } |
85 | | -.lh-xxl { line-height: @lh-xxl !important; } |
| 80 | +.lh-xs { line-height: var(--lh-xs) !important; } |
| 81 | +.lh-sm { line-height: var(--lh-sm) !important; } |
| 82 | +.lh-md { line-height: var(--lh-md) !important; } |
| 83 | +.lh-lg { line-height: var(--lh-lg) !important; } |
| 84 | +.lh-xl { line-height: var(--lh-xl) !important; } |
| 85 | +.lh-xxl { line-height: var(--lh-xxl) !important; } |
86 | 86 | .lh-unset { line-height: initial !important; } |
87 | 87 |
|
88 | 88 | // ============================================================================ |
@@ -160,20 +160,20 @@ p { |
160 | 160 |
|
161 | 161 | .v-truncate-fade { |
162 | 162 | overflow: hidden; |
163 | | - -webkit-mask-image: linear-gradient(180deg, #000 @lh-md * 9em, transparent); |
164 | | - mask-image: linear-gradient(180deg, #000 @lh-md * 9em, transparent); |
165 | | - max-height: @lh-md * 12em; |
| 163 | + -webkit-mask-image: linear-gradient(180deg, #000 calc(var(--lh-md) * 9em), transparent); |
| 164 | + mask-image: linear-gradient(180deg, #000 calc(var(--lh-md) * 9em), transparent); |
| 165 | + max-height: calc(var(--lh-md) * 12em); |
166 | 166 |
|
167 | 167 | &.v-truncate-fade__sm { |
168 | | - -webkit-mask-image: linear-gradient(180deg, #000 @lh-md * 3em, transparent); |
169 | | - mask-image: linear-gradient(180deg, #000 @lh-md * 3em, transparent); |
170 | | - max-height: @lh-md * 6em; |
| 168 | + -webkit-mask-image: linear-gradient(180deg, #000 calc(var(--lh-md) * 3em), transparent); |
| 169 | + mask-image: linear-gradient(180deg, #000 calc(var(--lh-md) * 3em), transparent); |
| 170 | + max-height: calc(var(--lh-md) * 6em); |
171 | 171 | } |
172 | 172 |
|
173 | 173 | &.v-truncate-fade__lg { |
174 | | - -webkit-mask-image: linear-gradient(180deg, #000 @lh-md * 21em, transparent); |
175 | | - mask-image: linear-gradient(180deg, #000 @lh-md * 21em, transparent); |
176 | | - max-height: @lh-md * 24em; |
| 174 | + -webkit-mask-image: linear-gradient(180deg, #000 calc(var(--lh-md) * 21em), transparent); |
| 175 | + mask-image: linear-gradient(180deg, #000 calc(var(--lh-md) * 21em), transparent); |
| 176 | + max-height: calc(var(--lh-md) * 24em); |
177 | 177 | } |
178 | 178 | } |
179 | 179 |
|
|
0 commit comments