Skip to content

Commit

Permalink
Allow mobile menus to be placed outside of their original context.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmansfield committed Dec 24, 2015
1 parent ce7e0ec commit dfae25c
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 5 deletions.
32 changes: 32 additions & 0 deletions css/mo.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/mo.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions sass/_mo.scss
Expand Up @@ -66,7 +66,6 @@
}
}


/// Submenu arrow styles for horizontal menus.
@mixin mo-css-arrows-horizontal( $button-width: 44px, $button-height: 44px, $arrow-color: #000000 ) {
@include mo-arrows-base( $button-width, $button-height );
Expand Down Expand Up @@ -122,8 +121,9 @@
}

/// Mobile menu styles.
@mixin mo-mobile {
@include mo-arrows-mobile;
@mixin mo-mobile( $button-width: 44px, $button-height: 44px, $arrow-color: #000000 ) {
@include mo-css-arrows-horizontal( $button-width, $button-height, $arrow-color );
@include mo-arrows-mobile ( $arrow-color );

li {
display: block !important;
Expand Down Expand Up @@ -208,7 +208,7 @@
}

/// Created arrow pointing down.
@mixin mo-arrow-down( $arrow-color: #000000 ) {
@mixin mo-arrow-down( $arrow-color: '#000000' ) {
margin-top: -3px;
border-color: transparent;
border-top-color: $arrow-color;
Expand Down

0 comments on commit dfae25c

Please sign in to comment.