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; }