Skip to content

Commit

Permalink
Add sizing to menu
Browse files Browse the repository at this point in the history
  • Loading branch information
jlukic committed Apr 1, 2016
1 parent cc891bd commit 9faacf4
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/definitions/collections/menu.less
Original file line number Diff line number Diff line change
Expand Up @@ -1903,6 +1903,22 @@ Floated Menu / Item
Sizes
---------------*/

/* Mini */
.ui.mini.menu {
font-size: @mini;
}
.ui.mini.vertical.menu {
width: @miniWidth;
}

/* Tiny */
.ui.tiny.menu {
font-size: @tiny;
}
.ui.tiny.vertical.menu {
width: @tinyWidth;
}

/* Small */
.ui.small.menu {
font-size: @small;
Expand Down Expand Up @@ -1935,4 +1951,20 @@ Floated Menu / Item
width: @hugeWidth;
}

/* Big */
.ui.big.menu {
font-size: @big;
}
.ui.big.vertical.menu {
width: @bigWidth;
}

/* Massive */
.ui.massive.menu {
font-size: @massive;
}
.ui.massive.vertical.menu {
width: @massiveWidth;
}

.loadUIOverrides();
13 changes: 13 additions & 0 deletions src/themes/default/collections/menu.variables
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,21 @@
@attachedBoxShadow
;

/* Resize large sizes */
@mini: @11px;
@tiny: @12px;
@small: @13px;
@large: @15px;
@huge: @16px;
@big: @17px;
@massive: @18px;

/* Sizes */
@miniWidth: 9rem;
@tinyWidth: 11rem;
@smallWidth: 13rem;
@mediumWidth: 15rem;
@largeWidth: 18rem;
@hugeWidth: 20rem;
@bigWidth: 22rem;
@massiveWidth: 25rem;

0 comments on commit 9faacf4

Please sign in to comment.