@teseor/css 1.15.7 → 2.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.
- package/dist/compiled.css +1 -1
- package/dist/index.css +51 -52
- package/package.json +1 -1
- package/src/base/docs.html +1 -1
- package/src/base/root.scss +1 -1
- package/src/base/typography/typography.scss +6 -6
- package/src/components/actions/button/api.json +1 -1
- package/src/components/actions/button/index.scss +1 -1
- package/src/components/content/divider/docs.html +1 -1
- package/src/components/content/scroll-area/docs.html +2 -2
- package/src/components/data-display/avatar/index.scss +1 -1
- package/src/components/data-display/badge/api.json +1 -1
- package/src/components/data-display/badge/index.scss +1 -1
- package/src/components/data-display/data-list/index.scss +1 -1
- package/src/components/data-display/stat/api.json +3 -3
- package/src/components/data-display/stat/index.scss +5 -5
- package/src/components/data-display/status/docs.html +2 -2
- package/src/components/data-display/table/index.scss +1 -1
- package/src/components/data-display/tag/index.scss +1 -1
- package/src/components/disclosure/disclosure/index.scss +1 -1
- package/src/components/feedback/alert/index.scss +1 -1
- package/src/components/feedback/skeleton/docs.html +2 -2
- package/src/components/feedback/toast/docs.html +12 -12
- package/src/components/feedback/toast/index.scss +2 -2
- package/src/components/forms/checkbox/docs.html +1 -1
- package/src/components/forms/checkbox-group/api.json +1 -1
- package/src/components/forms/checkbox-group/index.scss +2 -2
- package/src/components/forms/fieldset/api.json +1 -1
- package/src/components/forms/fieldset/index.scss +2 -2
- package/src/components/forms/form-error/index.scss +1 -1
- package/src/components/forms/form-helper/index.scss +1 -1
- package/src/components/forms/label/index.scss +3 -3
- package/src/components/forms/radio/docs.html +5 -5
- package/src/components/forms/radio-group/api.json +1 -1
- package/src/components/forms/radio-group/index.scss +2 -2
- package/src/components/forms/toggle/docs.html +3 -3
- package/src/components/navigation/dropdown-menu/api.json +1 -1
- package/src/components/navigation/dropdown-menu/docs.html +1 -1
- package/src/components/navigation/dropdown-menu/index.scss +1 -1
- package/src/components/navigation/menu/index.scss +2 -2
- package/src/components/navigation/nav/api.json +1 -1
- package/src/components/navigation/nav/index.scss +1 -1
- package/src/components/navigation/tabs/index.scss +1 -1
- package/src/components/overlays/dialog/docs.html +6 -6
- package/src/components/overlays/dialog/index.scss +1 -1
- package/src/components/overlays/drawer/docs.html +17 -17
- package/src/components/overlays/drawer/index.scss +2 -2
- package/src/components/overlays/modal/api.json +1 -1
- package/src/components/overlays/modal/docs.html +12 -12
- package/src/components/overlays/modal/index.scss +1 -1
- package/src/components/overlays/overlay/api.json +1 -1
- package/src/components/overlays/overlay/docs.html +8 -8
- package/src/components/overlays/overlay/index.scss +1 -1
- package/src/components/overlays/popover/api.json +1 -1
- package/src/components/overlays/popover/docs.html +6 -6
- package/src/components/overlays/popover/index.scss +2 -2
- package/src/components/overlays/tooltip/api.json +1 -1
- package/src/components/overlays/tooltip/docs.html +10 -10
- package/src/components/overlays/tooltip/index.scss +1 -1
- package/src/components/typography/blockquote/api.json +1 -1
- package/src/components/typography/blockquote/index.scss +2 -2
- package/src/components/typography/code/index.scss +1 -1
- package/src/components/typography/code-block/api.json +1 -1
- package/src/components/typography/code-block/index.scss +1 -1
- package/src/components/typography/heading/api.json +9 -9
- package/src/components/typography/heading/index.scss +9 -9
- package/src/components/typography/list/api.json +1 -1
- package/src/components/typography/list/index.scss +1 -1
- package/src/config/guides/accessibility.docs.html +1 -1
- package/src/config/guides/getting-started.docs.html +1 -1
- package/src/config/guides/theming.docs.html +53 -20
- package/src/config/guides/token-architecture.docs.html +87 -0
- package/src/config/tokens/_variables.scss +60 -53
- package/src/config/tokens/colors/index.scss +18 -0
- package/src/config/tokens/docs.html +10 -21
- package/src/config/tokens/index.scss +0 -1
- package/src/config/tokens/radius.scss +5 -4
- package/src/config/tokens/shadows.scss +4 -3
- package/src/config/tokens/typography.scss +47 -47
- package/src/config/tokens/zindex.scss +10 -10
- package/src/debug/docs.html +3 -3
- package/src/debug/index.scss +7 -8
- package/src/layout/aspect-ratio/docs.html +7 -7
- package/src/layout/center/docs.html +3 -3
- package/src/layout/footer/api.json +1 -1
- package/src/layout/footer/index.scss +3 -3
- package/src/layout/main/docs.html +3 -3
- package/src/layout/nav-rail/api.json +1 -1
- package/src/layout/nav-rail/docs.html +1 -1
- package/src/layout/nav-rail/index.scss +1 -1
- package/src/layout/page-header/index.scss +1 -1
- package/src/layout/sidebar/docs.html +3 -3
- package/src/layout/sidebar/index.scss +1 -1
- package/src/layout/sidebar-nav/api.json +2 -2
- package/src/layout/sidebar-nav/docs.html +6 -6
- package/src/layout/sidebar-nav/index.scss +4 -4
- package/src/layout/topbar/api.json +1 -1
- package/src/layout/topbar/index.scss +1 -1
- package/src/utilities/position/api.json +6 -0
- package/src/utilities/position/docs.html +29 -0
- package/src/utilities/position/position.scss +74 -0
- package/src/utilities/scroll-animation/docs.html +1 -1
- package/src/utilities/scroll-animation/index.scss +1 -1
- package/src/utilities/scroll-snap/docs.html +33 -33
- package/src/utilities/text/docs.html +5 -5
- package/src/utilities/text/text.scss +15 -15
- package/src/config/tokens/semantic-spacing.scss +0 -12
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
// @desc Item font size
|
|
21
21
|
--_item-font-size: var(--ui-nav-item-font-size, var(--ui-font-size-sm, #{t.$font-size-sm}));
|
|
22
22
|
// @desc Item font weight
|
|
23
|
-
--_item-font-weight: var(--ui-nav-item-font-weight, var(--ui-weight-medium, #{t.$weight-medium}));
|
|
23
|
+
--_item-font-weight: var(--ui-nav-item-font-weight, var(--ui-font-weight-medium, #{t.$font-weight-medium}));
|
|
24
24
|
// @desc Item text color
|
|
25
25
|
--_item-color: var(--ui-nav-item-color, var(--ui-color-text-muted, #{t.$color-text-muted}));
|
|
26
26
|
// @desc Item color hover
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
--_space-1: var(--ui-space-1, #{t.$space-1});
|
|
9
9
|
--_border-width-sm: var(--ui-border-width-sm, #{t.$border-width-sm});
|
|
10
10
|
--_font-sans: var(--ui-font-sans, #{t.$font-sans});
|
|
11
|
-
--_weight-medium: var(--ui-weight-medium, #{t.$weight-medium});
|
|
11
|
+
--_weight-medium: var(--ui-font-weight-medium, #{t.$font-weight-medium});
|
|
12
12
|
--_color-text-muted: var(--ui-color-text-muted, #{t.$color-text-muted});
|
|
13
13
|
--_border-width-md: var(--ui-border-width-md, #{t.$border-width-md});
|
|
14
14
|
--_duration-base: var(--ui-duration-base, #{t.$duration-base});
|
|
@@ -4,8 +4,8 @@ description: Structured modal with header, body, and footer sections. Use with m
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
<!-- @default -->
|
|
7
|
-
<div style="
|
|
8
|
-
<div class="ui-modal ui-modal--visible
|
|
7
|
+
<div class="demo-area" style="--demo-h: 240px">
|
|
8
|
+
<div class="ui-modal ui-modal--visible ui-absolute">
|
|
9
9
|
<div class="ui-modal__content ui-dialog" style="max-height: 200px;">
|
|
10
10
|
<header class="ui-dialog__header">
|
|
11
11
|
<h2 class="ui-dialog__title">{{ t('dialog_title', 'Dialog Title') }}</h2>
|
|
@@ -23,8 +23,8 @@ description: Structured modal with header, body, and footer sections. Use with m
|
|
|
23
23
|
</div>
|
|
24
24
|
|
|
25
25
|
<!-- @borderless -->
|
|
26
|
-
<div
|
|
27
|
-
<div class="ui-modal ui-modal--visible
|
|
26
|
+
<div class="demo-area">
|
|
27
|
+
<div class="ui-modal ui-modal--visible ui-absolute">
|
|
28
28
|
<div class="ui-modal__content ui-dialog ui-dialog--borderless" style="max-height: 180px;">
|
|
29
29
|
<header class="ui-dialog__header">
|
|
30
30
|
<h2 class="ui-dialog__title">{{ t('simple_dialog', 'Simple Dialog') }}</h2>
|
|
@@ -40,8 +40,8 @@ description: Structured modal with header, body, and footer sections. Use with m
|
|
|
40
40
|
</div>
|
|
41
41
|
|
|
42
42
|
<!-- @confirmation_dialog -->
|
|
43
|
-
<div
|
|
44
|
-
<div class="ui-modal ui-modal--sm ui-modal--visible
|
|
43
|
+
<div class="demo-area">
|
|
44
|
+
<div class="ui-modal ui-modal--sm ui-modal--visible ui-absolute">
|
|
45
45
|
<div class="ui-modal__content ui-dialog">
|
|
46
46
|
<header class="ui-dialog__header">
|
|
47
47
|
<h2 class="ui-dialog__title">{{ t('delete_item', 'Delete Item?') }}</h2>
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
@layer components.tokens {
|
|
9
9
|
.dialog {
|
|
10
10
|
--_font-size-lg: var(--ui-font-size-lg, #{t.$font-size-lg});
|
|
11
|
-
--_weight-semibold: var(--ui-weight-semibold, #{t.$weight-semibold});
|
|
11
|
+
--_weight-semibold: var(--ui-font-weight-semibold, #{t.$font-weight-semibold});
|
|
12
12
|
// @desc Header padding on all sides
|
|
13
13
|
--_header-padding: var(--ui-dialog-header-padding, calc(#{t.$unit} * 2) calc(#{t.$unit} * 3));
|
|
14
14
|
// @desc Body area padding on all sides
|
|
@@ -4,9 +4,9 @@ title: Drawer
|
|
|
4
4
|
|
|
5
5
|
<!-- @default_end -->
|
|
6
6
|
<!-- Slides in from the end (right in LTR) -->
|
|
7
|
-
<div
|
|
8
|
-
<div class="ui-drawer-overlay
|
|
9
|
-
<div class="ui-drawer ui-drawer--end
|
|
7
|
+
<div class="demo-container demo-container--overflow" style="--demo-h: 300px">
|
|
8
|
+
<div class="ui-drawer-overlay ui-absolute"></div>
|
|
9
|
+
<div class="ui-drawer ui-drawer--end ui-absolute" data-state="open">
|
|
10
10
|
<div class="ui-drawer__header">
|
|
11
11
|
<div>
|
|
12
12
|
<h2 class="ui-drawer__title">{{ t('drawer_title', 'Drawer Title') }}</h2>
|
|
@@ -25,8 +25,8 @@ title: Drawer
|
|
|
25
25
|
</div>
|
|
26
26
|
|
|
27
27
|
<!-- @positions | column -->
|
|
28
|
-
<div
|
|
29
|
-
<div class="ui-drawer ui-drawer--start ui-drawer--sm
|
|
28
|
+
<div class="demo-container demo-container--overflow">
|
|
29
|
+
<div class="ui-drawer ui-drawer--start ui-drawer--sm ui-absolute" data-state="open">
|
|
30
30
|
<div class="ui-drawer__header">
|
|
31
31
|
<h2 class="ui-drawer__title">{{ t('start', 'Start') }}</h2>
|
|
32
32
|
</div>
|
|
@@ -35,8 +35,8 @@ title: Drawer
|
|
|
35
35
|
</div>
|
|
36
36
|
</div>
|
|
37
37
|
</div>
|
|
38
|
-
<div
|
|
39
|
-
<div class="ui-drawer ui-drawer--top
|
|
38
|
+
<div class="demo-container demo-container--overflow">
|
|
39
|
+
<div class="ui-drawer ui-drawer--top ui-absolute" data-state="open">
|
|
40
40
|
<div class="ui-drawer__header">
|
|
41
41
|
<h2 class="ui-drawer__title">{{ t('top', 'Top') }}</h2>
|
|
42
42
|
</div>
|
|
@@ -45,8 +45,8 @@ title: Drawer
|
|
|
45
45
|
</div>
|
|
46
46
|
</div>
|
|
47
47
|
</div>
|
|
48
|
-
<div
|
|
49
|
-
<div class="ui-drawer ui-drawer--bottom
|
|
48
|
+
<div class="demo-container demo-container--overflow">
|
|
49
|
+
<div class="ui-drawer ui-drawer--bottom ui-absolute" data-state="open">
|
|
50
50
|
<div class="ui-drawer__header">
|
|
51
51
|
<h2 class="ui-drawer__title">{{ t('bottom', 'Bottom') }}</h2>
|
|
52
52
|
</div>
|
|
@@ -57,29 +57,29 @@ title: Drawer
|
|
|
57
57
|
</div>
|
|
58
58
|
|
|
59
59
|
<!-- @sizes | column -->
|
|
60
|
-
<div
|
|
61
|
-
<div class="ui-drawer ui-drawer--end ui-drawer--sm
|
|
60
|
+
<div class="demo-container demo-container--overflow" style="--demo-h: 150px">
|
|
61
|
+
<div class="ui-drawer ui-drawer--end ui-drawer--sm ui-absolute" data-state="open">
|
|
62
62
|
<div class="ui-drawer__body">
|
|
63
63
|
<p>{{ t('small_drawer', 'Small drawer') }}</p>
|
|
64
64
|
</div>
|
|
65
65
|
</div>
|
|
66
66
|
</div>
|
|
67
|
-
<div
|
|
68
|
-
<div class="ui-drawer ui-drawer--end
|
|
67
|
+
<div class="demo-container demo-container--overflow" style="--demo-h: 150px">
|
|
68
|
+
<div class="ui-drawer ui-drawer--end ui-absolute" data-state="open">
|
|
69
69
|
<div class="ui-drawer__body">
|
|
70
70
|
<p>{{ t('default_drawer', 'Default drawer') }}</p>
|
|
71
71
|
</div>
|
|
72
72
|
</div>
|
|
73
73
|
</div>
|
|
74
|
-
<div
|
|
75
|
-
<div class="ui-drawer ui-drawer--end ui-drawer--lg
|
|
74
|
+
<div class="demo-container demo-container--overflow" style="--demo-h: 150px">
|
|
75
|
+
<div class="ui-drawer ui-drawer--end ui-drawer--lg ui-absolute" data-state="open">
|
|
76
76
|
<div class="ui-drawer__body">
|
|
77
77
|
<p>{{ t('large_drawer', 'Large drawer') }}</p>
|
|
78
78
|
</div>
|
|
79
79
|
</div>
|
|
80
80
|
</div>
|
|
81
|
-
<div
|
|
82
|
-
<div class="ui-drawer ui-drawer--end ui-drawer--full
|
|
81
|
+
<div class="demo-container demo-container--overflow" style="--demo-h: 150px">
|
|
82
|
+
<div class="ui-drawer ui-drawer--end ui-drawer--full ui-absolute" data-state="open">
|
|
83
83
|
<div class="ui-drawer__body">
|
|
84
84
|
<p>{{ t('full_size_drawer', 'Full-size drawer') }}</p>
|
|
85
85
|
</div>
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
@layer components.tokens {
|
|
10
10
|
.drawer {
|
|
11
|
-
--_z-drawer: var(--ui-z-drawer, #{t.$z-drawer});
|
|
11
|
+
--_z-drawer: var(--ui-z-index-drawer, #{t.$z-index-drawer});
|
|
12
12
|
--_overlay-bg: var(--ui-overlay-bg, #{t.$overlay-bg});
|
|
13
13
|
--_duration-normal: var(--ui-duration-normal, #{t.$duration-normal});
|
|
14
14
|
--_ease-out: var(--ui-ease-out, ease-out);
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
--_ease-in: var(--ui-ease-in, ease-in);
|
|
17
17
|
--_border-width-sm: var(--ui-border-width-sm, #{t.$border-width-sm});
|
|
18
18
|
--_font-size-lg: var(--ui-font-size-lg, #{t.$font-size-lg});
|
|
19
|
-
--_weight-semibold: var(--ui-weight-semibold, #{t.$weight-semibold});
|
|
19
|
+
--_weight-semibold: var(--ui-font-weight-semibold, #{t.$font-weight-semibold});
|
|
20
20
|
--_row-1: var(--ui-row-1, #{t.$row});
|
|
21
21
|
--_font-size-sm: var(--ui-font-size-sm, #{t.$font-size-sm});
|
|
22
22
|
--_color-text-muted: var(--ui-color-text-muted, #{t.$color-text-muted});
|
|
@@ -4,8 +4,8 @@ description: Container for modal dialogs. Use with overlay for backdrop effect.
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
<!-- @default -->
|
|
7
|
-
<div
|
|
8
|
-
<div class="ui-modal ui-modal--visible
|
|
7
|
+
<div class="demo-area">
|
|
8
|
+
<div class="ui-modal ui-modal--visible ui-absolute">
|
|
9
9
|
<div class="ui-modal__content">
|
|
10
10
|
<p>{{ t('modal_content_goes_here', 'Modal content goes here') }}</p>
|
|
11
11
|
</div>
|
|
@@ -13,8 +13,8 @@ description: Container for modal dialogs. Use with overlay for backdrop effect.
|
|
|
13
13
|
</div>
|
|
14
14
|
|
|
15
15
|
<!-- @sizes -->
|
|
16
|
-
<div style="
|
|
17
|
-
<div class="ui-modal ui-modal--sm ui-modal--visible
|
|
16
|
+
<div class="demo-area" style="--demo-h: 120px">
|
|
17
|
+
<div class="ui-modal ui-modal--sm ui-modal--visible ui-absolute">
|
|
18
18
|
<div class="ui-modal__content">
|
|
19
19
|
<p>{{ t('small_modal', 'Small modal') }}</p>
|
|
20
20
|
</div>
|
|
@@ -22,8 +22,8 @@ description: Container for modal dialogs. Use with overlay for backdrop effect.
|
|
|
22
22
|
</div>
|
|
23
23
|
|
|
24
24
|
<!-- @large -->
|
|
25
|
-
<div style="
|
|
26
|
-
<div class="ui-modal ui-modal--lg ui-modal--visible
|
|
25
|
+
<div class="demo-area" style="--demo-h: 120px">
|
|
26
|
+
<div class="ui-modal ui-modal--lg ui-modal--visible ui-absolute">
|
|
27
27
|
<div class="ui-modal__content">
|
|
28
28
|
<p>{{ t('large_modal', 'Large modal') }}</p>
|
|
29
29
|
</div>
|
|
@@ -31,8 +31,8 @@ description: Container for modal dialogs. Use with overlay for backdrop effect.
|
|
|
31
31
|
</div>
|
|
32
32
|
|
|
33
33
|
<!-- @full -->
|
|
34
|
-
<div style="
|
|
35
|
-
<div class="ui-modal ui-modal--full ui-modal--visible
|
|
34
|
+
<div class="demo-area" style="--demo-h: 120px">
|
|
35
|
+
<div class="ui-modal ui-modal--full ui-modal--visible ui-absolute">
|
|
36
36
|
<div class="ui-modal__content">
|
|
37
37
|
<p>{{ t('full_screen_modal', 'Full-screen modal') }}</p>
|
|
38
38
|
</div>
|
|
@@ -41,8 +41,8 @@ description: Container for modal dialogs. Use with overlay for backdrop effect.
|
|
|
41
41
|
|
|
42
42
|
<!-- @entering_animation -->
|
|
43
43
|
<!-- Apply entering modifier for open transition. -->
|
|
44
|
-
<div style="
|
|
45
|
-
<div class="ui-modal ui-modal--visible ui-modal--entering
|
|
44
|
+
<div class="demo-area" style="--demo-h: 120px">
|
|
45
|
+
<div class="ui-modal ui-modal--visible ui-modal--entering ui-absolute">
|
|
46
46
|
<div class="ui-modal__content">
|
|
47
47
|
<p>{{ t('entering_modal', 'Entering modal') }}</p>
|
|
48
48
|
</div>
|
|
@@ -50,8 +50,8 @@ description: Container for modal dialogs. Use with overlay for backdrop effect.
|
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
<!-- @with_scrollable_content -->
|
|
53
|
-
<div
|
|
54
|
-
<div class="ui-modal ui-modal--visible
|
|
53
|
+
<div class="demo-area">
|
|
54
|
+
<div class="ui-modal ui-modal--visible ui-absolute">
|
|
55
55
|
<div class="ui-modal__content" style="max-height: 150px;">
|
|
56
56
|
<div class="ui-modal__body">
|
|
57
57
|
<p>{{ t('line_1', 'Line 1') }}</p>
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
// @desc Maximum height
|
|
23
23
|
--_max-height: var(--ui-modal-max-height, calc(100vh - #{t.$unit} * 8));
|
|
24
24
|
// @desc Z-index stacking order
|
|
25
|
-
--_z: var(--ui-modal-z, var(--ui-z-modal, #{t.$z-modal}));
|
|
25
|
+
--_z: var(--ui-modal-z, var(--ui-z-index-modal, #{t.$z-index-modal}));
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
// @modifier size
|
|
@@ -4,24 +4,24 @@ description: Full viewport backdrop for modals, dialogs, and drawers. Controls v
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
<!-- @default -->
|
|
7
|
-
<div style="
|
|
8
|
-
<div class="ui-overlay
|
|
7
|
+
<div class="demo-area" style="--demo-h: 120px">
|
|
8
|
+
<div class="ui-overlay ui-absolute"></div>
|
|
9
9
|
<p style="position: relative; padding: var(--ui-space-2);">{{ t('content_behind_overlay', 'Content behind overlay') }}</p>
|
|
10
10
|
</div>
|
|
11
11
|
|
|
12
12
|
<!-- @light_variant -->
|
|
13
|
-
<div style="
|
|
14
|
-
<div class="ui-overlay ui-overlay--light
|
|
13
|
+
<div class="demo-area" style="--demo-h: 120px; background: var(--ui-color-text)">
|
|
14
|
+
<div class="ui-overlay ui-overlay--light ui-absolute"></div>
|
|
15
15
|
<p style="position: relative; padding: var(--ui-space-2); color: white;">{{ t('dark_content_behind_light_overlay', 'Dark content behind light overlay') }}</p>
|
|
16
16
|
</div>
|
|
17
17
|
|
|
18
18
|
<!-- @blur_variant -->
|
|
19
|
-
<div style="
|
|
20
|
-
<div class="ui-overlay ui-overlay--blur
|
|
19
|
+
<div class="demo-area" style="--demo-h: 120px; background: linear-gradient(45deg, var(--ui-color-primary), var(--ui-color-success))">
|
|
20
|
+
<div class="ui-overlay ui-overlay--blur ui-absolute"></div>
|
|
21
21
|
<p style="position: relative; padding: var(--ui-space-2); color: white;">{{ t('blurred_backdrop', 'Blurred backdrop') }}</p>
|
|
22
22
|
</div>
|
|
23
23
|
|
|
24
24
|
<!-- @with_animation -->
|
|
25
|
-
<div style="
|
|
26
|
-
<div class="ui-overlay ui-overlay--animate ui-overlay--visible
|
|
25
|
+
<div class="demo-area" style="--demo-h: 120px">
|
|
26
|
+
<div class="ui-overlay ui-overlay--animate ui-overlay--visible ui-absolute"></div>
|
|
27
27
|
</div>
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
// @desc Background color
|
|
13
13
|
--_bg: var(--ui-overlay-bg, #{t.$overlay-bg});
|
|
14
14
|
// @desc Z-index stacking order
|
|
15
|
-
--_z: var(--ui-overlay-z, var(--ui-z-overlay, #{t.$z-overlay}));
|
|
15
|
+
--_z: var(--ui-overlay-z, var(--ui-z-index-overlay, #{t.$z-index-overlay}));
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
// @modifier boolean light
|
|
@@ -4,12 +4,12 @@ description: Floating panel for additional content. Larger than tooltip, can con
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
<!-- @default -->
|
|
7
|
-
<div class="ui-popover
|
|
7
|
+
<div class="ui-popover ui-relative">
|
|
8
8
|
<p>{{ t('popover_content', 'Popover content goes here. Can contain multiple paragraphs and other elements.') }}</p>
|
|
9
9
|
</div>
|
|
10
10
|
|
|
11
11
|
<!-- @with_header -->
|
|
12
|
-
<div class="ui-popover
|
|
12
|
+
<div class="ui-popover ui-relative">
|
|
13
13
|
<header class="ui-popover__header">
|
|
14
14
|
<h3 class="ui-popover__title">{{ t('popover_title', 'Popover Title') }}</h3>
|
|
15
15
|
</header>
|
|
@@ -18,21 +18,21 @@ description: Floating panel for additional content. Larger than tooltip, can con
|
|
|
18
18
|
|
|
19
19
|
<!-- @positions -->
|
|
20
20
|
<div style="padding: var(--ui-space-4);">
|
|
21
|
-
<div class="ui-popover ui-popover--top
|
|
21
|
+
<div class="ui-popover ui-popover--top ui-relative">
|
|
22
22
|
<p>{{ t('top_arrow_down', 'Top (arrow down)') }}</p>
|
|
23
23
|
</div>
|
|
24
24
|
</div>
|
|
25
25
|
<div style="padding: var(--ui-space-4);">
|
|
26
|
-
<div class="ui-popover ui-popover--bottom
|
|
26
|
+
<div class="ui-popover ui-popover--bottom ui-relative">
|
|
27
27
|
<p>{{ t('bottom_arrow_up', 'Bottom (arrow up)') }}</p>
|
|
28
28
|
</div>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
<!-- @visibility -->
|
|
32
32
|
<!-- Control popover visibility and animation. -->
|
|
33
|
-
<div class="ui-popover ui-popover--visible ui-popover--animate
|
|
33
|
+
<div class="ui-popover ui-popover--visible ui-popover--animate ui-relative">
|
|
34
34
|
<p>{{ t('visible_and_animated', 'Visible and animated') }}</p>
|
|
35
35
|
</div>
|
|
36
|
-
<div class="ui-popover ui-popover--hidden
|
|
36
|
+
<div class="ui-popover ui-popover--hidden ui-relative">
|
|
37
37
|
<p>{{ t('hidden_popover', 'Hidden popover') }}</p>
|
|
38
38
|
</div>
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
--_row-1: var(--ui-row-1, #{t.$row});
|
|
11
11
|
--_border-width-sm: var(--ui-border-width-sm, #{t.$border-width-sm});
|
|
12
12
|
--_font-size-md: var(--ui-font-size-md, #{t.$font-size-md});
|
|
13
|
-
--_weight-semibold: var(--ui-weight-semibold, #{t.$weight-semibold});
|
|
13
|
+
--_weight-semibold: var(--ui-font-weight-semibold, #{t.$font-weight-semibold});
|
|
14
14
|
--_duration-fast: var(--ui-duration-fast, #{t.$duration-fast});
|
|
15
15
|
--_ease-default: var(--ui-ease-default, ease);
|
|
16
16
|
// @desc Background color
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
// @desc Maximum width
|
|
27
27
|
--_max-width: var(--ui-popover-max-width, calc(#{t.$unit} * 40));
|
|
28
28
|
// @desc Z-index stacking order
|
|
29
|
-
--_z: var(--ui-popover-z, var(--ui-z-popover, #{t.$z-popover}));
|
|
29
|
+
--_z: var(--ui-popover-z, var(--ui-z-index-popover, #{t.$z-index-popover}));
|
|
30
30
|
// @desc Arrow size
|
|
31
31
|
--_arrow-size: var(--ui-popover-arrow-size, calc(#{t.$unit}));
|
|
32
32
|
}
|
|
@@ -4,23 +4,23 @@ description: Small informational popup for additional context. Position via JS.
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
<!-- @positions -->
|
|
7
|
-
<div
|
|
8
|
-
<div
|
|
9
|
-
<span class="ui-tooltip ui-tooltip--top
|
|
7
|
+
<div class="ui-flex ui-gap-4 ui-p-4 ui-flex-wrap">
|
|
8
|
+
<div class="ui-relative">
|
|
9
|
+
<span class="ui-tooltip ui-tooltip--top ui-relative">{{ t('top', 'Top') }}</span>
|
|
10
10
|
</div>
|
|
11
|
-
<div
|
|
12
|
-
<span class="ui-tooltip ui-tooltip--bottom
|
|
11
|
+
<div class="ui-relative">
|
|
12
|
+
<span class="ui-tooltip ui-tooltip--bottom ui-relative">{{ t('bottom', 'Bottom') }}</span>
|
|
13
13
|
</div>
|
|
14
|
-
<div
|
|
15
|
-
<span class="ui-tooltip ui-tooltip--start
|
|
14
|
+
<div class="ui-relative">
|
|
15
|
+
<span class="ui-tooltip ui-tooltip--start ui-relative">{{ t('start', 'Start') }}</span>
|
|
16
16
|
</div>
|
|
17
|
-
<div
|
|
18
|
-
<span class="ui-tooltip ui-tooltip--end
|
|
17
|
+
<div class="ui-relative">
|
|
18
|
+
<span class="ui-tooltip ui-tooltip--end ui-relative">{{ t('end', 'End') }}</span>
|
|
19
19
|
</div>
|
|
20
20
|
</div>
|
|
21
21
|
|
|
22
22
|
<!-- @with_animation -->
|
|
23
|
-
<span class="ui-tooltip ui-tooltip--top ui-tooltip--animate ui-tooltip--visible
|
|
23
|
+
<span class="ui-tooltip ui-tooltip--top ui-tooltip--animate ui-tooltip--visible ui-relative">{{ t('animated_tooltip', 'Animated tooltip') }}</span>
|
|
24
24
|
|
|
25
25
|
<!-- @anchor_positioned -->
|
|
26
26
|
<!-- Browser-native positioning via CSS Anchor Positioning. No JS needed for placement. Wrapped in @supports — falls back to manual positioning in unsupported browsers. -->
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
// @desc Font size
|
|
23
23
|
--_font-size: var(--ui-tooltip-font-size, var(--ui-font-size-sm, #{t.$font-size-sm}));
|
|
24
24
|
// @desc Z-index stacking order
|
|
25
|
-
--_z: var(--ui-tooltip-z, var(--ui-z-tooltip, #{t.$z-tooltip}));
|
|
25
|
+
--_z: var(--ui-tooltip-z, var(--ui-z-index-tooltip, #{t.$z-index-tooltip}));
|
|
26
26
|
// @desc Arrow size
|
|
27
27
|
--_arrow-size: var(--ui-tooltip-arrow-size, calc(#{t.$unit} / 2));
|
|
28
28
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
.blockquote {
|
|
7
7
|
--_space-1: var(--ui-space-1, #{t.$space-1});
|
|
8
8
|
--_font-size-sm: var(--ui-font-size-sm, #{t.$font-size-sm});
|
|
9
|
-
--_leading-sm: var(--ui-
|
|
9
|
+
--_leading-sm: var(--ui-line-height-sm, #{t.$line-height-sm});
|
|
10
10
|
--_color-text-muted: var(--ui-color-text-muted, #{t.$color-text-muted});
|
|
11
11
|
// @desc Border color
|
|
12
12
|
--_border-color: var(--ui-blockquote-border-color, var(--ui-color-border-strong, #{t.$color-border-strong}));
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
// @desc Font size
|
|
20
20
|
--_font-size: var(--ui-blockquote-font-size, var(--ui-font-size-lg, #{t.$font-size-lg}));
|
|
21
21
|
// @desc Line height
|
|
22
|
-
--_line-height: var(--ui-blockquote-line-height, var(--ui-
|
|
22
|
+
--_line-height: var(--ui-blockquote-line-height, var(--ui-line-height-lg, #{t.$line-height-lg}));
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
// @modifier variant
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
// Inline code
|
|
9
9
|
.code {
|
|
10
10
|
--_font-mono: var(--ui-font-mono, #{t.$font-mono});
|
|
11
|
-
--_leading-tight-sm: var(--ui-
|
|
11
|
+
--_leading-tight-sm: var(--ui-line-height-tight-sm, #{t.$line-height-tight-sm});
|
|
12
12
|
--_border-width-sm: var(--ui-border-width-sm, #{t.$border-width-sm});
|
|
13
13
|
// @desc Font size
|
|
14
14
|
--_font-size: var(--ui-code-font-size, var(--ui-font-size-sm, #{t.$font-size-sm}));
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
// @desc Font size
|
|
22
22
|
--_font-size: var(--ui-code-block-font-size, var(--ui-font-size-sm, #{t.$font-size-sm}));
|
|
23
23
|
// @desc Line height
|
|
24
|
-
--_line-height: var(--ui-code-block-line-height, var(--ui-
|
|
24
|
+
--_line-height: var(--ui-code-block-line-height, var(--ui-line-height-tight-sm, #{t.$line-height-tight-sm}));
|
|
25
25
|
// @desc Corner radius
|
|
26
26
|
--_radius: var(--ui-code-block-radius, var(--ui-radius-md, #{t.$radius-md}));
|
|
27
27
|
}
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"name": "--ui-heading-line-height",
|
|
18
|
-
"default": "var(--ui-
|
|
18
|
+
"default": "var(--ui-line-height-xl)",
|
|
19
19
|
"description": "Line height"
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
22
|
"name": "--ui-heading-weight",
|
|
23
|
-
"default": "var(--ui-weight-bold)",
|
|
23
|
+
"default": "var(--ui-font-weight-bold)",
|
|
24
24
|
"description": "Weight"
|
|
25
25
|
},
|
|
26
26
|
{
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
"name": "--ui-heading-line-height-4xl",
|
|
38
|
-
"default": "var(--ui-
|
|
38
|
+
"default": "var(--ui-line-height-4xl)",
|
|
39
39
|
"description": "Line height 4xl"
|
|
40
40
|
},
|
|
41
41
|
{
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"name": "--ui-heading-line-height-3xl",
|
|
48
|
-
"default": "var(--ui-
|
|
48
|
+
"default": "var(--ui-line-height-3xl)",
|
|
49
49
|
"description": "Line height 3xl"
|
|
50
50
|
},
|
|
51
51
|
{
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
57
|
"name": "--ui-heading-line-height-2xl",
|
|
58
|
-
"default": "var(--ui-
|
|
58
|
+
"default": "var(--ui-line-height-2xl)",
|
|
59
59
|
"description": "Line height 2xl"
|
|
60
60
|
},
|
|
61
61
|
{
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
"name": "--ui-heading-line-height-xl",
|
|
68
|
-
"default": "var(--ui-
|
|
68
|
+
"default": "var(--ui-line-height-xl)",
|
|
69
69
|
"description": "Line height at extra-large size"
|
|
70
70
|
},
|
|
71
71
|
{
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
77
|
"name": "--ui-heading-line-height-lg",
|
|
78
|
-
"default": "var(--ui-
|
|
78
|
+
"default": "var(--ui-line-height-lg)",
|
|
79
79
|
"description": "Line height at large size"
|
|
80
80
|
},
|
|
81
81
|
{
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
87
|
"name": "--ui-heading-line-height-md",
|
|
88
|
-
"default": "var(--ui-
|
|
88
|
+
"default": "var(--ui-line-height-tight-md)",
|
|
89
89
|
"description": "Line height at medium size"
|
|
90
90
|
},
|
|
91
91
|
{
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
"name": "--ui-heading-line-height-sm",
|
|
98
|
-
"default": "var(--ui-
|
|
98
|
+
"default": "var(--ui-line-height-tight-sm)",
|
|
99
99
|
"description": "Line height at small size"
|
|
100
100
|
}
|
|
101
101
|
]
|