Skip to content

Commit 4f80005

Browse files
fix(style): mobile search and menu placement and color (#50)
1 parent 9a78a3c commit 4f80005

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

src/styles/starlight.css

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,16 @@
151151
}
152152
}
153153

154-
starlight-menu-button button,
154+
[data-has-sidebar] header.header {
155+
padding-inline-end: 1rem;
156+
}
157+
158+
starlight-menu-button button {
159+
top: unset;
160+
bottom: calc((var(--sl-mobile-toc-height) - var(--sl-menu-button-size)) / 2);
161+
background-color: var(--color-gray-80);
162+
}
163+
155164
mobile-starlight-toc nav {
156165
top: unset;
157166
bottom: 0;
@@ -188,5 +197,9 @@
188197
.starlight-sidebar-topics-icon {
189198
background-color: var(--color-gray-20);
190199
}
200+
201+
starlight-menu-button button {
202+
background-color: var(--color-gray-20);
203+
}
191204
}
192205
}

0 commit comments

Comments
 (0)