summaryrefslogtreecommitdiffstats
path: root/assets/css/components/_project.scss
diff options
context:
space:
mode:
Diffstat (limited to 'assets/css/components/_project.scss')
-rw-r--r--assets/css/components/_project.scss12
1 files changed, 4 insertions, 8 deletions
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 }