Skip to content

Commit 712c286

Browse files
committed
added margins to codeblocks and hover effects for the collapsible
1 parent 45fc2ee commit 712c286

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/styles/components/accordion.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
.accordion {
22
& summary {
33
list-style: none;
4+
transition: background-color 0.15s ease-out;
5+
6+
&:hover {
7+
background-color: hsla(250 11 100 / 0.06);
8+
cursor: pointer;
9+
}
410
}
511

612
& .accordion-container {

src/styles/css-config/code.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
pre.shiki {
2+
margin-block: 1.618rem;
3+
}
4+
15
:where(p, li):has(> code) code {
26
padding-inline: 0.272rem;
37
border-radius: 0.272rem;

0 commit comments

Comments
 (0)