@deephaven/components 0.55.0 → 0.55.1-alpha-theming-bootstrap.77
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.
- package/css/BaseStyleSheet.css +878 -3622
- package/css/BaseStyleSheet.css.map +1 -1
- package/dist/AutoCompleteInput.css +4 -4
- package/dist/AutoCompleteInput.css.map +1 -1
- package/dist/Button.d.ts.map +1 -1
- package/dist/Button.js +26 -2
- package/dist/Button.js.map +1 -1
- package/dist/ComboBox.css +26 -6
- package/dist/ComboBox.css.map +1 -1
- package/dist/ComboBox.d.ts.map +1 -1
- package/dist/ComboBox.js +2 -4
- package/dist/ComboBox.js.map +1 -1
- package/dist/CustomTimeSelect.css +23 -10
- package/dist/CustomTimeSelect.css.map +1 -1
- package/dist/CustomTimeSelect.d.ts.map +1 -1
- package/dist/CustomTimeSelect.js +2 -5
- package/dist/CustomTimeSelect.js.map +1 -1
- package/dist/DraggableItemList.css +14 -14
- package/dist/DraggableItemList.css.map +1 -1
- package/dist/HierarchicalCheckboxMenu.css +20 -6
- package/dist/HierarchicalCheckboxMenu.css.map +1 -1
- package/dist/HierarchicalCheckboxMenu.d.ts.map +1 -1
- package/dist/HierarchicalCheckboxMenu.js +2 -4
- package/dist/HierarchicalCheckboxMenu.js.map +1 -1
- package/dist/ItemList.css +1 -1
- package/dist/ItemList.css.map +1 -1
- package/dist/ItemListItem.css +7 -7
- package/dist/ItemListItem.css.map +1 -1
- package/dist/LoadingOverlay.css +1 -1
- package/dist/LoadingOverlay.css.map +1 -1
- package/dist/LoadingSpinner.css +2 -8
- package/dist/LoadingSpinner.css.map +1 -1
- package/dist/MaskedInput.css.map +1 -1
- package/dist/RandomAreaPlotAnimation.d.ts +1 -1
- package/dist/RandomAreaPlotAnimation.d.ts.map +1 -1
- package/dist/RandomAreaPlotAnimation.js +32 -13
- package/dist/RandomAreaPlotAnimation.js.map +1 -1
- package/dist/SearchInput.css +28 -12
- package/dist/SearchInput.css.map +1 -1
- package/dist/SearchInput.d.ts +10 -1
- package/dist/SearchInput.d.ts.map +1 -1
- package/dist/SearchInput.js +73 -7
- package/dist/SearchInput.js.map +1 -1
- package/dist/SelectValueList.css +3 -3
- package/dist/SelectValueList.css.map +1 -1
- package/dist/SocketedButton.css +33 -33
- package/dist/SocketedButton.css.map +1 -1
- package/dist/ThemeExport.module.css +33 -33
- package/dist/ThemeExport.module.css.map +1 -1
- package/dist/TimeSlider.css +10 -10
- package/dist/TimeSlider.css.map +1 -1
- package/dist/TimeSlider.module.css +10 -10
- package/dist/TimeSlider.module.css.map +1 -1
- package/dist/ToastNotification.css +4 -4
- package/dist/ToastNotification.css.map +1 -1
- package/dist/UISwitch.css +19 -19
- package/dist/UISwitch.css.map +1 -1
- package/dist/ValidateLabelInput.css +1 -1
- package/dist/ValidateLabelInput.css.map +1 -1
- package/dist/context-actions/ContextActions.css +19 -19
- package/dist/context-actions/ContextActions.css.map +1 -1
- package/dist/menu-actions/DropdownMenu.css +2 -2
- package/dist/menu-actions/DropdownMenu.css.map +1 -1
- package/dist/navigation/MenuItem.css +9 -9
- package/dist/navigation/MenuItem.css.map +1 -1
- package/dist/navigation/Page.css.map +1 -1
- package/dist/navigation/Stack.css +2 -2
- package/dist/navigation/Stack.css.map +1 -1
- package/dist/popper/Popper.css +4 -4
- package/dist/popper/Popper.css.map +1 -1
- package/dist/shortcuts/GlobalShortcuts.d.ts +2 -0
- package/dist/shortcuts/GlobalShortcuts.d.ts.map +1 -1
- package/dist/shortcuts/GlobalShortcuts.js +14 -0
- package/dist/shortcuts/GlobalShortcuts.js.map +1 -1
- package/dist/theme/SpectrumThemeProvider.d.ts.map +1 -1
- package/dist/theme/SpectrumThemeProvider.js +1 -0
- package/dist/theme/SpectrumThemeProvider.js.map +1 -1
- package/dist/theme/ThemeModel.d.ts +23 -5
- package/dist/theme/ThemeModel.d.ts.map +1 -1
- package/dist/theme/ThemeModel.js +67 -3
- package/dist/theme/ThemeModel.js.map +1 -1
- package/dist/theme/ThemePicker.d.ts +4 -0
- package/dist/theme/ThemePicker.d.ts.map +1 -0
- package/dist/theme/ThemePicker.js +25 -0
- package/dist/theme/ThemePicker.js.map +1 -0
- package/dist/theme/ThemeProvider.d.ts +3 -1
- package/dist/theme/ThemeProvider.d.ts.map +1 -1
- package/dist/theme/ThemeProvider.js +16 -9
- package/dist/theme/ThemeProvider.js.map +1 -1
- package/dist/theme/ThemeUtils.d.ts +46 -8
- package/dist/theme/ThemeUtils.d.ts.map +1 -1
- package/dist/theme/ThemeUtils.js +104 -36
- package/dist/theme/ThemeUtils.js.map +1 -1
- package/dist/theme/index.d.ts +1 -0
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/index.js +1 -0
- package/dist/theme/index.js.map +1 -1
- package/dist/theme/theme-dark/theme-dark-components.css +1 -1
- package/dist/theme/theme-dark/theme-dark-components.css.map +1 -1
- package/dist/theme/theme-dark/theme-dark-palette.css +1 -1
- package/dist/theme/theme-dark/theme-dark-palette.css.map +1 -1
- package/dist/theme/theme-dark/theme-dark-semantic-chart.css +1 -1
- package/dist/theme/theme-dark/theme-dark-semantic-chart.css.map +1 -1
- package/dist/theme/theme-dark/theme-dark-semantic-editor.css +1 -1
- package/dist/theme/theme-dark/theme-dark-semantic-editor.css.map +1 -1
- package/dist/theme/theme-dark/theme-dark-semantic-grid.css +1 -1
- package/dist/theme/theme-dark/theme-dark-semantic-grid.css.map +1 -1
- package/dist/theme/theme-dark/theme-dark-semantic.css +1 -1
- package/dist/theme/theme-dark/theme-dark-semantic.css.map +1 -1
- package/dist/theme/theme-light/theme-light-palette.css +1 -1
- package/dist/theme/theme-light/theme-light-palette.css.map +1 -1
- package/dist/theme/theme-spectrum/index.d.ts +1 -0
- package/dist/theme/theme-spectrum/index.d.ts.map +1 -1
- package/dist/theme/theme-spectrum/index.js +3 -3
- package/dist/theme/theme-spectrum/index.js.map +1 -1
- package/dist/theme/theme-spectrum/theme-spectrum-alias.module.css +1 -1
- package/dist/theme/theme-spectrum/theme-spectrum-alias.module.css.map +1 -1
- package/dist/theme/theme-spectrum/theme-spectrum-overrides.css +1 -0
- package/dist/theme/theme-spectrum/theme-spectrum-overrides.css.map +1 -0
- package/dist/theme/theme-svg.css +1 -0
- package/dist/theme/theme-svg.css.map +1 -0
- package/package.json +7 -7
- package/scss/BaseStyleSheet.scss +169 -82
- package/scss/bootstrap_imports.scss +49 -0
- package/scss/bootstrap_override_functions.scss +31 -0
- package/scss/bootstrap_override_mixins_background_variant.scss +16 -0
- package/scss/bootstrap_override_mixins_buttons.scss +123 -0
- package/scss/bootstrap_override_mixins_forms.scss +231 -0
- package/scss/bootstrap_override_mixins_text_emphasis.scss +21 -0
- package/scss/bootstrap_overrides.scss +144 -101
- package/scss/new_variables.scss +18 -0
- package/scss/util.scss +27 -0
- package/dist/theme/theme-spectrum/theme-spectrum-overrides.module.css +0 -1
- package/dist/theme/theme-spectrum/theme-spectrum-overrides.module.css.map +0 -1
|
@@ -1,50 +1,88 @@
|
|
|
1
1
|
// Styling overrides for bootstrap
|
|
2
|
+
@use 'sass:map';
|
|
2
3
|
|
|
3
4
|
// Override / set color variables
|
|
4
|
-
$red:
|
|
5
|
-
$orange:
|
|
6
|
-
$yellow:
|
|
7
|
-
$green:
|
|
8
|
-
$blue:
|
|
9
|
-
$purple:
|
|
5
|
+
$red: var(--dh-color-visual-red);
|
|
6
|
+
$orange: var(--dh-color-visual-orange);
|
|
7
|
+
$yellow: var(--dh-color-visual-yellow);
|
|
8
|
+
$green: var(--dh-color-visual-green);
|
|
9
|
+
$blue: var(--dh-color-visual-blue);
|
|
10
|
+
$purple: var(--dh-color-visual-purple);
|
|
11
|
+
|
|
12
|
+
//Define our Gray scale
|
|
13
|
+
$gray-100: var(--dh-color-gray-900, #fcfcfa);
|
|
14
|
+
$gray-200: var(--dh-color-gray-800);
|
|
15
|
+
$gray-300: var(--dh-color-gray-700);
|
|
16
|
+
$gray-400: var(--dh-color-gray-600);
|
|
17
|
+
$gray-500: var(--dh-color-gray-500);
|
|
18
|
+
// intentional duplicate, scale doesn't line up otherwise
|
|
19
|
+
// as we have gray-850 and spectrum doesn't and it is needed
|
|
20
|
+
$gray-600: var(--dh-color-gray-500);
|
|
21
|
+
$gray-700: var(--dh-color-gray-400);
|
|
22
|
+
$gray-800: var(--dh-color-gray-300);
|
|
23
|
+
$gray-850: var(--dh-color-gray-200);
|
|
24
|
+
$gray-900: var(--dh-color-gray-75);
|
|
25
|
+
$black: var(--dh-color-black, #1a171a);
|
|
26
|
+
$white: var(--dh-color-white, #f0f0ee);
|
|
10
27
|
|
|
11
28
|
//Define some UI colors
|
|
12
|
-
$interfacegray: #2d2a2e;
|
|
13
|
-
$interfaceblue:
|
|
14
|
-
$interfacewhite:
|
|
15
|
-
$interfaceblack:
|
|
29
|
+
$interfacegray: var(--dh-color-content-bg, #2d2a2e);
|
|
30
|
+
$interfaceblue: var(--dh-color-accent-bg);
|
|
31
|
+
$interfacewhite: $white;
|
|
32
|
+
$interfaceblack: $black;
|
|
33
|
+
$content-bg: var(--dh-color-content-bg, #2d2a2e);
|
|
34
|
+
$background: var(--dh-color-bg);
|
|
35
|
+
$foreground: var(--dh-color-fg);
|
|
16
36
|
|
|
17
|
-
//
|
|
18
|
-
$
|
|
19
|
-
$gray-
|
|
20
|
-
|
|
21
|
-
$
|
|
22
|
-
$
|
|
23
|
-
|
|
24
|
-
$
|
|
25
|
-
$
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
$
|
|
29
|
-
$
|
|
30
|
-
|
|
31
|
-
$
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
$
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
'
|
|
39
|
-
'
|
|
40
|
-
'
|
|
41
|
-
'
|
|
42
|
-
'
|
|
43
|
-
'
|
|
44
|
-
'
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
$colors
|
|
37
|
+
// Extend default Bootstrap $grays map
|
|
38
|
+
$grays-custom: (
|
|
39
|
+
'850': $gray-850,
|
|
40
|
+
);
|
|
41
|
+
$grays: () !default;
|
|
42
|
+
$grays: map-merge($grays, $grays-custom);
|
|
43
|
+
|
|
44
|
+
// Extend default Bootstrap $colors map
|
|
45
|
+
$colors-custom: (
|
|
46
|
+
'black': $black,
|
|
47
|
+
);
|
|
48
|
+
$colors: () !default;
|
|
49
|
+
$colors: map-merge($colors, $colors-custom);
|
|
50
|
+
|
|
51
|
+
// Override default Bootstrap $theme-colors map by mapping each key to itself.
|
|
52
|
+
// These will then be re-mapped inside of `button-outline-variant` and
|
|
53
|
+
// `button-outline-variant` mixins in `bootstrap_override_mixins_buttons.scss`
|
|
54
|
+
$theme-colors-self-map: ();
|
|
55
|
+
@each $key
|
|
56
|
+
in (
|
|
57
|
+
'primary',
|
|
58
|
+
'secondary',
|
|
59
|
+
'success',
|
|
60
|
+
'info',
|
|
61
|
+
'warning',
|
|
62
|
+
'danger',
|
|
63
|
+
'light',
|
|
64
|
+
'dark'
|
|
65
|
+
)
|
|
66
|
+
{
|
|
67
|
+
$theme-colors-self-map: map.set($theme-colors-self-map, $key, $key);
|
|
68
|
+
}
|
|
69
|
+
$theme-colors: () !default;
|
|
70
|
+
$theme-colors: map-merge($theme-colors, $theme-colors-self-map);
|
|
71
|
+
|
|
72
|
+
// Used by bootstrap_override_mixins_buttons.scss to map Bootstrap colors to
|
|
73
|
+
// DH semantic colors
|
|
74
|
+
$bootstrap-dh-semantic-map: (
|
|
75
|
+
'primary': 'accent',
|
|
76
|
+
'secondary': 'neutral',
|
|
77
|
+
'success': 'positive',
|
|
78
|
+
'info': 'info',
|
|
79
|
+
'warning': 'notice',
|
|
80
|
+
'danger': 'negative',
|
|
81
|
+
// We shouldn't be using these, but mapping so they work with our custom
|
|
82
|
+
// `color-yiq` mixin. If we find a way to remove $light + $dark that are
|
|
83
|
+
// defined in Bootstrap _variables.scss, we should remove these
|
|
84
|
+
'light': 'neutral',
|
|
85
|
+
'dark': 'neutral',
|
|
48
86
|
);
|
|
49
87
|
|
|
50
88
|
//Set default colors
|
|
@@ -52,42 +90,36 @@ $body-bg: $black;
|
|
|
52
90
|
$body-color: $interfacewhite;
|
|
53
91
|
|
|
54
92
|
// Set brand colors
|
|
55
|
-
$primary:
|
|
56
|
-
$primary-hover:
|
|
57
|
-
$primary-dark:
|
|
58
|
-
$primary-light:
|
|
59
|
-
$secondary:
|
|
60
|
-
$secondary-hover:
|
|
93
|
+
$primary: var(--dh-color-accent-bg);
|
|
94
|
+
$primary-hover: var(--dh-color-accent-hover-bg);
|
|
95
|
+
$primary-dark: var(--dh-color-accent-down-bg);
|
|
96
|
+
$primary-light: var(--dh-color-accent-1100);
|
|
97
|
+
$secondary: var(--dh-color-neutral-bg);
|
|
98
|
+
$secondary-hover: var(--dh-color-neutral-hover-bg);
|
|
61
99
|
$success: $green;
|
|
62
100
|
$info: $yellow;
|
|
63
101
|
$warning: $orange;
|
|
64
|
-
$danger:
|
|
65
|
-
$danger-hover:
|
|
66
|
-
$light
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
$
|
|
102
|
+
$danger: var(--dh-color-negative-bg);
|
|
103
|
+
$danger-hover: var(--dh-color-negative-hover-bg);
|
|
104
|
+
// We really don't want to use $light or $dark variables, but Bootstrap defines
|
|
105
|
+
// them in _variables.scss. Explicitly setting them to ensure we are in control
|
|
106
|
+
// of their values. If we can find a way to remove them, we should
|
|
107
|
+
$light: var(--dh-color-gray-light);
|
|
108
|
+
$dark: var(--dh-color-gray-dark);
|
|
109
|
+
// Bootstrap doesn't define $mid, and we want to move away from this particular
|
|
110
|
+
// semantic. Should be deleted by #1635
|
|
111
|
+
$mid: var(--dh-color-gray-mid);
|
|
70
112
|
|
|
71
|
-
$
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
'warning': $warning,
|
|
82
|
-
'danger': $danger,
|
|
83
|
-
'light': $light,
|
|
84
|
-
'dark': $dark,
|
|
85
|
-
'mid': $mid,
|
|
86
|
-
'content-bg': $interfacegray,
|
|
87
|
-
'background': $interfaceblack,
|
|
88
|
-
'foreground': $interfacewhite,
|
|
89
|
-
),
|
|
90
|
-
$theme-colors
|
|
113
|
+
$semantic-colors: (
|
|
114
|
+
'primary-hover': $primary-hover,
|
|
115
|
+
'primary-light': $primary-light,
|
|
116
|
+
'primary-dark': $primary-dark,
|
|
117
|
+
'mid': $mid,
|
|
118
|
+
'content-bg': $interfacegray,
|
|
119
|
+
'background': $interfaceblack,
|
|
120
|
+
'foreground': $interfacewhite,
|
|
121
|
+
'secondary-hover': $secondary-hover,
|
|
122
|
+
'danger-hover': $danger-hover,
|
|
91
123
|
);
|
|
92
124
|
|
|
93
125
|
$component-active-bg: $primary;
|
|
@@ -114,21 +146,15 @@ $headings-font-weight: 400;
|
|
|
114
146
|
$text-muted: $gray-400;
|
|
115
147
|
|
|
116
148
|
//Style Selection highlight color
|
|
117
|
-
|
|
118
|
-
//by setting rgba with 0.99 it tricks browser into thinking there is alpha applied
|
|
119
|
-
$text-select-color: $primary-hover;
|
|
120
|
-
$text-select-color-editor: lighten(
|
|
121
|
-
$gray-700,
|
|
122
|
-
15%
|
|
123
|
-
); //we lighten it abit to account for that 0.01 loss, and because it needs some anyways.
|
|
149
|
+
$text-select-color: var(--dh-color-text-highlight);
|
|
124
150
|
|
|
125
151
|
//Grid variables, same value as default just making easily accessible
|
|
126
152
|
$grid-gutter-width: 30px;
|
|
127
153
|
|
|
128
154
|
//Visual Overrides
|
|
129
155
|
$border-radius: 4px;
|
|
130
|
-
$box-shadow: 0 0.1rem 1rem
|
|
131
|
-
$box-shadow-900: 0 0.1rem 1rem
|
|
156
|
+
$box-shadow: 0 0.1rem 1rem hsla(var(--dh-color-black-hsl), 0.45); //because our UI is so dark, we need darker default shadows
|
|
157
|
+
$box-shadow-900: 0 0.1rem 1rem hsla(var(--dh-color-true-black-hsl), 0.45); //darkest shadow for $black popups over $black UI
|
|
132
158
|
|
|
133
159
|
//Override Btn
|
|
134
160
|
$btn-border-radius: 4rem;
|
|
@@ -141,26 +167,31 @@ $btn-transition:
|
|
|
141
167
|
$btn-border-width: 2px;
|
|
142
168
|
|
|
143
169
|
//Override Inputs
|
|
144
|
-
$input-bg:
|
|
145
|
-
$input-disabled-bg:
|
|
146
|
-
$input-color:
|
|
147
|
-
$input-border-color:
|
|
148
|
-
$input-placeholder-color:
|
|
149
|
-
$input-focus-border-color:
|
|
170
|
+
$input-bg: var(--dh-color-input-bg);
|
|
171
|
+
$input-disabled-bg: var(--dh-color-input-disabled-bg);
|
|
172
|
+
$input-color: var(--dh-color-input-fg);
|
|
173
|
+
$input-border-color: var(--dh-color-input-border);
|
|
174
|
+
$input-placeholder-color: var(--dh-color-input-placeholder);
|
|
175
|
+
$input-focus-border-color: var(--dh-color-input-focus-border);
|
|
150
176
|
|
|
151
177
|
$input-btn-focus-width: 0.2rem;
|
|
152
|
-
$input-btn-focus-color:
|
|
178
|
+
$input-btn-focus-color: hsla(var(--dh-color-accent-hsl), 0.35);
|
|
153
179
|
$input-btn-focus-box-shadow: 0 0 0 $input-btn-focus-width $input-btn-focus-color;
|
|
154
180
|
|
|
155
181
|
//checkbox
|
|
156
182
|
$custom-control-indicator-bg: $gray-600;
|
|
183
|
+
$custom-control-indicator-active-bg: var(--dh-color-accent-1100);
|
|
157
184
|
$custom-control-indicator-bg-size: 75% 75%;
|
|
158
185
|
$custom-control-indicator-disabled-bg: $gray-800;
|
|
159
186
|
$custom-control-indicator-checked-disabled-bg: $gray-800;
|
|
160
187
|
$custom-control-label-disabled-color: $gray-400;
|
|
161
188
|
|
|
162
|
-
//
|
|
163
|
-
|
|
189
|
+
// The $custom-select-indicator variable is used by Bootstrap to provide the
|
|
190
|
+
// icon for the select dropdown. Inline svgs can't use CSS variables, so we hard
|
|
191
|
+
// code the color to #929192 (the default value of --dh-color-gray-600). PR #1651
|
|
192
|
+
// overrides this icon altogether for known dropdowns, so technically we may not
|
|
193
|
+
// need this, but it's here in case there are any remaining instances.
|
|
194
|
+
$custom-select-indicator-color: #929192;
|
|
164
195
|
$custom-select-bg-size: 16px 16px;
|
|
165
196
|
//dhSort icon encoded
|
|
166
197
|
$custom-select-indicator: str-replace(
|
|
@@ -169,7 +200,7 @@ $custom-select-indicator: str-replace(
|
|
|
169
200
|
'%23'
|
|
170
201
|
);
|
|
171
202
|
$custom-select-focus-box-shadow: $input-btn-focus-box-shadow;
|
|
172
|
-
$custom-select-disabled-color:
|
|
203
|
+
$custom-select-disabled-color: $gray-500;
|
|
173
204
|
$custom-select-disabled-bg: $gray-800;
|
|
174
205
|
|
|
175
206
|
//modal
|
|
@@ -178,15 +209,15 @@ $modal-content-border-width: 0;
|
|
|
178
209
|
$modal-md: 550px;
|
|
179
210
|
|
|
180
211
|
// Toast notification
|
|
181
|
-
$toast-bg:
|
|
182
|
-
$toast-color:
|
|
183
|
-
$toast-error-bg:
|
|
184
|
-
$toast-error-color:
|
|
212
|
+
$toast-bg: var(--dh-color-accent-100);
|
|
213
|
+
$toast-color: var(--dh-color-text);
|
|
214
|
+
$toast-error-bg: var(--dh-color-negative-bg);
|
|
215
|
+
$toast-error-color: var(--dh-color-text);
|
|
185
216
|
|
|
186
217
|
//tooltips
|
|
187
|
-
$tooltip-bg:
|
|
188
|
-
$tooltip-color:
|
|
189
|
-
$tooltip-box-shadow: 0 0.1rem 1.5rem 0.1rem
|
|
218
|
+
$tooltip-bg: var(--dh-color-tooltip-bg);
|
|
219
|
+
$tooltip-color: var(--dh-color-tooltip-fg);
|
|
220
|
+
$tooltip-box-shadow: 0 0.1rem 1.5rem 0.1rem var(--dh-color-tooltip-box-shadow);
|
|
190
221
|
|
|
191
222
|
//drowdowns
|
|
192
223
|
$dropdown-bg: $gray-600;
|
|
@@ -199,7 +230,7 @@ $dropdown-divider-bg: $gray-700;
|
|
|
199
230
|
$contextmenu-bg: $gray-600;
|
|
200
231
|
$contextmenu-color: $foreground;
|
|
201
232
|
$contextmenu-disabled-color: $text-muted;
|
|
202
|
-
$contextmenu-keyboard-selected-bg:
|
|
233
|
+
$contextmenu-keyboard-selected-bg: hsla(var(--dh-color-accent-hsl), 0.5);
|
|
203
234
|
$contextmenu-selected-bg: $primary;
|
|
204
235
|
$contextmenu-selected-color: $foreground;
|
|
205
236
|
|
|
@@ -223,9 +254,21 @@ $transition-long: 0.3s;
|
|
|
223
254
|
$transition-slow: 0.6s;
|
|
224
255
|
|
|
225
256
|
//form-validation icon, uses vsWarning icon encoded here as svg
|
|
226
|
-
$form-feedback-icon-invalid-color:
|
|
257
|
+
$form-feedback-icon-invalid-color: $danger;
|
|
227
258
|
$form-feedback-icon-invalid: str-replace(
|
|
228
259
|
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cg fill='none'%3E%3Cg fill='#{$form-feedback-icon-invalid-color}'%3E%3Cpath d='M7.56 1h.88l6.54 12.26-.44.74H1.44L1 13.26 7.56 1zM8 2.28 2.28 13H13.7L8 2.28zM8.625 12v-1h-1.25v1h1.25zm-1.25-2V6h1.25v4h-1.25z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E "),
|
|
229
260
|
'#',
|
|
230
261
|
'%23'
|
|
231
262
|
);
|
|
263
|
+
|
|
264
|
+
// This section of variables is not consumed directly by DH, but they need to be
|
|
265
|
+
// defined for sass to compile _variables
|
|
266
|
+
$table-dark-bg: $gray-800;
|
|
267
|
+
$table-dark-accent-bg: var(--dh-color-highlight-hover);
|
|
268
|
+
$table-dark-hover-bg: var(--dh-color-highlight-active);
|
|
269
|
+
$table-dark-border-color: $gray-700;
|
|
270
|
+
$popover-bg: var(--dh-color-tooltip-bg);
|
|
271
|
+
$popover-border-color: var(--dh-color-overlay-modal-bg);
|
|
272
|
+
$popover-header-bg: #000;
|
|
273
|
+
$popover-arrow-outer-color: var(--dh-color-dropshadow);
|
|
274
|
+
$custom-range-thumb-active-bg: var(--dh-color-accent-1100);
|
package/scss/new_variables.scss
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
|
|
1
3
|
//Set of spacer variables from the spacer map
|
|
2
4
|
$spacer-0: map-get($spacers, 0); //0
|
|
3
5
|
$spacer-1: map-get($spacers, 1);
|
|
@@ -49,6 +51,22 @@ $ant-thickness: 1px;
|
|
|
49
51
|
}
|
|
50
52
|
}
|
|
51
53
|
|
|
54
|
+
@function hsla-opacity($semantic-name, $i: 100) {
|
|
55
|
+
@return hsla(var(--dh-color-#{$semantic-name}-hsl), math.div($i, 100));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@function accent-opacity($i: 100) {
|
|
59
|
+
@return hsla-opacity('accent', $i);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@function background-opacity($i: 100) {
|
|
63
|
+
@return hsla-opacity('bg', $i);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@function foreground-opacity($i: 100) {
|
|
67
|
+
@return hsla-opacity('fg', $i);
|
|
68
|
+
}
|
|
69
|
+
|
|
52
70
|
$focus-bg-transparency: 0.12;
|
|
53
71
|
$hover-bg-transparency: 0.14;
|
|
54
72
|
$active-bg-transparency: 0.28;
|
package/scss/util.scss
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
// Setup a mask-image for an inline svg
|
|
2
|
+
@mixin icon-image-mask($mask-image, $size: 16px) {
|
|
3
|
+
background-size: $size;
|
|
4
|
+
background-color: var(--dh-color-fg);
|
|
5
|
+
mask-image: $mask-image;
|
|
6
|
+
mask-position: center center;
|
|
7
|
+
mask-repeat: no-repeat;
|
|
8
|
+
mask-size: $size;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// Caret icon for pickers, dropdowns, select, etc.
|
|
12
|
+
@mixin caret-icon() {
|
|
13
|
+
$width: 10px;
|
|
14
|
+
$height: 6px;
|
|
15
|
+
@include icon-image-mask(var(--dh-svg-icon-selector-caret), $width $height);
|
|
16
|
+
|
|
17
|
+
background-color: var(--dh-color-selector-fg);
|
|
18
|
+
width: $width;
|
|
19
|
+
height: $height;
|
|
20
|
+
}
|
|
21
|
+
|
|
1
22
|
/// Utilty for increasing specificity by repeating a given selector n number of
|
|
2
23
|
/// times.
|
|
3
24
|
///
|
|
@@ -26,3 +47,9 @@
|
|
|
26
47
|
|
|
27
48
|
@return $result;
|
|
28
49
|
}
|
|
50
|
+
|
|
51
|
+
// Linear gradient with same start and end color. Useful for certain scenarios
|
|
52
|
+
// where we need a solid background image layer.
|
|
53
|
+
@function solid-gradient($color) {
|
|
54
|
+
@return linear-gradient(0deg, $color, $color);
|
|
55
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[class^=spectrum]{font-family:var(--font-family-sans-serif) !important}/*# sourceMappingURL=theme-spectrum-overrides.module.css.map */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../../src/theme/theme-spectrum/theme-spectrum-overrides.module.css"],"names":[],"mappings":"AAAA,kBAGE","file":"theme-spectrum-overrides.module.css","sourcesContent":["[class^='spectrum'] {\n /* --font-family-sans-serif is defined in Bootstrap's _root.scss. We want\n Spectrum to use the same default font-family */\n font-family: var(--font-family-sans-serif) !important;\n}\n"]}
|