feat: adjust sidebar font size and spacing

pull/654/head
Kia Ishii 3 years ago
parent d9decd9412
commit 562e345f07

@ -103,12 +103,12 @@ watchPostEffect(async () => {
.group + .group { .group + .group {
margin-top: 32px; margin-top: 32px;
border-top: 1px solid var(--vp-c-divider-light); border-top: 1px solid var(--vp-c-divider-light);
padding-top: 8px; padding-top: 10px;
} }
@media (min-width: 960px) { @media (min-width: 960px) {
.group { .group {
padding-top: 8px; padding-top: 10px;
} }
.group + .group { .group + .group {

@ -28,16 +28,10 @@ const { page } = useData()
padding: 6px 0; padding: 6px 0;
} }
@media (min-width: 960px) {
.title {
padding: 4px 0;
}
}
.title-text { .title-text {
line-height: 20px; line-height: 20px;
font-size: 13px; font-size: 14px;
font-weight: 600; font-weight: 700;
color: var(--vp-c-text-1); color: var(--vp-c-text-1);
transition: color 0.5s; transition: color 0.5s;
} }

@ -31,25 +31,18 @@ const closeSideBar = inject('close-sidebar') as () => void
} }
.link:hover .link-text { .link:hover .link-text {
color: var(--vp-c-brand); color: var(--vp-c-text-1);
transition: color 0.25s; transition: color 0.25s;
} }
.link.active .link-text { .link.active .link-text {
font-weight: 600;
color: var(--vp-c-brand); color: var(--vp-c-brand);
transition: color 0.25s; transition: color 0.25s;
} }
@media (min-width: 960px) {
.link {
padding: 4px 0;
}
}
.link-text { .link-text {
line-height: 20px; line-height: 20px;
font-size: 13px; font-size: 14px;
font-weight: 500; font-weight: 500;
color: var(--vp-c-text-2); color: var(--vp-c-text-2);
transition: color 0.5s; transition: color 0.5s;

Loading…
Cancel
Save