Skip to content

Commit 6249a0a

Browse files
committed
fix docs collapsible color+margins
1 parent 712c286 commit 6249a0a

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

src/styles/components/accordion.css

-5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22
& summary {
33
list-style: none;
44
transition: background-color 0.15s ease-out;
5-
6-
&:hover {
7-
background-color: hsla(250 11 100 / 0.06);
8-
cursor: pointer;
9-
}
105
}
116

127
& .accordion-container {

src/styles/docs/docs.css

+16-7
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,12 @@ ul {
151151
& summary {
152152
padding: 1.2rem;
153153
user-select: none;
154+
box-shadow: 0 0 0.5rem 0px rgba(0 0 0 / 0.25);
155+
156+
&:hover {
157+
background-color: hsla(250 11 100 / 0.06);
158+
cursor: pointer;
159+
}
154160

155161
& > div {
156162
display: flex;
@@ -169,14 +175,17 @@ ul {
169175

170176
& .accordion-container > div {
171177
padding: 0 1.2rem;
172-
173-
& p:first-child {
174-
padding-top: 0;
175-
margin-top: 0;
176-
}
177178
}
178179
}
179180

180-
.docs-collapsible[open]:not(.closing) > summary > div > svg {
181-
transform: rotate(90deg);
181+
.docs-collapsible[open]:not(.closing) {
182+
& summary {
183+
background-color: hsla(250 11 100 / 0.03);
184+
&:hover {
185+
background-color: hsla(250 11 100 / 0.06);
186+
cursor: pointer;
187+
}
188+
189+
& div > svg { transform: rotate(90deg) }
190+
}
182191
}

0 commit comments

Comments
 (0)