Skip to content

Commit

Permalink
Change the number of columns depending on the screen size
Browse files Browse the repository at this point in the history
Signed-off-by: RD WebDesign <[email protected]>
  • Loading branch information
rdwebdesign committed Jun 4, 2024
1 parent 4866437 commit d581498
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion style/pi-hole.css
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,20 @@ table.dataTable tbody > tr > .selected {
background: rgba(127, 127, 127, 0.2);
}

@media screen and (max-width: 991px) {
@media screen and (min-width: 2250px) {
/* show 3 columns in larger screens */
.settings-container {
--columns: 3;
}
}
@media screen and (max-width: 1150px) {
/* avoid narrow columns in medium screens with sidebar expanded */
body:not(.sidebar-collapse) .settings-container {
--columns: 1;
}
}
@media screen and (max-width: 940px) {
/* show 1 columns in smaller screens */
.settings-container {
--columns: 1;
}
Expand Down

0 comments on commit d581498

Please sign in to comment.