-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#41 Refactor column block to support multiple text columns
- Loading branch information
1 parent
d39b17e
commit b75d2df
Showing
2 changed files
with
64 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,72 +1,77 @@ | ||
.v2-columns { | ||
display: flex; | ||
.v2-columns__row { | ||
flex-direction: column; | ||
display: flex; | ||
gap: 0; | ||
width: 100%; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.v2-columns__image, | ||
.v2-columns-content { | ||
.v2-columns__column--with-image, | ||
.v2-columns__column--with-text { | ||
max-width: 343px; | ||
} | ||
|
||
.v2-columns__image img { | ||
.v2-columns__column--with-image img { | ||
display: block; | ||
} | ||
|
||
.v2-columns-content { | ||
.v2-columns__column--with-text { | ||
display: flex; | ||
flex-direction: column; | ||
padding: 40px 0; | ||
} | ||
|
||
.v2-columns-content .v2-columns-content__pretitle { | ||
.v2-columns__column--with-text .v2-columns__pretitle { | ||
font-family: var(--ff-accents-regular); | ||
font-size: var(--accent-2-font-size); | ||
line-height: var(--accent-2-line-height); | ||
margin: 0; | ||
} | ||
|
||
.v2-columns-content .v2-columns-content__heading { | ||
.v2-columns__column--with-text .v2-columns__heading { | ||
font-size: var(--headline-1-font-size); | ||
line-height: var(--headline-1-line-height); | ||
letter-spacing: var(--headline-1-letter-spacing); | ||
margin: 12px 0; | ||
} | ||
|
||
.v2-columns-content .v2-columns-content__body { | ||
.v2-columns__column--with-text .v2-columns__body { | ||
font-size: var(--body-1-font-size); | ||
margin: 0 0 32px; | ||
} | ||
|
||
.v2-columns-content a.button { | ||
.v2-columns__column--with-text a.button { | ||
width: fit-content; | ||
margin: 0; | ||
} | ||
|
||
.v2-columns-content a.button:not(a.button:first-of-type) { | ||
.v2-columns__column--with-text a.button:not(a.button:first-of-type) { | ||
margin: 5px 0 0; | ||
} | ||
|
||
@media (min-width: 744px) { | ||
.v2-columns { | ||
flex-direction: row; | ||
justify-content: center; | ||
width: 100%; | ||
column-gap: 56px; | ||
} | ||
|
||
.v2-columns-content, | ||
.v2-columns__image { | ||
|
||
.v2-columns__row { | ||
flex-direction: row; | ||
gap: 56px; | ||
} | ||
|
||
.v2-columns__column--with-text, | ||
.v2-columns__column--with-image { | ||
flex-direction: column; | ||
width: 50%; | ||
width: 100%; | ||
padding: 0; | ||
} | ||
|
||
.v2-columns-content .v2-columns-content__heading { | ||
.v2-columns__column--with-text .v2-columns__heading { | ||
margin: 24px 0 12px; | ||
} | ||
|
||
.v2-columns-content .v2-columns-content__body { | ||
.v2-columns__column--with-text .v2-columns__body { | ||
margin: 0 0 24px; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters