mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-06 21:57:14 +02:00
fix(v2): remove top margin from first element inside doc article (#5230)
This commit is contained in:
parent
a72ed73d2d
commit
ce847d664c
3 changed files with 2 additions and 1 deletions
|
@ -5,6 +5,7 @@
|
|||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
.docItemContainer article *:first-child,
|
||||
.docItemContainer header + * {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
|
|
@ -21,7 +21,6 @@ export default function TOCCollapsible({toc, className}: TOCCollapsibleProps) {
|
|||
return (
|
||||
<div
|
||||
className={clsx(
|
||||
'margin-vert--md',
|
||||
styles.tocCollapsible,
|
||||
{
|
||||
[styles.tocCollapsibleExpanded]: !collapsed,
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
.tocCollapsible {
|
||||
background-color: var(--ifm-menu-color-background-active);
|
||||
border-radius: var(--ifm-global-radius);
|
||||
margin: 1rem 0;
|
||||
}
|
||||
|
||||
.tocCollapsibleButton {
|
||||
|
|
Loading…
Add table
Reference in a new issue