Skip to content

Commit

Permalink
TT1 Blocks: Migrate columns styles
Browse files Browse the repository at this point in the history
Adds the column styles needed for TT1 as part of #82

Closes #115
  • Loading branch information
Jack Lenox committed Dec 11, 2020
1 parent c622a2f commit 77c71af
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion twentytwentyone-blocks/assets/css/blocks.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,26 @@
# Columns
--------------------------------------------------------------*/

.wp-block-columns .wp-block-column > * {
margin-top: calc(0.66 * var(--wp--custom--spacing--vertical));
margin-bottom: calc(0.66 * var(--wp--custom--spacing--vertical));
}

@media screen and (min-width: 482px) {
.wp-block-columns .wp-block-column > * {
margin-top: var(--wp--custom--spacing--vertical);
margin-bottom: var(--wp--custom--spacing--vertical);
}
}

.wp-block-columns .wp-block-column *:first-child {
margin-top: 0;
}

.wp-block-columns .wp-block-column *:last-child {
margin-bottom: 0;
}

@media screen and (min-width: 652px) {
.is-style-twentytwentyone-columns-overlap .wp-block-column {
flex-grow: 1;
Expand Down Expand Up @@ -243,4 +263,4 @@ h1.wp-block-site-title a:not(:hover):not(:focus):not(:active) {

.wp-block-social-links.is-style-twentytwentyone-social-icons-color .wp-social-link {
background: none;
}
}

0 comments on commit 77c71af

Please sign in to comment.