From ae18041878d35f10e9f39410a49786687721a49f Mon Sep 17 00:00:00 2001 From: ManjaroOne666 Date: Wed, 23 Jan 2019 11:29:48 +0000 Subject: [PATCH] thumbnail styling --- assets/scss/style.scss | 46 ++++++++++++++++++++++++++++++++++ components/GalleryFeatured.vue | 20 ++++++++++++++- components/GalleryThumbs.vue | 5 +++- 3 files changed, 69 insertions(+), 2 deletions(-) diff --git a/assets/scss/style.scss b/assets/scss/style.scss index 7321d20..638ca4a 100644 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -1,2 +1,48 @@ @import 'buefy'; @import 'base'; + +.thumb-overlay { + $color: $color__neutral-100; // color of overlay + + box-shadow: 0 0 12px 0 $color__neutral-400 inset, + 0 2px 12px 3px rgba($color__neutral-300, .5); + + transition: filter 1s; + filter: grayscale(.5); + + @media (min-width: $bp__layout) { + filter: grayscale(.95); + &:hover { + filter: grayscale(.5); + } + } + + &::before, + &::after { + content: ''; + position: absolute; + width: 100%; + height: 100%; + top: 0; + left: 0; + } + + &::before { + background: linear-gradient( + to bottom, + rgba($color, .5), + rgba($color, 0), + rgba($color, .7) + ); + } + + &::after { + background: linear-gradient( + to left, + rgba($color, .2), + rgba($color, 0), + rgba($color, .2) + ); + } +} + diff --git a/components/GalleryFeatured.vue b/components/GalleryFeatured.vue index 9353de8..ba5f367 100644 --- a/components/GalleryFeatured.vue +++ b/components/GalleryFeatured.vue @@ -1,7 +1,7 @@