From 7e03fc083e31bb663e9fa3cd94dc2f5cdf90887b Mon Sep 17 00:00:00 2001 From: Thomas Guillot Date: Tue, 11 Jun 2024 14:36:26 +0100 Subject: [PATCH] feat: add support for publisher media kit --- .../plugins/newspack-publisher-media-kit.scss | 24 +++++++++++++++++++ newspack-theme/sass/style-base.scss | 4 ++++ 2 files changed, 28 insertions(+) create mode 100644 newspack-theme/sass/plugins/newspack-publisher-media-kit.scss diff --git a/newspack-theme/sass/plugins/newspack-publisher-media-kit.scss b/newspack-theme/sass/plugins/newspack-publisher-media-kit.scss new file mode 100644 index 000000000..b44e9f326 --- /dev/null +++ b/newspack-theme/sass/plugins/newspack-publisher-media-kit.scss @@ -0,0 +1,24 @@ +.publisher-media-kit { + &__wrapper { + &.wp-block-group{ + > .wp-block-group__inner-container { + > * { + margin-bottom: var( --wp--preset--spacing--80 ); + margin-top: var( --wp--preset--spacing--80 ); + + &:first-child { + margin-top: 0; + } + + &:last-child { + margin-bottom: 0; + + .page-template-no-header-footer-php & { + margin-bottom: var( --wp--preset--spacing--80 ); + } + } + } + } + } + } +} diff --git a/newspack-theme/sass/style-base.scss b/newspack-theme/sass/style-base.scss index bca285822..3e6386134 100644 --- a/newspack-theme/sass/style-base.scss +++ b/newspack-theme/sass/style-base.scss @@ -64,3 +64,7 @@ /* Newspack Listings support */ @use 'plugins/newspack-listings'; + +/* Newspack Publisher Media Kit */ + +@use 'plugins/newspack-publisher-media-kit';