Skip to content

Commit 32509b9

Browse files
committed
a11y: clarity contrast for text overlaying images
1 parent f38eed8 commit 32509b9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/themes/clean/assets/css/clean.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,10 @@ main a {
234234
background-color: var(--bg-card-alt);
235235
}
236236

237+
.card-img-overlay.white-text > .card-text {
238+
background: var(--bg-overlay);
239+
}
240+
237241
.card.no-image .card-img-overlay {
238242
position: relative;
239243
background-color: var(--bg-card-alt);
@@ -395,7 +399,7 @@ a.btn {
395399
left: 0;
396400
right: 0;
397401
bottom: 0;
398-
background: linear-gradient(transparent, rgba(0, 0, 0, var(--recede-opacity)) 20%);
402+
background: var(--bg-overlay);
399403
padding: 2rem;
400404
text-align: center;
401405
}

0 commit comments

Comments
 (0)