blue-web 1.21.1 → 1.21.2
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/LICENSE +164 -164
- package/README.md +74 -74
- package/dist/js/actions.d.ts +6 -6
- package/dist/js/color-mode.d.ts +4 -4
- package/dist/js/dialog.d.ts +18 -18
- package/dist/js/edit-view.d.ts +14 -14
- package/dist/js/edit-view.js +2 -2
- package/dist/js/input-splitted.d.ts +19 -19
- package/dist/js/odometer.d.ts +30 -30
- package/dist/js/odometer.js +8 -8
- package/dist/js/progress.d.ts +2 -2
- package/dist/js/read-view.d.ts +35 -35
- package/dist/js/read-view.js +18 -18
- package/dist/js/select-list.d.ts +46 -46
- package/dist/js/select-list.js +17 -17
- package/dist/js/shared.d.ts +14 -14
- package/dist/js/side-layout.d.ts +7 -7
- package/dist/js/utils.d.ts +18 -18
- package/dist/js/utils.js +6 -6
- package/dist/merged.scss +2170 -2170
- package/dist/neu.scss +92 -92
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/dist/style.scss +62 -62
- package/dist/styles/_action-menu.scss +57 -57
- package/dist/styles/_actions.scss +37 -37
- package/dist/styles/_anchor.scss +42 -42
- package/dist/styles/_bootstrap-mixins_overwritten.scss +106 -106
- package/dist/styles/_bootstrap-variables.scss +46 -46
- package/dist/styles/_bootstrap.scss +64 -64
- package/dist/styles/_button-icon-wrapper.scss +28 -28
- package/dist/styles/_buttons.scss +120 -120
- package/dist/styles/_collapse.scss +72 -72
- package/dist/styles/_container-grid.scss +52 -52
- package/dist/styles/_devexpress.scss +104 -104
- package/dist/styles/_general.scss +55 -55
- package/dist/styles/_hover.scss +37 -37
- package/dist/styles/_input-group.scss +29 -29
- package/dist/styles/_inter.scss +19 -19
- package/dist/styles/_intro.scss +22 -22
- package/dist/styles/_keyframes.scss +73 -73
- package/dist/styles/_layout.scss +175 -175
- package/dist/styles/_menu-item.scss +86 -86
- package/dist/styles/_mixins.scss +6 -6
- package/dist/styles/_modal.scss +118 -118
- package/dist/styles/_page-header.scss +14 -14
- package/dist/styles/_scrollspy.scss +78 -78
- package/dist/styles/_status.scss +131 -131
- package/dist/styles/_text-icons.scss +15 -15
- package/dist/styles/_tooltips.scss +150 -150
- package/dist/styles/_utils.scss +20 -20
- package/dist/styles/_variables.scss +128 -128
- package/dist/styles/mixins/_action-menu.scss +64 -64
- package/dist/styles/mixins/_custom-property.scss +10 -10
- package/dist/styles/mixins/_menu-item.scss +136 -136
- package/dist/styles/mixins/_misc.scss +7 -7
- package/dist/styles/mixins/_scroll-shadow.scss +9 -9
- package/dist/styles/mixins/_switch.scss +91 -91
- package/package.json +88 -88
- package/dist/container-grid.css +0 -196
- package/dist/js/auto-theme.bundle.js +0 -1
- package/dist/js/auto-theme.d.ts +0 -26
- package/dist/js/auto-theme.js +0 -169
- package/dist/js/button.bundle.js +0 -1
- package/dist/js/button.d.ts +0 -6
- package/dist/js/button.js +0 -16
- package/dist/js/dialog.bundle.js.LICENSE.txt +0 -5
- package/dist/js/dxf-viewer.js +0 -129
- package/dist/js/searchbox.bundle.js +0 -2
- package/dist/js/searchbox.bundle.js.LICENSE.txt +0 -11
- package/dist/js/searchbox.d.ts +0 -16
- package/dist/js/searchbox.js +0 -158
- package/dist/tailwind-main.css +0 -737
package/dist/styles/_layout.scss
CHANGED
|
@@ -1,175 +1,175 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The new approach for a global layout with a sidebar, header and main content.
|
|
3
|
-
* Checkboxes are used for states for expanded or drawer.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
.blue-layout {
|
|
7
|
-
--spacing: 0.25rem;
|
|
8
|
-
--drawer-side-shadow:
|
|
9
|
-
rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px,
|
|
10
|
-
rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.25) 0px 25px 50px -12px;
|
|
11
|
-
--side-width: 18rem;
|
|
12
|
-
--base-z-index: 0;
|
|
13
|
-
|
|
14
|
-
--base-z-index: 500;
|
|
15
|
-
--side-width: var(--blue-sidebar-width);
|
|
16
|
-
--toggler-width: 2.714rem;
|
|
17
|
-
--toggler-height: var(--blue-header-height);
|
|
18
|
-
|
|
19
|
-
--blue-menu-item-indicator-bg: #{color-contrast($sidebar-bg, $sidebar-indicator-color)};
|
|
20
|
-
--bs-link-hover-color: #{color-contrast($sidebar-bg, $link-hover-color)};
|
|
21
|
-
|
|
22
|
-
height: 100dvh;
|
|
23
|
-
position: relative;
|
|
24
|
-
display: grid;
|
|
25
|
-
|
|
26
|
-
grid-template-rows: var(--toggler-height) auto;
|
|
27
|
-
grid-template-areas: "header" "main";
|
|
28
|
-
|
|
29
|
-
color: var(--blue-sidebar-color);
|
|
30
|
-
background-color: var(--blue-sidebar-bg);
|
|
31
|
-
|
|
32
|
-
&:has(> .blue-layout-toggle) {
|
|
33
|
-
grid-template-columns: 0 0 var(--toggler-width) calc(var(--side-width) - var(--toggler-width)) 1fr;
|
|
34
|
-
grid-template-rows: var(--toggler-height) auto;
|
|
35
|
-
grid-template-areas:
|
|
36
|
-
"state . toggle header header"
|
|
37
|
-
". side main main main";
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
@include color-mode(dark, false) {
|
|
42
|
-
.blue-layout {
|
|
43
|
-
--blue-menu-item-indicator-bg: #{$sidebar-indicator-color-dark};
|
|
44
|
-
--bs-link-hover-color: #{color-contrast($sidebar-bg, $link-hover-color-dark)};
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
@media (width >= 64rem) {
|
|
49
|
-
.blue-layout {
|
|
50
|
-
&:has(> .blue-layout-state-expand:checked) {
|
|
51
|
-
grid-template-areas:
|
|
52
|
-
"state . toggle header header"
|
|
53
|
-
". side side side main";
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.blue-layout-state {
|
|
59
|
-
grid-area: state;
|
|
60
|
-
position: absolute;
|
|
61
|
-
--size: 0;
|
|
62
|
-
height: var(--size);
|
|
63
|
-
width: var(--size);
|
|
64
|
-
appearance: none;
|
|
65
|
-
opacity: 0;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.blue-layout-toggle {
|
|
69
|
-
grid-area: toggle;
|
|
70
|
-
color: var(--blue-sidebar-color);
|
|
71
|
-
background-color: var(--blue-sidebar-bg);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.blue-layout-state:focus-visible + .blue-layout-toggle {
|
|
75
|
-
--trigger-box-shadow: var(--trigger-focus-box-shadow, inset 0 0 0.25rem);
|
|
76
|
-
box-shadow: var(--trigger-box-shadow);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
@media (width < 64rem) {
|
|
80
|
-
.blue-layout-toggle-expand,
|
|
81
|
-
#layout-expand {
|
|
82
|
-
display: none !important;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
@media (width >= 64rem) {
|
|
87
|
-
.blue-layout-toggle-drawer,
|
|
88
|
-
#layout-drawer {
|
|
89
|
-
display: none !important;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.blue-layout-header {
|
|
94
|
-
grid-area: header;
|
|
95
|
-
|
|
96
|
-
display: flex;
|
|
97
|
-
justify-content: space-between;
|
|
98
|
-
align-items: center;
|
|
99
|
-
position: relative;
|
|
100
|
-
z-index: var(--blue-layout-header-z-index, 4);
|
|
101
|
-
--blue-menu-item-dropdown-bg: var(--blue-sidebar-bg);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.blue-layout-side {
|
|
105
|
-
grid-area: side;
|
|
106
|
-
overflow: auto;
|
|
107
|
-
background: inherit;
|
|
108
|
-
scrollbar-color: transparent transparent;
|
|
109
|
-
|
|
110
|
-
&:hover,
|
|
111
|
-
&:focus-within {
|
|
112
|
-
scrollbar-color: color-mix(in srgb, currentColor 50%, transparent) transparent;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
@media (width < 64rem) {
|
|
117
|
-
.blue-layout-side {
|
|
118
|
-
translate: -100% 0;
|
|
119
|
-
height: 100%;
|
|
120
|
-
transition: translate 0.2s ease;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.blue-layout-state-drawer:checked ~ .blue-layout-side {
|
|
124
|
-
position: fixed;
|
|
125
|
-
top: 0;
|
|
126
|
-
left: 0;
|
|
127
|
-
z-index: calc(var(--base-z-index) + 1);
|
|
128
|
-
translate: 0;
|
|
129
|
-
width: calc(var(--spacing) * 80);
|
|
130
|
-
box-shadow: var(--drawer-side-shadow);
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.blue-layout-main {
|
|
135
|
-
overflow: auto;
|
|
136
|
-
grid-area: main;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.blue-layout-body {
|
|
140
|
-
--spacing: 0.25rem;
|
|
141
|
-
--blue-menu-item-indicator-bg: #{$sidebar-indicator-color};
|
|
142
|
-
--bs-link-hover-color: #{$link-hover-color};
|
|
143
|
-
|
|
144
|
-
width: calc(100% - var(--spacing) * 2);
|
|
145
|
-
height: calc(100% - var(--spacing));
|
|
146
|
-
margin-left: auto;
|
|
147
|
-
margin-right: auto;
|
|
148
|
-
overflow: auto;
|
|
149
|
-
scrollbar-color: color-mix(in srgb, currentColor 50%, transparent) transparent;
|
|
150
|
-
background-color: rgba(var(--bs-body-bg-rgb), var(--bs-bg-opacity, 1));
|
|
151
|
-
color: rgba(var(--bs-body-color-rgb), var(--bs-text-opacity, 1));
|
|
152
|
-
box-shadow: var(--bs-box-shadow-sm);
|
|
153
|
-
border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
|
|
154
|
-
border-radius: var(--bs-border-radius-lg);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
@include color-mode(dark, false) {
|
|
158
|
-
.blue-layout-body {
|
|
159
|
-
--blue-menu-item-indicator-bg: #{$sidebar-indicator-color-dark};
|
|
160
|
-
--bs-link-hover-color: #{$link-hover-color-dark};
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.blue-layout-overlay {
|
|
165
|
-
position: fixed;
|
|
166
|
-
z-index: var(--base-z-index);
|
|
167
|
-
inset: 0;
|
|
168
|
-
display: none;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
@media (width < 64rem) {
|
|
172
|
-
.blue-layout-state-drawer:checked ~ .blue-layout-overlay {
|
|
173
|
-
display: block;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* The new approach for a global layout with a sidebar, header and main content.
|
|
3
|
+
* Checkboxes are used for states for expanded or drawer.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
.blue-layout {
|
|
7
|
+
--spacing: 0.25rem;
|
|
8
|
+
--drawer-side-shadow:
|
|
9
|
+
rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px,
|
|
10
|
+
rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.25) 0px 25px 50px -12px;
|
|
11
|
+
--side-width: 18rem;
|
|
12
|
+
--base-z-index: 0;
|
|
13
|
+
|
|
14
|
+
--base-z-index: 500;
|
|
15
|
+
--side-width: var(--blue-sidebar-width);
|
|
16
|
+
--toggler-width: 2.714rem;
|
|
17
|
+
--toggler-height: var(--blue-header-height);
|
|
18
|
+
|
|
19
|
+
--blue-menu-item-indicator-bg: #{color-contrast($sidebar-bg, $sidebar-indicator-color)};
|
|
20
|
+
--bs-link-hover-color: #{color-contrast($sidebar-bg, $link-hover-color)};
|
|
21
|
+
|
|
22
|
+
height: 100dvh;
|
|
23
|
+
position: relative;
|
|
24
|
+
display: grid;
|
|
25
|
+
|
|
26
|
+
grid-template-rows: var(--toggler-height) auto;
|
|
27
|
+
grid-template-areas: "header" "main";
|
|
28
|
+
|
|
29
|
+
color: var(--blue-sidebar-color);
|
|
30
|
+
background-color: var(--blue-sidebar-bg);
|
|
31
|
+
|
|
32
|
+
&:has(> .blue-layout-toggle) {
|
|
33
|
+
grid-template-columns: 0 0 var(--toggler-width) calc(var(--side-width) - var(--toggler-width)) 1fr;
|
|
34
|
+
grid-template-rows: var(--toggler-height) auto;
|
|
35
|
+
grid-template-areas:
|
|
36
|
+
"state . toggle header header"
|
|
37
|
+
". side main main main";
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@include color-mode(dark, false) {
|
|
42
|
+
.blue-layout {
|
|
43
|
+
--blue-menu-item-indicator-bg: #{$sidebar-indicator-color-dark};
|
|
44
|
+
--bs-link-hover-color: #{color-contrast($sidebar-bg, $link-hover-color-dark)};
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@media (width >= 64rem) {
|
|
49
|
+
.blue-layout {
|
|
50
|
+
&:has(> .blue-layout-state-expand:checked) {
|
|
51
|
+
grid-template-areas:
|
|
52
|
+
"state . toggle header header"
|
|
53
|
+
". side side side main";
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.blue-layout-state {
|
|
59
|
+
grid-area: state;
|
|
60
|
+
position: absolute;
|
|
61
|
+
--size: 0;
|
|
62
|
+
height: var(--size);
|
|
63
|
+
width: var(--size);
|
|
64
|
+
appearance: none;
|
|
65
|
+
opacity: 0;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.blue-layout-toggle {
|
|
69
|
+
grid-area: toggle;
|
|
70
|
+
color: var(--blue-sidebar-color);
|
|
71
|
+
background-color: var(--blue-sidebar-bg);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.blue-layout-state:focus-visible + .blue-layout-toggle {
|
|
75
|
+
--trigger-box-shadow: var(--trigger-focus-box-shadow, inset 0 0 0.25rem);
|
|
76
|
+
box-shadow: var(--trigger-box-shadow);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@media (width < 64rem) {
|
|
80
|
+
.blue-layout-toggle-expand,
|
|
81
|
+
#layout-expand {
|
|
82
|
+
display: none !important;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@media (width >= 64rem) {
|
|
87
|
+
.blue-layout-toggle-drawer,
|
|
88
|
+
#layout-drawer {
|
|
89
|
+
display: none !important;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.blue-layout-header {
|
|
94
|
+
grid-area: header;
|
|
95
|
+
|
|
96
|
+
display: flex;
|
|
97
|
+
justify-content: space-between;
|
|
98
|
+
align-items: center;
|
|
99
|
+
position: relative;
|
|
100
|
+
z-index: var(--blue-layout-header-z-index, 4);
|
|
101
|
+
--blue-menu-item-dropdown-bg: var(--blue-sidebar-bg);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.blue-layout-side {
|
|
105
|
+
grid-area: side;
|
|
106
|
+
overflow: auto;
|
|
107
|
+
background: inherit;
|
|
108
|
+
scrollbar-color: transparent transparent;
|
|
109
|
+
|
|
110
|
+
&:hover,
|
|
111
|
+
&:focus-within {
|
|
112
|
+
scrollbar-color: color-mix(in srgb, currentColor 50%, transparent) transparent;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
@media (width < 64rem) {
|
|
117
|
+
.blue-layout-side {
|
|
118
|
+
translate: -100% 0;
|
|
119
|
+
height: 100%;
|
|
120
|
+
transition: translate 0.2s ease;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.blue-layout-state-drawer:checked ~ .blue-layout-side {
|
|
124
|
+
position: fixed;
|
|
125
|
+
top: 0;
|
|
126
|
+
left: 0;
|
|
127
|
+
z-index: calc(var(--base-z-index) + 1);
|
|
128
|
+
translate: 0;
|
|
129
|
+
width: calc(var(--spacing) * 80);
|
|
130
|
+
box-shadow: var(--drawer-side-shadow);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.blue-layout-main {
|
|
135
|
+
overflow: auto;
|
|
136
|
+
grid-area: main;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.blue-layout-body {
|
|
140
|
+
--spacing: 0.25rem;
|
|
141
|
+
--blue-menu-item-indicator-bg: #{$sidebar-indicator-color};
|
|
142
|
+
--bs-link-hover-color: #{$link-hover-color};
|
|
143
|
+
|
|
144
|
+
width: calc(100% - var(--spacing) * 2);
|
|
145
|
+
height: calc(100% - var(--spacing));
|
|
146
|
+
margin-left: auto;
|
|
147
|
+
margin-right: auto;
|
|
148
|
+
overflow: auto;
|
|
149
|
+
scrollbar-color: color-mix(in srgb, currentColor 50%, transparent) transparent;
|
|
150
|
+
background-color: rgba(var(--bs-body-bg-rgb), var(--bs-bg-opacity, 1));
|
|
151
|
+
color: rgba(var(--bs-body-color-rgb), var(--bs-text-opacity, 1));
|
|
152
|
+
box-shadow: var(--bs-box-shadow-sm);
|
|
153
|
+
border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
|
|
154
|
+
border-radius: var(--bs-border-radius-lg);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@include color-mode(dark, false) {
|
|
158
|
+
.blue-layout-body {
|
|
159
|
+
--blue-menu-item-indicator-bg: #{$sidebar-indicator-color-dark};
|
|
160
|
+
--bs-link-hover-color: #{$link-hover-color-dark};
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.blue-layout-overlay {
|
|
165
|
+
position: fixed;
|
|
166
|
+
z-index: var(--base-z-index);
|
|
167
|
+
inset: 0;
|
|
168
|
+
display: none;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
@media (width < 64rem) {
|
|
172
|
+
.blue-layout-state-drawer:checked ~ .blue-layout-overlay {
|
|
173
|
+
display: block;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
.blue-menu-item {
|
|
2
|
-
display: inline-flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
transition:
|
|
5
|
-
width 0.5s,
|
|
6
|
-
background-color 0.3s,
|
|
7
|
-
color 0.15s,
|
|
8
|
-
box-shadow 0.3s,
|
|
9
|
-
opacity 0.3s !important;
|
|
10
|
-
color: inherit;
|
|
11
|
-
border-color: transparent;
|
|
12
|
-
--bs-btn-active-border-color: transparent;
|
|
13
|
-
--bs-btn-disabled-border-color: transparent;
|
|
14
|
-
|
|
15
|
-
@media (prefers-reduced-motion) {
|
|
16
|
-
transition: none !important;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&:focus-visible {
|
|
20
|
-
&,
|
|
21
|
-
&.active {
|
|
22
|
-
box-shadow: inset 0 0 0 0.25rem color-mix(in srgb, currentColor 15%, transparent);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&::before {
|
|
27
|
-
--visual-padding: 0.125rem;
|
|
28
|
-
|
|
29
|
-
content: "";
|
|
30
|
-
position: absolute;
|
|
31
|
-
top: var(--visual-padding);
|
|
32
|
-
right: var(--visual-padding);
|
|
33
|
-
bottom: var(--visual-padding);
|
|
34
|
-
left: var(--visual-padding);
|
|
35
|
-
background-color: currentColor;
|
|
36
|
-
border-radius: var(--bs-btn-border-radius);
|
|
37
|
-
transform: scale(0.9);
|
|
38
|
-
opacity: 0;
|
|
39
|
-
transition: all 0.2s;
|
|
40
|
-
|
|
41
|
-
@media (prefers-reduced-motion) {
|
|
42
|
-
transition: none;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&:hover,
|
|
47
|
-
&:active,
|
|
48
|
-
&.active,
|
|
49
|
-
&:has(+ :popover-open) {
|
|
50
|
-
&::before {
|
|
51
|
-
transform: scale(1);
|
|
52
|
-
opacity: 0.25;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&.active,
|
|
57
|
-
&:has(+ :popover-open) {
|
|
58
|
-
&::before {
|
|
59
|
-
opacity: 0.16;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
&.current {
|
|
64
|
-
position: relative;
|
|
65
|
-
&::after {
|
|
66
|
-
@include blue-menu-item-indicator();
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.blue-horizontal {
|
|
72
|
-
.blue-menu-item.current::after {
|
|
73
|
-
@include blue-menu-item-indicator-horizontal();
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.blue-menu-item-current-hidden {
|
|
78
|
-
&:is(:where(.blue-menu-item):is(.current) *) {
|
|
79
|
-
display: none !important;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
.blue-menu-item-default-hidden {
|
|
83
|
-
&:is(:where(.blue-menu-item):is(:not(.current)) *) {
|
|
84
|
-
display: none !important;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
1
|
+
.blue-menu-item {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
transition:
|
|
5
|
+
width 0.5s,
|
|
6
|
+
background-color 0.3s,
|
|
7
|
+
color 0.15s,
|
|
8
|
+
box-shadow 0.3s,
|
|
9
|
+
opacity 0.3s !important;
|
|
10
|
+
color: inherit;
|
|
11
|
+
border-color: transparent;
|
|
12
|
+
--bs-btn-active-border-color: transparent;
|
|
13
|
+
--bs-btn-disabled-border-color: transparent;
|
|
14
|
+
|
|
15
|
+
@media (prefers-reduced-motion) {
|
|
16
|
+
transition: none !important;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&:focus-visible {
|
|
20
|
+
&,
|
|
21
|
+
&.active {
|
|
22
|
+
box-shadow: inset 0 0 0 0.25rem color-mix(in srgb, currentColor 15%, transparent);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&::before {
|
|
27
|
+
--visual-padding: 0.125rem;
|
|
28
|
+
|
|
29
|
+
content: "";
|
|
30
|
+
position: absolute;
|
|
31
|
+
top: var(--visual-padding);
|
|
32
|
+
right: var(--visual-padding);
|
|
33
|
+
bottom: var(--visual-padding);
|
|
34
|
+
left: var(--visual-padding);
|
|
35
|
+
background-color: currentColor;
|
|
36
|
+
border-radius: var(--bs-btn-border-radius);
|
|
37
|
+
transform: scale(0.9);
|
|
38
|
+
opacity: 0;
|
|
39
|
+
transition: all 0.2s;
|
|
40
|
+
|
|
41
|
+
@media (prefers-reduced-motion) {
|
|
42
|
+
transition: none;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&:hover,
|
|
47
|
+
&:active,
|
|
48
|
+
&.active,
|
|
49
|
+
&:has(+ :popover-open) {
|
|
50
|
+
&::before {
|
|
51
|
+
transform: scale(1);
|
|
52
|
+
opacity: 0.25;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&.active,
|
|
57
|
+
&:has(+ :popover-open) {
|
|
58
|
+
&::before {
|
|
59
|
+
opacity: 0.16;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&.current {
|
|
64
|
+
position: relative;
|
|
65
|
+
&::after {
|
|
66
|
+
@include blue-menu-item-indicator();
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.blue-horizontal {
|
|
72
|
+
.blue-menu-item.current::after {
|
|
73
|
+
@include blue-menu-item-indicator-horizontal();
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.blue-menu-item-current-hidden {
|
|
78
|
+
&:is(:where(.blue-menu-item):is(.current) *) {
|
|
79
|
+
display: none !important;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
.blue-menu-item-default-hidden {
|
|
83
|
+
&:is(:where(.blue-menu-item):is(:not(.current)) *) {
|
|
84
|
+
display: none !important;
|
|
85
|
+
}
|
|
86
|
+
}
|
package/dist/styles/_mixins.scss
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@import "./mixins/misc";
|
|
2
|
-
@import "./mixins/menu-item";
|
|
3
|
-
@import "./mixins/action-menu";
|
|
4
|
-
@import "./mixins/switch";
|
|
5
|
-
@import "./mixins/custom-property";
|
|
6
|
-
@import "./mixins/scroll-shadow";
|
|
1
|
+
@import "./mixins/misc";
|
|
2
|
+
@import "./mixins/menu-item";
|
|
3
|
+
@import "./mixins/action-menu";
|
|
4
|
+
@import "./mixins/switch";
|
|
5
|
+
@import "./mixins/custom-property";
|
|
6
|
+
@import "./mixins/scroll-shadow";
|