|
45 | 45 | } |
46 | 46 |
|
47 | 47 | /* Bootstrap 5 dropped the `.hidden` utility that Bootstrap 3 (and AdminLTE 2) |
48 | | - provided. We still toggle `.hidden` from templates and JS - e.g. the 2FA |
49 | | - login field, the diagnosis warning-count badge and the "reset sorting" |
50 | | - buttons - so restore it here, otherwise those elements are always shown. */ |
| 48 | + provided. We still toggle `.hidden` from templates and JS - e.g. the 2FA |
| 49 | + login field, the diagnosis warning-count badge and the "reset sorting" |
| 50 | + buttons - so restore it here, otherwise those elements are always shown. */ |
51 | 51 | .hidden { |
52 | 52 | display: none !important; |
53 | 53 | } |
54 | 54 |
|
55 | 55 | /* AdminLTE 4 resets `.card` bottom margin to 0 and expects per-card spacing |
56 | | - utilities. Restore the vertical rhythm between stacked cards that AdminLTE |
57 | | - 2's `.box` used to provide, unless a card opts out with its own `mb-*`. */ |
| 56 | + utilities. Restore the vertical rhythm between stacked cards that AdminLTE |
| 57 | + 2's `.box` used to provide, unless a card opts out with its own `mb-*`. */ |
58 | 58 | .app-content .card { |
59 | 59 | margin-bottom: 1rem; |
60 | 60 | } |
61 | 61 |
|
62 | 62 | /* AdminLTE 4's `.app-content` has no vertical padding in this build, so page |
63 | | - content sits flush against the header. Add consistent top spacing so every |
64 | | - page has breathing room below the header. */ |
| 63 | + content sits flush against the header. Add consistent top spacing so every |
| 64 | + page has breathing room below the header. */ |
65 | 65 | .app-content { |
66 | 66 | padding-top: 1rem; |
67 | 67 | } |
68 | 68 |
|
69 | 69 | /* DataTables renders its pager as a Bootstrap `.pagination` but no longer |
70 | | - right-aligns it, so it drifted to the middle of its column. Restore the |
71 | | - conventional right-aligned position. */ |
| 70 | + right-aligns it, so it drifted to the middle of its column. Restore the |
| 71 | + conventional right-aligned position. */ |
72 | 72 | .dataTables_wrapper ul.pagination, |
73 | 73 | .dt-container ul.pagination, |
74 | 74 | .card ul.pagination { |
|
77 | 77 | } |
78 | 78 |
|
79 | 79 | /* AdminLTE 4's card title is 1.1rem, which looks oversized for the longer |
80 | | - headings on the settings pages. Nudge it down a touch. */ |
| 80 | + headings on the settings pages. Nudge it down a touch. */ |
81 | 81 | .card-title { |
82 | 82 | font-size: 1rem; |
83 | 83 | } |
84 | 84 |
|
85 | 85 | /* Bootstrap 5 dropped `.btn-block`; restore it so buttons that are meant to |
86 | | - fill their grid column (e.g. the settings "Actions" and gravity buttons) |
87 | | - stretch to full width instead of collapsing to their intrinsic size. */ |
| 86 | + fill their grid column (e.g. the settings "Actions" and gravity buttons) |
| 87 | + stretch to full width instead of collapsing to their intrinsic size. */ |
88 | 88 | .btn-block { |
89 | 89 | display: block; |
90 | 90 | width: 100%; |
91 | 91 | } |
92 | 92 |
|
93 | 93 | /* Space out the button groups inside a toolbar (Bootstrap 5's `.btn-toolbar` |
94 | | - no longer adds a gap between adjacent groups). */ |
| 94 | + no longer adds a gap between adjacent groups). */ |
95 | 95 | .btn-toolbar { |
96 | 96 | gap: 0.5rem; |
97 | 97 | } |
98 | 98 |
|
99 | 99 | /* Bootstrap 5 removed `.form-group` (which carried the bottom margin between |
100 | | - form rows) and `.help-block` (muted helper text). The templates still use |
101 | | - both throughout, so restore their spacing/appearance rather than rewrite |
102 | | - every form to `.mb-3`/`.form-text`. */ |
| 100 | + form rows) and `.help-block` (muted helper text). The templates still use |
| 101 | + both throughout, so restore their spacing/appearance rather than rewrite |
| 102 | + every form to `.mb-3`/`.form-text`. */ |
103 | 103 | .form-group { |
104 | 104 | margin-bottom: 1rem; |
105 | 105 | } |
|
110 | 110 | } |
111 | 111 |
|
112 | 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. */ |
| 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 | 115 | .logo-mini { |
116 | 116 | display: none; |
117 | 117 | } |
@@ -174,8 +174,8 @@ td.lookatme { |
174 | 174 | .table-responsive { |
175 | 175 | -webkit-overflow-scrolling: touch; |
176 | 176 | /* Keep the horizontal scrollbar visible on wide tables (e.g. the network |
177 | | - overview) instead of relying on overlay scrollbars that stay hidden until |
178 | | - scrolling, which made it look like content was simply cut off. */ |
| 177 | + overview) instead of relying on overlay scrollbars that stay hidden until |
| 178 | + scrolling, which made it look like content was simply cut off. */ |
179 | 179 | scrollbar-width: thin; |
180 | 180 | scrollbar-color: rgba(128, 128, 128, 0.6) transparent; |
181 | 181 | } |
@@ -1174,9 +1174,9 @@ div.dt-buttons { |
1174 | 1174 | } |
1175 | 1175 |
|
1176 | 1176 | /* Datatables Select - checkbox outline. The Bootstrap 5 Select build no longer |
1177 | | - draws the checkbox box itself (it only nudges the margin), so the outline was |
1178 | | - invisible and the bulk-select column looked empty. Draw the box and the |
1179 | | - checkmark here so the selection control is visible again. */ |
| 1177 | + draws the checkbox box itself (it only nudges the margin), so the outline was |
| 1178 | + invisible and the bulk-select column looked empty. Draw the box and the |
| 1179 | + checkmark here so the selection control is visible again. */ |
1180 | 1180 | table.dataTable tbody td.select-checkbox, |
1181 | 1181 | table.dataTable tbody th.select-checkbox { |
1182 | 1182 | position: relative; |
@@ -1760,3 +1760,11 @@ td.dnssec i { |
1760 | 1760 | text-indent: 0; |
1761 | 1761 | margin-left: -0.5rem; |
1762 | 1762 | } |
| 1763 | + |
| 1764 | +/* Keep the two single-icon columns (list status and list type) on the |
| 1765 | + subscribed-lists table the same width, and centre their icons. */ |
| 1766 | +#listsTable td.details-control, |
| 1767 | +#listsTable th.details-control { |
| 1768 | + min-width: 3.5rem; |
| 1769 | + text-align: center; |
| 1770 | +} |
0 commit comments