summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2021-04-23 22:43:33 +0200
committerVolpeon <git@volpeon.ink>2021-04-23 22:43:33 +0200
commit52f9dc373461761d9454dbd9d2fbf28b6059398b (patch)
tree1f820391e2d74b8bc69987e2da344443a4aa6ca9
parentPrevent card hover feedback loop (diff)
downloadvolpeon.ink-52f9dc373461761d9454dbd9d2fbf28b6059398b.tar.gz
volpeon.ink-52f9dc373461761d9454dbd9d2fbf28b6059398b.tar.bz2
volpeon.ink-52f9dc373461761d9454dbd9d2fbf28b6059398b.zip
Update
-rw-r--r--assets/css/components/_card.scss1
-rw-r--r--assets/css/components/_project.scss12
-rw-r--r--assets/css/layouts/_section.scss18
-rw-r--r--content/projects/blobfox-emojis/index.md1
-rw-r--r--content/projects/bunhd-emojis/index.md1
-rw-r--r--templates/layouts/page.html3
6 files changed, 28 insertions, 8 deletions
diff --git a/assets/css/components/_card.scss b/assets/css/components/_card.scss
index 7bd76f3..37d4b0e 100644
--- a/assets/css/components/_card.scss
+++ b/assets/css/components/_card.scss
@@ -25,6 +25,7 @@
25 display: flex; 25 display: flex;
26 position: relative; 26 position: relative;
27 align-items: center; 27 align-items: center;
28 transform: translateY(0);
28 transition: transform .2s, background-color .2s, color .2s; 29 transition: transform .2s, background-color .2s, color .2s;
29 background-color: prop(--colors --bg); 30 background-color: prop(--colors --bg);
30 line-height: 1.4; 31 line-height: 1.4;
diff --git a/assets/css/components/_project.scss b/assets/css/components/_project.scss
index 301827c..6fac047 100644
--- a/assets/css/components/_project.scss
+++ b/assets/css/components/_project.scss
@@ -16,11 +16,6 @@
16 background-color: prop(--colors --bg); 16 background-color: prop(--colors --bg);
17 } 17 }
18 18
19 &::after {
20 content: '';
21 background-image: linear-gradient(340deg, rgba(#000, .25) 5em, transparent 18em);
22 }
23
24 &:link, 19 &:link,
25 &:visited { 20 &:visited {
26 color: currentColor; 21 color: currentColor;
@@ -44,7 +39,7 @@
44 } 39 }
45 } 40 }
46 41
47 @include multi('element' 'picture', '&::after') { 42 @include multi('element' 'picture') {
48 display: block; 43 display: block;
49 position: absolute; 44 position: absolute;
50 z-index: 10; 45 z-index: 10;
@@ -68,11 +63,12 @@
68 63
69 @include element('picture') { 64 @include element('picture') {
70 transition: opacity .2s; 65 transition: opacity .2s;
66 mask-image: iro-easing-gradient(linear, 340deg, rgba(#000, .75) 7em, ease, #000 26em);
71 } 67 }
72 68
73 @include media('<=sm') { 69 @include media('<=sm') {
74 &::after { 70 @include element('picture') {
75 background-image: linear-gradient(to top, rgba(#000, .25) 1em, transparent 11em); 71 mask-image: iro-easing-gradient(linear, to top, rgba(#000, .75) 2em, ease, #000 17em);
76 } 72 }
77 } 73 }
78 } 74 }
diff --git a/assets/css/layouts/_section.scss b/assets/css/layouts/_section.scss
index 51e3dc8..1bc86fe 100644
--- a/assets/css/layouts/_section.scss
+++ b/assets/css/layouts/_section.scss
@@ -3,9 +3,14 @@
3 --colors: ( 3 --colors: (
4 --border: prop(--colors --obj-hi, $global: true), 4 --border: prop(--colors --obj-hi, $global: true),
5 ), 5 ),
6 --dims: (
7 --banner-blur: .5rem,
8 )
6 )); 9 ));
7 10
8 @include layout(namespace()) { 11 @include layout(namespace()) {
12 position: relative;
13
9 @include modifier('fullscreen') { 14 @include modifier('fullscreen') {
10 box-sizing: border-box; 15 box-sizing: border-box;
11 min-height: 100%; 16 min-height: 100%;
@@ -37,5 +42,18 @@
37 border-top: 1px solid prop(--colors --border); 42 border-top: 1px solid prop(--colors --border);
38 } 43 }
39 } 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 }
40 } 58 }
41} 59}
diff --git a/content/projects/blobfox-emojis/index.md b/content/projects/blobfox-emojis/index.md
index aea2e45..75a96d8 100644
--- a/content/projects/blobfox-emojis/index.md
+++ b/content/projects/blobfox-emojis/index.md
@@ -2,6 +2,7 @@
2title: Blobfox 2title: Blobfox
3category: emj 3category: emj
4preview: preview.png 4preview: preview.png
5banner: preview.png
5--- 6---
6 7
7![](screenshot.png) 8![](screenshot.png)
diff --git a/content/projects/bunhd-emojis/index.md b/content/projects/bunhd-emojis/index.md
index 75d4b3f..ecd049f 100644
--- a/content/projects/bunhd-emojis/index.md
+++ b/content/projects/bunhd-emojis/index.md
@@ -2,6 +2,7 @@
2title: BunHD 2title: BunHD
3category: emj 3category: emj
4preview: preview.png 4preview: preview.png
5banner: preview.png
5--- 6---
6 7
7![](screenshot.png) 8![](screenshot.png)
diff --git a/templates/layouts/page.html b/templates/layouts/page.html
index b6ff7c3..877abee 100644
--- a/templates/layouts/page.html
+++ b/templates/layouts/page.html
@@ -1,4 +1,7 @@
1<section class="l-section l-section--fullscreen l-section--no-head"> 1<section class="l-section l-section--fullscreen l-section--no-head">
2 $if(banner)$
3 <img class="l-section__banner" src="$banner$" />
4 $endif$
2 <div class="l-container l-container--pad-x l-container--pad-y l-container--content s-body"> 5 <div class="l-container l-container--pad-x l-container--pad-y l-container--content s-body">
3 <h1>$title$</h1> 6 <h1>$title$</h1>
4 7