Skip to content

Commit

Permalink
Global Styles Sidebar: Tweak spacing (#40588)
Browse files Browse the repository at this point in the history
  • Loading branch information
mirka authored Apr 26, 2022
1 parent 2d62d1c commit 5600423
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions packages/edit-site/src/components/global-styles/screen-root.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
*/
import {
__experimentalItemGroup as ItemGroup,
__experimentalItem as Item,
__experimentalHStack as HStack,
__experimentalSpacer as Spacer,
__experimentalVStack as VStack,
FlexItem,
CardBody,
Expand Down Expand Up @@ -37,7 +37,7 @@ function ScreenRoot() {
return (
<Card size="small">
<CardBody>
<VStack spacing={ 2 }>
<VStack spacing={ 4 }>
<Card>
<CardMedia>
<StylesPreview />
Expand All @@ -55,22 +55,28 @@ function ScreenRoot() {
</HStack>
</NavigationButton>
) }
<ContextMenu />
</VStack>
</CardBody>

<CardBody>
<ContextMenu />
</CardBody>

<CardDivider />

<CardBody>
<Spacer
as="p"
paddingTop={ 2 }
/*
* 13px matches the text inset of the NavigationButton (12px padding, plus the width of the button's border).
* This is an ad hoc override for this particular instance only and should be reconsidered before making into a pattern.
*/
paddingX="13px"
marginBottom={ 4 }
>
{ __(
'Customize the appearance of specific blocks for the whole site.'
) }
</Spacer>
<ItemGroup>
<Item>
{ __(
'Customize the appearance of specific blocks for the whole site.'
) }
</Item>
<NavigationButton path="/blocks">
<HStack justify="space-between">
<FlexItem>{ __( 'Blocks' ) }</FlexItem>
Expand Down

0 comments on commit 5600423

Please sign in to comment.