fix: sidebar and dropdown spacing and typography

This commit is contained in:
Hossein Mehrabi 2022-10-10 20:41:51 +03:30
parent 4b7b6bf6ca
commit 522c7af509
2 changed files with 9 additions and 6 deletions

View File

@ -30,10 +30,10 @@
.theme-doc-sidebar-menu {
li a,
.theme-doc-sidebar-item-category a {
padding: 0.75rem 1.125rem;
border-radius: 0.75rem;
padding: var(--ifm-spacing-vertical) var(--ifm-spacing-horizontal);
border-radius: var(--ifm-button-border-radius);
font-size: 0.875rem;
font-size: var(--ifm-font-size-base);
color: #373738;
.menu__link--active {
@ -42,7 +42,7 @@
}
.menu__list-item-collapsible {
border-radius: 0.75rem;
border-radius: var(--ifm-button-border-radius);
a::after {
display: none;
@ -68,6 +68,6 @@
}
li:not(:first-child) {
margin-top: 0.125rem;
margin-top: calc(var(--ifm-list-item-margin) / 2);
}
}

View File

@ -1,6 +1,9 @@
.navbar__item.dropdown {
background-color: #eeeef1;
border-radius: 0.5rem;
border-radius: var(--ifm-button-border-radius);
padding: var(--ifm-button-padding-vertical)
var(--ifm-button-padding-horizontal);
font-size: var(--ifm-h6-font-size);
& > .navbar__link {
&::after {