Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Wxh16144 committed Mar 2, 2023
1 parent 9725a52 commit 4ccf4c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions src/client/theme-default/slots/Content/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
background-color: lighten(@c-site-bg-dark, 3%);
}

&:not([data-has-footer]) {
&[data-no-footer] {
padding-bottom: @s-content-padding;
}

Expand All @@ -169,9 +169,8 @@
border-radius: 0;
box-shadow: none;

&:not([data-has-footer]) {
&[data-no-footer] {
padding: 24px;
margin-bottom: 0;
}
}
}
Expand All @@ -185,7 +184,7 @@
}
}

&[data-no-sidebar]:not([data-has-footer]) {
&[data-no-sidebar][data-no-footer] {
margin-bottom: @s-content-padding;

@media @mobile {
Expand Down
2 changes: 1 addition & 1 deletion src/client/theme-default/slots/Content/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Content: FC<{ children: ReactNode }> = (props) => {
<div
className="dumi-default-content"
data-no-sidebar={!sidebar || undefined}
data-has-footer={!!themeConfig.footer || undefined}
data-no-footer={themeConfig.footer === false || undefined}
>
{props.children}
</div>
Expand Down

0 comments on commit 4ccf4c9

Please sign in to comment.