From 1edc6f1a51f498d48cb7e5e5880454d2071595fd Mon Sep 17 00:00:00 2001 From: Wagner Trezub <60133113+Wagner3UB@users.noreply.github.com> Date: Wed, 27 Mar 2024 15:31:27 +0100 Subject: [PATCH] fix: general background color for icon block (#609) --- .../ItaliaTheme/Blocks/_iconBlocks.scss | 17 +++++++++++++++++ theme/ItaliaTheme/Subsites/_mixin.scss | 2 ++ 2 files changed, 19 insertions(+) create mode 100644 theme/ItaliaTheme/Subsites/ItaliaTheme/Blocks/_iconBlocks.scss diff --git a/theme/ItaliaTheme/Subsites/ItaliaTheme/Blocks/_iconBlocks.scss b/theme/ItaliaTheme/Subsites/ItaliaTheme/Blocks/_iconBlocks.scss new file mode 100644 index 000000000..89315f421 --- /dev/null +++ b/theme/ItaliaTheme/Subsites/ItaliaTheme/Blocks/_iconBlocks.scss @@ -0,0 +1,17 @@ +@use '../../all_variables' as *; + +@mixin iconBlocks($subsite-primary, $subsite-secondary) { + .block.iconBlocks { + .background-image { + &.primary:after { + background-color: rgba($subsite-primary, 0.85); + } + &.secondary:after { + background-color: rgba($subsite-secondary, 0.85); + } + &.transparent:after { + background-color: none; + } + } + } +} diff --git a/theme/ItaliaTheme/Subsites/_mixin.scss b/theme/ItaliaTheme/Subsites/_mixin.scss index 5cebb214b..cd55838fb 100644 --- a/theme/ItaliaTheme/Subsites/_mixin.scss +++ b/theme/ItaliaTheme/Subsites/_mixin.scss @@ -22,6 +22,7 @@ @use 'ItaliaTheme/Blocks/tableOfContents' as it-table-contents; @use 'ItaliaTheme/Blocks/searchSections' as it-search-sections; @use 'ItaliaTheme/Blocks/info' as it-info; +@use 'ItaliaTheme/Blocks/iconBlocks' as it-iconBlocks; @use 'ItaliaTheme/Views/common' as it-views; @use 'ItaliaTheme/common' as it-common; @use 'ItaliaTheme/cms-ui' as it-cms-ui; @@ -121,6 +122,7 @@ $subsite-secondary, $subsite-light-theme ); + @include it-iconBlocks.iconBlocks($subsite-primary, $subsite-secondary); @include it-views.common( $subsite-primary,