From f1e594aa3dd492a4a26f329e861f91cde5f9e5c8 Mon Sep 17 00:00:00 2001 From: ManjaroOne666 Date: Sun, 27 Jan 2019 21:36:28 +0000 Subject: [PATCH] glaaery styling --- assets/scss/style.scss | 25 +++++++++++++++++++++++++ components/ContentPage.vue | 24 +----------------------- components/GalleryFeatured.vue | 22 ++++++++++++++++++++++ components/GalleryPage.vue | 30 ++++++++++++++++++++++++++++-- 4 files changed, 76 insertions(+), 25 deletions(-) diff --git a/assets/scss/style.scss b/assets/scss/style.scss index fecf12c..6e86ce6 100644 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -1,6 +1,31 @@ @import 'buefy'; @import 'base'; +.page-title { + @include font-title(); + color: $color__neutral-900; + text-align: center; + + @media (min-width: $bp__layout) { + font-size: 3.7vw; + text-align: left; + } + + @media (min-width: 90em) { + font-size: 3.5rem; + } +} + +.page-heading { + margin: 1rem; + + @media (min-width: $bp__layout) { + width: 14em; + max-width: calc(50% - #{$site-menu__header-width} - 3rem); + margin: 2rem 1rem 1rem 2rem; + } +} + .thumb-overlay { $color: $color__neutral-100; // color of overlay diff --git a/components/ContentPage.vue b/components/ContentPage.vue index 092c525..162e748 100644 --- a/components/ContentPage.vue +++ b/components/ContentPage.vue @@ -1,6 +1,6 @@ @@ -95,6 +96,17 @@ export default { } @media (max-width: $bp__layout) { + .page-heading { + z-index: 5; + position: absolute; + width: 100%; + top: 0; + left: 50%; + transform: translateX(-50%); + font-size: 2rem; + pointer-events: none; + } + .gallery-page { padding-top: $site-menu__header-height; } @@ -108,6 +120,7 @@ export default { } .gallery__thumbs { + z-index: 10; position: absolute; top: 0; left: 0; @@ -124,6 +137,19 @@ export default { } @media (min-width: $bp__layout) { + .page-heading { + position: absolute; + font-size: 3.5rem; + top: 0; + left: 0; + margin-top: 0; + max-width: calc(100% - 3rem - #{$gallery-featured-width--compact}); + + @media (min-width: $bp__gallery-compact) { + max-width: calc(100% - 2rem - #{$gallery-featured-width}); + } + } + .mobile-only { display: none; }