From af1dc1320c840ec1cd6914630c384a3cea65814c Mon Sep 17 00:00:00 2001 From: axolotle Date: Fri, 9 Jul 2021 11:10:57 +0200 Subject: [PATCH] add GalleryMap component in Gallery --- src/components/layouts/SideView.vue | 8 +- src/pages/Gallery.vue | 24 ++++- src/pages/gallery/GalleryMap.vue | 141 ++++++++++++++++++++++++++++ src/pages/gallery/GalleryView.vue | 5 +- src/pages/gallery/index.js | 1 + 5 files changed, 170 insertions(+), 9 deletions(-) create mode 100644 src/pages/gallery/GalleryMap.vue diff --git a/src/components/layouts/SideView.vue b/src/components/layouts/SideView.vue index b37da19..2d07690 100644 --- a/src/components/layouts/SideView.vue +++ b/src/components/layouts/SideView.vue @@ -7,11 +7,11 @@ :body-class="{ paddings: !noCross }" backdrop backdrop-variant="light" > - @@ -38,11 +38,11 @@ export default { background-color: red; width: auto; - @include media-breakpoint-down($size-bp-down) { + @media (orientation: portrait) { width: 100%; } - @include media-breakpoint-up($size-bp) { + @media (orientation: landscape) { max-width: 50%; &:not(.b-sidebar-right) { diff --git a/src/pages/Gallery.vue b/src/pages/Gallery.vue index 7fec2fa..d08a950 100644 --- a/src/pages/Gallery.vue +++ b/src/pages/Gallery.vue @@ -1,11 +1,18 @@ + + + + diff --git a/src/pages/gallery/GalleryView.vue b/src/pages/gallery/GalleryView.vue index eb381a9..95b6cba 100644 --- a/src/pages/gallery/GalleryView.vue +++ b/src/pages/gallery/GalleryView.vue @@ -159,8 +159,11 @@ export default { &-caption { height: 100%; text-align: center; - font-size: 1.15rem; font-family: $font-family-text; + + @include media-breakpoint-up($size-bp) { + font-size: 1.5rem; + } } .gallery-view-btn-wrapper { diff --git a/src/pages/gallery/index.js b/src/pages/gallery/index.js index 3d753ff..f76e90c 100644 --- a/src/pages/gallery/index.js +++ b/src/pages/gallery/index.js @@ -1 +1,2 @@ export { default as GalleryView } from './GalleryView' +export { default as GalleryMap } from './GalleryMap'