Skip to content

Commit

Permalink
Use Less functions for css columns
Browse files Browse the repository at this point in the history
  • Loading branch information
saharj committed Apr 29, 2016
1 parent c0730e1 commit 94bdc14
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions styles/components/menu-bar.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
@import "../fonts";
@import "../buttons";

.column(@num) {
-webkit-column-count: @num;
-moz-column-count: @num;
-ms-column-count: @num;
column-count: @num;
}

.menu-bar .dropdown{
display: inline-block;

Expand Down Expand Up @@ -30,25 +37,18 @@
}

.server-list {
-webkit-column-count: 2;
-moz-column-count: 2;
-ms-column-count: 2;
.column(2);
}

.client-list {
-webkit-column-count: 3;
-moz-column-count: 3;
-ms-column-count: 3;
}
@media(max-width: 968px) {
.client-list {
.server-list();
.column(3);

@media(max-width: 968px) {
.column(2);
}
}
@media(max-width: 750px) {
.client-list {
-webkit-column-count: 1;
-moz-column-count: 1;
-ms-column-count: 1;

@media(max-width: 750px) {
.column(1);
}
}

Expand Down

0 comments on commit 94bdc14

Please sign in to comment.