Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

Fix issue and add transition into toggle left menu #202

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/assets/fabricator/styles/partials/_color-chips.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

.f-color-chip {
flex-grow: 1;
flex-shrink: 0;
flex-shrink: 1;
flex-basis: 100%;
border-top-width: 8em;
border-top-style: solid;
Expand Down
1 change: 1 addition & 0 deletions src/assets/fabricator/styles/partials/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ body {
.f-container {
@include clearfix;
@include border-box;
@include transition;
position: relative;
padding: 0 1em;
z-index: 0;
Expand Down
1 change: 1 addition & 0 deletions src/assets/fabricator/styles/partials/_menu.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// menu
.f-menu {
@include border-box;
@include transition;
position: fixed;
top: 0;
left: 0;
Expand Down
13 changes: 12 additions & 1 deletion src/assets/fabricator/styles/partials/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ $menu-width: map-get($settings, menu-width);

// functions
@function color($color) {
@return map-get($colors, $color);
@return map-get($colors, $color);
}


Expand All @@ -50,3 +50,14 @@ $menu-width: map-get($settings, menu-width);
@mixin border-box {
box-sizing: border-box;
}

@mixin transition($transition...) {
@if length($transition) < 1 {
$transition: all 0.3s ease;
}

-moz-transition: $transition;
-o-transition: $transition;
-webkit-transition: $transition;
transition: $transition;
}