Skip to content

Commit

Permalink
Use variable for max-height
Browse files Browse the repository at this point in the history
  • Loading branch information
simurai committed Sep 26, 2019
1 parent 031f9a7 commit a5bdd9e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/select-menu/select-menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// TODO: Introduce an additional .intent-keyboard class

$SelectMenu-border: $border-width $border-style lighten($gray-200, 3%);
$SelectMenu-max-height: 480px;

// Select Menu
//
Expand Down Expand Up @@ -85,7 +86,7 @@ $SelectMenu-border: $border-width $border-style lighten($gray-200, 3%);
@include breakpoint(sm) {
width: 300px;
height: auto;
max-height: 480px;
max-height: $SelectMenu-max-height;
margin: $spacer-1 0 $spacer-3 0;
font-size: $font-size-small;
border: $border-width $border-style $border-gray-dark;
Expand Down Expand Up @@ -323,7 +324,7 @@ $SelectMenu-border: $border-width $border-style lighten($gray-200, 3%);

@include breakpoint(sm) {
height: auto;
max-height: 480px;
max-height: $SelectMenu-max-height;
margin-top: $spacer-1;
}
}
Expand Down

0 comments on commit a5bdd9e

Please sign in to comment.