Debian Codegraph @

spec/fixtures/validators/is-length.scss

raw
1 @import "setup";
2
3 @mixin color-length($value) {
4 @if _is-length($value) {
5 color: #fff;
6 }
7 }
8
9 .integer {
10 @include color-length(1);
11 }
12
13 .pixels {
14 @include color-length(10px);
15 }
16
17 .ems {
18 @include color-length(10em);
19 }
20
21 .percent {
22 @include color-length(10%);
23 }
24
25 .calc {
26 @include color-length(calc(2em - 5px));
27 }
28
29 .env {
30 @include color-length(env(safe-area-inset-top, 0));
31 }
32
33 .var {
34 @include color-length(var(--a-custom-property));
35 }
36
37 .string {
38 @include color-length("stringy");
39 }
40
41 .null {
42 @include color-length(null);
43 }