diff --git a/newspack-theme/classes/class-newspack-svg-icons.php b/newspack-theme/classes/class-newspack-svg-icons.php index 7144b0112..8ccd8d2a8 100755 --- a/newspack-theme/classes/class-newspack-svg-icons.php +++ b/newspack-theme/classes/class-newspack-svg-icons.php @@ -277,6 +277,9 @@ public static function get_social_link_svg( $uri, $size ) { 'telegram.org', 't.me', ), + 'threads' => array( + 'threads.net', + ), 'twitch' => array( 'twitch.tv', ), @@ -523,7 +526,18 @@ public static function get_social_link_svg( $uri, $size ) { 'telegram' => ' -<', +', + 'threads' => ' + + +', 'tiktok' => ' diff --git a/newspack-theme/sass/blocks/_blocks.scss b/newspack-theme/sass/blocks/_blocks.scss index de5108f36..38b89b371 100755 --- a/newspack-theme/sass/blocks/_blocks.scss +++ b/newspack-theme/sass/blocks/_blocks.scss @@ -998,6 +998,10 @@ hr { font-family: var( --newspack-theme-font-heading ); font-size: var( --newspack-theme-font-size-sm ); + &.has-background { + padding: structure.$size__spacing-unit; + } + .wp-block-file__button { display: table; @include utilities.button-transition; @@ -1070,6 +1074,13 @@ hr { } } } + + &__button-behavior-expand:not(.wp-block-search__searchfield-hidden) { + .wp-block-search__button { + border-top-left-radius: 0; + border-bottom-left-radius: 0; + } + } } //! Code @@ -1162,6 +1173,58 @@ hr { } } +//! Details block +.wp-block-details { + border: solid var( --newspack-theme-color-border ); + border-width: 1px 0; + padding: 0.5rem 1.5rem; + + > :not(summary) { + margin-bottom: 16px; + margin-top: 16px; + } + + summary { + font-family: var( --newspack-theme-font-heading ); + margin-left: -1rem; + } + + + .wp-block-details { + border-top: 0; + margin-top: -32px; + } +} + +//! Footnote styles +.wp-block-footnotes li:focus { + outline: thin dotted; +} + +.h-stk { + sup.fn a, + .wp-block-footnotes li { + scroll-margin-top: 115px; + + @include utilities.media( tablet ) { + scroll-margin-top: 180px; + } + } + + &.h-dh sup.fn a, + &.h-dh .wp-block-footnotes li { + @include utilities.media( tablet ) { + scroll-margin-top: 210px; + } + } + + &.h-sub:not(.home) sup.fn a, + &.h-sub:not(.home) .wp-block-footnotes li { + @include utilities.media( tablet ) { + scroll-margin-top: 100px; + } + } +} + //! Navigtation block .wp-block-navigation a { text-decoration: none; diff --git a/newspack-theme/sass/plugins/woocommerce.scss b/newspack-theme/sass/plugins/woocommerce.scss index 122080989..993a440f8 100644 --- a/newspack-theme/sass/plugins/woocommerce.scss +++ b/newspack-theme/sass/plugins/woocommerce.scss @@ -1378,7 +1378,8 @@ table.woocommerce-table--order-details.shop_table, .woocommerce-product-attributes, .woocommerce-grouped-product-list.group_table, .woocommerce-cart-form .woocommerce-cart-form__contents, -.cart-collaterals .shop_table_responsive { +.cart-collaterals .shop_table_responsive, +.woocommerce-table--order-downloads { border-top: 1px solid var( --newspack-theme-color-border ); thead { @@ -1556,10 +1557,6 @@ table.woocommerce-table--order-details.shop_table, tr { margin: 0 0 1.5rem; - &:first-child { - border-top: 1px solid; - } - &:last-child { margin-bottom: 0; } diff --git a/newspack-theme/sass/style-editor-base.scss b/newspack-theme/sass/style-editor-base.scss index f926732e4..24d382e3d 100644 --- a/newspack-theme/sass/style-editor-base.scss +++ b/newspack-theme/sass/style-editor-base.scss @@ -626,6 +626,10 @@ div[data-align='full'] { font-family: var( --newspack-theme-font-heading ); font-size: var( --newspack-theme-font-size-sm ); + &.has-background { + padding: structure.$size__spacing-unit; + } + .wp-block-file__textlink { text-decoration: underline; color: var( --newspack-theme-color-link ); @@ -721,6 +725,13 @@ div[data-align='full'] { } } } + + &__button-behavior-expand:not(.wp-block-search__searchfield-hidden) { + .wp-block-search__button { + border-top-left-radius: 0; + border-bottom-left-radius: 0; + } + } } /** === Code === */ @@ -998,6 +1009,27 @@ ul.wp-block-archives, } } +/** === Details block === */ +.wp-block-details { + border: solid var( --newspack-theme-color-border ); + border-width: 1px 0; + padding: 0.5rem 1.5rem; + + > :not(summary) { + margin-bottom: 16px; + margin-top: 16px; + } + + summary { + font-family: var( --newspack-theme-font-heading ); + } + + + .wp-block-details { + border-top: 0; + margin-top: -28px; + } +} + /** === Organic Profile Block === */ .wp-block-organic-profile-block { box-shadow: none; diff --git a/newspack-theme/woocommerce/checkout/thankyou.php b/newspack-theme/woocommerce/checkout/thankyou.php index 4dbf87002..32009cbe1 100644 --- a/newspack-theme/woocommerce/checkout/thankyou.php +++ b/newspack-theme/woocommerce/checkout/thankyou.php @@ -93,6 +93,23 @@ } ?> + + get_downloadable_items(); + if ( $downloads ) { + ?> +

+ + $downloads, + ) + ); + } + ?> +