aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/landing/sections/Software.module.css
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2024-08-16 01:26:43 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2024-08-16 16:08:43 +0200
commitfd64616e18677384ff27a67a33e5f8b8aad01da8 (patch)
tree5a65bc448334c608276118e514649e058025b610 /src/components/landing/sections/Software.module.css
parentReduce FOUC on Refinery screenshot (diff)
downloadblog-fd64616e18677384ff27a67a33e5f8b8aad01da8.tar.gz
blog-fd64616e18677384ff27a67a33e5f8b8aad01da8.tar.zst
blog-fd64616e18677384ff27a67a33e5f8b8aad01da8.zip
CSS workarounds
Diffstat (limited to 'src/components/landing/sections/Software.module.css')
-rw-r--r--src/components/landing/sections/Software.module.css24
1 files changed, 16 insertions, 8 deletions
diff --git a/src/components/landing/sections/Software.module.css b/src/components/landing/sections/Software.module.css
index 758a848..fddc727 100644
--- a/src/components/landing/sections/Software.module.css
+++ b/src/components/landing/sections/Software.module.css
@@ -29,8 +29,6 @@
29 grid-row: 1 / span 2; 29 grid-row: 1 / span 2;
30 min-height: 200px; 30 min-height: 200px;
31 overflow: hidden; 31 overflow: hidden;
32 background-size: cover;
33 background-position: center center;
34 --ifm-color-primary: #038a99; 32 --ifm-color-primary: #038a99;
35 --ifm-color-primary-dark: #037c8a; 33 --ifm-color-primary-dark: #037c8a;
36 --ifm-color-primary-darker: #037582; 34 --ifm-color-primary-darker: #037582;
@@ -73,22 +71,25 @@
73 left: 0; 71 left: 0;
74 width: 100%; 72 width: 100%;
75 height: 100%; 73 height: 100%;
76 z-index: 1; 74 z-index: -1;
77 object-fit: cover; 75 object-fit: cover;
78 transition: transform var(--ifm-transition-fast) ease; 76 transition: transform var(--ifm-transition-fast) ease;
79} 77}
80 78
81.software--refinery:hover .refinery__background, 79.software--refinery:has(.cover-link:hover) .refinery__background,
82.software--refinery:focus-within .refinery__background { 80.software--refinery:has(.cover-link:focus) .refinery__background {
83 transform: scale(140%); 81 transform: scale(140%);
84} 82}
85 83
86.content { 84.content {
87 position: relative; 85 position: relative;
88 height: 100%; 86 height: 100%;
89 z-index: 99;
90 display: flex; 87 display: flex;
91 flex-direction: column; 88 flex-direction: column;
89 background-size: cover;
90 background-position: center center;
91 /* Force browser rendering before transform. */
92 filter: blur(0px);
92} 93}
93 94
94.content--refinery { 95.content--refinery {
@@ -201,6 +202,7 @@
201 202
202.screenshot__backdrop { 203.screenshot__backdrop {
203 display: none; 204 display: none;
205 z-index: -2;
204 background-size: cover; 206 background-size: cover;
205 background-position: center center; 207 background-position: center center;
206} 208}
@@ -210,13 +212,17 @@
210 display: block; 212 display: block;
211} 213}
212 214
213.screenshot, .screenshot__backdrop { 215.screenshot,
216.screenshot__backdrop {
214 position: absolute; 217 position: absolute;
215 top: 0; 218 top: 0;
216 left: 0; 219 left: 0;
217 width: 100%; 220 width: 100%;
218 height: 100%; 221 height: 100%;
219 z-index: 1; 222}
223
224.screenshot {
225 z-index: -1;
220} 226}
221 227
222.content--screenshot { 228.content--screenshot {
@@ -336,6 +342,7 @@
336 342
337 .software-grid { 343 .software-grid {
338 grid-template: min-content / 1fr; 344 grid-template: min-content / 1fr;
345 gap: 1.5rem;
339 } 346 }
340 347
341 .software { 348 .software {
@@ -351,6 +358,7 @@
351 .overlay--screenshot { 358 .overlay--screenshot {
352 padding: 1rem 2rem 2rem 2rem; 359 padding: 1rem 2rem 2rem 2rem;
353 font-size: 1rem; 360 font-size: 1rem;
361 transform: none;
354 } 362 }
355} 363}
356 364