summaryrefslogtreecommitdiffstats
path: root/assets
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2021-04-24 10:41:35 +0200
committerVolpeon <git@volpeon.ink>2021-04-24 10:41:35 +0200
commite5a1819e79341977adc96e1467470f3aac8fd5e8 (patch)
tree72a7d9dbbc1fe460d29d010027643c980fdab3de /assets
parentUpdate (diff)
downloadvolpeon.ink-e5a1819e79341977adc96e1467470f3aac8fd5e8.tar.gz
volpeon.ink-e5a1819e79341977adc96e1467470f3aac8fd5e8.tar.bz2
volpeon.ink-e5a1819e79341977adc96e1467470f3aac8fd5e8.zip
Update
Diffstat (limited to 'assets')
-rw-r--r--assets/css/components/_project.scss33
-rw-r--r--assets/css/layouts/_section.scss13
2 files changed, 16 insertions, 30 deletions
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 @@
7 7
8 @include component(namespace()) { 8 @include component(namespace()) {
9 position: relative; 9 position: relative;
10 overflow: hidden;
10 11
11 &::before { 12 &::before {
12 content: ''; 13 content: '';
13 display: block; 14 display: block;
14 padding-top: 12em; 15 padding-top: 12em;
15 padding-bottom: 25%; 16 padding-bottom: 5vw;
16 background-color: prop(--colors --bg); 17 background-color: prop(--colors --bg);
17 } 18 }
18 19
@@ -24,6 +25,7 @@
24 &:hover { 25 &:hover {
25 @include element('picture') { 26 @include element('picture') {
26 opacity: .75; 27 opacity: .75;
28 filter: blur(0);
27 } 29 }
28 30
29 @include element('card') { 31 @include element('card') {
@@ -39,16 +41,18 @@
39 } 41 }
40 } 42 }
41 43
42 @include multi('element' 'picture') { 44 @include element('picture') {
43 display: block; 45 display: block;
44 position: absolute; 46 position: absolute;
45 z-index: 10; 47 z-index: 10;
46 top: 0; 48 top: 0;
47 left: 0; 49 left: 0;
48 width: 100%; 50 width: 100%;
49 height: 100%; 51 height: 100%;
50 object-fit: cover; 52 object-fit: cover;
51 object-position: center center; 53 object-position: center center;
54 transition: opacity .2s;
55 mask-image: iro-easing-gradient(linear, 340deg, rgba(#000, .75) 7em, ease, #000 26em);
52 } 56 }
53 57
54 @include element('card') { 58 @include element('card') {
@@ -58,12 +62,7 @@
58 bottom: 1em; 62 bottom: 1em;
59 min-width: 15em; 63 min-width: 15em;
60 max-width: calc(100% - 2em); 64 max-width: calc(100% - 2em);
61 box-shadow: 0 .3em 1em rgba(#000, .15); 65 box-shadow: 0 .8em 2.5em rgba(#000, .25);
62 }
63
64 @include element('picture') {
65 transition: opacity .2s;
66 mask-image: iro-easing-gradient(linear, 340deg, rgba(#000, .75) 7em, ease, #000 26em);
67 } 66 }
68 67
69 @include media('<=sm') { 68 @include media('<=sm') {
diff --git a/assets/css/layouts/_section.scss b/assets/css/layouts/_section.scss
index 1bc86fe..1a1bc0b 100644
--- a/assets/css/layouts/_section.scss
+++ b/assets/css/layouts/_section.scss
@@ -42,18 +42,5 @@
42 border-top: 1px solid prop(--colors --border); 42 border-top: 1px solid prop(--colors --border);
43 } 43 }
44 } 44 }
45
46 @include element('banner') {
47 position: absolute;
48 z-index: -20;
49 top: calc(-2 * #{prop(--dims --banner-blur)});
50 left: calc(-2 * #{prop(--dims --banner-blur)});
51 width: calc(100% + 4 * #{prop(--dims --banner-blur)});
52 height: 60rem;
53 object-fit: cover;
54 object-position: top center;
55 filter: blur(#{prop(--dims --banner-blur)});
56 mask-image: iro-easing-gradient(linear, to bottom, rgba(#000, .25), ease, transparent);
57 }
58 } 45 }
59} 46}