mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-07 06:07:42 +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.
|
* LICENSE file in the root directory of this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
.docItemContainer article *:first-child,
|
||||||
.docItemContainer header + * {
|
.docItemContainer header + * {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,7 +21,6 @@ export default function TOCCollapsible({toc, className}: TOCCollapsibleProps) {
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={clsx(
|
className={clsx(
|
||||||
'margin-vert--md',
|
|
||||||
styles.tocCollapsible,
|
styles.tocCollapsible,
|
||||||
{
|
{
|
||||||
[styles.tocCollapsibleExpanded]: !collapsed,
|
[styles.tocCollapsibleExpanded]: !collapsed,
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
.tocCollapsible {
|
.tocCollapsible {
|
||||||
background-color: var(--ifm-menu-color-background-active);
|
background-color: var(--ifm-menu-color-background-active);
|
||||||
border-radius: var(--ifm-global-radius);
|
border-radius: var(--ifm-global-radius);
|
||||||
|
margin: 1rem 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tocCollapsibleButton {
|
.tocCollapsibleButton {
|
||||||
|
|
Loading…
Add table
Reference in a new issue