From c76f029d962aecf3f56c093f589b573647bca07f Mon Sep 17 00:00:00 2001 From: Allan Cole Date: Fri, 20 Sep 2019 18:16:42 -0400 Subject: [PATCH] Dalston: Cleanining up Project block style behavior --- .../block-extends/extend-columns-block.css | 31 ++++++++++++++++--- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/dalston/block-extends/extend-columns-block.css b/dalston/block-extends/extend-columns-block.css index 7b04ddcc7..452555af2 100755 --- a/dalston/block-extends/extend-columns-block.css +++ b/dalston/block-extends/extend-columns-block.css @@ -65,8 +65,29 @@ /* Project */ -.wp-block-columns.is-style-full-bleed .wp-block-column:first-of-type { - flex-shrink: 0; - flex-basis: auto !important; - width: calc( 0.5 * (100vw - calc( 782px - 96px) - 64px)) !important; -} \ No newline at end of file +.wp-block-columns.is-style-project.alignfull { + padding-left: 0; + padding-right: 0; +} + +@media (min-width: 600px) { + + .wp-block-columns.is-style-project .wp-block-column:nth-child(2n) { + margin-left: 0; + } +} + +@media (min-width: 782px) { + + .wp-block-columns.is-style-project .wp-block-column:not(:first-child) { + margin-left: 0; + } + .wp-block-columns.is-style-project .wp-block-column { + flex-basis: 100% !important; + } + .wp-block-columns.is-style-project .wp-block-column:first-of-type { + flex-shrink: 0; + flex-basis: auto !important; + width: calc( 0.5 * (100vw - calc( 782px - 96px) - 64px)) !important; + } +}