-
Notifications
You must be signed in to change notification settings - Fork 77
/
Copy pathglobal.scss
45 lines (34 loc) · 1.17 KB
/
global.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
@import "@esri/calcite-base/dist/index";
@import "@esri/calcite-design-tokens/dist/scss/index";
@import "@esri/calcite-design-tokens/dist/scss/core";
/* CSS vars (@include in global) */
@import "type";
// Add Calcite Design Tokens as CSS Custom Props
@import url("@esri/calcite-design-tokens/dist/css/index.css");
// Include legacy tokens for backwards compatibility
@import "./legacy";
:root {
@extend %type-vars;
@include floating-ui-base();
@include animation-base();
--calcite-popover-z-index: var(--calcite-z-index-popup);
--calcite-border-radius: var(--calcite-border-radius-round, 4px);
--calcite-border-radius-base: 0;
--calcite-offset-invert-focus: 0; // should be 0 or 1
--calcite-panel-width-multiplier: 1;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-family: var(--calcite-font-family);
}
.calcite-mode-auto {
@media (prefers-color-scheme: dark) {
@include calcite-mode-dark();
}
@media (prefers-color-scheme: light) {
@include calcite-mode-light();
}
}
@include animation-reduced-motion();
@include animation-helper-classes();
@include sortable-helper-classes();