Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make top margin of sidebar container configurable via theme.json #484

Merged
merged 2 commits into from
Oct 26, 2023

Conversation

adamwoodnz
Copy link
Contributor

@adamwoodnz adamwoodnz commented Oct 19, 2023

Closes #483

Makes the top margin of the sidebar container configurable, so that it can be changed for the redesigned Developer site.

Keeps the existing value as the default so that the Documentation site isn't affected.

Testing

Easiest to use the Developer PR, see testing instructions there.

@adamwoodnz adamwoodnz self-assigned this Oct 19, 2023
@adamwoodnz adamwoodnz added Redesign Related to the wordpress.org redesign project [Block] Sidebar Container labels Oct 19, 2023
@adamwoodnz adamwoodnz added this to the MVP milestone Oct 19, 2023

/* Set up the custom properties. These can be overridden by settings in theme.json. */
:where(body) {
--wp--custom--wporg-sidebar-container--spacing--margin--top: var(--wp--preset--spacing--edge-space);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Default value set to the existing value so that the Documentation site doesn't require any changes

@adamwoodnz adamwoodnz merged commit dd136a7 into trunk Oct 26, 2023
2 checks passed
@adamwoodnz adamwoodnz deleted the enhance/483-sidebar-container-configurable-top branch October 26, 2023 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Sidebar Container Redesign Related to the wordpress.org redesign project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sidebar Container: Make top margin configurable
1 participant