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

Limit scope of margin rule #174

Merged
merged 1 commit into from
Dec 5, 2024
Merged

Conversation

LZylstra
Copy link
Contributor

@LZylstra LZylstra commented Dec 5, 2024

Before: * + * applied to all adjacent siblings globally, regardless of their parent container. This led to unintended spacing in components like buttons or bylines that might also have adjacent siblings.
image
image

After: .content main > * + * limits the rule to direct sibling elements inside the main tag of .content only, ensuring it doesn't apply globally or affect nested elements within buttons or other components.
image
image

@LZylstra LZylstra self-assigned this Dec 5, 2024
Copy link

netlify bot commented Dec 5, 2024

Deploy Preview for directus-website ready!

Name Link
🔨 Latest commit 69347a2
🔍 Latest deploy log https://app.netlify.com/sites/directus-website/deploys/6751f67489900c0008a951a0
😎 Deploy Preview https://deploy-preview-174--directus-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@bryantgillespie bryantgillespie merged commit 11e3c05 into main Dec 5, 2024
6 checks passed
@bryantgillespie bryantgillespie deleted the resource-pages-spacing-fix branch December 5, 2024 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants