From e5a1819e79341977adc96e1467470f3aac8fd5e8 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sat, 24 Apr 2021 10:41:35 +0200 Subject: Update --- assets/css/components/_project.scss | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) (limited to 'assets/css/components') diff --git a/assets/css/components/_project.scss b/assets/css/components/_project.scss index 6fac047..580e70b 100644 --- a/assets/css/components/_project.scss +++ b/assets/css/components/_project.scss @@ -7,12 +7,13 @@ @include component(namespace()) { position: relative; + overflow: hidden; &::before { content: ''; display: block; padding-top: 12em; - padding-bottom: 25%; + padding-bottom: 5vw; background-color: prop(--colors --bg); } @@ -24,6 +25,7 @@ &:hover { @include element('picture') { opacity: .75; + filter: blur(0); } @include element('card') { @@ -39,16 +41,18 @@ } } - @include multi('element' 'picture') { - display: block; - position: absolute; - z-index: 10; - top: 0; - left: 0; - width: 100%; - height: 100%; - object-fit: cover; - object-position: center center; + @include element('picture') { + display: block; + position: absolute; + z-index: 10; + top: 0; + left: 0; + width: 100%; + height: 100%; + object-fit: cover; + object-position: center center; + transition: opacity .2s; + mask-image: iro-easing-gradient(linear, 340deg, rgba(#000, .75) 7em, ease, #000 26em); } @include element('card') { @@ -58,12 +62,7 @@ bottom: 1em; min-width: 15em; max-width: calc(100% - 2em); - box-shadow: 0 .3em 1em rgba(#000, .15); - } - - @include element('picture') { - transition: opacity .2s; - mask-image: iro-easing-gradient(linear, 340deg, rgba(#000, .75) 7em, ease, #000 26em); + box-shadow: 0 .8em 2.5em rgba(#000, .25); } @include media('<=sm') { -- cgit v1.2.3-70-g09d2