@open-rlb/ng-bootstrap 3.1.13 → 3.1.15
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/assets/scss/_custom.scss
CHANGED
|
@@ -458,12 +458,12 @@ a.ck.ck-button.ck-on {
|
|
|
458
458
|
rlb-dt-table.dt-card-style {
|
|
459
459
|
display: block;
|
|
460
460
|
margin-bottom: 1.5rem;
|
|
461
|
-
|
|
462
461
|
.table-responsive {
|
|
463
462
|
box-shadow: $card-box-shadow;
|
|
464
463
|
border-radius: $card-border-radius;
|
|
465
464
|
background-color: var(--bs-secondary-bg, var(--bs-body-bg));
|
|
466
465
|
border: 1px solid var(--bs-border-color-translucent);
|
|
466
|
+
padding: 1rem;
|
|
467
467
|
}
|
|
468
468
|
|
|
469
469
|
.table {
|
|
@@ -487,13 +487,13 @@ rlb-dt-table.dt-card-style {
|
|
|
487
487
|
tfoot tr:last-child td:first-child,
|
|
488
488
|
tbody:last-child tr:last-child td:first-child {
|
|
489
489
|
border-bottom-left-radius: $card-inner-border-radius;
|
|
490
|
-
border-bottom: 0;
|
|
490
|
+
//border-bottom: 0;
|
|
491
491
|
}
|
|
492
492
|
|
|
493
493
|
tfoot tr:last-child td:last-child,
|
|
494
494
|
tbody:last-child tr:last-child td:last-child {
|
|
495
495
|
border-bottom-right-radius: $card-inner-border-radius;
|
|
496
|
-
border-bottom: 0;
|
|
496
|
+
//border-bottom: 0;
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
499
|
}
|
|
@@ -701,7 +701,7 @@ $font-family-code: var(--#{$prefix}font-monospace);
|
|
|
701
701
|
// $font-size-root effects the value of `rem`, which is used for as well font sizes, paddings and margins
|
|
702
702
|
// $font-size-base effects the font size of the body text
|
|
703
703
|
$font-size-root: null;
|
|
704
|
-
$font-size-base:
|
|
704
|
+
$font-size-base: 0.9rem;
|
|
705
705
|
$font-size-sm: $font-size-base * .875;
|
|
706
706
|
$font-size-lg: $font-size-base * 1.25;
|
|
707
707
|
|
|
@@ -3,52 +3,67 @@
|
|
|
3
3
|
// _menu.scss
|
|
4
4
|
//
|
|
5
5
|
|
|
6
|
+
// ==========================================
|
|
7
|
+
// 1. Sidebar Configuration (The "Bridge")
|
|
8
|
+
// ==========================================
|
|
9
|
+
// We map global theme variables to sidebar specific variables here.
|
|
10
|
+
|
|
11
|
+
// Spacing
|
|
12
|
+
$sidebar-padding-y: $spacer;
|
|
13
|
+
$menu-item-padding-y: $nav-link-padding-y;
|
|
14
|
+
$menu-item-padding-x: 1.5rem;
|
|
15
|
+
$menu-item-margin-y: 2px;
|
|
16
|
+
|
|
17
|
+
// Typography
|
|
18
|
+
$menu-item-font-size: $font-size-base;
|
|
19
|
+
$menu-item-icon-size: $font-size-lg;
|
|
20
|
+
$submenu-font-size: $font-size-sm;
|
|
21
|
+
$submenu-level-2-font-size: $font-size-sm;
|
|
22
|
+
|
|
23
|
+
// Indentation logic
|
|
24
|
+
$submenu-indent-base: $menu-item-padding-x;
|
|
25
|
+
$submenu-indent-step: 1.25rem; // How much to indent per level
|
|
26
|
+
|
|
6
27
|
rlb-sidebar {
|
|
7
28
|
--rlb-sidebar-width: #{$sidebar-width};
|
|
8
|
-
--rlb-item-padding-x: 1.5rem;
|
|
9
|
-
--rlb-item-padding-y: 0.625rem;
|
|
10
29
|
|
|
11
|
-
|
|
12
|
-
--
|
|
30
|
+
// SYNC: Mapped to variables above
|
|
31
|
+
--rlb-item-padding-x: #{$menu-item-padding-x};
|
|
32
|
+
--rlb-item-padding-y: #{$menu-item-padding-y};
|
|
33
|
+
|
|
34
|
+
--bs-body-color: #{$body-color}; // SYNC: Use global body color variable
|
|
35
|
+
--bs-body-bg: #{$white};
|
|
36
|
+
|
|
13
37
|
color: var(--bs-body-color);
|
|
14
38
|
|
|
15
39
|
&[data-bs-theme="light"] {
|
|
16
|
-
--rlb-sidebar-bg: #
|
|
40
|
+
--rlb-sidebar-bg: #{$sidebar-bg};
|
|
17
41
|
--rlb-sidebar-border: #eff0f2;
|
|
18
|
-
|
|
19
|
-
--rlb-menu-item-color: #
|
|
20
|
-
--rlb-menu-item-
|
|
21
|
-
--rlb-menu-item-active-
|
|
22
|
-
|
|
23
|
-
--rlb-
|
|
24
|
-
|
|
25
|
-
--rlb-submenu-bg: #ffffff;
|
|
26
|
-
|
|
27
|
-
--rlb-scrollbar-thumb: #ced4da;
|
|
42
|
+
--rlb-menu-item-color: #{$sidebar-menu-item-color};
|
|
43
|
+
--rlb-menu-item-hover-color: #{$sidebar-menu-item-hover-color};
|
|
44
|
+
--rlb-menu-item-active-color: #{$sidebar-menu-item-active-color};
|
|
45
|
+
--rlb-menu-item-active-bg: #{$gray-100}; // SYNC: Used $gray-100 instead of hex
|
|
46
|
+
--rlb-submenu-bg: #{$sidebar-bg};
|
|
47
|
+
--rlb-scrollbar-thumb: #{$gray-400};
|
|
28
48
|
--rlb-scrollbar-track: transparent;
|
|
29
49
|
}
|
|
30
50
|
|
|
31
51
|
&[data-bs-theme="dark"] {
|
|
32
|
-
--rlb-sidebar-bg: #
|
|
52
|
+
--rlb-sidebar-bg: #{$sidebar-dark-bg};
|
|
33
53
|
--rlb-sidebar-border: #32394e;
|
|
34
|
-
|
|
35
|
-
--rlb-menu-item-color: #
|
|
36
|
-
--rlb-menu-item-
|
|
37
|
-
--rlb-menu-item-active-color:
|
|
38
|
-
|
|
39
|
-
--rlb-menu-item-active-bg: #{color.adjust(#2a3042, $lightness: 3%)};
|
|
40
|
-
|
|
41
|
-
--rlb-submenu-bg: #2a3042;
|
|
42
|
-
|
|
54
|
+
--rlb-menu-item-color: #{$sidebar-dark-menu-item-color};
|
|
55
|
+
--rlb-menu-item-hover-color: #{$sidebar-dark-menu-item-hover-color};
|
|
56
|
+
--rlb-menu-item-active-color: #{$sidebar-dark-menu-item-active-color};
|
|
57
|
+
--rlb-menu-item-active-bg: #{color.adjust($sidebar-dark-bg, $lightness: 3%)};
|
|
58
|
+
--rlb-submenu-bg: #{$sidebar-dark-bg};
|
|
43
59
|
--rlb-scrollbar-thumb: #5c6276;
|
|
44
60
|
--rlb-scrollbar-track: transparent;
|
|
45
61
|
}
|
|
46
62
|
}
|
|
47
63
|
|
|
48
64
|
#sidebar-menu {
|
|
49
|
-
padding:
|
|
65
|
+
padding: $sidebar-padding-y 0;
|
|
50
66
|
scrollbar-gutter: stable;
|
|
51
|
-
|
|
52
67
|
scrollbar-width: thin;
|
|
53
68
|
scrollbar-color: var(--rlb-scrollbar-thumb) var(--rlb-scrollbar-track);
|
|
54
69
|
|
|
@@ -82,16 +97,12 @@ rlb-sidebar {
|
|
|
82
97
|
&:after {
|
|
83
98
|
content: "\F0140";
|
|
84
99
|
font-family: 'Material Design Icons';
|
|
85
|
-
|
|
86
100
|
position: absolute;
|
|
87
101
|
right: 1rem;
|
|
88
102
|
top: 50%;
|
|
89
103
|
display: block;
|
|
90
104
|
font-size: 1.2rem;
|
|
91
|
-
|
|
92
|
-
// smoothly animate the transform
|
|
93
105
|
transition: transform 0.3s ease-in-out;
|
|
94
|
-
|
|
95
106
|
transform: translateY(-50%) rotate(0deg);
|
|
96
107
|
}
|
|
97
108
|
|
|
@@ -109,10 +120,11 @@ rlb-sidebar {
|
|
|
109
120
|
padding: var(--rlb-item-padding-y) var(--rlb-item-padding-x);
|
|
110
121
|
color: var(--rlb-menu-item-color);
|
|
111
122
|
position: relative;
|
|
112
|
-
|
|
123
|
+
|
|
124
|
+
font-size: $menu-item-font-size;
|
|
113
125
|
transition: all .4s;
|
|
114
126
|
|
|
115
|
-
margin:
|
|
127
|
+
margin: $menu-item-margin-y ($spacer * 0.3);
|
|
116
128
|
border-radius: $border-radius;
|
|
117
129
|
|
|
118
130
|
.menu-text {
|
|
@@ -120,7 +132,7 @@ rlb-sidebar {
|
|
|
120
132
|
white-space: nowrap;
|
|
121
133
|
overflow: hidden;
|
|
122
134
|
text-overflow: ellipsis;
|
|
123
|
-
margin-right: 0.
|
|
135
|
+
margin-right: ($spacer * 0.5);
|
|
124
136
|
}
|
|
125
137
|
|
|
126
138
|
i {
|
|
@@ -128,7 +140,8 @@ rlb-sidebar {
|
|
|
128
140
|
display: inline-block;
|
|
129
141
|
min-width: 1.75rem;
|
|
130
142
|
padding-bottom: .125em;
|
|
131
|
-
|
|
143
|
+
|
|
144
|
+
font-size: $menu-item-icon-size;
|
|
132
145
|
line-height: 1.40625rem;
|
|
133
146
|
vertical-align: middle;
|
|
134
147
|
color: inherit;
|
|
@@ -142,8 +155,6 @@ rlb-sidebar {
|
|
|
142
155
|
|
|
143
156
|
&:hover {
|
|
144
157
|
color: var(--rlb-menu-item-hover-color);
|
|
145
|
-
//background-color: rgba(255,255,255, 0.05);
|
|
146
|
-
|
|
147
158
|
i {
|
|
148
159
|
color: inherit;
|
|
149
160
|
}
|
|
@@ -158,7 +169,7 @@ rlb-sidebar {
|
|
|
158
169
|
&.mm-active > a {
|
|
159
170
|
color: var(--rlb-menu-item-active-color) !important;
|
|
160
171
|
background-color: var(--rlb-menu-item-active-bg);
|
|
161
|
-
font-weight:
|
|
172
|
+
font-weight: $font-weight-semibold;
|
|
162
173
|
|
|
163
174
|
i {
|
|
164
175
|
color: inherit !important;
|
|
@@ -176,8 +187,10 @@ rlb-sidebar {
|
|
|
176
187
|
flex-direction: column;
|
|
177
188
|
li {
|
|
178
189
|
a {
|
|
179
|
-
padding
|
|
180
|
-
|
|
190
|
+
// Calculate padding based on Base + Step
|
|
191
|
+
padding: 0.4rem $menu-item-padding-x 0.4rem ($submenu-indent-base + $submenu-indent-step);
|
|
192
|
+
|
|
193
|
+
font-size: $submenu-font-size;
|
|
181
194
|
color: var(--rlb-menu-item-color);
|
|
182
195
|
background-color: transparent;
|
|
183
196
|
|
|
@@ -195,8 +208,10 @@ rlb-sidebar {
|
|
|
195
208
|
padding: 0;
|
|
196
209
|
li {
|
|
197
210
|
a {
|
|
198
|
-
padding:
|
|
199
|
-
|
|
211
|
+
// Calculate padding: Base + (Step * 2)
|
|
212
|
+
padding: 0.4rem $menu-item-padding-x 0.4rem ($submenu-indent-base + ($submenu-indent-step * 2));
|
|
213
|
+
|
|
214
|
+
font-size: $submenu-level-2-font-size;
|
|
200
215
|
}
|
|
201
216
|
}
|
|
202
217
|
}
|
|
@@ -238,12 +253,8 @@ rlb-sidebar {
|
|
|
238
253
|
|
|
239
254
|
.vertical-menu {
|
|
240
255
|
width: inherit;
|
|
241
|
-
//z-index: 1001;
|
|
242
256
|
background: var(--rlb-sidebar-bg);
|
|
243
|
-
//bottom: 0;
|
|
244
257
|
margin-top: 0;
|
|
245
|
-
// position: fixed;
|
|
246
|
-
//top: $header-height;
|
|
247
258
|
box-shadow: $box-shadow;
|
|
248
259
|
height: 100%;
|
|
249
260
|
}
|
|
@@ -9033,7 +9033,7 @@ class AutocompleteComponent extends AbstractComponent {
|
|
|
9033
9033
|
this.menuMaxWidth = input(400, { ...(ngDevMode ? { debugName: "menuMaxWidth" } : {}), alias: 'menu-max-width', transform: numberAttribute });
|
|
9034
9034
|
this.userDefinedId = input('', { ...(ngDevMode ? { debugName: "userDefinedId" } : {}), alias: 'id', transform: (v) => v || '' });
|
|
9035
9035
|
this.enableValidation = input(false, { ...(ngDevMode ? { debugName: "enableValidation" } : {}), transform: booleanAttribute, alias: 'enable-validation' });
|
|
9036
|
-
this.inputAutocomplete = input('
|
|
9036
|
+
this.inputAutocomplete = input('off', ...(ngDevMode ? [{ debugName: "inputAutocomplete" }] : []));
|
|
9037
9037
|
this.el = viewChild('field', ...(ngDevMode ? [{ debugName: "el" }] : []));
|
|
9038
9038
|
this.dropdown = viewChild('autocomplete', ...(ngDevMode ? [{ debugName: "dropdown" }] : []));
|
|
9039
9039
|
this.selected = output();
|