diff --git a/app/assets/stylesheets/darkswarm/shop.css.scss b/app/assets/stylesheets/darkswarm/shop.css.scss index 2eea3bde94..c133f8590c 100644 --- a/app/assets/stylesheets/darkswarm/shop.css.scss +++ b/app/assets/stylesheets/darkswarm/shop.css.scss @@ -57,6 +57,12 @@ height: 100%; width: 100%; background-color: rgba(0, 0, 0, 0.15); + opacity: 0; + transition: opacity 250ms ease-in-out 0s; + + &.shown { + opacity: 1; + } } .sidebar { @@ -66,15 +72,23 @@ z-index: 210; height: 100%; width: 45%; + margin-right: -45%; background-color: rgba($white, 0.95); padding: 1em; + transition: margin 250ms ease-in-out 0s; + + &.shown { + margin-right: 0; + } @media all and (max-width: 768px) { width: 65%; + margin-right: -65%; } @media all and (max-width: 480px) { width: 85%; + margin-right: -85%; } } } diff --git a/app/views/shop/products/_form.html.haml b/app/views/shop/products/_form.html.haml index 2fb74db02f..b98f308a53 100644 --- a/app/views/shop/products/_form.html.haml +++ b/app/views/shop/products/_form.html.haml @@ -56,8 +56,8 @@ = render partial: "shop/products/filters" .shop-filters-sidebar.hide-for-large-up{ng: {show: 'showFilterSidebar'}} - .background{ng: {click: 'toggleFilterSidebar()'}} - .sidebar + .background{ng: {click: 'toggleFilterSidebar()', class: "{'shown': showFilterSidebar}"}} + .sidebar{ng: {class: "{'shown': showFilterSidebar}"}} %h5 = t(:products_filter_by) %span{ng: {show: 'filtersCount()' }}