docs: decrease leftnav spacing (#7532)
* add-coles-sidebar-fix * menu-spacing * Changed sidebar-ad from sticky to fixed positioning
This commit is contained in:
parent
34f00a7f9e
commit
ab324e5eb9
1 changed files with 15 additions and 6 deletions
|
|
@ -16,7 +16,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.theme-doc-sidebar-item-category.menu__list-item:not(:first-child) {
|
.theme-doc-sidebar-item-category.menu__list-item:not(:first-child) {
|
||||||
margin-top: 1.5rem !important;
|
margin-top: 0.5rem !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.docusaurus-highlight-code-line {
|
.docusaurus-highlight-code-line {
|
||||||
|
|
@ -274,20 +274,29 @@ body {
|
||||||
.theme-doc-sidebar-item-category.theme-doc-sidebar-item-category-level-2.menu__list-item:not(
|
.theme-doc-sidebar-item-category.theme-doc-sidebar-item-category-level-2.menu__list-item:not(
|
||||||
:first-child
|
:first-child
|
||||||
) {
|
) {
|
||||||
margin-top: 0.25rem !important;
|
margin-top: 0.15rem !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-ad {
|
.sidebar-ad {
|
||||||
margin-top: 2rem;
|
|
||||||
margin-left: -0.5rem;
|
margin-left: -0.5rem;
|
||||||
margin-right: -0.5rem;
|
margin-right: -0.5rem;
|
||||||
margin-bottom: -0.5rem;
|
margin-bottom: 0;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
border-top: 1px solid var(--ifm-color-emphasis-300);
|
border-top: 1px solid var(--ifm-color-emphasis-300);
|
||||||
border-bottom: 1px solid var(--ifm-color-emphasis-300);
|
border-bottom: 1px solid var(--ifm-color-emphasis-300);
|
||||||
background-color: var(--ifm-background-color);
|
background-color: var(--ifm-background-color);
|
||||||
position: sticky;
|
position: fixed;
|
||||||
bottom: -0.5rem;
|
bottom: 0;
|
||||||
|
z-index: 100;
|
||||||
|
width: var(--doc-sidebar-width);
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-theme="dark"] .sidebar-ad {
|
||||||
|
background-color: var(--ifm-background-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-theme="light"] .sidebar-ad {
|
||||||
|
background-color: var(--ifm-color-white);
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-ad a {
|
.sidebar-ad a {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue