Skip to content

Commit

Permalink
fix(menu): add width and small-width css variables (#14997)
Browse files Browse the repository at this point in the history
* fix(menu): add width and small-width css variables

* style(menu): rename css variable small-width to width-small
  • Loading branch information
adamlacombe authored and manucorporat committed Aug 2, 2018
1 parent e9fd184 commit 69f5cc8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions core/src/components/menu/menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
// --------------------------------------------------

:host {
--width: #{$menu-width};
--width-small: #{$menu-small-width};

@include position(0, 0, 0, 0);

display: none;
Expand All @@ -27,7 +30,7 @@
flex-direction: column;
justify-content: space-between;

width: $menu-width;
width: var(--width);
height: 100%;

contain: strict;
Expand Down Expand Up @@ -78,7 +81,7 @@ ion-backdrop {
@media (max-width: 340px) {

.menu-inner {
width: $menu-small-width;
width: var(--width-small);
}

}
Expand Down

0 comments on commit 69f5cc8

Please sign in to comment.