admin-lte 4.0.0-alpha2 → 4.0.0-alpha3

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.
Files changed (129) hide show
  1. package/.bundlewatch.config.json +6 -6
  2. package/.cache/.eslintcache +1 -1
  3. package/.cache/.stylelintcache +1 -1
  4. package/.gitpod.yml +1 -1
  5. package/.idea/AdminLTE.iml +4 -0
  6. package/.idea/codeStyles/Project.xml +24 -0
  7. package/.idea/dbnavigator.xml +421 -0
  8. package/.idea/git_toolbox_prj.xml +15 -0
  9. package/.idea/jsLibraryMappings.xml +6 -0
  10. package/.idea/jsLinters/eslint.xml +6 -0
  11. package/.idea/vcs.xml +6 -0
  12. package/README.md +3 -3
  13. package/dist/assets/img/AdminLTEFullLogo.png +0 -0
  14. package/dist/css/adminlte.css +695 -318
  15. package/dist/css/adminlte.css.map +1 -1
  16. package/dist/css/adminlte.min.css +1 -1
  17. package/dist/css/adminlte.min.css.map +1 -1
  18. package/dist/css/adminlte.rtl.css +693 -316
  19. package/dist/css/adminlte.rtl.css.map +1 -1
  20. package/dist/css/adminlte.rtl.min.css +1 -1
  21. package/dist/css/adminlte.rtl.min.css.map +1 -1
  22. package/dist/js/adminlte.js +43 -63
  23. package/dist/js/adminlte.js.map +1 -1
  24. package/dist/js/adminlte.min.js +2 -2
  25. package/dist/js/adminlte.min.js.map +1 -1
  26. package/dist/pages/UI/timeline.html +389 -218
  27. package/dist/pages/docs/browser-support.html +345 -204
  28. package/dist/pages/docs/color-mode.html +560 -348
  29. package/dist/pages/docs/components/main-header.html +579 -368
  30. package/dist/pages/docs/components/main-sidebar.html +858 -0
  31. package/dist/pages/docs/faq.html +743 -0
  32. package/dist/pages/docs/how-to-contribute.html +783 -0
  33. package/dist/pages/docs/introduction.html +767 -0
  34. package/dist/pages/docs/javascript/treeview.html +762 -0
  35. package/dist/pages/docs/layout.html +372 -201
  36. package/dist/pages/{docs.html → docs/license.html} +347 -218
  37. package/dist/pages/examples/lockscreen.html +107 -0
  38. package/dist/pages/examples/login-v2.html +148 -0
  39. package/dist/pages/examples/login.html +45 -40
  40. package/dist/pages/examples/register-v2.html +155 -0
  41. package/dist/pages/examples/register.html +46 -41
  42. package/dist/pages/forms/general.html +664 -202
  43. package/dist/pages/index.html +514 -285
  44. package/dist/pages/index2.html +665 -341
  45. package/dist/pages/index3.html +415 -254
  46. package/dist/pages/layout/collapsed-sidebar.html +766 -0
  47. package/dist/pages/layout/fixed-complete.html +867 -0
  48. package/dist/pages/layout/fixed-sidebar.html +344 -201
  49. package/dist/pages/layout/layout-rtl.html +344 -201
  50. package/dist/pages/layout/logo-switch.html +433 -0
  51. package/dist/pages/layout/sidebar-mini.html +345 -202
  52. package/dist/pages/layout/unfixed-sidebar.html +343 -201
  53. package/dist/pages/tables/simple.html +437 -233
  54. package/dist/pages/widgets/cards.html +389 -244
  55. package/dist/pages/widgets/info-box.html +398 -215
  56. package/dist/pages/widgets/small-box.html +349 -198
  57. package/index.html +6 -10
  58. package/package.json +27 -24
  59. package/src/assets/img/AdminLTEFullLogo.png +0 -0
  60. package/src/config/astro.config.mjs +3 -1
  61. package/src/html/.prettierrc.js +11 -0
  62. package/src/html/components/_head.astro +42 -26
  63. package/src/html/components/_scripts.astro +38 -27
  64. package/src/html/components/dashboard/_footer.astro +14 -8
  65. package/src/html/components/dashboard/_sidenav.astro +343 -113
  66. package/src/html/components/dashboard/_topbar.astro +90 -49
  67. package/src/html/components/docs/{browser-support/index.md → browser-support.mdx} +2 -1
  68. package/src/html/components/docs/color-mode.mdx +169 -0
  69. package/src/html/components/docs/components/{main-header-1.md → main-header.mdx} +60 -21
  70. package/src/html/components/docs/components/main-sidebar.mdx +129 -0
  71. package/src/html/components/docs/faq.mdx +11 -0
  72. package/src/html/components/docs/how-to-contribute.mdx +34 -0
  73. package/src/html/components/docs/{introduction/index.md → introduction.mdx} +27 -2
  74. package/src/html/components/docs/license.mdx +9 -0
  75. package/src/html/components/javascript/treeview.mdx +39 -0
  76. package/src/html/pages/UI/timeline.astro +111 -48
  77. package/src/html/pages/docs/browser-support.astro +24 -11
  78. package/src/html/pages/docs/color-mode.astro +89 -42
  79. package/src/html/pages/docs/components/main-header.astro +133 -46
  80. package/src/html/pages/docs/components/main-sidebar.astro +71 -0
  81. package/src/html/pages/docs/faq.astro +71 -0
  82. package/src/html/pages/docs/how-to-contribute.astro +71 -0
  83. package/src/html/pages/docs/{index.astro → introduction.astro} +24 -11
  84. package/src/html/pages/docs/javascript/treeview.astro +71 -0
  85. package/src/html/pages/docs/layout.astro +62 -19
  86. package/src/html/pages/docs/license.astro +71 -0
  87. package/src/html/pages/examples/lockscreen.astro +63 -0
  88. package/src/html/pages/examples/login-v2.astro +109 -0
  89. package/src/html/pages/examples/login.astro +34 -16
  90. package/src/html/pages/examples/register-v2.astro +116 -0
  91. package/src/html/pages/examples/register.astro +36 -18
  92. package/src/html/pages/forms/general.astro +567 -36
  93. package/src/html/pages/index.astro +389 -152
  94. package/src/html/pages/index2.astro +682 -250
  95. package/src/html/pages/index3.astro +290 -189
  96. package/src/html/pages/layout/collapsed-sidebar.astro +110 -0
  97. package/src/html/pages/layout/fixed-complete.astro +209 -0
  98. package/src/html/pages/layout/fixed-sidebar.astro +52 -27
  99. package/src/html/pages/layout/layout-rtl.astro +53 -28
  100. package/src/html/pages/layout/logo-switch.astro +212 -0
  101. package/src/html/pages/layout/sidebar-mini.astro +53 -28
  102. package/src/html/pages/layout/unfixed-sidebar.astro +51 -27
  103. package/src/html/pages/tables/simple.astro +206 -66
  104. package/src/html/pages/widgets/cards.astro +134 -69
  105. package/src/html/pages/widgets/info-box.astro +96 -41
  106. package/src/html/pages/widgets/small-box.astro +93 -32
  107. package/src/scss/_app-content.scss +52 -0
  108. package/src/scss/_app-footer.scss +1 -1
  109. package/src/scss/_app-main.scss +2 -5
  110. package/src/scss/_app-sidebar.scss +244 -70
  111. package/src/scss/_bootstrap-variables.scss +4 -4
  112. package/src/scss/_cards.scss +31 -7
  113. package/src/scss/_compact-mode.scss +79 -0
  114. package/src/scss/_small-box.scss +0 -3
  115. package/src/scss/_variables.scss +21 -4
  116. package/src/scss/mixins/_animations.scss +0 -5
  117. package/src/scss/pages/_lockscreen.scss +74 -0
  118. package/src/scss/pages/_login_and_register.scss +0 -3
  119. package/src/scss/parts/_core.scss +2 -0
  120. package/src/scss/parts/_pages.scss +1 -0
  121. package/src/ts/card-widget.ts +17 -50
  122. package/src/ts/direct-chat.ts +2 -2
  123. package/src/ts/layout.ts +2 -2
  124. package/src/ts/push-menu.ts +3 -20
  125. package/src/ts/treeview.ts +14 -8
  126. package/src/ts/util/index.ts +14 -12
  127. package/src/utils/index.js +20 -3
  128. package/src/html/components/docs/color-mode/navbar-html.md +0 -80
  129. package/src/html/components/docs/color-mode/toggle-script.md +0 -48
@@ -22,7 +22,9 @@
22
22
 
23
23
  .sidebar-brand {
24
24
  display: flex;
25
- justify-content: space-between;
25
+ align-items: center;
26
+ justify-content: center;
27
+ height: $lte-app-header-height;
26
28
  padding: $lte-brand-link-padding-y $lte-brand-link-padding-x;
27
29
  overflow: hidden;
28
30
  font-size: $navbar-brand-font-size;
@@ -31,23 +33,38 @@
31
33
  @include transition(width $lte-transition-speed $lte-transition-fn);
32
34
 
33
35
  .brand-link {
34
- flex: 1;
35
- &:hover {
36
- text-decoration: none;
37
- }
36
+ display: flex;
37
+ align-items: center;
38
+ text-decoration: none;
38
39
 
39
40
  .brand-image {
40
41
  float: left;
41
42
  width: auto;
42
43
  max-height: 33px;
43
- margin-top: -3px;
44
- margin-right: .5rem;
45
- margin-left: .8rem;
46
44
  line-height: .8;
47
45
  }
46
+
47
+ .brand-image-xs {
48
+ float: left;
49
+ width: auto;
50
+ max-height: 33px;
51
+ margin-top: -.1rem;
52
+ line-height: .8;
53
+ }
54
+
55
+ .brand-image-xl {
56
+ width: auto;
57
+ max-height: 40px;
58
+ line-height: .8;
59
+
60
+ &.single {
61
+ margin-top: -.3rem;
62
+ }
63
+ }
48
64
  }
49
65
 
50
66
  .brand-text {
67
+ margin-left: .5rem;
51
68
  color: rgba(var(--#{$prefix}emphasis-color-rgb), .8);
52
69
  @include transition(flex $lte-transition-speed $lte-transition-fn, width $lte-transition-speed $lte-transition-fn);
53
70
  &:hover {
@@ -61,11 +78,31 @@
61
78
  padding-right: $lte-sidebar-padding-x;
62
79
  padding-bottom: $lte-sidebar-padding-y;
63
80
  padding-left: $lte-sidebar-padding-x;
64
- overflow-x: hidden;
65
- overflow-y: auto;
66
81
  @include scrollbar-color-gray();
67
82
  @include scrollbar-width-thin();
68
83
 
84
+ .nav-item {
85
+ max-width: 100%;
86
+ }
87
+
88
+ .nav-link {
89
+ display: flex;
90
+ justify-content: flex-start;
91
+
92
+ p {
93
+ overflow: hidden;
94
+ text-overflow: ellipsis;
95
+ white-space: nowrap;
96
+ }
97
+ }
98
+ .nav-icon {
99
+ display: flex;
100
+ align-items: center;
101
+ justify-content: center;
102
+ min-width: 1.5rem;
103
+ max-width: 1.5rem;
104
+ }
105
+
69
106
  // Sidebar Menu. First level links
70
107
  .sidebar-menu > .nav-item {
71
108
  &.menu-open {
@@ -110,11 +147,6 @@
110
147
  // All links within the sidebar menu
111
148
  a {
112
149
  color: var(--#{$lte-prefix}sidebar-color);
113
-
114
- &:hover,
115
- &:focus {
116
- text-decoration: none;
117
- }
118
150
  }
119
151
 
120
152
  // All submenus
@@ -155,7 +187,10 @@
155
187
 
156
188
  .nav-arrow {
157
189
  @include transition(transform $lte-transition-fn $lte-transition-speed);
158
- transform: none #{"/*rtl:rotate(180deg)*/"};
190
+ transform: translateY(-50%) #{"/*rtl:rotate(180deg)*/"};
191
+ animation-name: fadeIn;
192
+ animation-duration: $lte-transition-speed;
193
+ animation-fill-mode: both;
159
194
  }
160
195
  }
161
196
  }
@@ -170,13 +205,12 @@
170
205
  .nav-link > .nav-arrow,
171
206
  .nav-link > p > .nav-arrow {
172
207
  position: absolute;
173
- top: .7rem;
208
+ top: 50%;
174
209
  right: 1rem;
175
210
  }
176
211
 
177
212
  .nav-link {
178
213
  position: relative;
179
- width: subtract(var(--#{$lte-prefix}sidebar-width), $lte-sidebar-padding-x * 2);
180
214
  @include transition(width $lte-transition-fn $lte-transition-speed);
181
215
  @include border-radius($border-radius);
182
216
 
@@ -185,10 +219,6 @@
185
219
  padding-left: .5rem;
186
220
  margin: 0;
187
221
  }
188
-
189
- .nav-icon {
190
- padding-left: .3rem;
191
- }
192
222
  }
193
223
 
194
224
  .nav-header {
@@ -201,6 +231,10 @@
201
231
  display: none;
202
232
  padding: 0;
203
233
  list-style: none;
234
+
235
+ .nav-indent & {
236
+ padding-left: $lte-sidebar-padding-x;
237
+ }
204
238
  }
205
239
 
206
240
  .menu-open {
@@ -210,12 +244,49 @@
210
244
 
211
245
  > .nav-link {
212
246
  .nav-arrow {
213
- transform: rotate(90deg) #{"/*rtl:rotate(90deg)*/"};
247
+ transform: translateY(-50%) rotate(90deg) #{"/*rtl:rotate(90deg)*/"};
214
248
  }
215
249
  }
216
250
  }
217
251
  }
218
252
 
253
+ .nav-compact.nav-indent {
254
+ .nav-treeview {
255
+ padding-left: 0;
256
+
257
+ .nav-item {
258
+ padding-left: $lte-sidebar-padding-x;
259
+ }
260
+ }
261
+ }
262
+
263
+ .sidebar-mini.sidebar-collapse.nav-indent {
264
+ .app-sidebar:hover {
265
+ .nav-treeview {
266
+ padding-left: 0;
267
+
268
+ .nav-item {
269
+ padding-left: $lte-sidebar-padding-x;
270
+ }
271
+ }
272
+ }
273
+ }
274
+
275
+ .sidebar-collapse {
276
+ &.nav-compact.nav-indent {
277
+ .nav-treeview {
278
+ .nav-item {
279
+ padding-left: 0;
280
+ }
281
+ }
282
+ }
283
+ }
284
+
285
+ .nav-compact .nav-link {
286
+ @include border-radius(0);
287
+ margin-bottom: 0 !important;
288
+ }
289
+
219
290
  // A fix for text overflow while transitioning from sidebar mini to full sidebar
220
291
  .sidebar-menu,
221
292
  .sidebar-menu > .nav-header,
@@ -223,6 +294,42 @@
223
294
  white-space: nowrap;
224
295
  }
225
296
 
297
+ // Logo style
298
+ .logo-xs,
299
+ .logo-xl {
300
+ position: absolute;
301
+ visibility: visible;
302
+ opacity: 1;
303
+
304
+ &.brand-image-xs {
305
+ top: 12px;
306
+ left: 18px;
307
+ }
308
+
309
+ &.brand-image-xl {
310
+ top: 6px;
311
+ left: 12px;
312
+ }
313
+ }
314
+
315
+ .logo-xs {
316
+ visibility: hidden;
317
+ opacity: 0;
318
+
319
+ &.brand-image-xl {
320
+ top: 8px;
321
+ left: 16px;
322
+ }
323
+ }
324
+
325
+ .brand-link {
326
+ &.logo-switch {
327
+ &::before {
328
+ content: "\00a0";
329
+ }
330
+ }
331
+ }
332
+
226
333
  .sidebar-mini.sidebar-collapse {
227
334
  .app-sidebar {
228
335
  min-width: $lte-sidebar-mini-width;
@@ -237,50 +344,103 @@
237
344
  .sidebar-menu {
238
345
  .nav-link {
239
346
  width: $lte-sidebar-mini-width - $lte-sidebar-padding-x * 2;
347
+
348
+ p {
349
+ display: inline-block;
350
+ width: 0;
351
+ white-space: nowrap;
352
+ }
353
+ }
354
+ .nav-badge,
355
+ .nav-arrow {
356
+ display: none;
357
+ animation-name: fadeOut;
358
+ animation-duration: $lte-transition-speed;
359
+ animation-fill-mode: both;
240
360
  }
241
361
  }
242
362
 
243
- .sidebar-menu .nav-link p {
244
- width: 0;
245
- white-space: nowrap;
363
+ .brand-text {
364
+ display: inline-block;
365
+ max-width: 0;
366
+ overflow: hidden;
246
367
  }
247
368
 
248
369
  .sidebar-menu .nav-link p,
249
- .brand-text {
370
+ .brand-text,
371
+ .logo-xl,
372
+ .nav-arrow {
250
373
  visibility: hidden;
251
374
  animation-name: fadeOut;
375
+ animation-duration: $lte-transition-speed;
252
376
  animation-fill-mode: both;
253
377
  }
254
378
 
255
- &.sidebar-is-hover {
256
- .app-sidebar {
257
- min-width: var(--#{$lte-prefix}sidebar-width);
258
- max-width: var(--#{$lte-prefix}sidebar-width);
259
- }
379
+
380
+ .logo-xs {
381
+ display: inline-block;
382
+ visibility: visible;
383
+ animation-name: fadeIn;
384
+ animation-duration: $lte-transition-speed;
385
+ animation-fill-mode: both;
386
+ }
387
+
388
+ .app-sidebar:hover {
389
+ min-width: var(--#{$lte-prefix}sidebar-width);
390
+ max-width: var(--#{$lte-prefix}sidebar-width);
260
391
 
261
392
  .sidebar-menu .nav-header {
262
393
  display: inline-block;
263
394
  }
264
395
 
265
396
  .sidebar-menu .nav-link {
266
- width: subtract(var(--#{$lte-prefix}sidebar-width), $lte-sidebar-padding-x * 2);
397
+ width: auto;
267
398
  }
268
399
 
269
400
  .sidebar-menu .nav-link p,
270
- .brand-text {
401
+ .brand-text,
402
+ .logo-xl {
403
+ width: auto;
271
404
  margin-left: 0;
272
405
  visibility: visible;
273
406
  animation-name: fadeIn;
274
407
  animation-duration: $lte-transition-speed;
275
408
  animation-fill-mode: both;
276
409
  }
410
+
411
+ .brand-text {
412
+ display: inline;
413
+ max-width: inherit;
414
+ margin-left: .5rem;
415
+ animation-name: fadeIn;
416
+ animation-duration: $lte-transition-speed;
417
+ animation-fill-mode: both;
418
+ }
419
+ .nav-badge,
420
+ .nav-arrow {
421
+ display: inline-block;
422
+ visibility: visible;
423
+ animation-name: fadeIn;
424
+ animation-duration: $lte-transition-speed;
425
+ animation-fill-mode: both;
426
+ animation-delay: $lte-transition-speed;
427
+ }
428
+
429
+ .nav-link p {
430
+ padding-left: .5rem;
431
+ }
432
+ .logo-xs {
433
+ visibility: hidden;
434
+ animation-name: fadeOut;
435
+ animation-duration: $lte-transition-speed;
436
+ animation-fill-mode: both;
437
+ }
277
438
  }
278
439
  }
279
440
 
280
441
  .sidebar-collapse:not(.sidebar-mini) {
281
442
  .app-sidebar {
282
- // stylelint-disable-next-line
283
- margin-left: calc(var(--#{$lte-prefix}sidebar-width) * -1);
443
+ margin-left: calc(var(--#{$lte-prefix}sidebar-width) * -1); // stylelint-disable-line function-disallowed-list
284
444
  }
285
445
  }
286
446
 
@@ -292,39 +452,50 @@
292
452
  /* stylelint-disable-next-line scss/selector-no-union-class-name */
293
453
  &#{$infix} {
294
454
  @include media-breakpoint-up($next) {
455
+ &.layout-fixed-complete,
295
456
  &.layout-fixed {
457
+ .app-main-wrapper {
458
+ display: flex;
459
+ flex-direction: column;
460
+ min-height: 100vh;
461
+ }
462
+ .app-sidebar-wrapper {
463
+ position: relative;
464
+ }
465
+ .app-main {
466
+ flex: 1 1 auto;
467
+ overflow: auto;
468
+ }
296
469
  .app-sidebar {
297
- position: fixed;
470
+ position: sticky;
298
471
  top: 0;
299
472
  bottom: 0;
300
- left: 0;
301
473
  max-height: 100vh;
302
474
 
303
475
  .sidebar-wrapper {
304
- height: subtract(100vh, add($lte-app-header-height-inner, $lte-app-header-bottom-border-width));
476
+ height: subtract(100vh, add($lte-app-header-height, 1px));
305
477
  }
306
478
  }
307
-
308
- .app-header,
309
- .app-main,
310
- .app-footer {
311
- margin-left: var(--#{$lte-prefix}sidebar-width);
479
+ }
480
+ &.layout-fixed-complete {
481
+ .app-main-wrapper {
482
+ max-height: 100vh;
312
483
  }
313
-
314
- &.sidebar-collapse {
315
- .app-header,
316
- .app-main,
317
- .app-footer {
318
- margin-left: 0;
319
- }
484
+ }
485
+ &.sidebar-open {
486
+ .nav-link > .nav-badge,
487
+ .nav-link > p > .nav-badge {
488
+ animation-name: fadeIn;
489
+ animation-duration: $lte-transition-speed;
490
+ animation-fill-mode: both;
491
+ animation-delay: $lte-transition-speed;
320
492
  }
321
-
322
- &.sidebar-mini.sidebar-collapse {
323
- .app-header,
324
- .app-main,
325
- .app-footer {
326
- margin-left: $lte-sidebar-mini-width;
327
- }
493
+ .nav-link > .nav-arrow,
494
+ .nav-link > p > .nav-arrow {
495
+ animation-name: fadeIn;
496
+ animation-duration: $lte-transition-speed;
497
+ animation-fill-mode: both;
498
+ animation-delay: $lte-transition-speed;
328
499
  }
329
500
  }
330
501
  }
@@ -341,33 +512,27 @@
341
512
  position: fixed;
342
513
  top: 0;
343
514
  bottom: 0;
344
- left: 0;
345
515
  max-height: 100vh;
346
516
  margin-left: calc(var(--#{$lte-prefix}sidebar-width) * -1); // stylelint-disable-line function-disallowed-list
347
517
 
348
518
  .sidebar-wrapper {
349
- height: subtract(100vh, add($lte-app-header-height-inner, $lte-app-header-bottom-border-width));
350
- overflow-x: hidden;
351
- overflow-y: auto;
519
+ height: subtract(100vh, add($lte-app-header-height, 1px));
352
520
  }
353
521
  }
354
522
 
355
- &.sidebar-mini .app-sidebar {
356
- margin-left: -$lte-sidebar-mini-width;
357
- }
358
-
359
523
  &.sidebar-open {
360
524
  .app-sidebar {
361
525
  margin-left: 0;
362
526
  }
363
527
 
364
528
  .sidebar-overlay {
365
- position: fixed;
366
- top: 0;
367
- left: 0;
529
+ position: absolute;
530
+ inset: 0;
368
531
  z-index: $lte-zindex-sidebar-overlay;
369
532
  width: 100%;
370
533
  height: 100%;
534
+ cursor: pointer;
535
+ visibility: visible;
371
536
  background-color: rgba(0, 0, 0, .2);
372
537
  animation-name: fadeIn;
373
538
  animation-fill-mode: both;
@@ -378,6 +543,13 @@
378
543
  }
379
544
  }
380
545
 
546
+ .sidebar-menu .nav-link p,
547
+ .app-sidebar .brand-text,
548
+ .app-sidebar .logo-xs,
549
+ .app-sidebar .logo-xl {
550
+ @include transition(margin-left $lte-transition-speed linear, opacity $lte-transition-speed ease, visibility $lte-transition-speed ease);
551
+ }
552
+
381
553
  // To prevent onload transition and animation
382
554
  .app-loaded {
383
555
  &.sidebar-mini.sidebar-collapse {
@@ -400,7 +572,9 @@ body:not(.app-loaded) {
400
572
  .app-header,
401
573
  .app-sidebar,
402
574
  .app-main,
403
- .app-footer {
575
+ .app-footer,
576
+ .nav-arrow,
577
+ .nav-badge {
404
578
  @include transition(none !important);
405
579
  animation-duration: 0s !important;
406
580
  }
@@ -384,7 +384,7 @@ $enable-cssgrid: false !default;
384
384
  $enable-button-pointers: true !default;
385
385
  $enable-rfs: true !default;
386
386
  $enable-validation-icons: true !default;
387
- $enable-negative-margins: true !default;
387
+ $enable-negative-margins: true !default; // adminlte-modified
388
388
  $enable-deprecation-messages: true !default;
389
389
  $enable-important-utilities: true !default;
390
390
 
@@ -455,7 +455,7 @@ $body-emphasis-color: $black !default;
455
455
  // Style anchor elements.
456
456
 
457
457
  $link-color: $primary !default;
458
- $link-decoration: none !default; // adminlte-modified
458
+ $link-decoration: underline !default;
459
459
  $link-shade-percentage: 20% !default;
460
460
  $link-hover-color: shift-color($link-color, $link-shade-percentage) !default;
461
461
  $link-hover-decoration: null !default;
@@ -1248,7 +1248,7 @@ $dropdown-bg: var(--#{$prefix}body-bg) !default;
1248
1248
  $dropdown-border-color: var(--#{$prefix}border-color-translucent) !default;
1249
1249
  $dropdown-border-radius: var(--#{$prefix}border-radius) !default;
1250
1250
  $dropdown-border-width: var(--#{$prefix}border-width) !default;
1251
- $dropdown-inner-border-radius: calc(#{$dropdown-border-radius} - #{$dropdown-border-width}) !default; // stylelint-disable-line function-disallowed-list
1251
+ $dropdown-inner-border-radius: subtract($dropdown-border-radius, $dropdown-border-width) !default;
1252
1252
  $dropdown-divider-bg: $dropdown-border-color !default;
1253
1253
  $dropdown-divider-margin-y: $spacer * .5 !default;
1254
1254
  $dropdown-box-shadow: $box-shadow !default;
@@ -1439,7 +1439,7 @@ $popover-max-width: 276px !default;
1439
1439
  $popover-border-width: var(--#{$prefix}border-width) !default;
1440
1440
  $popover-border-color: var(--#{$prefix}border-color-translucent) !default;
1441
1441
  $popover-border-radius: var(--#{$prefix}border-radius-lg) !default;
1442
- $popover-inner-border-radius: calc(#{$popover-border-radius} - #{$popover-border-width}) !default; // stylelint-disable-line function-disallowed-list
1442
+ $popover-inner-border-radius: subtract($popover-border-radius, $popover-border-width) !default;
1443
1443
  $popover-box-shadow: $box-shadow !default;
1444
1444
 
1445
1445
  $popover-header-font-size: $font-size-base !default;
@@ -5,9 +5,9 @@
5
5
  // Color variants
6
6
  .card {
7
7
  @include box-shadow($lte-card-shadow);
8
- margin-bottom: map-get($spacers, 3);
9
8
 
10
- &[class*="card-"]:not(.card-outline) {
9
+ &[class*="card-"]:not(.card-outline),
10
+ &[class*="text-bg-"]:not(.card-outline) {
11
11
  > .card-header {
12
12
  color: var(--#{$lte-prefix}card-variant-color);
13
13
  background-color: var(--#{$lte-prefix}card-variant-bg);
@@ -45,20 +45,41 @@
45
45
  display: none;
46
46
  }
47
47
 
48
+ [data-lte-icon="maximize"] {
49
+ display: none;
50
+ }
51
+
48
52
  .card-header,
49
53
  .card-footer {
50
54
  @include border-radius(0 !important);
51
55
  }
52
56
  }
53
57
 
58
+ &:not(.maximized-card) {
59
+ [data-lte-icon="minimize"] {
60
+ display: none;
61
+ }
62
+ }
63
+
54
64
  // collapsed mode
55
65
  &.collapsed-card {
66
+ [data-lte-icon="collapse"] {
67
+ display: none;
68
+ }
69
+
56
70
  .card-body,
57
71
  .card-footer {
58
72
  display: none;
59
73
  }
60
74
  }
61
75
 
76
+ &:not(.collapsed-card) {
77
+ [data-lte-icon="expand"] {
78
+ display: none;
79
+ }
80
+ }
81
+
82
+
62
83
  .nav.flex-column {
63
84
  > li {
64
85
  margin: 0;
@@ -249,11 +270,14 @@ html.maximized-card {
249
270
  .btn-tool {
250
271
  --#{$prefix}btn-padding-x: .5rem;
251
272
  --#{$prefix}btn-padding-y: .25rem;
252
- --#{$prefix}btn-color: var(--#{$prefix}tertiary-color);
253
- --#{$prefix}btn-bg: transparent;
254
- --#{$prefix}btn-box-shadow: none;
255
- --#{$prefix}btn-hover-color: var(--#{$prefix}secondary-color);
256
- --#{$prefix}btn-active-border-color: transparent;
273
+
274
+ &:not(.btn-tool-custom) {
275
+ --#{$prefix}btn-color: var(--#{$prefix}tertiary-color);
276
+ --#{$prefix}btn-bg: transparent;
277
+ --#{$prefix}btn-box-shadow: none;
278
+ --#{$prefix}btn-hover-color: var(--#{$prefix}secondary-color);
279
+ --#{$prefix}btn-active-border-color: transparent;
280
+ }
257
281
 
258
282
  margin: -$card-spacer-y 0;
259
283
  font-size: $font-size-sm;
@@ -0,0 +1,79 @@
1
+ .compact-mode {
2
+ .app-content-top-area:not(.app-content-top-area-sm):not(.app-content-top-area-md):not(.app-content-top-area-lg):not(.app-content-top-area-xl),
3
+ .app-content-bottom-area:not(.app-content-bottom-area-sm):not(.app-content-bottom-area-md):not(.app-content-bottom-area-lg):not(.app-content-bottom-area-xl) {
4
+ padding-top: $grid-gutter-width * .425;
5
+ padding-bottom: $grid-gutter-width * .425;
6
+ }
7
+ .app-content-top-area-sm,
8
+ .app-content-bottom-area-sm {
9
+ min-height: $lte-app-content-bottom-area-height-sm * .825;
10
+ }
11
+
12
+ .app-content-top-area-md,
13
+ .app-content-bottom-area-md {
14
+ min-height: $lte-app-content-bottom-area-height-md * .825;
15
+ }
16
+
17
+ .app-content-top-area-lg,
18
+ .app-content-bottom-area-lg {
19
+ min-height: $lte-app-content-bottom-area-height-lg * .825;
20
+ }
21
+
22
+ .app-content-top-area-xl,
23
+ .app-content-bottom-area-xl {
24
+ min-height: $lte-app-content-bottom-area-height-xl * .825;
25
+ }
26
+
27
+
28
+ .app-header {
29
+ max-height: $lte-app-header-height-compact;
30
+
31
+ .nav-link {
32
+ max-height: $nav-link-height-compact;
33
+ }
34
+ }
35
+
36
+ .nav-link {
37
+ --bs-nav-link-padding-y: .25rem;
38
+ --bs-nav-link-padding-x: .5rem;
39
+ }
40
+
41
+ &.sidebar-mini.sidebar-collapse {
42
+ .app-sidebar:not(:hover) {
43
+ min-width: $lte-sidebar-mini-width-compact;
44
+ max-width: $lte-sidebar-mini-width-compact;
45
+
46
+ .sidebar-menu {
47
+ .nav-link {
48
+ width: $lte-sidebar-mini-width-compact - $lte-sidebar-padding-x * 2 !important;
49
+ }
50
+ }
51
+ }
52
+ }
53
+
54
+ .logo-xs,
55
+ .logo-xl {
56
+ max-height: $lte-app-header-height-compact;
57
+ }
58
+
59
+ .brand-image {
60
+ width: $nav-link-height-compact;
61
+ height: $nav-link-height-compact;
62
+ }
63
+
64
+ .sidebar-brand {
65
+ height: $lte-app-header-height-compact;
66
+ }
67
+
68
+ .app-footer {
69
+ padding: $lte-app-footer-padding-compact;
70
+ }
71
+
72
+ .sidebar-wrapper {
73
+ .nav-icon {
74
+ min-width: 1.1rem;
75
+ max-width: 1.1rem;
76
+ }
77
+ }
78
+ }
79
+
@@ -23,7 +23,6 @@
23
23
  display: block;
24
24
  padding: 3px 0;
25
25
  text-align: center;
26
- text-decoration: none;
27
26
  background-color: rgba($black, .07);
28
27
 
29
28
  &:hover {
@@ -105,8 +104,6 @@
105
104
 
106
105
  // Small box hover state
107
106
  &:hover {
108
- text-decoration: none;
109
-
110
107
  // Animate icons on small box hover
111
108
  .small-box-icon {
112
109
  transform: scale(1.1);