Skip to content

Commit

Permalink
Merge pull request #16 from Netcentric/small-fixes
Browse files Browse the repository at this point in the history
Add css fixes for text centering
TomaszDziezykNetcentric authored Aug 19, 2024
2 parents 80a2b4a + f887a5c commit 2423e93
Showing 3 changed files with 23 additions and 3 deletions.
2 changes: 1 addition & 1 deletion blocks/footer/footer.css
Original file line number Diff line number Diff line change
@@ -119,7 +119,7 @@ footer {

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

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

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

/* centering by set the text aling in the document */
.section-center .text {
text-align: center;
}
16 changes: 15 additions & 1 deletion styles/styles.css
Original file line number Diff line number Diff line change
@@ -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;
}

@@ -346,6 +351,11 @@ main .border-top {
color: var(--text-color);
}

.section-small {
max-width: 900px;
margin: auto;
}

.width-400 {
max-width: 400px;
margin: auto;
@@ -384,3 +394,7 @@ main .border-top {
}

/* article styles - end */
.section-center .button-container {
display: flex;
justify-content: center;
}

0 comments on commit 2423e93

Please sign in to comment.