diff --git a/functions.php b/functions.php index e8b15af..b937f89 100644 --- a/functions.php +++ b/functions.php @@ -59,9 +59,9 @@ function design_system_include_block_style_variations( $dir_path ) { * * @param array $settings Default editor settings. */ -function example_theme_restrict_locking_ui( $settings ) { +function dswp_restrict_locking_unlocking_blocks( $settings ) { $settings['canLockBlocks'] = current_user_can( 'activate_plugins' ); return $settings; } -add_filter( 'block_editor_settings_all', 'example_theme_restrict_locking_ui', 10, 2 ); +add_filter( 'block_editor_settings_all', 'dswp_restrict_locking_unlocking_blocks', 10, 2 ); diff --git a/patterns/dswp-horizonal-card.php b/patterns/dswp-horizonal-card.php index 5392b2d..eac4ef1 100644 --- a/patterns/dswp-horizonal-card.php +++ b/patterns/dswp-horizonal-card.php @@ -25,8 +25,8 @@
Neque porro quisquam
- -

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi bibendum rhoncus aliquam. Morbi at libero pellentesque, fermentum erat at, tincidunt nunc. Proin pulvinar turpis vel turpis maximus fermentum. Phasellus ut sagittis nisi, vel accumsan velit.

+ +

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi bibendum rhoncus aliquam. Morbi at libero pellentesque, fermentum erat at, tincidunt nunc. Proin pulvinar turpis vel turpis maximus fermentum. Phasellus ut sagittis nisi, vel accumsan velit.

diff --git a/src/styles/patterns/dswp-large-image-text.scss b/src/styles/patterns/dswp-large-image-text.scss index 19fbb8b..a7a12d5 100644 --- a/src/styles/patterns/dswp-large-image-text.scss +++ b/src/styles/patterns/dswp-large-image-text.scss @@ -4,17 +4,11 @@ img { width: 100% !important; - } - } - -} -@media (min-width: $break-mobile) and (max-width: $break-medium) { - - .dswp-large-image-text { - - img { - padding: 4rem !important; + // Apply padding only for the mobile range + @media (min-width: $break-mobile) { + padding: 4rem !important; + } } } } @@ -39,7 +33,7 @@ height: 222px; border-radius: 8px 0 0 8px; padding: 1rem; - background: #faf9f8; + background: var(--dswp-theme-gray-10); } :where(figure) { diff --git a/src/styles/variables.scss b/src/styles/variables.scss index 5ccd860..13f54dc 100644 --- a/src/styles/variables.scss +++ b/src/styles/variables.scss @@ -32,6 +32,7 @@ --dswp-icons-color-success: var(--bcds-icons-color-success); --dswp-icons-color-warning: var(--bcds-icons-color-warning); --dswp-surface-color-border-default: var(--bcds-surface-color-border-default); + --dswp-theme-gray-10: var(--bcds-theme-gray-10); // Layout --dswp-layout-content-size: 1200px; --dswp-layout-padding-none: var(--bcds-layout-padding-none);