Skip to content

Commit

Permalink
Added initial history column
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragos Cristian Bute committed Oct 9, 2023
1 parent 1191bb4 commit fb646fa
Showing 1 changed file with 64 additions and 5 deletions.
69 changes: 64 additions & 5 deletions blocks/columns/columns.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,19 @@
margin-top: 2rem;
}

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

.columns.history > div {
align-items: center;
}

.columns.history picture {
display: block;
margin: 0 auto 2rem;
}

.columns p.button-container {
display: flex;
align-items: flex-start;
Expand Down Expand Up @@ -89,10 +102,6 @@
display: block;
}

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

.columns > div > div h2,
.columns > div > div h3,
.columns > div > div h4 {
Expand All @@ -103,10 +112,15 @@
margin-top: 0;
}

.columns > div div.non-singleton-img {
.columns:not(.history) > div div.non-singleton-img {
margin: 0 1rem;
}

.columns.history h2 {
border-bottom: 1px solid var(--primary);
margin-bottom: 1rem;
}

.columns.crop-image > div {
align-items: stretch;
}
Expand Down Expand Up @@ -138,6 +152,10 @@
margin-left: 0;
}

.columns.history.invert-image-order-in-narrow-view > div {
flex-direction: column-reverse;
}

.columns.plain-links > div > div p:last-of-type {
margin-bottom: 0;
}
Expand Down Expand Up @@ -166,6 +184,22 @@
gap: 0;
}

/* both autoblocking options for bottom caption */
.columns.history div.image-collage.autoblocked picture ~ em,
.columns.history div.image-collage.autoblocked picture ~ p {
color: var(--transparent-grey-color-2);
font-size: var(--body-font-size-s);
margin-top: 1rem;
margin-bottom: 1rem;
text-align: center;
}

/* if the caption is on the same line then we can't text-align the em directly */
.columns.history div.image-collage.autoblocked div.non-singleton-img:last-of-type {
display: flex;
flex-direction: column;
}

@media (min-width: 62rem) {
.columns.top-down.collapse > div {
gap: 1.5rem;
Expand Down Expand Up @@ -274,6 +308,20 @@
gap: 3rem;
}

.columns.history picture {
margin: 0 auto 2rem;
}

.columns.history picture:last-child {
margin: 0 auto;
}

/* picture in column with text */
.columns.history p ~ div > div.image-collage.autoblocked picture {
display: table;
width: auto;
}

.columns > div .columns-img-col {
order: unset;
}
Expand All @@ -284,6 +332,13 @@
flex-basis: 50%;
}

.columns.history > div {
flex-direction: row;
justify-content: space-between;
align-items: flex-start;
gap: 2rem;
}

.columns.invert-image-order-in-narrow-view > div .columns-img-col {
order: unset;
}
Expand Down Expand Up @@ -362,4 +417,8 @@
color: var(--light-black);
margin-right: 1rem;
}

main .columns.history.invert-image-order-in-narrow-view > div {
flex-direction: row;
}
}

0 comments on commit fb646fa

Please sign in to comment.