Skip to content

Commit 5cb1648

Browse files
committed
💄 Adjust AspectRatio and Spoiler CSS
1 parent cb3becb commit 5cb1648

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/components/AspectRatio/aspect-ratio.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@import '../../scss/config.scss';
22

3-
.ratio {
3+
div.ratio[style] {
44
@include layout(flex);
55
@include size('w100%');
66

src/components/Spoiler/spoiler.module.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ body {
44
--w-spoiler-color: var(--w-color-primary);
55
}
66

7-
.spoiler {
7+
span.spoiler {
88
@include border-radius();
99
@include background(var(--w-spoiler-color));
1010
@include typography(hmd);
@@ -22,11 +22,19 @@ body {
2222
@include visibility(block);
2323
}
2424

25+
code {
26+
@include border(0);
27+
}
28+
2529
&[data-visible] {
2630
@include background(transparent);
2731

2832
color: inherit;
2933
user-select: auto;
3034
cursor: auto;
35+
36+
code {
37+
@include border(primary-50);
38+
}
3139
}
3240
}

0 commit comments

Comments
 (0)