diff options
author | Volpeon <git@volpeon.ink> | 2021-04-23 22:43:33 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2021-04-23 22:43:33 +0200 |
commit | 52f9dc373461761d9454dbd9d2fbf28b6059398b (patch) | |
tree | 1f820391e2d74b8bc69987e2da344443a4aa6ca9 /assets/css/components | |
parent | Prevent card hover feedback loop (diff) | |
download | volpeon.ink-52f9dc373461761d9454dbd9d2fbf28b6059398b.tar.gz volpeon.ink-52f9dc373461761d9454dbd9d2fbf28b6059398b.tar.bz2 volpeon.ink-52f9dc373461761d9454dbd9d2fbf28b6059398b.zip |
Update
Diffstat (limited to 'assets/css/components')
-rw-r--r-- | assets/css/components/_card.scss | 1 | ||||
-rw-r--r-- | assets/css/components/_project.scss | 12 |
2 files changed, 5 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 | } |