mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-26 22:47:49 +02:00
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:
parent
6fe7c0cd6f
commit
a024d23fda
2 changed files with 8 additions and 2 deletions
|
@ -19,6 +19,10 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.docItemWrapper {
|
||||||
|
padding-top: 0.5rem !important;
|
||||||
|
}
|
||||||
|
|
||||||
@media (min-width: 997px) {
|
@media (min-width: 997px) {
|
||||||
.docMainContainer {
|
.docMainContainer {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
|
@ -72,7 +76,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.docItemWrapperEnhanced {
|
.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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
max-height: calc(100vh - (var(--ifm-navbar-height) + 2rem));
|
max-height: calc(100vh - (var(--ifm-navbar-height) + 2rem));
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: calc(var(--ifm-navbar-height) + 2rem);
|
top: calc(var(--ifm-navbar-height) + 1rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (max-width: 996px) {
|
@media only screen and (max-width: 996px) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue