@open-rlb/ng-bootstrap 3.1.5 → 3.1.7

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.
@@ -1,7 +1,7 @@
1
1
  // Lightbox
2
2
  //@import "~ngx-lightbox/lightbox.css";
3
3
 
4
- // Select 2
4
+ // Select 2
5
5
  //@import "~@ng-select/ng-select/themes/default.theme.css";
6
6
 
7
7
  // Date Picker
@@ -453,3 +453,111 @@ a.ck.ck-button.ck-on {
453
453
  left: 100%;
454
454
  }
455
455
  }
456
+
457
+
458
+ rlb-dt-table.dt-card-style {
459
+ display: block;
460
+ margin-bottom: 1.5rem;
461
+
462
+ .table-responsive {
463
+ box-shadow: $card-box-shadow;
464
+ border-radius: $card-border-radius;
465
+ background-color: var(--bs-secondary-bg, var(--bs-body-bg));
466
+ border: 1px solid var(--bs-border-color-translucent);
467
+ }
468
+
469
+ .table {
470
+ margin-bottom: 0;
471
+ background-color: transparent;
472
+
473
+ > :not(caption) > * > * {
474
+ background-color: transparent;
475
+ border-bottom-color: var(--bs-border-color-translucent);
476
+ }
477
+
478
+ // Top corners
479
+ thead tr:first-child th:first-child {
480
+ border-top-left-radius: $card-inner-border-radius;
481
+ }
482
+ thead tr:first-child th:last-child {
483
+ border-top-right-radius: $card-inner-border-radius;
484
+ }
485
+
486
+ // Bottom corners
487
+ tfoot tr:last-child td:first-child,
488
+ tbody:last-child tr:last-child td:first-child {
489
+ border-bottom-left-radius: $card-inner-border-radius;
490
+ border-bottom: 0;
491
+ }
492
+
493
+ tfoot tr:last-child td:last-child,
494
+ tbody:last-child tr:last-child td:last-child {
495
+ border-bottom-right-radius: $card-inner-border-radius;
496
+ border-bottom: 0;
497
+ }
498
+ }
499
+ }
500
+
501
+ rlb-accordion.accordion-card-style {
502
+ display: block; // Required for the box-shadow to render on a custom element
503
+
504
+ // Give the wrapper the card shadow and radius
505
+ box-shadow: $card-box-shadow;
506
+ border-radius: $card-border-radius;
507
+
508
+ // Feed the Card variables directly into Bootstrap's Accordion Engine!
509
+ // This automatically calculates the inner corners for the first and last accordion items perfectly.
510
+ --bs-accordion-border-radius: #{$card-border-radius};
511
+ --bs-accordion-inner-border-radius: #{$card-inner-border-radius};
512
+
513
+ // Sync the backgrounds to match your dark/light theme Cards
514
+ --bs-accordion-bg: var(--bs-secondary-bg, var(--bs-body-bg));
515
+ --bs-accordion-border-color: var(--bs-border-color-translucent);
516
+
517
+ // slightly different background color when an accordion item is expanded
518
+ --bs-accordion-active-bg: var(--bs-tertiary-bg, rgba(var(--bs-primary-rgb), 0.05));
519
+ --bs-accordion-active-color: var(--bs-emphasis-color);
520
+
521
+ // Clean up the borders
522
+ // Since the inner accordion items draw their own borders, we just ensure
523
+ // they don't look weird inside our shadowed wrapper.
524
+ > [rlb-accordion-item],
525
+ > .accordion-item {
526
+ border-color: var(--bs-accordion-border-color);
527
+
528
+ // Ensure the focus ring stays inside the card shape
529
+ .accordion-button:focus {
530
+ box-shadow: inset 0 -1px 0 rgba(0,0,0,.125), 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
531
+ }
532
+ }
533
+ }
534
+
535
+ :root {
536
+ --bs-scrollbar-bg: #ced4da;
537
+ --bs-scrollbar-hover: #aeb5bc;
538
+ --bs-scrollbar-track: transparent;
539
+ }
540
+
541
+ [data-bs-theme="dark"] {
542
+ --bs-scrollbar-bg: rgba(255, 255, 255, 0.1);
543
+ --bs-scrollbar-hover: rgba(255, 255, 255, 0.2);
544
+ --bs-scrollbar-track: transparent;
545
+ }
546
+
547
+ ::-webkit-scrollbar {
548
+ width: 8px;
549
+ height: 8px;
550
+ }
551
+
552
+ ::-webkit-scrollbar-track {
553
+ background: var(--bs-scrollbar-track);
554
+ }
555
+
556
+ ::-webkit-scrollbar-thumb {
557
+ background: var(--bs-scrollbar-bg);
558
+ border-radius: 10px;
559
+
560
+ &:hover {
561
+ background: var(--bs-scrollbar-hover);
562
+ }
563
+ }
@@ -108,4 +108,7 @@ $boxed-body-bg-dark: #32394f;
108
108
 
109
109
  // Display
110
110
  $display-none-dark: block;
111
- $display-block-dark: none;
111
+ $display-block-dark: none;
112
+
113
+ $card-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.35);
114
+ $input-box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
@@ -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: 0.8125rem;
704
+ $font-size-base: 0.85rem;
705
705
  $font-size-sm: $font-size-base * .875;
706
706
  $font-size-lg: $font-size-base * 1.25;
707
707
 
@@ -1824,3 +1824,18 @@ $kbd-bg: var(--#{$prefix}body-color);
1824
1824
  $nested-kbd-font-weight: null; // Deprecated in v5.2.0, removing in v6
1825
1825
 
1826
1826
  $pre-color: null;
1827
+
1828
+
1829
+ // Dimensions and Light Shadows
1830
+ $enable-shadows: true;
1831
+ $card-border-radius: 1rem;
1832
+ $card-inner-border-radius: calc(#{$card-border-radius} - 1px);
1833
+ $card-spacer-y: 1.5rem;
1834
+ $card-spacer-x: 1.5rem;
1835
+ $card-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08); // Soft shadow for light mode
1836
+ $badge-border-radius: 0.375rem;
1837
+
1838
+
1839
+ $input-border-radius: 0.5rem;
1840
+ $input-padding-y: 0.65rem;
1841
+ $input-padding-x: 1rem;
@@ -3,62 +3,71 @@
3
3
  // _menu.scss
4
4
  //
5
5
 
6
- .metismenu {
7
- margin: 0;
6
+ rlb-sidebar {
7
+ --rlb-sidebar-width: #{$sidebar-width};
8
+ --rlb-item-padding-x: 1.5rem;
9
+ --rlb-item-padding-y: 0.625rem;
8
10
 
9
- li {
10
- display: block;
11
- width: 100%;
12
- }
11
+ --bs-body-color: #545a6d;
12
+ --bs-body-bg: #ffffff;
13
+ color: var(--bs-body-color);
13
14
 
14
- .mm-collapse {
15
- display: none;
15
+ &[data-bs-theme="light"] {
16
+ --rlb-sidebar-bg: #ffffff;
17
+ --rlb-sidebar-border: #eff0f2;
16
18
 
17
- &:not(.mm-show) {
18
- display: none;
19
- }
19
+ --rlb-menu-item-color: #545a6d;
20
+ --rlb-menu-item-hover-color: #383c40;
21
+ --rlb-menu-item-active-color: #556ee6;
20
22
 
21
- &.mm-show {
22
- display: block
23
- }
24
- }
23
+ --rlb-menu-item-active-bg: #f6f6f6;
25
24
 
26
- .mm-collapsing {
27
- position: relative;
28
- height: 0;
29
- overflow: hidden;
30
- transition-timing-function: ease;
31
- transition-duration: .35s;
32
- transition-property: height, visibility;
25
+ --rlb-submenu-bg: #ffffff;
26
+
27
+ --rlb-scrollbar-thumb: #ced4da;
28
+ --rlb-scrollbar-track: transparent;
33
29
  }
34
- }
35
30
 
31
+ &[data-bs-theme="dark"] {
32
+ --rlb-sidebar-bg: #2a3042; // $sidebar-dark-bg
33
+ --rlb-sidebar-border: #32394e;
36
34
 
37
- .vertical-menu {
38
- width: inherit;
39
- //z-index: 1001;
40
- background: $sidebar-bg;
41
- //bottom: 0;
42
- margin-top: 0;
43
- // position: fixed;
44
- //top: $header-height;
45
- box-shadow: $box-shadow;
46
- height: 100%;
47
- }
35
+ --rlb-menu-item-color: #a6b0cf;
36
+ --rlb-menu-item-hover-color: #ffffff;
37
+ --rlb-menu-item-active-color: #ffffff;
48
38
 
49
- .main-content {
50
- margin-left: $sidebar-width;
51
- overflow: hidden;
39
+ --rlb-menu-item-active-bg: #{color.adjust(#2a3042, $lightness: 3%)};
52
40
 
53
- .content {
54
- padding: 0 15px 10px 15px;
55
- margin-top: $header-height;
41
+ --rlb-submenu-bg: #2a3042;
42
+
43
+ --rlb-scrollbar-thumb: #5c6276;
44
+ --rlb-scrollbar-track: transparent;
56
45
  }
57
46
  }
58
47
 
59
-
60
48
  #sidebar-menu {
61
49
  padding: 10px 0 10px 0;
50
+ scrollbar-gutter: stable;
51
+
52
+ scrollbar-width: thin;
53
+ scrollbar-color: var(--rlb-scrollbar-thumb) var(--rlb-scrollbar-track);
54
+
55
+ &::-webkit-scrollbar {
56
+ width: 5px;
57
+ }
58
+
59
+ &::-webkit-scrollbar-track {
60
+ background: var(--rlb-scrollbar-track);
61
+ }
62
+
63
+ &::-webkit-scrollbar-thumb {
64
+ background-color: var(--rlb-scrollbar-thumb);
65
+ border-radius: 3px;
66
+
67
+ &:hover {
68
+ background-color: color.adjust($gray-600, $lightness: -10%);
69
+ }
70
+ }
62
71
 
63
72
  .mm-active {
64
73
  >.has-arrow {
@@ -69,13 +78,26 @@
69
78
  }
70
79
 
71
80
  .has-arrow {
81
+ position: relative;
72
82
  &:after {
73
83
  content: "\F0140";
74
84
  font-family: 'Material Design Icons';
85
+
86
+ position: absolute;
87
+ right: 1rem;
88
+ top: 50%;
75
89
  display: block;
76
- float: right;
77
- transition: transform .2s;
78
90
  font-size: 1rem;
91
+
92
+ // smoothly animate the transform
93
+ transition: transform 0.3s ease-in-out;
94
+
95
+ transform: translateY(-50%) rotate(0deg);
96
+ }
97
+
98
+ &:not(.collapsed):after,
99
+ &[aria-expanded="true"]:after {
100
+ transform: translateY(-50%) rotate(-180deg);
79
101
  }
80
102
  }
81
103
 
@@ -84,11 +106,14 @@
84
106
  a {
85
107
  display: block;
86
108
  padding: .625rem 1.5rem;
87
- color: $sidebar-menu-item-color;
109
+ color: var(--rlb-menu-item-color);
88
110
  position: relative;
89
111
  font-size: 13px;
90
112
  transition: all .4s;
91
113
 
114
+ margin: 0.1rem 0.3rem;
115
+ border-radius: 0.4rem;
116
+
92
117
  i {
93
118
  display: inline-block;
94
119
  min-width: 1.75rem;
@@ -96,54 +121,121 @@
96
121
  font-size: 1.15rem;
97
122
  line-height: 1.40625rem;
98
123
  vertical-align: middle;
99
- color: $sidebar-menu-item-icon-color;
124
+ color: inherit;
100
125
  transition: all .4s;
101
126
  }
102
127
 
103
128
  &:hover {
104
- color: $sidebar-menu-item-hover-color;
129
+ color: var(--rlb-menu-item-hover-color);
130
+ //background-color: rgba(255,255,255, 0.05);
105
131
 
106
132
  i {
107
- color: $sidebar-menu-item-hover-color;
133
+ color: inherit;
108
134
  }
109
135
  }
110
136
  }
111
137
 
138
+ .active,
139
+ &.mm-active > a {
140
+ color: var(--rlb-menu-item-active-color) !important;
141
+ background-color: var(--rlb-menu-item-active-bg);
142
+ font-weight: 600;
143
+
144
+ i {
145
+ color: inherit !important;
146
+ }
147
+ }
148
+
112
149
  .badge {
113
150
  margin-left: 4px;
114
151
  }
115
152
 
116
153
  ul.sub-menu {
117
154
  padding: 0;
118
-
155
+ margin: 0;
156
+ display: flex;
157
+ flex-direction: column;
119
158
  li {
120
-
121
159
  a {
122
160
  padding: .4rem 1.5rem .4rem 2.5rem;
123
161
  font-size: 13px;
124
- color: $sidebar-menu-sub-item-color;
162
+ color: var(--rlb-menu-item-color);
163
+ background-color: transparent;
125
164
 
126
165
  &:hover {
127
- color: $sidebar-menu-item-hover-color;
166
+ color: var(--rlb-menu-item-hover-color);
128
167
  }
129
168
  }
130
169
 
170
+ a.active {
171
+ color: var(--rlb-menu-item-active-color) !important;
172
+ background-color: var(--rlb-menu-item-active-bg);
173
+ }
174
+
131
175
  ul.sub-menu {
132
176
  padding: 0;
133
-
134
177
  li {
135
178
  a {
136
179
  padding: .4rem 1.5rem .4rem 2.5rem;
137
180
  font-size: 13px;
138
-
139
-
140
181
  }
141
182
  }
142
183
  }
143
184
  }
144
185
  }
145
186
  }
187
+ }
188
+ }
189
+
190
+ .metismenu {
191
+ margin: 0;
192
+
193
+ li {
194
+ display: block;
195
+ width: 100%;
196
+ }
197
+
198
+ .mm-collapse {
199
+ display: none;
200
+
201
+ &:not(.mm-show) {
202
+ display: none;
203
+ }
204
+
205
+ &.mm-show {
206
+ display: block
207
+ }
208
+ }
209
+
210
+ .mm-collapsing {
211
+ position: relative;
212
+ height: 0;
213
+ overflow: hidden;
214
+ transition-timing-function: ease;
215
+ transition-duration: .35s;
216
+ transition-property: height, visibility;
217
+ }
218
+ }
219
+
220
+ .vertical-menu {
221
+ width: inherit;
222
+ //z-index: 1001;
223
+ background: var(--rlb-sidebar-bg);
224
+ //bottom: 0;
225
+ margin-top: 0;
226
+ // position: fixed;
227
+ //top: $header-height;
228
+ box-shadow: $box-shadow;
229
+ height: 100%;
230
+ }
146
231
 
232
+ .main-content {
233
+ margin-left: $sidebar-width;
234
+ overflow: hidden;
235
+
236
+ .content {
237
+ padding: 0 15px 10px 15px;
238
+ margin-top: $header-height;
147
239
  }
148
240
  }
149
241
 
@@ -158,30 +250,6 @@
158
250
  font-weight: $font-weight-semibold;
159
251
  }
160
252
 
161
- .mm-active {
162
- color: $sidebar-menu-item-active-color !important;
163
-
164
- >a {
165
- color: $sidebar-menu-item-active-color !important;
166
-
167
- i {
168
- color: $sidebar-menu-item-active-color !important;
169
- }
170
- }
171
-
172
- .active {
173
- color: $sidebar-menu-item-active-color !important;
174
-
175
- i {
176
- color: $sidebar-menu-item-active-color !important;
177
- }
178
- }
179
-
180
- >i {
181
- color: $sidebar-menu-item-active-color !important;
182
- }
183
- }
184
-
185
253
  @media (max-width: 992px) {
186
254
  //.vertical-menu {
187
255
  // display: none;
@@ -371,155 +439,6 @@
371
439
  }
372
440
  }
373
441
 
374
-
375
- body[data-sidebar="dark"],
376
- body[data-bs-theme="dark"],
377
- html[data-bs-theme="dark"] {
378
- .vertical-menu {
379
- background: $sidebar-dark-bg;
380
- }
381
-
382
- #sidebar-menu {
383
-
384
- .side-nav-link-ref {
385
- cursor: pointer;
386
- }
387
-
388
- .side-nav-link-ref.active {
389
- color: $sidebar-dark-menu-item-active-color !important;
390
- background-color: color.adjust($sidebar-dark-bg, $lightness: 3%) !important;
391
- font-weight: 600;
392
- border-radius: 0.375rem;
393
-
394
- i {
395
- color: inherit !important;
396
- }
397
- }
398
-
399
- ul {
400
- li {
401
- a {
402
- color: $sidebar-dark-menu-item-color;
403
-
404
- i {
405
- color: $sidebar-dark-menu-item-icon-color;
406
- }
407
-
408
- &:hover {
409
- color: $sidebar-dark-menu-item-hover-color;
410
-
411
- i {
412
- color: $sidebar-dark-menu-item-hover-color;
413
- }
414
- }
415
- }
416
-
417
- ul.sub-menu {
418
- li {
419
-
420
- a {
421
- color: $sidebar-dark-menu-sub-item-color;
422
-
423
- &:hover {
424
- color: $sidebar-dark-menu-item-hover-color;
425
- }
426
- }
427
- }
428
- }
429
- }
430
- }
431
- }
432
-
433
- // Enlarge menu
434
- &.vertical-collpsed {
435
- min-height: 1760px;
436
-
437
- // Side menu
438
- .vertical-menu {
439
-
440
- // Sidebar Menu
441
- #sidebar-menu {
442
-
443
- >ul {
444
- >li {
445
-
446
- &:hover {
447
- >a {
448
- background: color.adjust($sidebar-dark-bg, $lightness: 2%);
449
- color: $sidebar-dark-menu-item-hover-color;
450
-
451
- i {
452
- color: $sidebar-dark-menu-item-hover-color;
453
- }
454
- }
455
-
456
- >ul {
457
- a {
458
- color: $sidebar-dark-menu-sub-item-color;
459
-
460
- &:hover {
461
- color: $sidebar-dark-menu-item-hover-color;
462
- }
463
- }
464
- }
465
- }
466
- }
467
-
468
- ul {
469
- background-color: $sidebar-dark-bg;
470
- }
471
-
472
- }
473
-
474
- ul {
475
-
476
- li {
477
- &.mm-active .active {
478
- color: $sidebar-dark-menu-item-active-color !important;
479
-
480
- i {
481
- color: $sidebar-dark-menu-item-active-color !important;
482
- }
483
- }
484
- }
485
- }
486
-
487
- }
488
-
489
-
490
- }
491
- }
492
-
493
- .mm-active {
494
- color: $sidebar-dark-menu-item-active-color !important;
495
-
496
- >a {
497
- color: $sidebar-dark-menu-item-active-color !important;
498
-
499
- i {
500
- color: $sidebar-dark-menu-item-active-color !important;
501
- }
502
- }
503
-
504
- >i {
505
- color: $sidebar-dark-menu-item-active-color !important;
506
- }
507
-
508
- .active {
509
- color: $sidebar-dark-menu-item-active-color !important;
510
-
511
- i {
512
- color: $sidebar-dark-menu-item-active-color !important;
513
- }
514
- }
515
- }
516
-
517
- .menu-title {
518
- color: $sidebar-dark-menu-item-icon-color;
519
- }
520
- }
521
-
522
-
523
442
  body[data-layout="horizontal"] {
524
443
  .main-content {
525
444
  margin-left: 0 !important;
@@ -16,14 +16,17 @@
16
16
  .rlb-navbar {
17
17
  height: $header-height;
18
18
  z-index: 1030;
19
+ background-color: var(--bs-tertiary-bg);
20
+ border-bottom: 1px solid rgba(255, 255, 255, 0.05);
19
21
  }
20
22
 
21
23
  .rlb-sidebar {
22
- width: $sidebar-width;
24
+ width: var(--rlb-sidebar-width);
25
+ background-color: var(--rlb-sidebar-bg);
26
+ border-right: 1px solid var(--rlb-sidebar-border);
27
+ color: var(--rlb-menu-item-color);
23
28
  flex-shrink: 0;
24
29
  transition: width $sidebar-transition, transform $sidebar-transition;
25
- background-color: var(--bs-tertiary-bg);
26
- border-right: 1px solid var(--bs-border-color);
27
30
  z-index: 1000;
28
31
  position: relative;
29
32
  overflow: visible !important;