@acontplus/ng-components 3.0.1 → 3.1.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/fesm2022/acontplus-ng-components.mjs +7326 -4620
- package/fesm2022/acontplus-ng-components.mjs.map +1 -1
- package/package.json +5 -2
- package/src/_index.scss +2 -0
- package/src/core/style/_breakpoints.scss +63 -0
- package/src/core/style/_variables.scss +9 -0
- package/src/core/theming/_all-theme.scss +16 -1
- package/src/core/theming/prebuilt/aqua.scss +1 -1
- package/src/core/theming/prebuilt/blue.scss +1 -1
- package/src/core/theming/prebuilt/cyan.scss +1 -1
- package/src/core/theming/prebuilt/green.scss +1 -1
- package/src/core/theming/prebuilt/orange.scss +1 -1
- package/src/core/theming/prebuilt/pink.scss +1 -1
- package/src/core/theming/prebuilt/purple.scss +1 -1
- package/src/core/theming/prebuilt/rose.scss +1 -1
- package/src/core/tokens/_global-variables.scss +53 -0
- package/src/lib/components/button/v2/button.scss +172 -12
- package/src/lib/components/card/card.scss +225 -0
- package/src/lib/components/context-menu/context-menu-panel.scss +283 -0
- package/src/lib/components/date-range-input/date-range-input.scss +4 -0
- package/src/lib/components/theme/header/header.scss +166 -0
- package/src/lib/components/theme/shell-layout/shell-layout.scss +237 -0
- package/src/lib/components/theme/sidebar/sidebar.scss +0 -0
- package/src/lib/components/theme/sidemenu/sidemenu.scss +169 -0
- package/src/lib/components/theme/topmenu/topmenu.scss +83 -0
- package/src/lib/components/theme/user-menu/user-menu.scss +194 -0
- package/src/lib/components/theme/user-panel/user-panel.scss +64 -0
- package/types/acontplus-ng-components.d.ts +1595 -37
- /package/src/lib/components/{theme-toggle → theme/theme-toggle}/theme-toggle.scss +0 -0
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
@use './../../../../core/style/breakpoints';
|
|
2
|
+
.acontplus-container-wrap,
|
|
3
|
+
.acontplus-container {
|
|
4
|
+
--mat-sidenav-content-background-color: transparent;
|
|
5
|
+
|
|
6
|
+
height: 100%;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.acontplus-sidenav {
|
|
10
|
+
--mat-sidenav-container-width: var(--acp-sidenav-width);
|
|
11
|
+
|
|
12
|
+
position: absolute;
|
|
13
|
+
overflow-x: hidden;
|
|
14
|
+
border-width: 0 !important;
|
|
15
|
+
transition-property: transform, width !important;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// Layout control
|
|
19
|
+
.acontplus-header-above {
|
|
20
|
+
.acontplus-container {
|
|
21
|
+
height: calc(100% - var(--mat-toolbar-standard-height)) !important;
|
|
22
|
+
|
|
23
|
+
@include breakpoints.bp-lt(small) {
|
|
24
|
+
height: calc(100% - var(--mat-toolbar-mobile-height)) !important;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.acontplus-sidebar-main {
|
|
29
|
+
height: 100% !important;
|
|
30
|
+
padding-top: 0.5rem;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// Layout control
|
|
35
|
+
.acontplus-sidenav-collapsed {
|
|
36
|
+
.acontplus-sidenav {
|
|
37
|
+
width: var(--acp-sidenav-collapsed-width);
|
|
38
|
+
|
|
39
|
+
.menu-name,
|
|
40
|
+
.menu-label,
|
|
41
|
+
.menu-badge,
|
|
42
|
+
.menu-caret,
|
|
43
|
+
.acontplus-user-panel-info {
|
|
44
|
+
opacity: 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.menu-icon.submenu-icon {
|
|
48
|
+
opacity: 1;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.acontplus-user-panel-avatar {
|
|
52
|
+
transform: scale(0.5);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&:hover {
|
|
56
|
+
width: var(--acp-sidenav-width);
|
|
57
|
+
|
|
58
|
+
.menu-name,
|
|
59
|
+
.menu-label,
|
|
60
|
+
.menu-badge,
|
|
61
|
+
.menu-caret,
|
|
62
|
+
.acontplus-user-panel-info {
|
|
63
|
+
opacity: 1;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.menu-icon.submenu-icon {
|
|
67
|
+
opacity: 0;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.acontplus-user-panel-avatar {
|
|
71
|
+
transform: scale(1);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.acontplus-content {
|
|
77
|
+
margin-left: var(--acp-sidenav-collapsed-width) !important;
|
|
78
|
+
|
|
79
|
+
[dir='rtl'] & {
|
|
80
|
+
margin-right: var(--acp-sidenav-collapsed-width) !important;
|
|
81
|
+
margin-left: auto !important;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&[dir='rtl'] .acontplus-content {
|
|
86
|
+
margin-right: var(--acp-sidenav-collapsed-width) !important;
|
|
87
|
+
margin-left: auto !important;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// Layout control
|
|
92
|
+
.acontplus-navbar-top {
|
|
93
|
+
.acontplus-topmenu {
|
|
94
|
+
top: 0;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.acontplus-branding {
|
|
98
|
+
margin-left: 1rem;
|
|
99
|
+
|
|
100
|
+
[dir='rtl'] & {
|
|
101
|
+
margin-right: 1rem;
|
|
102
|
+
margin-left: auto;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// Layout control
|
|
108
|
+
.acontplus-header-fixed {
|
|
109
|
+
.acontplus-header {
|
|
110
|
+
position: sticky;
|
|
111
|
+
top: 0;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.acontplus-topmenu {
|
|
115
|
+
top: var(--mat-toolbar-standard-height);
|
|
116
|
+
|
|
117
|
+
@include breakpoints.bp-lt(small) {
|
|
118
|
+
top: var(--mat-toolbar-mobile-height);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.acontplus-page-content {
|
|
124
|
+
position: relative;
|
|
125
|
+
padding: var(--acp-gutter);
|
|
126
|
+
|
|
127
|
+
.acontplus-header + &,
|
|
128
|
+
.acontplus-header-above &,
|
|
129
|
+
.acontplus-navbar-top & {
|
|
130
|
+
padding-top: 0;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
// ── Content ───────────────────────────────────────────────────────────────────
|
|
134
|
+
.acp-shell-content {
|
|
135
|
+
display: flex;
|
|
136
|
+
flex-direction: column;
|
|
137
|
+
height: 100%;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.acp-shell-page-content {
|
|
141
|
+
position: relative;
|
|
142
|
+
flex: 1 1 auto;
|
|
143
|
+
padding: var(--acp-gutter, 1rem);
|
|
144
|
+
overflow: auto;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
// ── Layout modifiers ──────────────────────────────────────────────────────────
|
|
148
|
+
|
|
149
|
+
// Header above: the sidenav container must account for the header height
|
|
150
|
+
.acp-shell--header-above {
|
|
151
|
+
display: flex;
|
|
152
|
+
flex-direction: column;
|
|
153
|
+
|
|
154
|
+
.acp-shell-sidenav-container {
|
|
155
|
+
flex: 1 1 auto;
|
|
156
|
+
height: calc(100% - var(--mat-toolbar-standard-height));
|
|
157
|
+
|
|
158
|
+
@include breakpoints.bp-lt(small) {
|
|
159
|
+
height: calc(100% - var(--mat-toolbar-mobile-height));
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.acp-shell-page-content {
|
|
164
|
+
padding-top: 0;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
// Sidenav collapsed (narrow mode)
|
|
169
|
+
.acp-shell--sidenav-collapsed {
|
|
170
|
+
.acp-shell-sidenav {
|
|
171
|
+
width: var(--acp-sidenav-collapsed-width);
|
|
172
|
+
|
|
173
|
+
// Fade out text/labels when collapsed
|
|
174
|
+
.menu-name,
|
|
175
|
+
.menu-label,
|
|
176
|
+
.menu-badge,
|
|
177
|
+
.menu-caret,
|
|
178
|
+
.acp-sidebar-user-panel-info {
|
|
179
|
+
opacity: 0;
|
|
180
|
+
pointer-events: none;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.menu-icon.submenu-icon {
|
|
184
|
+
opacity: 1;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.acp-sidebar-user-panel-avatar {
|
|
188
|
+
transform: scale(0.5);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
// Expand on hover
|
|
192
|
+
&:hover {
|
|
193
|
+
width: var(--acp-sidenav-width);
|
|
194
|
+
|
|
195
|
+
.menu-name,
|
|
196
|
+
.menu-label,
|
|
197
|
+
.menu-badge,
|
|
198
|
+
.menu-caret,
|
|
199
|
+
.acp-sidebar-user-panel-info {
|
|
200
|
+
opacity: 1;
|
|
201
|
+
pointer-events: auto;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.menu-icon.submenu-icon {
|
|
205
|
+
opacity: 0;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.acp-sidebar-user-panel-avatar {
|
|
209
|
+
transform: scale(1);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
// Push content to the right matching the collapsed width
|
|
215
|
+
.acp-shell-content {
|
|
216
|
+
margin-left: var(--acp-sidenav-collapsed-width) !important;
|
|
217
|
+
|
|
218
|
+
[dir='rtl'] & {
|
|
219
|
+
margin-right: var(--acp-sidenav-collapsed-width) !important;
|
|
220
|
+
margin-left: auto !important;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
// Top navbar mode
|
|
226
|
+
.acp-shell--navbar-top {
|
|
227
|
+
.acp-shell-page-content {
|
|
228
|
+
padding-top: 0;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
// Header fixed: sticky header inside content
|
|
233
|
+
.acp-shell--header-fixed {
|
|
234
|
+
.acp-shell-page-content {
|
|
235
|
+
padding-top: 0;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
|
|
3
|
+
.acp-sidemenu {
|
|
4
|
+
padding: 0;
|
|
5
|
+
margin: 0;
|
|
6
|
+
list-style: none;
|
|
7
|
+
|
|
8
|
+
.menu-item {
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
border-radius: 1.5rem;
|
|
11
|
+
transition: background 225ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
12
|
+
|
|
13
|
+
> .submenu {
|
|
14
|
+
visibility: hidden;
|
|
15
|
+
height: 0;
|
|
16
|
+
transition: all 225ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
> .menu-heading {
|
|
20
|
+
&:hover,
|
|
21
|
+
&:focus {
|
|
22
|
+
background-color: var(--acp-sidemenu-heading-hover-background-color);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&.active {
|
|
27
|
+
> .menu-heading {
|
|
28
|
+
color: var(--acp-sidemenu-active-heading-text-color);
|
|
29
|
+
background-color: var(--acp-sidemenu-active-heading-background-color);
|
|
30
|
+
|
|
31
|
+
&:hover,
|
|
32
|
+
&:focus {
|
|
33
|
+
background-color: var(--acp-sidemenu-active-heading-hover-background-color);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&.expanded {
|
|
39
|
+
background-color: var(--acp-sidemenu-expanded-background-color);
|
|
40
|
+
|
|
41
|
+
> .submenu {
|
|
42
|
+
visibility: visible;
|
|
43
|
+
height: auto; // fallback for browsers that do not support calc-size
|
|
44
|
+
height: calc-size(auto, size);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
> .menu-toggle > .menu-caret {
|
|
48
|
+
transform: rotate(-180deg);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&:has(.active) > .menu-heading {
|
|
53
|
+
color: var(--acp-sidemenu-active-heading-text-color);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.menu-heading {
|
|
58
|
+
position: relative;
|
|
59
|
+
display: flex;
|
|
60
|
+
align-items: center;
|
|
61
|
+
width: calc(var(--acp-sidenav-width) - 1rem);
|
|
62
|
+
padding: 0.75rem;
|
|
63
|
+
font-size: inherit;
|
|
64
|
+
color: inherit;
|
|
65
|
+
text-decoration: none;
|
|
66
|
+
cursor: pointer;
|
|
67
|
+
outline: none;
|
|
68
|
+
background-color: transparent;
|
|
69
|
+
border: none;
|
|
70
|
+
border-radius: 1.5rem;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.menu-icon {
|
|
74
|
+
width: 1.5rem;
|
|
75
|
+
height: 1.5rem;
|
|
76
|
+
margin-right: 0.75rem;
|
|
77
|
+
font-size: 1.25rem;
|
|
78
|
+
line-height: 1.5rem;
|
|
79
|
+
text-align: center;
|
|
80
|
+
|
|
81
|
+
[dir='rtl'] & {
|
|
82
|
+
margin-right: 0;
|
|
83
|
+
margin-left: 0.75rem;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&.submenu-icon {
|
|
87
|
+
position: absolute;
|
|
88
|
+
left: 0.75rem;
|
|
89
|
+
width: 1.5rem;
|
|
90
|
+
height: 1.5rem;
|
|
91
|
+
font-size: 1rem;
|
|
92
|
+
line-height: 1.5rem;
|
|
93
|
+
opacity: 0;
|
|
94
|
+
|
|
95
|
+
[dir='rtl'] & {
|
|
96
|
+
right: 0.75rem;
|
|
97
|
+
left: 0;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.menu-caret {
|
|
103
|
+
display: block;
|
|
104
|
+
width: 1.5rem;
|
|
105
|
+
height: 1.5rem;
|
|
106
|
+
font-size: 1.5rem;
|
|
107
|
+
line-height: 1.5rem;
|
|
108
|
+
text-align: center;
|
|
109
|
+
transition: transform mat.$private-swift-ease-out-duration
|
|
110
|
+
mat.$private-swift-ease-out-timing-function;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.menu-name {
|
|
114
|
+
flex: 1;
|
|
115
|
+
overflow: hidden;
|
|
116
|
+
text-overflow: ellipsis;
|
|
117
|
+
text-align: initial;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.menu-icon,
|
|
121
|
+
.menu-name,
|
|
122
|
+
.menu-label,
|
|
123
|
+
.menu-badge {
|
|
124
|
+
transition: opacity mat.$private-swift-ease-out-duration
|
|
125
|
+
mat.$private-swift-ease-out-timing-function;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.menu-label,
|
|
129
|
+
.menu-badge {
|
|
130
|
+
padding: 0.25rem 0.5rem;
|
|
131
|
+
font-size: 0.75rem;
|
|
132
|
+
font-weight: 700;
|
|
133
|
+
line-height: 1;
|
|
134
|
+
color: #fff;
|
|
135
|
+
background-color: #757575;
|
|
136
|
+
border-radius: 0.375rem;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.menu-badge {
|
|
140
|
+
border-radius: 50rem;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&.level-1 > li > .menu-heading {
|
|
144
|
+
padding-left: 3rem;
|
|
145
|
+
|
|
146
|
+
[dir='rtl'] & {
|
|
147
|
+
padding-right: 3rem;
|
|
148
|
+
padding-left: 1rem;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
&.level-2 > li > .menu-heading {
|
|
153
|
+
padding-left: 4rem;
|
|
154
|
+
|
|
155
|
+
[dir='rtl'] & {
|
|
156
|
+
padding-right: 4rem;
|
|
157
|
+
padding-left: 1rem;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
&.level-2 [class^='level-'] > li > .menu-heading {
|
|
162
|
+
padding-left: 5rem;
|
|
163
|
+
|
|
164
|
+
[dir='rtl'] & {
|
|
165
|
+
padding-right: 5rem;
|
|
166
|
+
padding-left: 1rem;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
|
|
3
|
+
.acp-topmenu {
|
|
4
|
+
--mat-tab-divider-height: 0;
|
|
5
|
+
--mat-button-text-label-text-color: var(--acp-topmenu-text-color);
|
|
6
|
+
|
|
7
|
+
position: sticky;
|
|
8
|
+
z-index: 200;
|
|
9
|
+
display: block;
|
|
10
|
+
padding: 0.5rem;
|
|
11
|
+
backdrop-filter: blur(8px);
|
|
12
|
+
|
|
13
|
+
.mat-mdc-button {
|
|
14
|
+
padding: 0 1rem;
|
|
15
|
+
white-space: nowrap;
|
|
16
|
+
|
|
17
|
+
&.active {
|
|
18
|
+
background-color: var(--acp-topmenu-item-active-background-color);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.menu-icon,
|
|
23
|
+
.menu-caret,
|
|
24
|
+
.menu-name {
|
|
25
|
+
vertical-align: middle;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.mat-icon.menu-icon {
|
|
29
|
+
width: 1.125rem;
|
|
30
|
+
height: 1.125rem;
|
|
31
|
+
margin-right: 0.5rem;
|
|
32
|
+
font-size: 1.125rem;
|
|
33
|
+
line-height: 1.125rem;
|
|
34
|
+
|
|
35
|
+
[dir='rtl'] & {
|
|
36
|
+
margin-right: auto;
|
|
37
|
+
margin-left: 0.5rem;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.mat-icon.menu-caret {
|
|
42
|
+
margin-right: -0.5rem;
|
|
43
|
+
|
|
44
|
+
[dir='rtl'] & {
|
|
45
|
+
margin-right: auto;
|
|
46
|
+
margin-left: -0.5rem;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.menu-label,
|
|
51
|
+
.menu-badge {
|
|
52
|
+
padding: 0.25rem 0.5rem;
|
|
53
|
+
margin-left: 0.5rem;
|
|
54
|
+
font-size: 0.75rem;
|
|
55
|
+
font-weight: 700;
|
|
56
|
+
line-height: 1;
|
|
57
|
+
color: #fff;
|
|
58
|
+
background-color: #757575;
|
|
59
|
+
border-radius: 0.375rem;
|
|
60
|
+
|
|
61
|
+
[dir='rtl'] & {
|
|
62
|
+
margin-right: 0.5rem;
|
|
63
|
+
margin-left: auto;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.menu-badge {
|
|
68
|
+
border-radius: 50rem;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.mat-tab-nav-bar,
|
|
72
|
+
.mat-tab-header {
|
|
73
|
+
border-bottom: none;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.acontplus-topmenu-panel {
|
|
78
|
+
.mat-mdc-menu-item {
|
|
79
|
+
&.active {
|
|
80
|
+
color: var(--acp-topmenu-dropdown-item-active-text-color);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
// UserMenu Premium Styles - Material Design 3
|
|
2
|
+
|
|
3
|
+
.acp-user-menu {
|
|
4
|
+
&__trigger {
|
|
5
|
+
width: 40px;
|
|
6
|
+
height: 40px;
|
|
7
|
+
border-radius: 50%;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&__avatar {
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: 100%;
|
|
14
|
+
object-fit: cover;
|
|
15
|
+
border-radius: calc(infinity * 1px);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&__panel {
|
|
19
|
+
.mat-mdc-menu-panel {
|
|
20
|
+
border-radius: 20px !important;
|
|
21
|
+
background: var(--mat-sys-surface-container) !important;
|
|
22
|
+
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
|
|
23
|
+
min-width: 280px;
|
|
24
|
+
max-width: 320px;
|
|
25
|
+
padding: 0;
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.mat-mdc-menu-content {
|
|
30
|
+
padding: 0 !important;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&__content {
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
color: var(--mat-sys-on-surface);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&__items {
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
padding: var(--mat-sys-spacing-small, 8px);
|
|
44
|
+
gap: 4px;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// Dark theme support
|
|
49
|
+
@media (prefers-color-scheme: dark) {
|
|
50
|
+
.acp-user-menu__panel .mat-mdc-menu-panel {
|
|
51
|
+
background: var(--mat-sys-surface-container-high) !important;
|
|
52
|
+
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.acp-user-menu-header {
|
|
57
|
+
&__content {
|
|
58
|
+
padding-block: calc(var(--acp-spacing, 0.25rem) * 4);
|
|
59
|
+
padding-inline: calc(var(--acp-spacing, 0.25rem) * 5);
|
|
60
|
+
display: flex;
|
|
61
|
+
align-items: center;
|
|
62
|
+
gap: calc(var(--acp-spacing) * 4);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&__avatar {
|
|
66
|
+
flex-shrink: 0;
|
|
67
|
+
width: 56px;
|
|
68
|
+
height: 56px;
|
|
69
|
+
border-radius: 50%;
|
|
70
|
+
overflow: hidden;
|
|
71
|
+
background: var(--mat-sys-surface-container-highest);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&__avatar-img {
|
|
75
|
+
width: 100%;
|
|
76
|
+
height: 100%;
|
|
77
|
+
object-fit: cover;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&__info {
|
|
81
|
+
flex: 1;
|
|
82
|
+
min-width: 0;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&__name-row {
|
|
86
|
+
display: flex;
|
|
87
|
+
align-items: center;
|
|
88
|
+
gap: var(--mat-sys-spacing-small, 8px);
|
|
89
|
+
margin-bottom: 2px;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&__name {
|
|
93
|
+
margin: 0;
|
|
94
|
+
font: var(--mat-sys-typescale-body-large);
|
|
95
|
+
color: var(--mat-sys-on-surface);
|
|
96
|
+
font-weight: 500;
|
|
97
|
+
overflow: hidden;
|
|
98
|
+
text-overflow: ellipsis;
|
|
99
|
+
white-space: nowrap;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&__badge {
|
|
103
|
+
display: inline-flex;
|
|
104
|
+
align-items: center;
|
|
105
|
+
padding: 2px 8px;
|
|
106
|
+
border-radius: 12px;
|
|
107
|
+
font: var(--mat-sys-typescale-label-small);
|
|
108
|
+
font-weight: 600;
|
|
109
|
+
background: var(--mat-sys-primary-container);
|
|
110
|
+
color: var(--mat-sys-on-primary-container);
|
|
111
|
+
text-transform: uppercase;
|
|
112
|
+
letter-spacing: 0.5px;
|
|
113
|
+
font-size: 10px;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&__email {
|
|
117
|
+
margin: 0;
|
|
118
|
+
font: var(--mat-sys-typescale-body-small);
|
|
119
|
+
color: var(--mat-sys-on-surface-variant);
|
|
120
|
+
overflow: hidden;
|
|
121
|
+
text-overflow: ellipsis;
|
|
122
|
+
white-space: nowrap;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&__divider {
|
|
126
|
+
height: 1px;
|
|
127
|
+
margin-top: var(--mat-sys-spacing-medium, 16px);
|
|
128
|
+
background: var(--acp-color-border, var(--mat-sys-outline-variant));
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.acp-user-menu-item {
|
|
133
|
+
width: 100%;
|
|
134
|
+
|
|
135
|
+
&__link {
|
|
136
|
+
display: flex;
|
|
137
|
+
align-items: center;
|
|
138
|
+
gap: var(--mat-sys-spacing-medium, 16px);
|
|
139
|
+
width: 100%;
|
|
140
|
+
padding: var(--mat-sys-spacing-medium, 8px);
|
|
141
|
+
border: none;
|
|
142
|
+
background: transparent;
|
|
143
|
+
cursor: pointer;
|
|
144
|
+
text-decoration: none;
|
|
145
|
+
font: var(--mat-sys-typescale-body-large);
|
|
146
|
+
color: var(--mat-sys-on-surface);
|
|
147
|
+
border-radius: 12px;
|
|
148
|
+
transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
149
|
+
|
|
150
|
+
&:hover {
|
|
151
|
+
background: var(--mat-sys-surface-container-highest);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
&:focus-visible {
|
|
155
|
+
outline: 2px solid var(--mat-sys-primary);
|
|
156
|
+
outline-offset: 2px;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
&--danger {
|
|
160
|
+
color: var(--mat-sys-error);
|
|
161
|
+
|
|
162
|
+
&:hover {
|
|
163
|
+
background: var(--mat-sys-error-container);
|
|
164
|
+
color: var(--mat-sys-on-error-container);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
&__icon {
|
|
170
|
+
font-size: 20px;
|
|
171
|
+
width: 20px;
|
|
172
|
+
height: 20px;
|
|
173
|
+
color: var(--mat-sys-on-surface-variant);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
&__label {
|
|
177
|
+
flex: 1;
|
|
178
|
+
text-align: left;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
&__badge {
|
|
182
|
+
display: inline-flex;
|
|
183
|
+
align-items: center;
|
|
184
|
+
justify-content: center;
|
|
185
|
+
min-width: 20px;
|
|
186
|
+
height: 20px;
|
|
187
|
+
padding: 0 6px;
|
|
188
|
+
border-radius: 10px;
|
|
189
|
+
font: var(--mat-sys-typescale-label-small);
|
|
190
|
+
font-weight: 600;
|
|
191
|
+
background: var(--mat-sys-error);
|
|
192
|
+
color: var(--mat-sys-on-error);
|
|
193
|
+
}
|
|
194
|
+
}
|