Skip to content

Commit

Permalink
Switch presence control grid from breakpoints to CSS grid
Browse files Browse the repository at this point in the history
  • Loading branch information
hupf committed Dec 16, 2024
1 parent d4b94a5 commit 9834b9b
Showing 1 changed file with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,14 @@ bkd-presence-control-entry {
* Grid view mode (default layout is list view mode)
*/
.entries.view-mode-grid {
display: flex;
flex-wrap: wrap;
display: grid;
grid-template-columns: repeat(
auto-fill,
minmax($bkd-presence-control-entry-min-width, 1fr)
);

> * {
width: 100%;

@for $i from 1 through 6 {
@media (min-width: $bkd-presence-control-entry-min-width * $i) {
width: percentage(math.div(1, $i));
border-right: 1px solid $border-color;
}
}
border-right: 1px solid $border-color;
}
}

Expand Down

0 comments on commit 9834b9b

Please sign in to comment.