UX: Keep core's top margin for first item in OP (#30)

This commit is contained in:
Penar Musaraj 2022-01-31 16:17:58 +01:00 committed by GitHub
parent cd8690ffa2
commit 2fd7d5107f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -178,6 +178,12 @@ a.d-toc-close {
}
}
// core sets first child's top margin to 0
// ensure it's also 0 when TOC markup is first
.cooked > div[data-theme-toc]:first-child + * {
margin-top: 0px;
}
// RTL Support
.rtl {
.d-toc-main {