Skip to content

Commit 2ce4981

Browse files
author
Bogdan Plieshka
committed
MAGETWO-34476: Backend Menu JS improvements
- Improved menu animations
1 parent ea19ec2 commit 2ce4981

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

app/design/adminhtml/Magento/backend/Magento_Backend/web/css/source/module/_menu.less

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,12 +177,12 @@
177177
> .submenu {
178178
background-color: @submenu__background-color;
179179
box-shadow: 0 0 3px @color-black;
180-
left: -100rem;
180+
left: -90rem;
181181
min-height: ~'calc(@{menu-logo__outer-size} + 2rem + 100%)';
182182
padding: @submenu__padding-vertical 0 0;
183183
position: absolute;
184184
top: -@menu-logo__outer-size;
185-
transition: all .7s linear;
185+
transition: all .5s ease;
186186
visibility: hidden;
187187
z-index: @submenu__z-index;
188188
&._show {
@@ -272,6 +272,9 @@
272272
position: absolute;
273273
right: 0;
274274
top: 0;
275+
&:active {
276+
.scale();
277+
}
275278
&:before {
276279
&:extend(.abs-icon all);
277280
color: @submenu-section-label__color;

app/design/adminhtml/Magento/backend/web/css/override.less

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2667,6 +2667,8 @@ fieldset[disabled] .admin__control-text + .ui-datepicker-trigger {
26672667
}
26682668
.popup-window {
26692669
background: #ffffff;
2670+
}
2671+
.popup-window.dialog {
26702672
z-index: 1010 !important;
26712673
}
26722674
.popup-window .table_window > tbody > tr > td {
@@ -3102,12 +3104,12 @@ fieldset[disabled] .admin__control-text + .ui-datepicker-trigger {
31023104
.admin__menu .level-0 > .submenu {
31033105
background-color: #524d49;
31043106
box-shadow: 0 0 3px #000000;
3105-
left: -100rem;
3107+
left: -90rem;
31063108
min-height: ~" calc(7.5rem + 2rem + 100%)";
31073109
padding: 2rem 0 0;
31083110
position: absolute;
31093111
top: -7.5rem;
3110-
transition: all .7s linear;
3112+
transition: all .5s ease;
31113113
visibility: hidden;
31123114
z-index: 698;
31133115
}
@@ -3179,6 +3181,9 @@ fieldset[disabled] .admin__control-text + .ui-datepicker-trigger {
31793181
right: 0;
31803182
top: 0;
31813183
}
3184+
.admin__menu .submenu-close:active {
3185+
transform: scale(0.9);
3186+
}
31823187
.admin__menu .submenu-close:before {
31833188
color: #a79d95;
31843189
content: '\e62f';

0 commit comments

Comments
 (0)