summaryrefslogtreecommitdiffstats
path: root/assets/css
diff options
context:
space:
mode:
Diffstat (limited to 'assets/css')
-rw-r--r--assets/css/components/_card.scss1
-rw-r--r--assets/css/components/_project.scss12
-rw-r--r--assets/css/layouts/_section.scss18
3 files changed, 23 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}