refactor(v2): reduce vertical space in doc content container (#4877)

* refactor(v2): reduce vertical space in doc content container

* Avoid to utility class

* Fixes
This commit is contained in:
Alexey Pyltsyn 2021-06-09 17:19:11 +03:00 committed by GitHub
parent 6fe7c0cd6f
commit a024d23fda
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View file

@ -19,6 +19,10 @@
width: 100%;
}
.docItemWrapper {
padding-top: 0.5rem !important;
}
@media (min-width: 997px) {
.docMainContainer {
flex-grow: 1;
@ -72,7 +76,9 @@
}
.docItemWrapperEnhanced {
max-width: calc(var(--ifm-container-width) + var(--doc-sidebar-width)) !important;
max-width: calc(
var(--ifm-container-width) + var(--doc-sidebar-width)
) !important;
}
}

View file

@ -9,7 +9,7 @@
max-height: calc(100vh - (var(--ifm-navbar-height) + 2rem));
overflow-y: auto;
position: sticky;
top: calc(var(--ifm-navbar-height) + 2rem);
top: calc(var(--ifm-navbar-height) + 1rem);
}
@media only screen and (max-width: 996px) {