Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Commit

Permalink
Using CSS columns rather than flexbox for submenu layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Marshall authored and comzeradd committed Feb 8, 2019
1 parent a17aab0 commit f67a7bf
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
24 changes: 17 additions & 7 deletions assets/scss/components/_submenu.scss
Expand Up @@ -84,15 +84,25 @@
}
}

&.submenu-long > ul > li {
@include large-and-up {
flex-basis: 50%;
@include large-and-up {
&.submenu-long,
&.submenu-short {
> ul {
display: block;

li {
margin: 0;
padding: 6px 0 0;
}
}
}

&.submenu-long {
columns: 2;
}
}

&.submenu-short > ul > li {
@include large-and-up {
flex-basis: 33%;
&.submenu-short {
columns: 3;
}
}

Expand Down
2 changes: 1 addition & 1 deletion style.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion style.css.map

Large diffs are not rendered by default.

0 comments on commit f67a7bf

Please sign in to comment.