Skip to content

Commit

Permalink
feat: update columns block
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Christiani committed Mar 27, 2024
1 parent c890eb4 commit 8f7fbaa
Showing 1 changed file with 38 additions and 15 deletions.
53 changes: 38 additions & 15 deletions blocks/columns/columns.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,50 @@
width: 100%;
}

.columns > div > div {
order: 1;
}

.columns > div > .columns-img-col {
order: 0;
}

.columns > div > .columns-img-col img {
display: block;
}

@media (width >= 900px) {
.columns > div {
align-items: center;
display: flex;
align-items: start;
flex-direction: unset;
gap: 32px;
}

.columns > div > div {
flex: 1;
order: unset;
margin-left: 32px;
}

.columns > div > div:first-of-type {
margin-left: unset;
}
}

/* facts columns */

.columns.facts > div > div {
background: url("/icons/facts.svg") center -40px no-repeat;
text-align: center;
}

.columns.facts > div > div p {
color: var(--link-color);
font-weight: 600;
}

.columns.facts > div > div p:first-child {
font-size: 120px;
color: var(--link-color);
margin: 30px 0 70px;
}

.bluecolumn {
background-color: var(--highlight-background-color);
color: var(--background-color);
}

.bluecolumn h3 {
color: white;
}

.bluecolumn h2 {
color: white;
}

0 comments on commit 8f7fbaa

Please sign in to comment.