tgui-core 1.8.4 → 2.0.1

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 (82) hide show
  1. package/dist/common/constants.d.ts +4 -0
  2. package/dist/common/constants.js +17 -0
  3. package/dist/common/hotkeys.js +48 -48
  4. package/dist/common/ui.d.ts +6 -0
  5. package/dist/common/ui.js +63 -59
  6. package/dist/components/AnimatedNumber.d.ts +1 -1
  7. package/dist/components/Button.d.ts +3 -3
  8. package/dist/components/Button.js +21 -22
  9. package/dist/components/Chart.d.ts +3 -15
  10. package/dist/components/Chart.js +68 -86
  11. package/dist/components/ColorBox.js +3 -3
  12. package/dist/components/Dialog.d.ts +16 -0
  13. package/dist/components/Dialog.js +5 -5
  14. package/dist/components/DmIcon.d.ts +1 -1
  15. package/dist/components/DraggableControl.d.ts +56 -0
  16. package/dist/components/DraggableControl.js +126 -176
  17. package/dist/components/Dropdown.d.ts +8 -6
  18. package/dist/components/Dropdown.js +137 -129
  19. package/dist/components/FitText.d.ts +1 -1
  20. package/dist/components/Floating.d.ts +75 -0
  21. package/dist/components/Floating.js +2235 -0
  22. package/dist/components/ImageButton.d.ts +2 -3
  23. package/dist/components/ImageButton.js +88 -98
  24. package/dist/components/InfinitePlane.d.ts +35 -32
  25. package/dist/components/InfinitePlane.js +123 -133
  26. package/dist/components/Knob.d.ts +22 -6
  27. package/dist/components/Knob.js +45 -46
  28. package/dist/components/MenuBar.js +81 -97
  29. package/dist/components/Modal.js +12 -12
  30. package/dist/components/NumberInput.d.ts +1 -1
  31. package/dist/components/Popper.d.ts +5 -1
  32. package/dist/components/Popper.js +1026 -121
  33. package/dist/components/ProgressBar.js +3 -3
  34. package/dist/components/RoundGauge.js +30 -30
  35. package/dist/components/Section.js +7 -7
  36. package/dist/components/Slider.d.ts +22 -6
  37. package/dist/components/Slider.js +55 -56
  38. package/dist/components/Stack.js +3 -3
  39. package/dist/components/Table.js +7 -7
  40. package/dist/components/Tabs.js +7 -7
  41. package/dist/components/TextArea.d.ts +17 -0
  42. package/dist/components/TextArea.js +35 -33
  43. package/dist/components/Tooltip.d.ts +3 -34
  44. package/dist/components/Tooltip.js +14 -77
  45. package/dist/components/TrackOutsideClicks.d.ts +1 -1
  46. package/dist/components/index.d.ts +1 -0
  47. package/dist/components/index.js +64 -62
  48. package/package.json +26 -27
  49. package/styles/base.scss +13 -11
  50. package/styles/colors.scss +63 -67
  51. package/styles/components/BlockQuote.scss +5 -8
  52. package/styles/components/Button.scss +123 -99
  53. package/styles/components/Dialog.scss +23 -30
  54. package/styles/components/Dimmer.scss +3 -8
  55. package/styles/components/Divider.scss +6 -7
  56. package/styles/components/Dropdown.scss +103 -51
  57. package/styles/components/Flex.scss +0 -1
  58. package/styles/components/Floating.scss +60 -0
  59. package/styles/components/ImageButton.scss +136 -192
  60. package/styles/components/Input.scss +24 -26
  61. package/styles/components/Knob.scss +37 -41
  62. package/styles/components/LabeledList.scss +8 -6
  63. package/styles/components/MenuBar.scss +17 -21
  64. package/styles/components/Modal.scss +8 -7
  65. package/styles/components/NoticeBox.scss +22 -26
  66. package/styles/components/NumberInput.scss +30 -28
  67. package/styles/components/ProgressBar.scss +27 -19
  68. package/styles/components/RoundGauge.scss +46 -26
  69. package/styles/components/Section.scss +17 -32
  70. package/styles/components/Slider.scss +18 -15
  71. package/styles/components/Stack.scss +8 -48
  72. package/styles/components/Table.scss +2 -2
  73. package/styles/components/Tabs.scss +92 -66
  74. package/styles/components/TextArea.scss +32 -36
  75. package/styles/components/Tooltip.scss +10 -13
  76. package/styles/functions.scss +1 -62
  77. package/styles/main.scss +6 -1
  78. package/styles/reset.scss +7 -11
  79. package/styles/vars-colors.scss +108 -0
  80. package/styles/vars-components.scss +162 -0
  81. package/styles/vars-values.scss +110 -0
  82. package/dist/popper-CiqSDJTE.js +0 -906
@@ -1,6 +1,8 @@
1
1
  /**
2
2
  * Copyright (c) 2020 Aleksej Komarov
3
3
  * SPDX-License-Identifier: MIT
4
+ *
5
+ * @deprecated Use css-variables
4
6
  */
5
7
 
6
8
  @use "sass:color";
@@ -8,81 +10,75 @@
8
10
  @use "sass:meta";
9
11
 
10
12
  // Base colors
11
- $black: hsl(0, 0%, 0%) !default;
12
- $white: hsl(0, 0%, 100%) !default;
13
- $red: hsl(0, 72%, 50%) !default;
14
- $orange: hsl(24, 89%, 54%) !default;
15
- $yellow: hsl(52, 97%, 52%) !default;
16
- $olive: hsl(68, 76%, 45%) !default;
17
- $green: hsl(136, 70%, 41%) !default;
18
- $teal: hsl(178, 100%, 35%) !default;
19
- $blue: hsl(208, 65%, 47%) !default;
20
- $violet: hsl(259, 60%, 50%) !default;
21
- $purple: hsl(288, 60%, 49%) !default;
22
- $pink: hsl(326, 71%, 56%) !default;
23
- $brown: hsl(24, 47%, 45%) !default;
24
- $grey: hsl(0, 0%, 47%) !default;
25
- $light-grey: hsl(0, 0%, 67%) !default;
13
+ $black: var(--color-black) !default;
14
+ $white: var(--color-white) !default;
15
+ $red: var(--color-red) !default;
16
+ $orange: var(--color-orange) !default;
17
+ $yellow: var(--color-yellow) !default;
18
+ $olive: var(--color-olive) !default;
19
+ $green: var(--color-green) !default;
20
+ $teal: var(--color-teal) !default;
21
+ $blue: var(--color-blue) !default;
22
+ $violet: var(--color-violet) !default;
23
+ $purple: var(--color-purple) !default;
24
+ $pink: var(--color-pink) !default;
25
+ $brown: var(--color-brown) !default;
26
+ $grey: var(--color-grey) !default;
27
+ $light-grey: var(--color-light-grey) !default;
26
28
 
27
- $primary: hsl(210, 37%, 46%) !default;
28
- $good: hsl(94, 63%, 41%) !default;
29
- $average: hsl(33, 89%, 50%) !default;
30
- $bad: hsl(0, 72%, 50%) !default;
31
- $label: hsl(210, 18%, 58%) !default;
32
-
33
- // Background and foreground color lightness ratios
34
- $bg-lightness: -15% !default;
35
- $fg-lightness: 10% !default;
36
-
37
- @function bg($color) {
38
- @return color.scale($color, $lightness: $bg-lightness);
39
- }
40
-
41
- @function fg($color) {
42
- @return color.scale($color, $lightness: $fg-lightness);
43
- }
29
+ $primary: var(--color-primary) !default;
30
+ $good: var(--color-good) !default;
31
+ $average: var(--color-average) !default;
32
+ $bad: var(--color-bad) !default;
33
+ $label: var(--color-label) !default;
44
34
 
45
35
  // Mappings of color names
46
-
36
+ $color-map: ();
47
37
  $_gen_map: (
48
- "black": $black,
49
- "white": $white,
50
- "red": $red,
51
- "orange": $orange,
52
- "yellow": $yellow,
53
- "olive": $olive,
54
- "green": $green,
55
- "teal": $teal,
56
- "blue": $blue,
57
- "violet": $violet,
58
- "purple": $purple,
59
- "pink": $pink,
60
- "brown": $brown,
61
- "grey": $grey,
62
- "light-grey": $light-grey,
63
- "good": $good,
64
- "average": $average,
65
- "bad": $bad,
66
- "label": $label,
38
+ "black": var(--color-black),
39
+ "white": var(--color-white),
40
+ "red": var(--color-red),
41
+ "orange": var(--color-orange),
42
+ "yellow": var(--color-yellow),
43
+ "olive": var(--color-olive),
44
+ "green": var(--color-green),
45
+ "teal": var(--color-teal),
46
+ "blue": var(--color-blue),
47
+ "violet": var(--color-violet),
48
+ "purple": var(--color-purple),
49
+ "pink": var(--color-pink),
50
+ "brown": var(--color-brown),
51
+ "grey": var(--color-grey),
52
+ "gray": var(--color-grey),
53
+ "light-grey": var(--color-light-grey),
54
+ "light-gray": var(--color-light-grey),
55
+ "good": var(--color-good),
56
+ "average": var(--color-average),
57
+ "bad": var(--color-bad),
58
+ "label": var(--color-label),
67
59
  );
60
+ $low-contrast-color-map: ("yellow", "white");
68
61
 
69
- // Foreground color names for which to generate a color map
70
- $fg-map-keys: map.keys($_gen_map) !default;
71
- // Background color names for which to generate a color map
72
- $bg-map-keys: map.keys($_gen_map) !default;
73
-
74
- $fg-map: ();
75
- @each $color-name in $fg-map-keys {
62
+ // Color names for which to generate a color map
63
+ $color-map-keys: map.keys($_gen_map) !default;
64
+ @each $color-name in $color-map-keys {
76
65
  // prettier-ignore
77
- $fg-map: map.merge($fg-map, (
78
- $color-name: fg(map.get($_gen_map, $color-name)),
66
+ $color-map: map.merge($color-map, (
67
+ $color-name: map.get($_gen_map, $color-name),
79
68
  ));
80
69
  }
81
70
 
82
- $bg-map: ();
83
- @each $color-name in $bg-map-keys {
84
- // prettier-ignore
85
- $bg-map: map.merge($bg-map, (
86
- $color-name: bg(map.get($_gen_map, $color-name)),
87
- ));
71
+ /**
72
+ * Background and foreground color lightness ratios
73
+ * @deprecated
74
+ */
75
+ $bg-lightness: -15% !default;
76
+ $fg-lightness: 10% !default;
77
+
78
+ @function bg($color) {
79
+ @return hsl(from $color h s calc(l - var(--adjust-color)));
80
+ }
81
+
82
+ @function fg($color) {
83
+ @return hsl(from $color h s calc(l + var(--adjust-color)));
88
84
  }
@@ -1,13 +1,10 @@
1
- @use "../base";
2
- @use "../colors";
3
-
4
- $color-default: colors.fg(colors.$label) !default;
1
+ $color-default: 0 !default;
5
2
 
6
3
  .BlockQuote {
7
- color: $color-default;
8
- border-left: base.em(2px) solid $color-default;
9
- padding-left: 0.5em;
10
- margin-bottom: 0.5em;
4
+ color: var(--blockquote-color);
5
+ border-left: var(--blockquote-border);
6
+ padding-left: var(--space-m);
7
+ margin-bottom: var(--space-m);
11
8
 
12
9
  &:last-child {
13
10
  margin-bottom: 0;
@@ -1,144 +1,178 @@
1
1
  @use "../base";
2
2
  @use "../colors";
3
- @use "../functions" as *;
4
-
5
- $color-default: colors.bg(colors.$primary) !default;
6
- $color-disabled: hsl(0, 0%, 60%) !default;
7
- $color-selected: colors.bg(colors.$green) !default;
8
- $color-caution: colors.bg(colors.$yellow) !default;
9
- $color-danger: colors.bg(colors.$red) !default;
10
- $color-transparent-text: rgba(255, 255, 255, 0.5) !default;
11
- $border-radius: base.$border-radius !default;
12
- $bg-map: colors.$bg-map !default;
13
-
14
- @mixin button-color($color) {
15
- // Adapt text color to background luminance to ensure high contast
16
- $luminance: luminance($color);
17
- $text-color: if($luminance > 0.4, rgba(0, 0, 0, 1), rgba(255, 255, 255, 1));
18
-
19
- transition:
20
- color 50ms,
21
- background-color 50ms;
22
- background-color: $color;
23
- color: $text-color;
24
3
 
25
- &:focus {
26
- transition:
27
- color 100ms,
28
- background-color 100ms;
29
- }
4
+ $bg-map: colors.$color-map !default;
5
+ $fg-map: colors.$color-map !default;
6
+
7
+ $color-default: 0 !default;
8
+ $color-selected: 0 !default;
9
+ $color-caution: 0 !default;
10
+ $color-danger: 0 !default;
11
+ $color-transparent-text: 0 !default;
12
+ $border-radius: 0 !default;
30
13
 
31
- &:hover {
32
- background-color: lighten($color, 30%);
33
- color: $text-color;
14
+ @mixin button-color($color, $text-color: var(--color-text-fixed-white)) {
15
+ cursor: var(--cursor-pointer);
16
+ background-color: hsl(from $color h s calc(l - var(--adjust-color)));
17
+ color: $text-color;
18
+
19
+ &:not(.Button--disabled) {
20
+ &:hover {
21
+ background-color: hsl(
22
+ from $color h s
23
+ calc(calc(l - var(--adjust-color)) + var(--adjust-hover))
24
+ );
25
+ color: $text-color;
26
+ }
27
+
28
+ &:active {
29
+ background-color: hsl(
30
+ from $color h s
31
+ calc(calc(l - var(--adjust-color)) - var(--adjust-active))
32
+ );
33
+ color: $text-color;
34
+ }
34
35
  }
35
36
  }
36
37
 
37
38
  .Button {
39
+ cursor: var(--cursor-pointer);
38
40
  position: relative;
39
41
  display: inline-block;
40
- line-height: 1.667em;
41
- padding: 0 0.5em;
42
- margin-right: base.em(2px);
43
42
  white-space: nowrap;
43
+ line-height: 1.667em;
44
+ padding: 0 var(--space-m);
45
+ margin-right: var(--space-xs);
46
+ margin-bottom: var(--space-xs);
44
47
  outline: 0;
45
- border-radius: $border-radius;
46
- margin-bottom: base.em(2px);
48
+ border-radius: var(--button-border-radius);
49
+ transition-property: background-color, color, opacity;
50
+ transition-duration: var(--button-transition);
51
+ transition-timing-function: var(--button-transition-timing);
47
52
  // Disable selection in buttons
48
53
  user-select: none;
49
- -ms-user-select: none;
54
+
55
+ &:active {
56
+ transition: none;
57
+ }
50
58
 
51
59
  &:last-child {
52
60
  margin-right: 0;
53
61
  margin-bottom: 0;
54
62
  }
55
63
 
56
- .fa,
57
- .fas,
58
- .far {
59
- margin-left: -0.25em;
60
- margin-right: -0.25em;
64
+ &__content {
65
+ display: block;
66
+ align-self: stretch;
67
+
68
+ &--ellipsis {
69
+ display: flex; // Inline flex will broke ellipsis, don't change it.
70
+ align-items: center;
71
+ }
72
+ }
73
+
74
+ i {
61
75
  min-width: 1.333em;
62
76
  text-align: center;
77
+ vertical-align: middle;
63
78
  }
64
- }
65
79
 
66
- .Button--dropdown {
67
- line-height: base.em(16px);
68
- height: base.em(22px);
69
- padding: 0.2rem 0.5rem;
70
- }
80
+ &:has(i) {
81
+ padding-left: 0;
71
82
 
72
- .Button--hasContent {
73
- // Add a margin to the icon to keep it separate from the text
74
- .fa,
75
- .fas,
76
- .far {
77
- margin-right: 0.25em;
83
+ i {
84
+ margin: 0 var(--space-s);
85
+ }
78
86
  }
79
- }
80
87
 
81
- .Button--hasContent.Button--iconPosition--right {
82
- .fa,
83
- .fas,
84
- .far {
85
- margin-right: 0px;
86
- margin-left: 3px;
88
+ &--icon-right:has(i) {
89
+ padding-left: var(--space-m);
90
+ padding-right: var(--space-s);
91
+
92
+ i {
93
+ margin: 0 0 0 var(--space-s);
94
+ }
87
95
  }
88
- }
89
96
 
90
- .Button--ellipsis {
91
- display: block;
92
- text-overflow: ellipsis;
93
- overflow: hidden;
94
- margin-right: -0.33em;
95
- }
97
+ &--empty:has(i) {
98
+ padding: 0;
99
+ }
96
100
 
97
- .Button--fluid {
98
- display: block;
99
- margin-left: 0;
100
- margin-right: 0;
101
- }
101
+ &--compact {
102
+ padding: 0 var(--space-s);
103
+ line-height: 1.333em;
102
104
 
103
- .Button--circular {
104
- border-radius: 50%;
105
- }
105
+ &:has(i) i {
106
+ margin: 0 var(--space-xxs);
107
+ }
108
+ }
106
109
 
107
- .Button--compact {
108
- padding: 0 0.25em;
109
- line-height: 1.333em;
110
+ &--circular {
111
+ border-radius: var(--border-radius-circular);
112
+ }
113
+
114
+ &--fluid {
115
+ display: block;
116
+ margin-left: 0;
117
+ margin-right: 0;
118
+ }
119
+
120
+ &--ellipsis {
121
+ display: block;
122
+ text-overflow: ellipsis;
123
+ overflow: hidden;
124
+ margin-right: calc(-1 * var(--space-s));
125
+ }
110
126
  }
111
127
 
112
128
  @each $color-name, $color-value in $bg-map {
113
129
  .Button--color--#{$color-name} {
130
+ @each $color in colors.$low-contrast-color-map {
131
+ @if $color-name == $color {
132
+ --color-text-fixed-white: var(--color-black);
133
+ }
134
+ }
135
+
114
136
  @include button-color($color-value);
115
137
  }
116
138
  }
117
139
 
140
+ /* Do not move it down, cause it will override selected by specificity */
141
+ .Button--color--transparent {
142
+ color: var(--button-color-transparent);
143
+
144
+ &:not(.Button--disabled) {
145
+ &:hover {
146
+ background-color: var(--color-hover);
147
+ color: var(--color-text);
148
+ }
149
+
150
+ &:active {
151
+ background-color: var(--color-active);
152
+ color: var(--color-text);
153
+ }
154
+ }
155
+ }
156
+
118
157
  .Button--color--default {
119
- @include button-color($color-default);
158
+ @include button-color(var(--button-background-default), var(--button-color));
120
159
  }
121
160
 
122
161
  .Button--color--caution {
123
- @include button-color($color-caution);
162
+ @include button-color(var(--button-background-caution));
124
163
  }
125
164
 
126
165
  .Button--color--danger {
127
- @include button-color($color-danger);
166
+ @include button-color(var(--button-background-danger));
128
167
  }
129
168
 
130
- .Button--color--transparent {
131
- @include button-color(base.$color-bg);
132
- background-color: rgba(base.$color-bg, 0);
133
- color: $color-transparent-text;
169
+ .Button--selected {
170
+ @include button-color(var(--button-background-selected));
134
171
  }
135
172
 
136
173
  .Button--disabled {
137
- background-color: $color-disabled !important;
138
- }
139
-
140
- .Button--selected {
141
- @include button-color($color-selected);
174
+ cursor: var(--cursor-disabled);
175
+ opacity: 0.5;
142
176
  }
143
177
 
144
178
  .Button--flex {
@@ -161,13 +195,3 @@ $bg-map: colors.$bg-map !default;
161
195
  .Button--verticalAlignContent--bottom {
162
196
  justify-content: flex-end;
163
197
  }
164
-
165
- .Button__content {
166
- display: block;
167
- align-self: stretch;
168
-
169
- &--ellipsis {
170
- display: flex; // Inline flex will broke ellipsis, don't change it.
171
- align-items: center;
172
- }
173
- }
@@ -1,47 +1,41 @@
1
1
  @use "../base";
2
2
 
3
- $background-color: base.$color-bg !default;
4
-
5
3
  .Dialog {
6
4
  position: fixed;
7
- left: 0;
8
- top: 0;
9
- right: 0;
10
- bottom: 0;
11
- background-color: rgba(0, 0, 0, 0.5);
5
+ inset: 0;
12
6
  display: flex;
13
7
  align-items: center;
14
8
  justify-content: center;
9
+ background-color: var(--dialog-background);
15
10
  }
16
11
 
17
12
  .Dialog__content {
18
- background-color: $background-color;
19
- font-family: Consolas, monospace;
20
- font-size: base.em(14px);
21
13
  display: flex;
22
14
  flex-direction: column;
15
+ font-family: var(--font-family-mono);
16
+ font-size: base.em(14px);
17
+ background-color: var(--color-base);
23
18
  }
24
19
 
25
20
  .Dialog__header {
21
+ user-select: none;
26
22
  display: flex;
27
23
  height: 2em;
28
24
  line-height: 1.928em;
29
- background-color: rgba(0, 0, 0, 0.5);
30
- user-select: none;
31
- -ms-user-select: none;
25
+ background-color: var(--dialog-background);
32
26
  }
33
27
 
34
28
  .Dialog__title {
29
+ flex-grow: 1;
35
30
  display: inline;
36
31
  font-style: italic;
37
- margin-left: 1rem;
38
- margin-right: 2rem;
39
- flex-grow: 1;
32
+ margin-left: var(--space-xl);
33
+ margin-right: var(--space-xxl);
40
34
  opacity: 0.33;
41
35
  }
42
36
 
43
37
  .Dialog__body {
44
- margin: 2rem 1rem 2rem 1rem;
38
+ margin: var(--space-xxl) var(--space-xl);
45
39
  flex-grow: 1;
46
40
  }
47
41
 
@@ -49,12 +43,12 @@ $background-color: base.$color-bg !default;
49
43
  display: flex;
50
44
  flex-direction: row;
51
45
  justify-content: flex-end;
52
- padding: 1rem;
53
- background-color: rgba(0, 0, 0, 0.25);
46
+ padding: var(--space-xl);
47
+ background-color: hsl(from var(--dialog-background) h s l / 0.25);
54
48
  }
55
49
 
56
50
  .Dialog__button {
57
- margin: 0 1rem 0 1rem;
51
+ margin: 0 var(--space-xl);
58
52
  height: 2rem;
59
53
  min-width: 6rem;
60
54
  text-align: center;
@@ -64,13 +58,13 @@ $background-color: base.$color-bg !default;
64
58
  display: flex;
65
59
  flex-direction: row;
66
60
  align-items: center;
67
- padding-left: 3rem;
68
61
  justify-content: flex-end;
69
- margin-right: 1rem;
62
+ padding-left: var(--space-xxl);
63
+ margin-right: var(--space-xl);
70
64
  }
71
65
 
72
66
  .SaveAsDialog__input {
73
- margin-left: 1rem;
67
+ margin-left: var(--space-xl);
74
68
  width: 80%;
75
69
  }
76
70
 
@@ -79,27 +73,26 @@ $background-color: base.$color-bg !default;
79
73
  }
80
74
 
81
75
  .Dialog__FileList {
76
+ overflow: auto scroll;
82
77
  position: relative;
83
78
  display: flex;
84
79
  flex-wrap: wrap;
85
80
  flex-grow: 1;
86
81
  align-content: flex-start;
87
82
  max-height: 20rem;
88
- overflow: auto;
89
- overflow-y: scroll;
90
83
  }
91
84
 
92
85
  .Dialog__FileEntry {
93
86
  text-align: center;
94
- margin: 1rem;
87
+ margin: var(--space-xl);
95
88
  }
96
89
 
97
90
  .Dialog__FileIcon {
98
- display: inline-block;
99
- margin: 0 0 1rem 0;
91
+ cursor: default;
100
92
  position: relative;
93
+ display: inline-block;
94
+ text-align: center;
101
95
  width: 6vh;
102
96
  height: auto;
103
- text-align: center;
104
- cursor: default;
97
+ margin: 0 0 var(--space-xl) 0;
105
98
  }
@@ -1,19 +1,14 @@
1
- $background-dimness: 0.75 !default;
1
+ $background-dimness: 0 !default;
2
2
 
3
3
  .Dimmer {
4
- // Align everything in the middle.
5
- // A fat middle finger for anything less than IE11.
6
4
  display: flex;
7
5
  justify-content: center;
8
6
  align-items: center;
9
7
  // Fill positioned parent
10
8
  position: absolute;
11
- top: 0;
12
- bottom: 0;
13
- left: 0;
14
- right: 0;
9
+ inset: 0;
15
10
  // Dim everything around it
16
- background-color: rgba(0, 0, 0, $background-dimness);
11
+ background-color: var(--dimmer-background);
17
12
  // Should be enough to cover everything except tooltips
18
13
  z-index: 100;
19
14
  }
@@ -1,22 +1,21 @@
1
1
  @use "../base";
2
2
 
3
- $color: rgba(255, 255, 255, 0.1) !default;
4
- $thickness: base.em(2px) !default;
5
- $spacing: 0.5em;
3
+ $thickness: 0 !default;
4
+ $spacing: 0 !default;
6
5
 
7
6
  .Divider--horizontal {
8
- margin: $spacing 0;
7
+ margin: var(--space-m) 0;
9
8
 
10
9
  &:not(.Divider--hidden) {
11
- border-top: $thickness solid $color;
10
+ border-top: var(--divider-border);
12
11
  }
13
12
  }
14
13
 
15
14
  .Divider--vertical {
16
15
  height: 100%;
17
- margin: 0 $spacing;
16
+ margin: 0 var(--space-m);
18
17
 
19
18
  &:not(.Divider--hidden) {
20
- border-left: $thickness solid $color;
19
+ border-left: var(--divider-border);
21
20
  }
22
21
  }