diff --git a/assets/components/container/container.vue b/assets/components/container/container.vue
index 4de1e96f..b035cad2 100644
--- a/assets/components/container/container.vue
+++ b/assets/components/container/container.vue
@@ -3,10 +3,12 @@
class="container"
:class="theme"
>
-
+
+ showSidebar = state"
+ />
+
@@ -36,7 +38,6 @@ function toggleSidebar(state) {
function mounted() {
document.addEventListener('click', () => {
EventBus.$emit('blur');
- this.showSidebar = false;
});
}
@@ -88,4 +89,26 @@ export default {
overflow-y: auto;
overflow-x: hidden;
}
+
+.slide-enter-active,
+.slide-leave-active {
+ &.sidebar-container {
+ transition: background .2s ease-in-out;
+ }
+
+ .sidebar {
+ transition: transform .2s ease-in-out;
+ }
+}
+
+.slide-enter,
+.slide-leave-to {
+ &.sidebar-container {
+ background: transparent;
+ }
+
+ .sidebar {
+ transform: translate(-100%, 0);
+ }
+}
diff --git a/assets/components/header/header.vue b/assets/components/header/header.vue
index d87ce523..fbaa7b2f 100644
--- a/assets/components/header/header.vue
+++ b/assets/components/header/header.vue
@@ -2,7 +2,7 @@