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

Stat with illustration padding issue #363

Merged
14 changes: 11 additions & 3 deletions blocks/stat-with-illustration/stat-with-illustration.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
/* Stat with illustration */
main .section > .stat-with-illustration-wrapper:last-child {
padding-bottom: 0;
/* padding-bottom: 0; */
}

main .section > .stat-with-illustration-wrapper:has(.no-padding):first-child {
padding-top: 0;
}

.stat-with-illustration > .stat-with-illustration__inner:first-child .stat-with-illustration__col-1 {
position: relative;
width: 66.6666%;
width: 270px;
}

.stat-with-illustration > .stat-with-illustration__inner:first-child .stat-with-illustration__col-1::before {
Expand Down Expand Up @@ -57,7 +61,7 @@ main .section > .stat-with-illustration-wrapper:last-child {
}

.stat-with-illustration > .stat-with-illustration__inner:first-child .stat-with-illustration__col-1 {
width: 25%;
width: 275px;
}

.stat-with-illustration > .stat-with-illustration__inner .stat-with-illustration__col-2 {
Expand All @@ -69,6 +73,10 @@ main .section > .stat-with-illustration-wrapper:last-child {

/* Desktop */
@media only screen and (min-width: 1200px) {
.stat-with-illustration > .stat-with-illustration__inner:first-child .stat-with-illustration__col-1 {
width: 360px;
}

.stat-with-illustration .stat-with-illustration__inner .stat-with-illustration__col-1 h2 {
font-size: var(--font-size-128);
}
Expand Down