|
17 | 17 | --blocked-color: #b00000; |
18 | 18 | --cached-color: #9be; |
19 | 19 | --other-color: #908878; |
| 20 | + |
| 21 | + /* AdminLTE root variables */ |
| 22 | + --bs-body-font-size: 15px; |
| 23 | +} |
| 24 | + |
| 25 | +/* AdminLTE Color variables */ |
| 26 | +.navbar[data-bs-theme="dark"] { |
| 27 | + --bs-navbar-color: rgb(255, 255, 255); |
| 28 | + --bs-border-color: var(--bs-gray-300); |
20 | 29 | } |
21 | 30 |
|
22 | 31 | /* Dashboard graphic bars */ |
|
41 | 50 | margin: 0 auto; |
42 | 51 | box-shadow: 0 0 8px rgba(0, 0, 0, 0.5); |
43 | 52 | position: relative; |
44 | | - background-color: var(--bs-body-bg); |
| 53 | + background-color: var(--bs-secondary-bg); |
45 | 54 | } |
46 | 55 |
|
47 | 56 | /* Bootstrap 5 dropped the `.hidden` utility that Bootstrap 3 (and AdminLTE 2) |
|
109 | 118 | color: var(--bs-secondary-color); |
110 | 119 | } |
111 | 120 |
|
112 | | -/* AdminLTE 4 no longer swaps the mini/full logo in the header when the sidebar |
113 | | - is collapsed, so the full "Pi-hole" wordmark stays and wraps in the narrow |
114 | | - header. Show the compact "Ph" mark while collapsed instead. */ |
115 | | -.logo-mini { |
116 | | - display: none; |
| 121 | +/* AdminLTE 4 moved the logo to the sidebar (.sidebar-brand class). |
| 122 | + By default, AdminLTE expects an image and a text for the logo, but we only use |
| 123 | + "Pi-hole" text as logo. |
| 124 | + AdminLTE 4 automatically hides the text when the sidebar is collapsed, rsulting |
| 125 | + in an empty brand. |
| 126 | + To avoid this issue, we use ::before and ::after pseudo elements to show a |
| 127 | + smaller text, so the full "Pi-hole" wordmark is always shown. */ |
| 128 | +.sidebar-brand .brand-text { |
| 129 | + margin: 0; |
| 130 | + font-size: 1.35em; |
117 | 131 | } |
118 | | -.sidebar-collapse .app-header .logo-lg { |
119 | | - display: none; |
| 132 | +.sidebar-collapse .sidebar-brand .brand-link::before { |
| 133 | + content: "Pi-"; |
| 134 | + color: var(--lte-sidebar-menu-active-color); |
| 135 | + font-size: 15px; |
120 | 136 | } |
121 | | -.sidebar-collapse .app-header .logo-mini { |
122 | | - display: inline; |
| 137 | +.sidebar-collapse .sidebar-brand .brand-link::after { |
| 138 | + content: "hole"; |
| 139 | + color: var(--lte-sidebar-menu-active-color); |
| 140 | + font-size: 15px; |
| 141 | + font-weight: bold; |
| 142 | +} |
| 143 | +.sidebar-collapse .app-sidebar:hover .brand-link::before, |
| 144 | +.sidebar-collapse .app-sidebar:hover .brand-link::after { |
| 145 | + content: none; |
123 | 146 | } |
124 | 147 |
|
125 | 148 | @keyframes Pulse { |
@@ -568,40 +591,6 @@ tfoot.add-new-item > tr > th { |
568 | 591 | padding: 0.25em 0.6em 0.35em; |
569 | 592 | } |
570 | 593 |
|
571 | | -.sidebar-toggle-svg { |
572 | | - position: relative; |
573 | | - color: #fff; |
574 | | - float: left; |
575 | | - background-color: transparent; |
576 | | - border: none; |
577 | | - padding: 15px; |
578 | | - width: 50px; |
579 | | - text-align: center; |
580 | | -} |
581 | | - |
582 | | -.sidebar-toggle-svg:hover { |
583 | | - color: #f6f6f6; |
584 | | - background: #367fa9; |
585 | | -} |
586 | | - |
587 | | -/* AdminLTE 4 no longer ships a default mini/full logo swap for the header |
588 | | - (that concept now only exists for the sidebar-brand), so we provide it. */ |
589 | | -.app-header .logo-mini { |
590 | | - display: none; |
591 | | -} |
592 | | - |
593 | | -/* Hide the "Ph" and move the toggle to the left */ |
594 | | -.sidebar-mini.sidebar-collapse .app-header .logo { |
595 | | - width: 0; |
596 | | - position: absolute; |
597 | | -} |
598 | | -.sidebar-mini.sidebar-collapse .app-header .logo-mini { |
599 | | - visibility: hidden; |
600 | | -} |
601 | | -.sidebar-mini.sidebar-collapse .app-header.navbar { |
602 | | - margin-left: 0; |
603 | | -} |
604 | | - |
605 | 594 | .sidebar-menu > li.nav-header { |
606 | 595 | color: transparent; |
607 | 596 | padding: 5px; |
@@ -1065,10 +1054,6 @@ li:not(.menu-open) .nav-treeview .warning-count { |
1065 | 1054 | flex: 1 0 auto; |
1066 | 1055 | } |
1067 | 1056 |
|
1068 | | -.navbar-nav { |
1069 | | - height: 50px; |
1070 | | -} |
1071 | | - |
1072 | 1057 | .navbar-nav > .user-menu { |
1073 | 1058 | margin-left: 15px; |
1074 | 1059 | width: 50px; |
|
0 commit comments