|
1 | 1 | @import "variables";
|
2 |
| -@import "font-faces"; |
3 |
| -@import "typography-placeholder"; |
4 |
| -@import "scaling-placeholder"; |
| 2 | +@import "variables.global"; |
5 | 3 | @import "color-placeholder";
|
6 |
| - |
7 |
| -:root { |
8 |
| - @extend %db-ui-normal; |
9 |
| - |
10 |
| - font-family: $db-font-family-sans; |
11 |
| - |
12 |
| - h1, |
13 |
| - h2, |
14 |
| - h3, |
15 |
| - h4, |
16 |
| - h5, |
17 |
| - h6 { |
18 |
| - font-family: $db-font-family-head; |
19 |
| - } |
20 |
| -} |
21 |
| - |
22 |
| -$db-sizing-xs: var(--db-sizing-xs); |
23 |
| -$db-sizing-sm: var(--db-sizing-sm); |
24 |
| -$db-sizing-md: var(--db-sizing-md); |
25 |
| -$db-sizing-lg: var(--db-sizing-lg); |
26 |
| - |
27 |
| -$db-spacing-fixed-3xs: var(--db-spacing-fixed-3xs); |
28 |
| -$db-spacing-fixed-2xs: var(--db-spacing-fixed-2xs); |
29 |
| -$db-spacing-fixed-xs: var(--db-spacing-fixed-xs); |
30 |
| -$db-spacing-fixed-sm: var(--db-spacing-fixed-sm); |
31 |
| -$db-spacing-fixed-md: var(--db-spacing-fixed-md); |
32 |
| -$db-spacing-fixed-lg: var(--db-spacing-fixed-lg); |
33 |
| -$db-spacing-fixed-xl: var(--db-spacing-fixed-xl); |
34 |
| - |
35 |
| -$db-spacing-responsive-xs: var(--db-spacing-responsive-xs); |
36 |
| -$db-spacing-responsive-sm: var(--db-spacing-responsive-sm); |
37 |
| -$db-spacing-responsive-md: var(--db-spacing-responsive-md); |
38 |
| -$db-spacing-responsive-lg: var(--db-spacing-responsive-lg); |
39 |
| -$db-spacing-responsive-xl: var(--db-spacing-responsive-xl); |
40 |
| - |
41 |
| -$db-type-font-size-lg: var(--db-type-body-lg); |
42 |
| -$db-type-font-size-md: var(--db-type-body-md); |
43 |
| -$db-type-font-size-sm: var(--db-type-body-sm); |
44 |
| - |
45 |
| -@mixin styles($styles...) { |
46 |
| - @for $i from 0 to length($styles) { |
47 |
| - %db-ui-#{nth($styles, $i + 1)}, |
48 |
| - .db-ui-#{nth($styles, $i + 1)} { |
49 |
| - @extend %db-scaling-#{nth($styles, $i + 1)}; |
50 |
| - |
51 |
| - [data-size="large"] { |
52 |
| - @extend %db-#{nth($styles, $i + 1)}-body-lg; |
53 |
| - } |
54 |
| - |
55 |
| - body, |
56 |
| - button, |
57 |
| - input, |
58 |
| - optgroup, |
59 |
| - select, |
60 |
| - textarea, |
61 |
| - [data-size="medium"] { |
62 |
| - @extend %db-#{nth($styles, $i + 1)}-body-md; |
63 |
| - } |
64 |
| - |
65 |
| - small, |
66 |
| - [data-size="small"] { |
67 |
| - @extend %db-#{nth($styles, $i + 1)}-body-sm; |
68 |
| - } |
69 |
| - |
70 |
| - h1 { |
71 |
| - @extend %db-#{nth($styles, $i + 1)}-headline-xl; |
72 |
| - } |
73 |
| - |
74 |
| - h2 { |
75 |
| - @extend %db-#{nth($styles, $i + 1)}-headline-lg; |
76 |
| - } |
77 |
| - |
78 |
| - h3 { |
79 |
| - @extend %db-#{nth($styles, $i + 1)}-headline-md; |
80 |
| - } |
81 |
| - |
82 |
| - h4 { |
83 |
| - @extend %db-#{nth($styles, $i + 1)}-headline-sm; |
84 |
| - } |
85 |
| - |
86 |
| - h5 { |
87 |
| - @extend %db-#{nth($styles, $i + 1)}-headline-xs; |
88 |
| - } |
89 |
| - |
90 |
| - h6 { |
91 |
| - @extend %db-#{nth($styles, $i + 1)}-headline-2xs; |
92 |
| - } |
93 |
| - } |
94 |
| - } |
95 |
| -} |
96 |
| - |
97 |
| -@include styles("expressive", "normal", "functional"); |
| 4 | +@import "typescale"; |
0 commit comments