fix(v2): remove top margin from first element inside doc article (#5230)

This commit is contained in:
Alexey Pyltsyn 2021-07-28 17:35:31 +03:00 committed by GitHub
parent a72ed73d2d
commit ce847d664c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 1 deletions

View file

@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
.docItemContainer article *:first-child,
.docItemContainer header + * {
margin-top: 0;
}

View file

@ -21,7 +21,6 @@ export default function TOCCollapsible({toc, className}: TOCCollapsibleProps) {
return (
<div
className={clsx(
'margin-vert--md',
styles.tocCollapsible,
{
[styles.tocCollapsibleExpanded]: !collapsed,

View file

@ -8,6 +8,7 @@
.tocCollapsible {
background-color: var(--ifm-menu-color-background-active);
border-radius: var(--ifm-global-radius);
margin: 1rem 0;
}
.tocCollapsibleButton {