@oardi/css-utils 0.58.1 → 0.60.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/package.json +1 -1
- package/scss/components/breadcrumb.scss +1 -1
- package/scss/components/button.scss +3 -3
- package/scss/components/drawer.scss +2 -2
- package/scss/components/icon-button.scss +2 -2
- package/scss/components/overlay.scss +2 -1
- package/scss/components/pagination.scss +89 -0
- package/scss/components/toast.scss +2 -0
- package/scss/components/tooltip.scss +1 -1
- package/scss/index.scss +1 -0
- package/scss/variables.scss +10 -0
package/package.json
CHANGED
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
border-color: var(--button-color-hover);
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
&.active,
|
|
96
|
+
&.is-active,
|
|
97
97
|
&:active {
|
|
98
98
|
background-color: var(--button-color-active);
|
|
99
99
|
border-color: var(--button-color-active);
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
border-color: var(--button-color-hover);
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
&.active,
|
|
119
|
+
&.is-active,
|
|
120
120
|
&:active {
|
|
121
121
|
color: var(--button-on-color);
|
|
122
122
|
background-color: var(--button-color-active);
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
border-color: transparent;
|
|
141
141
|
|
|
142
142
|
&:hover,
|
|
143
|
-
&.active,
|
|
143
|
+
&.is-active,
|
|
144
144
|
&:active {
|
|
145
145
|
background-color: var(--button-highlight);
|
|
146
146
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
.drawer {
|
|
3
3
|
--drawer-width: 20rem;
|
|
4
|
-
--drawer-z-index:
|
|
4
|
+
--drawer-z-index: var(--z-index-drawer);
|
|
5
5
|
|
|
6
6
|
--drawer-bg-color: var(--bg-surface);
|
|
7
7
|
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
--drawer-transition-duration: var(--transition-duration);
|
|
17
17
|
--drawer-transition-easing: var(--transition-easing);
|
|
18
18
|
|
|
19
|
+
z-index: var(--drawer-z-index);
|
|
19
20
|
position: fixed;
|
|
20
21
|
inset-block: 0;
|
|
21
22
|
inset-inline-start: 0;
|
|
22
|
-
z-index: var(--drawer-z-index);
|
|
23
23
|
display: flex;
|
|
24
24
|
flex-direction: column;
|
|
25
25
|
justify-content: flex-start;
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
&:active,
|
|
119
|
-
&.active {
|
|
119
|
+
&.is-active {
|
|
120
120
|
color: var(--icon-button-on-color);
|
|
121
121
|
background-color: var(--icon-button-color-active);
|
|
122
122
|
border-color: var(--icon-button-color-active);
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
&:active,
|
|
142
|
-
&.active {
|
|
142
|
+
&.is-active {
|
|
143
143
|
color: var(--icon-button-on-color);
|
|
144
144
|
background-color: var(--icon-button-color-active);
|
|
145
145
|
border-color: var(--icon-button-color-active);
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
.overlay {
|
|
3
3
|
--overlay-highlight: rgba(var(--gray-800-rgb), 0.4);
|
|
4
|
+
--overlay-z-index: var(--z-index-overlay);
|
|
4
5
|
|
|
6
|
+
z-index: var(--overlay-z-index);
|
|
5
7
|
background: var(--overlay-highlight);
|
|
6
8
|
position: fixed;
|
|
7
9
|
inset: 0;
|
|
8
|
-
z-index: 1040;
|
|
9
10
|
display: none;
|
|
10
11
|
}
|
|
11
12
|
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.pagination {
|
|
3
|
+
--pagination-gap: var(--spacer-1);
|
|
4
|
+
|
|
5
|
+
--pagination-item-min-width: 2.25rem;
|
|
6
|
+
--pagination-item-padding-y: var(--spacer-1);
|
|
7
|
+
--pagination-item-padding-x: var(--spacer-2);
|
|
8
|
+
--pagination-item-border-radius: 9999px;
|
|
9
|
+
|
|
10
|
+
--pagination-item-color: var(--text-color);
|
|
11
|
+
--pagination-item-bg-color: transparent;
|
|
12
|
+
|
|
13
|
+
--pagination-item-hover-color: var(--primary);
|
|
14
|
+
--pagination-item-hover-bg-color: var(--bg-highlight);
|
|
15
|
+
|
|
16
|
+
--pagination-item-active-color: var(--on-primary);
|
|
17
|
+
--pagination-item-active-bg-color: var(--primary);
|
|
18
|
+
|
|
19
|
+
--pagination-item-disabled-color: var(--disabled-text-color);
|
|
20
|
+
|
|
21
|
+
--pagination-item-focus-outline-width: var(--focus-outline-width);
|
|
22
|
+
--pagination-item-focus-outline-style: var(--focus-outline-style);
|
|
23
|
+
--pagination-item-focus-outline-color: var(--focus-outline-color);
|
|
24
|
+
--pagination-item-focus-outline-offset: var(--focus-offset);
|
|
25
|
+
|
|
26
|
+
--pagination-transition-duration: var(--transition-duration);
|
|
27
|
+
--pagination-transition-easing: var(--transition-easing);
|
|
28
|
+
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-wrap: wrap;
|
|
31
|
+
align-items: center;
|
|
32
|
+
gap: var(--pagination-gap);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.pagination-item {
|
|
36
|
+
display: inline-flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
min-width: var(--pagination-item-min-width);
|
|
40
|
+
padding: var(--pagination-item-padding-y) var(--pagination-item-padding-x);
|
|
41
|
+
color: var(--pagination-item-color);
|
|
42
|
+
background-color: var(--pagination-item-bg-color);
|
|
43
|
+
border: 0;
|
|
44
|
+
border-radius: var(--pagination-item-border-radius);
|
|
45
|
+
text-decoration: none;
|
|
46
|
+
line-height: var(--line-height);
|
|
47
|
+
-webkit-tap-highlight-color: transparent;
|
|
48
|
+
touch-action: manipulation;
|
|
49
|
+
|
|
50
|
+
transition:
|
|
51
|
+
color var(--pagination-transition-duration) var(--pagination-transition-easing),
|
|
52
|
+
background-color var(--pagination-transition-duration) var(--pagination-transition-easing),
|
|
53
|
+
box-shadow var(--pagination-transition-duration) var(--pagination-transition-easing);
|
|
54
|
+
|
|
55
|
+
&:hover {
|
|
56
|
+
cursor: pointer;
|
|
57
|
+
color: var(--pagination-item-hover-color);
|
|
58
|
+
background-color: var(--pagination-item-hover-bg-color);
|
|
59
|
+
text-decoration: none;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&:focus-visible {
|
|
63
|
+
outline: var(--pagination-item-focus-outline-width) var(--pagination-item-focus-outline-style)
|
|
64
|
+
var(--pagination-item-focus-outline-color);
|
|
65
|
+
outline-offset: var(--pagination-item-focus-outline-offset);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&.is-active {
|
|
69
|
+
color: var(--pagination-item-active-color);
|
|
70
|
+
background-color: var(--pagination-item-active-bg-color);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&.disabled,
|
|
74
|
+
&:disabled,
|
|
75
|
+
&[disabled] {
|
|
76
|
+
cursor: not-allowed;
|
|
77
|
+
pointer-events: none;
|
|
78
|
+
color: var(--pagination-item-disabled-color);
|
|
79
|
+
background-color: transparent;
|
|
80
|
+
outline: 0;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.pagination-ellipsis {
|
|
85
|
+
pointer-events: none;
|
|
86
|
+
color: var(--text-muted);
|
|
87
|
+
background-color: transparent;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
.toast {
|
|
3
|
+
--toast-z-index: var(--z-index-toast);
|
|
3
4
|
--toast-padding-y: var(--spacer-2);
|
|
4
5
|
--toast-padding-x: var(--spacer-3);
|
|
5
6
|
--toast-bg-color: var(--bg-surface);
|
|
@@ -10,6 +11,7 @@
|
|
|
10
11
|
--toast-box-shadow: var(--shadow);
|
|
11
12
|
--toast-gap: var(--spacer-2);
|
|
12
13
|
|
|
14
|
+
z-index: var(--toast-z-index);
|
|
13
15
|
display: flex;
|
|
14
16
|
align-items: center;
|
|
15
17
|
gap: var(--toast-gap);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
.tooltip {
|
|
3
|
+
--tooltip-z-index: var(--z-index-tooltip);
|
|
3
4
|
--tooltip-bg-color: var(--bg-inverse);
|
|
4
5
|
--tooltip-color: var(--text-inverse);
|
|
5
6
|
|
|
@@ -8,7 +9,6 @@
|
|
|
8
9
|
--tooltip-border-radius: var(--border-radius-sm, var(--border-radius));
|
|
9
10
|
--tooltip-font-size: var(--font-size-xs, 0.75rem);
|
|
10
11
|
--tooltip-box-shadow: var(--shadow-lg);
|
|
11
|
-
--tooltip-z-index: 1000;
|
|
12
12
|
|
|
13
13
|
--tooltip-arrow-size: 0.375rem;
|
|
14
14
|
|
package/scss/index.scss
CHANGED
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
@forward './components/list.scss';
|
|
37
37
|
@forward './components/navbar.scss';
|
|
38
38
|
@forward './components/overlay.scss';
|
|
39
|
+
@forward './components/pagination.scss';
|
|
39
40
|
@forward './components/tabs.scss';
|
|
40
41
|
@forward './components/table.scss';
|
|
41
42
|
@forward './components/toast.scss';
|
package/scss/variables.scss
CHANGED
|
@@ -83,6 +83,16 @@
|
|
|
83
83
|
--transition-duration: 0.2s;
|
|
84
84
|
--transition-easing: ease-out;
|
|
85
85
|
|
|
86
|
+
@each $name, $value in map.get(theme.$theme, zIndexLevels) {
|
|
87
|
+
--z-index-#{$name}: #{$value};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
--z-index-header: 1000;
|
|
91
|
+
--z-index-tooltip: 1010;
|
|
92
|
+
--z-index-overlay: 1040;
|
|
93
|
+
--z-index-drawer: 1050;
|
|
94
|
+
--z-index-toast: 1060;
|
|
95
|
+
|
|
86
96
|
/* deprecated alias */
|
|
87
97
|
--bg-color: var(--bg-body);
|
|
88
98
|
--body-bg-color: var(--bg-body);
|