Skip to content

Commit 05e7ff9

Browse files
committed
refactor: added further relevant styles
1 parent 5314292 commit 05e7ff9

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

source/_patterns/02-components/cards/card.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

44
.cmp-card {
55
background-color: #fff;
6+
@media (prefers-color-scheme: dark) {
7+
background-color: color-mix(in srgb, transparent 95%, currentColor);
8+
}
69

710
border-radius: 8px;
811
box-shadow: $box-shadow-01, $box-shadow-02;

source/css/pattern-scaffolding-project-specific.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ pl-iframe {
3535
// Splitted Intro Page
3636
&:nth-of-type(2) {
3737
background-color: $db-color-cool-gray-100;
38+
@media (prefers-color-scheme: dark) {
39+
background-color: color-mix(
40+
in srgb,
41+
transparent 95%,
42+
currentColor
43+
);
44+
}
3845
padding-bottom: 2.5rem;
3946
}
4047
}

0 commit comments

Comments
 (0)