Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Fred Heusschen committed Sep 1, 2020
1 parent 4be887d commit 1e36e06
Show file tree
Hide file tree
Showing 4 changed files with 109 additions and 108 deletions.
2 changes: 1 addition & 1 deletion dist/mmenu.js

Large diffs are not rendered by default.

80 changes: 40 additions & 40 deletions src/_includes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,46 +8,6 @@ $mm_include_offcanvas_blocker: $mm_include_offcanvas !default;

$mm_include_screenreader: true !default;

$mm_include_borderstyle: true !default;
$mm_include_borderstyle_none: $mm_include_borderstyle !default;
$mm_include_borderstyle_full: $mm_include_borderstyle !default;

$mm_include_effects: true !default;
$mm_include_effects_menuslide: $mm_include_effects !default;
$mm_include_effects_panelsnone: $mm_include_effects !default;
$mm_include_effects_panelsslide: $mm_include_effects !default;

$mm_include_fullscreen: true !default;

$mm_include_listview: true !default;
$mm_include_listview_justify: $mm_include_listview !default;
$mm_include_listview_inset: $mm_include_listview !default;

$mm_include_multiline: true !default;

$mm_include_pagedim: true !default;
$mm_include_pagedim_default: $mm_include_pagedim !default;
$mm_include_pagedim_black: $mm_include_pagedim !default;
$mm_include_pagedim_white: $mm_include_pagedim !default;

$mm_include_popup: true !default;

$mm_include_positioning: true !default;
$mm_include_positioning_right: $mm_include_positioning !default;
$mm_include_positioning_top: $mm_include_positioning !default;
$mm_include_positioning_bottom: $mm_include_positioning !default;
$mm_include_positioning_front: $mm_include_positioning !default;

$mm_include_shadows: true !default;
$mm_include_shadows_page: $mm_include_shadows !default;
$mm_include_shadows_menu: $mm_include_shadows !default;
$mm_include_shadows_panels: $mm_include_shadows !default;

$mm_include_themes: true !default;
$mm_include_themes_white: $mm_include_themes !default;
$mm_include_themes_dark: $mm_include_themes !default;
$mm_include_themes_black: $mm_include_themes !default;

$mm_include_autoheight: true !default;

$mm_include_columns: true !default;
Expand Down Expand Up @@ -91,3 +51,43 @@ $mm_include_sidebar_blocker: $mm_include_sidebar !default;

$mm_include_toggles: true !default;
$mm_include_checks: true !default;

$mm_include_borderstyle: true !default;
$mm_include_borderstyle_none: $mm_include_borderstyle !default;
$mm_include_borderstyle_full: $mm_include_borderstyle !default;

$mm_include_effects: true !default;
$mm_include_effects_menuslide: $mm_include_effects !default;
$mm_include_effects_panelsnone: $mm_include_effects !default;
$mm_include_effects_panelsslide: $mm_include_effects !default;

$mm_include_fullscreen: true !default;

$mm_include_listview: true !default;
$mm_include_listview_justify: $mm_include_listview !default;
$mm_include_listview_inset: $mm_include_listview !default;

$mm_include_multiline: true !default;

$mm_include_pagedim: true !default;
$mm_include_pagedim_default: $mm_include_pagedim !default;
$mm_include_pagedim_black: $mm_include_pagedim !default;
$mm_include_pagedim_white: $mm_include_pagedim !default;

$mm_include_popup: true !default;

$mm_include_positioning: true !default;
$mm_include_positioning_right: $mm_include_positioning !default;
$mm_include_positioning_top: $mm_include_positioning !default;
$mm_include_positioning_bottom: $mm_include_positioning !default;
$mm_include_positioning_front: $mm_include_positioning !default;

$mm_include_shadows: true !default;
$mm_include_shadows_page: $mm_include_shadows !default;
$mm_include_shadows_menu: $mm_include_shadows !default;
$mm_include_shadows_panels: $mm_include_shadows !default;

$mm_include_themes: true !default;
$mm_include_themes_white: $mm_include_themes !default;
$mm_include_themes_dark: $mm_include_themes !default;
$mm_include_themes_black: $mm_include_themes !default;
120 changes: 60 additions & 60 deletions src/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,66 @@
}
}

@mixin mm_columns_size($nr) {
[class*='mm-menu_columns-'] .mm-panels > .mm-panel_columns-#{$nr} {
transform: translate3d($nr * 100%, 0, 0);
}

.mm-menu_columns-#{$nr} .mm-panels > .mm-panel {
z-index: $nr;

@if ($nr > 0) {
width: ceil(100% / $nr * 100) / 100;
}
else {
width: 100%;
}

&:not(.mm-panel_opened):not(.mm-panel_opened-parent) {
transform: translate3d(($nr + 1) * 100%, 0, 0);
}
}

@include mm_offcanvas_size(
'.mm-menu_columns-#{$nr}',
$mm_menuWidth,
$mm_menuMinWidth,
$mm_menuMaxWidth * $nr
);
@include mm_position_right(
'.mm-menu_columns-#{$nr}',
$mm_menuWidth,
$mm_menuMinWidth,
$mm_menuMaxWidth * $nr
);
}

@mixin mm_iconpanel_size($nr) {
.mm-panel_iconpanel-#{$nr} {
@if ($mm_IE11Fallbacks) {
width: calc(100% - #{$mm_iconpanelSize * $nr});
}

width: calc(100% - (var(--mm-iconpanel-size) * #{$nr}));
}
}

@mixin mm_navbar_tabs_borders( $top, $bottom, $last, $first ) {
.mm-navbars_#{$top} {
.mm-navbar_tabs:not( :#{$last}-child ) {
border-#{$bottom}-width: 1px;
border-#{$bottom}-style: solid;
}
.mm-navbar__tab_selected {
border-#{$bottom}: none;
margin-#{$bottom}: -1px;
}
.mm-navbar_tabs:#{$first}-child .mm-navbar__tab_selected {
border-#{$top}: none;
}
}
}

@mixin mm_effect_listitem_delay( $i ) {
&:nth-child( #{$i} ) {
transition-delay: ( $i * 50ms );
Expand Down Expand Up @@ -124,63 +184,3 @@
max-height: $maxHeight;
}
}

@mixin mm_columns_size($nr) {
[class*='mm-menu_columns-'] .mm-panels > .mm-panel_columns-#{$nr} {
transform: translate3d($nr * 100%, 0, 0);
}

.mm-menu_columns-#{$nr} .mm-panels > .mm-panel {
z-index: $nr;

@if ($nr > 0) {
width: ceil(100% / $nr * 100) / 100;
}
else {
width: 100%;
}

&:not(.mm-panel_opened):not(.mm-panel_opened-parent) {
transform: translate3d(($nr + 1) * 100%, 0, 0);
}
}

@include mm_offcanvas_size(
'.mm-menu_columns-#{$nr}',
$mm_menuWidth,
$mm_menuMinWidth,
$mm_menuMaxWidth * $nr
);
@include mm_position_right(
'.mm-menu_columns-#{$nr}',
$mm_menuWidth,
$mm_menuMinWidth,
$mm_menuMaxWidth * $nr
);
}

@mixin mm_iconpanel_size($nr) {
.mm-panel_iconpanel-#{$nr} {
@if ($mm_IE11Fallbacks) {
width: calc(100% - #{$mm_iconpanelSize * $nr});
}

width: calc(100% - (var(--mm-iconpanel-size) * #{$nr}));
}
}

@mixin mm_navbar_tabs_borders( $top, $bottom, $last, $first ) {
.mm-navbars_#{$top} {
.mm-navbar_tabs:not( :#{$last}-child ) {
border-#{$bottom}-width: 1px;
border-#{$bottom}-style: solid;
}
.mm-navbar__tab_selected {
border-#{$bottom}: none;
margin-#{$bottom}: -1px;
}
.mm-navbar_tabs:#{$first}-child .mm-navbar__tab_selected {
border-#{$top}: none;
}
}
}
15 changes: 8 additions & 7 deletions src/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,6 @@ $mm_menuMaxHeight: 880px !default;

$mm_opt_screenreader : true !default;

$mm_fullscreen_full: 1 !default;
$mm_fullscreen_min: 140px !default;
$mm_fullscreen_max: 10000px !default;

$mm_pagedimOpacity: 0.3 !default;
$mm_pagedimDelay: 0.4s !default;
$mm_popupShadow: 0 2px 10px rgba( #000, 0.3 ) !default;
$mm_counterWidth: $mm_btnSize !default;

$mm_dropdownShadow: 0 2px 10px rgba( #000, 0.3 ) !default;
Expand All @@ -66,3 +59,11 @@ $mm_toggleHeight: $mm_listitemSize - $mm_padding !default;
$mm_toggleWidth: ($mm_toggleHeight * 2) - $mm_padding !default;
$mm_checkHeight: $mm_btnSize - $mm_padding !default;
$mm_checkWidth: $mm_btnSize - $mm_padding !default;

$mm_fullscreen_full: 1 !default;
$mm_fullscreen_min: 140px !default;
$mm_fullscreen_max: 10000px !default;

$mm_pagedimOpacity: 0.3 !default;
$mm_pagedimDelay: 0.4s !default;
$mm_popupShadow: 0 2px 10px rgba( #000, 0.3 ) !default;

0 comments on commit 1e36e06

Please sign in to comment.