@odx/ui 5.4.0 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (207) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +0 -10
  3. package/ag-grid-theme.css +1 -1
  4. package/charts-theme.css +1 -1
  5. package/core-theme.css +1 -1
  6. package/package.json +4 -1
  7. package/scss/3rdparty/ag-grid/theme.scss +9 -7
  8. package/scss/_application.scss +5 -5
  9. package/scss/_base.scss +1 -1
  10. package/scss/_breakpoints.scss +15 -3
  11. package/scss/_color-palettes-dark.scss +11 -50
  12. package/scss/_color-palettes.scss +42 -94
  13. package/scss/_colors-dark.scss +31 -37
  14. package/scss/_colors.scss +94 -95
  15. package/scss/_controls.scss +45 -45
  16. package/scss/_description-list.scss +7 -13
  17. package/scss/_dimensions.scss +23 -10
  18. package/scss/_helpers.scss +44 -22
  19. package/scss/_layout.scss +2 -4
  20. package/scss/_skeleton.scss +1 -1
  21. package/scss/_text-list.scss +4 -7
  22. package/scss/_typography.scss +3 -6
  23. package/scss/_utils.scss +13 -0
  24. package/scss/_vertical-rythm.scss +1 -1
  25. package/scss/_visuals.scss +6 -6
  26. package/scss/abstract/_breakpoints.scss +15 -3
  27. package/scss/abstract/_dimensions.scss +23 -10
  28. package/scss/abstract/_utils.scss +13 -0
  29. package/scss/accordion-item.component.scss +22 -23
  30. package/scss/action-group.component.scss +6 -6
  31. package/scss/active-indicator.scss +3 -5
  32. package/scss/ag-grid/theme.scss +9 -7
  33. package/scss/anchor-navigation.component.scss +7 -10
  34. package/scss/area-header.component.scss +33 -31
  35. package/scss/autocomplete.component.scss +1 -4
  36. package/scss/avatar.component.scss +52 -11
  37. package/scss/badge.component.scss +11 -13
  38. package/scss/bar.component.scss +14 -18
  39. package/scss/brand-logo.component.scss +2 -4
  40. package/scss/breadcrumbs.component.scss +10 -14
  41. package/scss/button-group.component.scss +4 -8
  42. package/scss/button.component.scss +39 -36
  43. package/scss/calendar.component.scss +60 -56
  44. package/scss/card.component.scss +64 -37
  45. package/scss/cdk/active-indicator.scss +3 -5
  46. package/scss/cdk/connected-overlay.scss +4 -10
  47. package/scss/chart-footer.component.scss +21 -21
  48. package/scss/chart-header.component.scss +49 -49
  49. package/scss/charts/colors/_color-palettes.scss +32 -32
  50. package/scss/charts/components/chart-footer.component.scss +21 -21
  51. package/scss/charts/components/chart-header.component.scss +49 -49
  52. package/scss/charts/components/circle-chart-table.component.scss +1 -1
  53. package/scss/charts/components/line-timeframes-chart.component.scss +4 -4
  54. package/scss/charts/components/mirror-bar-chart.component.scss +2 -2
  55. package/scss/charts/components/multi-axis-box-plot.component.scss +2 -2
  56. package/scss/checkbox.component.scss +29 -30
  57. package/scss/chip-list.component.scss +5 -6
  58. package/scss/chip.component.scss +30 -17
  59. package/scss/circle-chart-table.component.scss +1 -1
  60. package/scss/circular-progress.component.scss +7 -8
  61. package/scss/colors/_color-palettes.scss +32 -32
  62. package/scss/components/accordion-item.component.scss +22 -23
  63. package/scss/components/action-group.component.scss +6 -6
  64. package/scss/components/anchor-navigation.component.scss +7 -10
  65. package/scss/components/area-header.component.scss +33 -31
  66. package/scss/components/autocomplete.component.scss +1 -4
  67. package/scss/components/avatar.component.scss +52 -11
  68. package/scss/components/badge.component.scss +11 -13
  69. package/scss/components/bar.component.scss +14 -18
  70. package/scss/components/brand-logo.component.scss +2 -4
  71. package/scss/components/breadcrumbs.component.scss +10 -14
  72. package/scss/components/button-group.component.scss +4 -8
  73. package/scss/components/button.component.scss +39 -36
  74. package/scss/components/calendar.component.scss +60 -56
  75. package/scss/components/card.component.scss +64 -37
  76. package/scss/components/chart-footer.component.scss +21 -21
  77. package/scss/components/chart-header.component.scss +49 -49
  78. package/scss/components/checkbox.component.scss +29 -30
  79. package/scss/components/chip-list.component.scss +5 -6
  80. package/scss/components/chip.component.scss +30 -17
  81. package/scss/components/circle-chart-table.component.scss +1 -1
  82. package/scss/components/circular-progress.component.scss +7 -8
  83. package/scss/components/content-box.component.scss +10 -7
  84. package/scss/components/datepicker.component.scss +1 -3
  85. package/scss/components/daterangepicker.component.scss +6 -3
  86. package/scss/components/dropdown.component.scss +5 -9
  87. package/scss/components/error-page.component.scss +5 -12
  88. package/scss/components/expandable-list-item.component.scss +6 -6
  89. package/scss/components/footer.component.scss +5 -7
  90. package/scss/components/form-field.component.scss +65 -58
  91. package/scss/components/header-navigation.component.scss +2 -10
  92. package/scss/components/header.component.scss +11 -13
  93. package/scss/components/icon.component.scss +8 -8
  94. package/scss/components/inline-message.component.scss +9 -15
  95. package/scss/components/line-timeframes-chart.component.scss +4 -4
  96. package/scss/components/link.component.scss +5 -5
  97. package/scss/components/list-item.component.scss +16 -18
  98. package/scss/components/list.component.scss +1 -3
  99. package/scss/components/loading-spinner.component.scss +4 -6
  100. package/scss/components/logo.component.scss +6 -10
  101. package/scss/components/main-menu-item.component.scss +15 -24
  102. package/scss/components/main-menu.component.scss +28 -41
  103. package/scss/components/mainfilter-group.component.scss +23 -27
  104. package/scss/components/menu.component.scss +7 -11
  105. package/scss/components/mirror-bar-chart.component.scss +2 -2
  106. package/scss/components/modal.component.scss +37 -43
  107. package/scss/components/multi-axis-box-plot.component.scss +2 -2
  108. package/scss/components/navigation-back.component.scss +5 -6
  109. package/scss/components/notification-center.component.scss +14 -18
  110. package/scss/components/notification-item.component.scss +6 -11
  111. package/scss/components/option.component.scss +11 -15
  112. package/scss/components/paginator.component.scss +5 -8
  113. package/scss/components/progress.component.scss +4 -8
  114. package/scss/components/radio-button.component.scss +23 -23
  115. package/scss/components/radio-group.component.scss +2 -4
  116. package/scss/components/rail-navigation-item.component.scss +19 -22
  117. package/scss/components/rail-navigation.component.scss +7 -12
  118. package/scss/components/rich-list-item-header.component.scss +4 -9
  119. package/scss/components/rich-list-item.component.scss +9 -17
  120. package/scss/components/search-bar.component.scss +13 -15
  121. package/scss/components/select.component.scss +9 -12
  122. package/scss/components/slider.component.scss +11 -14
  123. package/scss/components/spinbox.component.scss +23 -25
  124. package/scss/components/switch.component.scss +98 -123
  125. package/scss/components/tab-bar-item.component.scss +17 -19
  126. package/scss/components/tab-bar.component.scss +23 -28
  127. package/scss/components/table.component.scss +12 -19
  128. package/scss/components/timepicker.component.scss +5 -10
  129. package/scss/components/toast-item.component.scss +9 -15
  130. package/scss/components/toast.component.scss +5 -8
  131. package/scss/components/toggle-button-group.component.scss +13 -14
  132. package/scss/components/toggle-button.component.scss +15 -17
  133. package/scss/components/tooltip.component.scss +8 -13
  134. package/scss/components/wizard-step.component.scss +13 -17
  135. package/scss/components/wizard.component.scss +2 -4
  136. package/scss/connected-overlay.scss +4 -10
  137. package/scss/content-box.component.scss +10 -7
  138. package/scss/core.scss +2 -0
  139. package/scss/datepicker.component.scss +1 -3
  140. package/scss/daterangepicker.component.scss +6 -3
  141. package/scss/dropdown.component.scss +5 -9
  142. package/scss/error-page.component.scss +5 -12
  143. package/scss/expandable-list-item.component.scss +6 -6
  144. package/scss/footer.component.scss +5 -7
  145. package/scss/form-field.component.scss +65 -58
  146. package/scss/header-navigation.component.scss +2 -10
  147. package/scss/header.component.scss +11 -13
  148. package/scss/icon.component.scss +8 -8
  149. package/scss/inline-message.component.scss +9 -15
  150. package/scss/layout/_application.scss +5 -5
  151. package/scss/layout/_base.scss +1 -1
  152. package/scss/layout/_description-list.scss +7 -13
  153. package/scss/layout/_helpers.scss +44 -22
  154. package/scss/layout/_layout.scss +2 -4
  155. package/scss/layout/_text-list.scss +4 -7
  156. package/scss/layout/_typography.scss +62 -70
  157. package/scss/line-timeframes-chart.component.scss +4 -4
  158. package/scss/link.component.scss +5 -5
  159. package/scss/list-item.component.scss +16 -18
  160. package/scss/list.component.scss +1 -3
  161. package/scss/loading-spinner.component.scss +4 -6
  162. package/scss/logo.component.scss +6 -10
  163. package/scss/main-menu-item.component.scss +15 -24
  164. package/scss/main-menu.component.scss +28 -41
  165. package/scss/mainfilter-group.component.scss +23 -27
  166. package/scss/menu.component.scss +7 -11
  167. package/scss/mirror-bar-chart.component.scss +2 -2
  168. package/scss/modal.component.scss +37 -43
  169. package/scss/multi-axis-box-plot.component.scss +2 -2
  170. package/scss/navigation-back.component.scss +5 -6
  171. package/scss/notification-center.component.scss +14 -18
  172. package/scss/notification-item.component.scss +6 -11
  173. package/scss/option.component.scss +11 -15
  174. package/scss/paginator.component.scss +5 -8
  175. package/scss/progress.component.scss +4 -8
  176. package/scss/radio-button.component.scss +23 -23
  177. package/scss/radio-group.component.scss +2 -4
  178. package/scss/rail-navigation-item.component.scss +19 -22
  179. package/scss/rail-navigation.component.scss +7 -12
  180. package/scss/rich-list-item-header.component.scss +4 -9
  181. package/scss/rich-list-item.component.scss +9 -17
  182. package/scss/search-bar.component.scss +13 -15
  183. package/scss/select.component.scss +9 -12
  184. package/scss/skeleton/_skeleton.scss +1 -1
  185. package/scss/slider.component.scss +11 -14
  186. package/scss/spinbox.component.scss +23 -25
  187. package/scss/switch.component.scss +98 -123
  188. package/scss/tab-bar-item.component.scss +17 -19
  189. package/scss/tab-bar.component.scss +23 -28
  190. package/scss/table.component.scss +12 -19
  191. package/scss/theme.scss +9 -7
  192. package/scss/timepicker.component.scss +5 -10
  193. package/scss/toast-item.component.scss +9 -15
  194. package/scss/toast.component.scss +5 -8
  195. package/scss/toggle-button-group.component.scss +13 -14
  196. package/scss/toggle-button.component.scss +15 -17
  197. package/scss/tooltip.component.scss +8 -13
  198. package/scss/variables/_color-palettes-dark.scss +49 -49
  199. package/scss/variables/_color-palettes.scss +84 -84
  200. package/scss/variables/_colors-dark.scss +31 -37
  201. package/scss/variables/_colors.scss +94 -95
  202. package/scss/variables/_controls.scss +45 -45
  203. package/scss/variables/_typography.scss +3 -6
  204. package/scss/variables/_vertical-rythm.scss +1 -1
  205. package/scss/variables/_visuals.scss +6 -6
  206. package/scss/wizard-step.component.scss +13 -17
  207. package/scss/wizard.component.scss +2 -4
@@ -1,54 +1,73 @@
1
- @use 'sass:math';
2
- @use '../abstract/dimensions';
3
- @use '../abstract/typography';
4
1
  @use '../abstract/utils';
5
2
 
3
+ $spacing-token-map: (
4
+ 4: var(--odx-spacing-25),
5
+ 8: var(--odx-spacing-50),
6
+ 12: var(--odx-spacing-75),
7
+ 16: var(--odx-spacing-100),
8
+ 24: var(--odx-spacing-150),
9
+ 36: var(--odx-size-225),
10
+ 48: var(--odx-size-300)
11
+ );
12
+
6
13
  html body {
7
14
  .odx-no-margin {
8
15
  margin: 0;
9
16
  }
10
17
 
11
- @each $size in (4, 8, 12, 16, 24, 36, 48) {
12
- $factor: math.div($size, 24);
13
-
18
+ @each $size, $token in $spacing-token-map {
14
19
  @each $direction in (top, right, bottom, left) {
15
20
  .odx-margin-#{$direction}-#{$size} {
16
- @include dimensions.margin($factor, $direction);
21
+ @if $direction == top {
22
+ margin-block-start: $token;
23
+ } @else if $direction == bottom {
24
+ margin-block-end: $token;
25
+ } @else if $direction == left {
26
+ margin-inline-start: $token;
27
+ } @else if $direction == right {
28
+ margin-inline-end: $token;
29
+ }
17
30
  }
18
31
  }
19
32
 
20
33
  .odx-margin-x-#{$size} {
21
- @include dimensions.margin-x($factor);
34
+ margin-inline: $token;
22
35
  }
23
36
 
24
37
  .odx-margin-y-#{$size} {
25
- @include dimensions.margin-y($factor);
38
+ margin-block: $token;
26
39
  }
27
40
 
28
41
  .odx-margin-#{$size} {
29
- @include dimensions.margin($factor);
42
+ margin: $token;
30
43
  }
31
44
  }
32
45
 
33
- @each $size in (4, 8, 12, 16, 24, 36, 48) {
34
- $factor: math.div($size, 24);
35
-
46
+ @each $size, $token in $spacing-token-map {
36
47
  @each $direction in (top, right, bottom, left) {
37
48
  .odx-padding-#{$direction}-#{$size} {
38
- @include dimensions.padding($factor, $direction);
49
+ @if $direction == top {
50
+ padding-block-start: $token;
51
+ } @else if $direction == bottom {
52
+ padding-block-end: $token;
53
+ } @else if $direction == left {
54
+ padding-inline-start: $token;
55
+ } @else if $direction == right {
56
+ padding-inline-end: $token;
57
+ }
39
58
  }
40
59
  }
41
60
 
42
61
  .odx-padding-x-#{$size} {
43
- @include dimensions.padding-x($factor);
62
+ padding-inline: $token;
44
63
  }
45
64
 
46
65
  .odx-padding-y-#{$size} {
47
- @include dimensions.padding-y($factor);
66
+ padding-block: $token;
48
67
  }
49
68
 
50
69
  .odx-padding-#{$size} {
51
- @include dimensions.padding($factor);
70
+ padding: $token;
52
71
  }
53
72
  }
54
73
 
@@ -58,24 +77,27 @@ html body {
58
77
 
59
78
  hr,
60
79
  .odx-separator {
61
- @include dimensions.height(1, math.div(1, 24));
62
-
63
80
  background-color: var(--odx-c-separator);
81
+ block-size: var(--odx-border-width-thin);
64
82
  border: 0;
83
+ margin-block: var(--odx-spacing-50);
65
84
  }
66
85
 
67
86
  .odx-fs-normal {
68
- @include typography.font-weight(normal);
87
+ font-weight: var(--odx-typography-font-weight-normal);
88
+ letter-spacing: var(--odx-typography-font-weight-normal-letter-spacing);
69
89
  }
70
90
 
71
91
  .odx-fs-medium {
72
- @include typography.font-weight(medium);
92
+ font-weight: var(--odx-typography-font-weight-medium);
93
+ letter-spacing: var(--odx-typography-font-weight-medium-letter-spacing);
73
94
  }
74
95
 
75
96
  b,
76
97
  strong,
77
98
  .odx-fs-bold {
78
- @include typography.font-weight(semibold);
99
+ font-weight: var(--odx-typography-font-weight-semibold);
100
+ letter-spacing: var(--odx-typography-font-weight-semibold-letter-spacing);
79
101
  }
80
102
 
81
103
  em,
@@ -1,6 +1,4 @@
1
- @use 'sass:math';
2
1
  @use '../abstract/breakpoints';
3
- @use '../abstract/dimensions';
4
2
 
5
3
  $columns: 12 !default;
6
4
 
@@ -9,8 +7,8 @@ $columns: 12 !default;
9
7
  }
10
8
 
11
9
  :root {
12
- --odx-grid-gutter: #{dimensions.get-size(1)};
13
- --odx-grid-gutter-small: #{dimensions.get-size(math.div(8, 24))};
10
+ --odx-grid-gutter: var(--odx-size-150);
11
+ --odx-grid-gutter-small: var(--odx-size-50);
14
12
 
15
13
  @include breakpoints.down(phone) {
16
14
  --odx-grid-gutter: var(--odx-grid-gutter-small);
@@ -1,18 +1,15 @@
1
- @use 'sass:math';
2
- @use '../abstract/dimensions';
3
-
4
1
  .odx-text-list,
5
2
  .odx-text-list ol,
6
3
  .odx-text-list ul {
7
- @include dimensions.margin-y(0.5);
8
- @include dimensions.padding(1, left);
4
+ margin-block: var(--odx-spacing-75);
5
+ padding-inline-start: var(--odx-spacing-150);
9
6
 
10
7
  ul,
11
8
  ol {
12
- @include dimensions.margin(0);
9
+ margin: 0;
13
10
  }
14
11
 
15
12
  li {
16
- @include dimensions.margin(math.div(-1, 24), left);
13
+ margin-inline-start: calc(var(--odx-vertical-rythm-base-size) * -1 / 24);
17
14
  }
18
15
  }
@@ -1,40 +1,16 @@
1
- @use 'sass:math';
2
1
  @use '../abstract/breakpoints';
3
- @use '../abstract/dimensions';
4
- @use '../abstract/typography';
5
-
6
- @font-face {
7
- font-family: 'Draeger Pangea Text';
8
- font-style: normal;
9
- font-weight: 400;
10
- src: url('../assets/fonts/draeger-pangea-text-regular.woff2') format('woff2');
11
- }
12
-
13
- @font-face {
14
- font-family: 'Draeger Pangea Text';
15
- font-style: normal;
16
- font-weight: 500;
17
- src: url('../assets/fonts/draeger-pangea-text-medium.woff2') format('woff2');
18
- }
19
-
20
- @font-face {
21
- font-family: 'Draeger Pangea Text';
22
- font-style: normal;
23
- font-weight: 600;
24
- src: url('../assets/fonts/draeger-pangea-text-semibold.woff2') format('woff2');
25
- }
26
2
 
27
3
  html {
28
- font-size: 62.5%;
4
+ font-size: var(--odx-typography-base-size);
29
5
  }
30
6
 
31
7
  html body {
32
- @include dimensions.line-height(1);
33
- @include typography.font-size(0);
34
- @include typography.font-weight(normal);
35
-
36
8
  color: var(--odx-c-text);
37
9
  font-family: var(--odx-typography-font-family);
10
+ font-size: var(--odx-typography-font-size-text-md);
11
+ font-weight: var(--odx-typography-font-weight-normal);
12
+ letter-spacing: var(--odx-typography-font-weight-normal-letter-spacing);
13
+ line-height: var(--odx-typography-line-height-text-md);
38
14
  }
39
15
 
40
16
  /* Deprecated .odx-title. Use .odx-heading instead. Keeping the old classes for compatibility. */
@@ -42,94 +18,107 @@ html body {
42
18
  .odx-title,
43
19
  [class*='odx-heading-'],
44
20
  [class*='odx-title-'] {
45
- @include typography.font-weight(semibold);
46
-
47
21
  color: var(--odx-c-display);
22
+ font-weight: var(--odx-typography-font-weight-semibold);
23
+ letter-spacing: var(--odx-typography-font-weight-semibold-letter-spacing);
48
24
  }
49
25
 
50
26
  /* Deprecated odx-subtitle. Subtitles were removed from figma. Keeping the old classes for compatibility. */
51
27
  .odx-subtitle,
52
28
  [class*='odx-subtitle-'] {
53
29
  @extend .odx-title;
54
- @include typography.font-weight(normal);
30
+
31
+ font-weight: var(--odx-typography-font-weight-normal);
32
+ letter-spacing: var(--odx-typography-font-weight-normal-letter-spacing);
55
33
  }
56
34
 
57
35
  .odx-heading-1,
58
36
  .odx-title-1,
59
37
  .odx-subtitle-1 {
60
- @include dimensions.line-height(2, math.div(40, 24));
61
- @include typography.font-size(5);
62
- @include typography.font-weight(medium);
38
+ font-size: var(--odx-typography-font-size-heading-xxl);
39
+ font-weight: var(--odx-typography-font-weight-medium);
40
+ letter-spacing: var(--odx-typography-font-weight-medium-letter-spacing);
41
+ line-height: var(--odx-typography-line-height-heading-xxl);
42
+ padding-block: var(--odx-control-spacing-sm);
63
43
 
64
44
  @include breakpoints.up(tablet) {
65
- @include dimensions.line-height(3, math.div(64, 24));
45
+ padding-block: var(--odx-control-spacing-sm);
66
46
  }
67
47
  }
68
48
 
69
49
  .odx-heading-2,
70
50
  .odx-title-2 {
71
- @include typography.font-weight(medium);
51
+ font-weight: var(--odx-typography-font-weight-medium);
52
+ letter-spacing: var(--odx-typography-font-weight-medium-letter-spacing);
72
53
  }
73
54
 
74
55
  .odx-heading-2,
75
56
  .odx-title-2,
76
57
  .odx-subtitle-2 {
77
- @include dimensions.line-height(2, 1.5);
78
- @include typography.font-size(4);
58
+ font-size: var(--odx-typography-font-size-heading-xl);
59
+ line-height: var(--odx-typography-line-height-heading-xl);
60
+ padding-block: var(--odx-control-spacing-md);
79
61
 
80
62
  @include breakpoints.up(tablet) {
81
- @include dimensions.line-height(3, math.div(54, 24));
63
+ padding-block: calc(var(--odx-vertical-rythm-base-size) * 3 / 8);
82
64
  }
83
65
  }
84
66
 
85
67
  .odx-heading-3,
86
68
  .odx-title-3,
87
69
  .odx-subtitle-3 {
88
- @include dimensions.line-height(2, math.div(32, 24));
89
- @include typography.font-size(3);
70
+ font-size: var(--odx-typography-font-size-heading-lg);
71
+ line-height: var(--odx-typography-line-height-heading-lg);
72
+ padding-block: var(--odx-control-spacing-lg);
90
73
 
91
74
  @include breakpoints.up(tablet) {
92
- @include dimensions.line-height(2, math.div(42, 24));
75
+ padding-block: calc(var(--odx-vertical-rythm-base-size) / 8);
93
76
  }
94
77
  }
95
78
 
96
79
  .odx-heading-4,
97
80
  .odx-title-4,
98
81
  .odx-subtitle-4 {
99
- @include dimensions.line-height(2, math.div(30, 24));
100
- @include typography.font-size(2);
82
+ font-size: var(--odx-typography-font-size-heading-md);
83
+ line-height: var(--odx-typography-line-height-heading-md);
84
+ padding-block: calc(var(--odx-vertical-rythm-base-size) * 3 / 8);
101
85
  }
102
86
 
103
87
  .odx-heading-5,
104
88
  .odx-title-5,
105
89
  .odx-subtitle-5 {
106
- @include dimensions.line-height(1);
107
- @include typography.font-size(1);
90
+ font-size: var(--odx-typography-font-size-heading-sm);
91
+ line-height: var(--odx-typography-line-height-heading-sm);
108
92
  }
109
93
 
110
94
  .odx-heading-6,
111
95
  .odx-title-6,
112
96
  .odx-subtitle-6 {
113
- @include dimensions.line-height(1);
114
- @include typography.font-size(0);
97
+ font-size: var(--odx-typography-font-size-heading-xs);
98
+ line-height: var(--odx-typography-line-height-heading-xs);
115
99
  }
116
100
 
117
101
  .odx-text {
118
- @include dimensions.line-height(1);
119
- @include typography.font-weight(normal);
102
+ font-size: var(--odx-typography-font-size-text-md);
103
+ font-weight: var(--odx-typography-font-weight-normal);
104
+ letter-spacing: var(--odx-typography-font-weight-normal-letter-spacing);
105
+ line-height: var(--odx-typography-line-height-text-md);
120
106
 
121
107
  &--small {
122
- @include dimensions.line-height(1, math.div(20, 24));
123
- @include typography.font-size(-1);
108
+ font-size: var(--odx-typography-font-size-text-sm);
109
+ line-height: var(--odx-typography-line-height-text-sm);
110
+ padding-block: var(--odx-spacing-12);
124
111
  }
125
112
 
126
113
  &--xsmall {
127
- @include dimensions.line-height(1, math.div(16, 24));
128
- @include typography.font-size(-2);
114
+ font-size: var(--odx-typography-font-size-text-xs);
115
+ line-height: var(--odx-typography-line-height-text-xs);
116
+ padding-block: var(--odx-control-spacing-sm);
129
117
  }
130
118
 
131
119
  &--emphasized {
132
- @include typography.font-weight(semibold);
120
+ font-weight: var(--odx-typography-font-weight-semibold);
121
+ letter-spacing: var(--odx-typography-font-weight-semibold-letter-spacing);
133
122
  }
134
123
  }
135
124
 
@@ -139,46 +128,49 @@ html body {
139
128
  [class*='odx-display-'],
140
129
  [class*='odx-headline-'] {
141
130
  color: var(--odx-c-display);
142
-
143
- @include typography.font-weight(medium);
131
+ font-weight: var(--odx-typography-font-weight-medium);
132
+ letter-spacing: var(--odx-typography-font-weight-medium-letter-spacing);
144
133
  }
145
134
 
146
135
  .odx-display-sm,
147
136
  .odx-headline-sm {
148
- @include dimensions.line-height(2, math.div(40, 24));
149
- @include typography.font-size(5);
137
+ font-size: var(--odx-typography-font-size-display-sm);
138
+ line-height: var(--odx-typography-line-height-display-sm);
139
+ padding-block: var(--odx-control-spacing-sm);
150
140
 
151
141
  @include breakpoints.up(phone) {
152
- @include dimensions.line-height(3, math.div(64, 24));
142
+ padding-block: var(--odx-control-spacing-sm);
153
143
  }
154
144
  }
155
145
 
156
146
  .odx-display-md,
157
147
  .odx-headline-md {
158
- @include dimensions.line-height(2, math.div(42, 24));
159
- @include typography.font-size(6);
148
+ font-size: var(--odx-typography-font-size-display-md);
149
+ line-height: var(--odx-typography-line-height-display-md);
150
+ padding-block: calc(var(--odx-vertical-rythm-base-size) * 3 / 8);
160
151
 
161
152
  @include breakpoints.up(phone) {
162
- @include dimensions.line-height(4, math.div(80, 24));
153
+ padding-block: var(--odx-control-spacing-lg);
163
154
  }
164
155
  }
165
156
 
166
157
  .odx-display-lg,
167
158
  .odx-headline-lg {
168
- @include dimensions.line-height(2, math.div(46, 24));
169
- @include typography.font-size(7);
159
+ font-size: var(--odx-typography-font-size-display-lg);
160
+ line-height: var(--odx-typography-line-height-display-lg);
161
+ padding-block: calc(var(--odx-vertical-rythm-base-size) / 24);
170
162
 
171
163
  @include breakpoints.up(phone) {
172
- @include dimensions.line-height(5, math.div(98, 24));
164
+ padding-block: calc(var(--odx-vertical-rythm-base-size) * 11 / 24);
173
165
  }
174
166
  }
175
167
 
176
168
  .odx-display-xl,
177
169
  .odx-headline-xl {
178
- @include dimensions.line-height(2);
179
- @include typography.font-size(8);
170
+ font-size: var(--odx-typography-font-size-display-xl);
171
+ line-height: var(--odx-typography-line-height-display-xl);
180
172
 
181
173
  @include breakpoints.up(phone) {
182
- @include dimensions.line-height(5, math.div(98, 24));
174
+ padding-block: calc(var(--odx-vertical-rythm-base-size) * 11 / 24);
183
175
  }
184
176
  }
@@ -1,7 +1,7 @@
1
1
  .odx-line-timeframes-chart {
2
2
  .odx-line-timeframes-chart__container {
3
3
  display: flex;
4
- gap: calc(var(--odx-vertical-rythm-base-size) * 1);
4
+ gap: var(--odx-spacing-150);
5
5
  width: 100%;
6
6
  }
7
7
 
@@ -22,18 +22,18 @@
22
22
  &-items {
23
23
  display: flex;
24
24
  flex-direction: column;
25
- gap: calc(var(--odx-vertical-rythm-base-size) * 0.5);
25
+ gap: var(--odx-spacing-75);
26
26
  }
27
27
 
28
28
  &-item {
29
29
  display: flex;
30
30
  flex-direction: column;
31
- gap: calc(var(--odx-vertical-rythm-base-size) * 0.125);
31
+ gap: var(--odx-spacing-25);
32
32
 
33
33
  &-header {
34
34
  align-items: center;
35
35
  display: flex;
36
- gap: calc(var(--odx-vertical-rythm-base-size) * 0.25);
36
+ gap: var(--odx-spacing-37);
37
37
  }
38
38
 
39
39
  &-dot {
@@ -1,16 +1,16 @@
1
- @use '../abstract/motion';
2
1
  @use '../abstract/utils';
3
2
 
4
3
  .odx-link {
5
- @include motion.transition(color background-color);
6
- @include utils.interactive($with-box-shadow: false);
7
-
8
- border-radius: var(--odx-v-border-radius-controls);
4
+ border-radius: var(--odx-border-radius-control);
9
5
  color: var(--odx-c-link);
10
6
  padding: 0 calc(var(--odx-v-outline-width-bold) + var(--odx-v-outline-box-shadow-width));
11
7
  position: relative;
8
+ transition: var(--odx-motion-transition-default);
9
+ transition-property: color, background-color;
12
10
  user-select: auto;
13
11
 
12
+ @include utils.interactive($with-box-shadow: false);
13
+
14
14
  &:hover {
15
15
  color: var(--odx-c-link-hover);
16
16
  text-decoration: underline;
@@ -1,26 +1,24 @@
1
- @use 'sass:math';
2
- @use '../abstract/dimensions';
3
1
  @use '../abstract/utils';
4
- @use '../abstract/motion';
5
- @use '../abstract/typography';
6
2
 
7
3
  .odx-list-item {
4
+ @include utils.interactive();
5
+ @include utils.vertical-center-content();
6
+
8
7
  $root: &;
9
8
  $muted-selector: #{$root}--muted;
10
9
  $variants: danger, warning;
11
10
 
12
11
  --separator-color: var(--odx-c-separator);
13
12
 
14
- @include dimensions.padding-x(math.div(8, 24));
15
- @include dimensions.line-height(2, 1);
16
- @include motion.transition(border-bottom-color background-color color box-shadow);
17
- @include utils.interactive();
18
- @include utils.vertical-center-content();
19
-
20
13
  background-color: transparent;
21
- border-radius: var(--odx-v-border-radius-controls);
22
- gap: dimensions.get-size(math.div(8, 24));
14
+ border-radius: var(--odx-border-radius-control);
15
+ gap: var(--odx-spacing-50);
16
+ line-height: var(--odx-typography-line-height-text-lg);
17
+ padding-block: var(--odx-spacing-75);
18
+ padding-inline: var(--odx-control-spacing-inline-lg);
23
19
  position: relative;
20
+ transition: var(--odx-motion-transition-default);
21
+ transition-property: border-bottom-color, background-color, color, box-shadow;
24
22
 
25
23
  > [odxListSuffix],
26
24
  > [odxListItemSuffix] {
@@ -33,21 +31,21 @@
33
31
  }
34
32
 
35
33
  &::before {
36
- @include motion.transition(border-color);
37
-
38
34
  border-bottom: 1px solid var(--separator-color);
39
35
  content: '';
40
36
  display: block;
41
37
  position: absolute;
42
- right: dimensions.get-size(math.div(8, 24));
38
+ right: var(--odx-spacing-50);
43
39
  top: 0;
44
- width: calc(100% - #{dimensions.get-size(math.div(16, 24))});
45
- z-index: var(--odx-v-layer-1);
40
+ transition: var(--odx-motion-transition-default);
41
+ transition-property: border-color;
42
+ width: calc(100% - var(--odx-spacing-100));
43
+ z-index: var(--odx-z-level-base);
46
44
  }
47
45
 
48
46
  &:hover,
49
47
  &:focus-visible {
50
- z-index: var(--odx-v-layer-2);
48
+ z-index: var(--odx-z-level-interactive);
51
49
  &:not(#{$muted-selector}) {
52
50
  --separator-color: transparent !important;
53
51
  }
@@ -1,6 +1,4 @@
1
- @use 'sass:math';
2
1
  @use 'sass:selector';
3
- @use '../abstract/dimensions';
4
2
 
5
3
  .odx-list {
6
4
  display: block;
@@ -9,7 +7,7 @@
9
7
 
10
8
  @for $i from 1 through 10 {
11
9
  #{$self} .odx-list-item {
12
- @include dimensions.padding(math.div(8, 24) + ($i * math.div(32, 24)), left);
10
+ padding-inline-start: calc(var(--odx-spacing-50) + #{$i} * var(--odx-spacing-100) * 2);
13
11
 
14
12
  &:first-child {
15
13
  --separator-color: var(--odx-c-separator);
@@ -1,5 +1,3 @@
1
- @use 'sass:math';
2
- @use '../abstract/motion';
3
1
  @use '../abstract/utils';
4
2
 
5
3
  :root {
@@ -27,14 +25,14 @@
27
25
  scroll-behavior: contain;
28
26
  top: 0;
29
27
  width: 100%;
30
- z-index: var(--odx-v-layer-2);
28
+ z-index: var(--odx-z-level-overlay);
31
29
  }
32
30
 
33
31
  &__backdrop {
34
- @include motion.transition(background-color);
35
-
36
32
  background-color: transparent;
37
33
  opacity: 0.8;
34
+ transition: var(--odx-motion-transition-default);
35
+ transition-property: background-color;
38
36
  }
39
37
 
40
38
  .odx-circular-progress {
@@ -44,7 +42,7 @@
44
42
  position: absolute;
45
43
  top: 50%;
46
44
  transform: translate(-50%, -50%);
47
- z-index: var(--odx-v-layer-3);
45
+ z-index: var(--odx-z-level-topmost);
48
46
 
49
47
  &__indicator {
50
48
  stroke: var(--odx-c-primary);
@@ -1,20 +1,14 @@
1
- @use '../abstract/dimensions';
2
1
  @use '../abstract/utils';
3
2
 
4
3
  :root {
5
4
  --odx-logo-color: var(--odx-c-primary);
6
- --odx-logo-color-inverse: var(--odx-c-text-inverse);
7
- }
8
-
9
- @include utils.theme-selector(dark) {
10
- --odx-logo-color: var(--odx-c-text-inverse);
5
+ --odx-logo-color-inverse: var(--odx-palette-white);
11
6
  }
12
7
 
13
8
  .odx-logo {
14
- @include dimensions.height(1);
15
-
16
9
  aspect-ratio: 2.5 / 1;
17
10
  background-color: var(--odx-logo-color);
11
+ block-size: var(--odx-spacing-150);
18
12
  display: inline-block;
19
13
  mask-image: url('../assets/images/logo.svg');
20
14
  mask-repeat: no-repeat;
@@ -24,10 +18,12 @@
24
18
  }
25
19
 
26
20
  &--medium {
27
- @include dimensions.height(2, 1.5);
21
+ block-size: var(--odx-control-height-md);
22
+ margin-block: var(--odx-spacing-37);
28
23
  }
29
24
 
30
25
  &--large {
31
- @include dimensions.height(3, 2.5);
26
+ block-size: calc(var(--odx-control-height-lg) + var(--odx-spacing-75));
27
+ margin-block: var(--odx-spacing-37);
32
28
  }
33
29
  }