From 416b62a52a82f61a830b7bf5a5121a3774ddc918 Mon Sep 17 00:00:00 2001 From: Kelly Dwan Date: Sun, 27 Oct 2019 13:00:35 -0400 Subject: [PATCH] Move pledge structure out to just the list items --- .../css/components/_pledge-list.scss | 23 +++++++++++++++++++ themes/wporg-5ftf/css/objects/_pledge.scss | 21 ----------------- 2 files changed, 23 insertions(+), 21 deletions(-) diff --git a/themes/wporg-5ftf/css/components/_pledge-list.scss b/themes/wporg-5ftf/css/components/_pledge-list.scss index cbc32b6..82e440d 100644 --- a/themes/wporg-5ftf/css/components/_pledge-list.scss +++ b/themes/wporg-5ftf/css/components/_pledge-list.scss @@ -55,4 +55,27 @@ body.archive.post-type-archive-5ftf_pledge { font-weight: 700; } } + + /* Structure */ + article { + display: grid; + grid-template-columns: 330px auto; + margin-bottom: ms(12); + + .entry-image { + grid-column: 1; + grid-row: 1 / span 2; + margin-right: ms(8); + } + + .entry-header { + grid-column: 2; + grid-row: 1; + } + + .entry-content { + grid-column: 2; + grid-row: 2; + } + } } diff --git a/themes/wporg-5ftf/css/objects/_pledge.scss b/themes/wporg-5ftf/css/objects/_pledge.scss index d45930a..e6d8abe 100644 --- a/themes/wporg-5ftf/css/objects/_pledge.scss +++ b/themes/wporg-5ftf/css/objects/_pledge.scss @@ -1,25 +1,4 @@ article.type-5ftf_pledge { - /* Structure */ - display: grid; - grid-template-columns: 330px auto; - margin-bottom: ms(12); - - .entry-image { - grid-column: 1; - grid-row: 1 / span 2; - margin-right: ms(8); - } - - .entry-header { - grid-column: 2; - grid-row: 1; - } - - .entry-content { - grid-column: 2; - grid-row: 2; - } - /* Styles */ .entry-image__placeholder {