Skip to content

Commit

Permalink
Adjust sidebar margins
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwoodnz committed Jan 30, 2024
1 parent 3eb0186 commit f4c32a9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions source/wp-content/themes/wporg-developer-2023/src/style/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,20 @@ pre {
order: 1;
}

/* Left sidebar: Chapter List */
> .wp-block-wporg-sidebar-container {
margin-top: var(--wp--preset--spacing--20);
}

/* Right sidebar: ToC */
article .wp-block-wporg-sidebar-container {
margin-bottom: var(--wp--preset--spacing--50);
}

@media (min-width: 768px) {
flex-direction: row !important;
column-gap: var(--local--column-gap);

/* Left sidebar: Chapter List */
> .wp-block-wporg-sidebar-container {
width: var(--local--sidebar--width);
inset-inline-start: var(--wp--preset--spacing--edge-space);
Expand All @@ -109,7 +118,6 @@ pre {
margin-left: auto;
margin-right: auto;

/* Right sidebar: ToC */
.wp-block-wporg-sidebar-container {
inset-inline-end: var(--wp--preset--spacing--edge-space);
}
Expand Down
2 changes: 1 addition & 1 deletion source/wp-content/themes/wporg-developer-2023/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
"wporg-sidebar-container": {
"spacing": {
"margin": {
"top": "130px"
"top": "150px"
}
}
},
Expand Down

0 comments on commit f4c32a9

Please sign in to comment.