From f25e59ae90c949dcf7e43003c26f335e20691a1e Mon Sep 17 00:00:00 2001 From: Wagner Trezub Date: Tue, 26 Mar 2024 11:17:54 +0100 Subject: [PATCH] fix: general background color for icon block --- .../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,