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

Add css fixes for text centering #16

Merged
merged 2 commits into from
Aug 19, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion blocks/footer/footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ footer {

@media (width >= 768px) {
.footer .section {
padding: 10px 30px 40px;
padding: 40px 30px;
}

.footer .columns > div {
Expand Down
8 changes: 7 additions & 1 deletion blocks/text/text.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
max-width: 750px;
}

/* centering by variant */
.text.center > div {
margin: auto;
}
}

/* centering by set the text aling in the document */
.text [data-align="center"] {
text-align: center;
}
7 changes: 6 additions & 1 deletion styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,12 @@ main .section {
padding: var(--section-y-padding) var(--section-x-padding);
}

main .section:last-child {
main .section:first-child {
padding-top: 0;
}

main .section:last-child,
main .section.padding-bottom-0 {
padding-bottom: 0;
}

Expand Down