Skip to content

Commit

Permalink
Add css fixes for text centering
Browse files Browse the repository at this point in the history
  • Loading branch information
TomaszDziezykNetcentric committed Aug 19, 2024
1 parent 80a2b4a commit a0bf641
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
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

0 comments on commit a0bf641

Please sign in to comment.