Skip to content

Commit

Permalink
fix(v2): remove top margin from first element inside doc article
Browse files Browse the repository at this point in the history
  • Loading branch information
lex111 committed Jul 27, 2021
1 parent 798f634 commit 9565998
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

.docItemContainer article *:first-child,
.docItemContainer header + * {
margin-top: 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export default function TOCCollapsible({toc, className}: TOCCollapsibleProps) {
return (
<div
className={clsx(
'margin-vert--md',
styles.tocCollapsible,
{
[styles.tocCollapsibleExpanded]: !collapsed,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
.tocCollapsible {
background-color: var(--ifm-menu-color-background-active);
border-radius: var(--ifm-global-radius);
margin: 1rem 0;
}

.tocCollapsibleButton {
Expand Down

0 comments on commit 9565998

Please sign in to comment.