+
@@ -15,9 +17,13 @@
import Cross from '@/components/icons/Cross';
import ContentNavigation from '@/components/book-navigation/ContentNavigation';
+ import sidebarMixin from '@/mixins/sidebar';
+
import {meQuery} from '@/graphql/queries';
export default {
+ mixins: [sidebarMixin],
+
components: {
ContentNavigation,
Cross
@@ -30,8 +36,8 @@
},
methods: {
- hideMobileNavigation() {
- this.$store.dispatch('showMobileNavigation', false);
+ close() {
+ this.closeSidebar('navigation');
}
},
@@ -45,7 +51,7 @@
@import "@/styles/_variables.scss";
@import "@/styles/_mixins.scss";
- .mobile-navigation {
+ .navigation-sidebar {
position: fixed;
left: 0;
right: 0;
@@ -54,6 +60,10 @@
background-color: white;
z-index: 20;
+ @include desktop {
+ box-shadow: 0px 2px 9px rgba(0, 0, 0, 0.12);
+ }
+
display: grid;
grid-template-columns: 1fr 50px;
@@ -69,11 +79,10 @@
overflow-y: auto;
@include desktop {
- display: none;
+ width: 285px;
}
&__main {
- background-color: $color-brand;
padding: $medium-spacing;
grid-area: m;
}
@@ -86,13 +95,7 @@
grid-column: 2;
align-self: center;
justify-self: center;
- }
-
- &__close-icon {
- width: 30px;
- height: 30px;
- opacity: 0.5;
- fill: $color-white;
+ cursor: pointer;
}
}
diff --git a/client/src/components/icons/Cross.vue b/client/src/components/icons/Cross.vue
index 43422926..5bdc1eec 100644
--- a/client/src/components/icons/Cross.vue
+++ b/client/src/components/icons/Cross.vue
@@ -2,8 +2,16 @@
+
+
diff --git a/client/src/components/modules/Module.vue b/client/src/components/modules/Module.vue
index 89549c76..ebead69c 100644
--- a/client/src/components/modules/Module.vue
+++ b/client/src/components/modules/Module.vue
@@ -216,6 +216,7 @@
.module {
display: flex;
justify-self: center;
+ max-width: 100vw;
@include desktop {
width: 800px;
diff --git a/client/src/components/profile/Avatar.vue b/client/src/components/profile/Avatar.vue
index b4e68998..5bc8cb0f 100644
--- a/client/src/components/profile/Avatar.vue
+++ b/client/src/components/profile/Avatar.vue
@@ -69,7 +69,7 @@
this.$apollo.mutate({
mutation: TOGGLE_SIDEBAR,
variables: {
- open: false
+ profile: false
}
})
}
@@ -124,8 +124,8 @@
height: 34px;
display: block;
left: 50%;
- bottom: -7px;
- transform: translateX(50%);
+ bottom: -3px;
+ transform: translateX(80%);
background-color: $color-white;
border-radius: 50%;
padding: 6px;
diff --git a/client/src/components/profile/ProfileSidebar.vue b/client/src/components/profile/ProfileSidebar.vue
index a31e2095..aa728585 100644
--- a/client/src/components/profile/ProfileSidebar.vue
+++ b/client/src/components/profile/ProfileSidebar.vue
@@ -2,46 +2,52 @@