From 713a26214fa2d49cbe19d0c8dc47a2936da16d48 Mon Sep 17 00:00:00 2001 From: Wagner Trezub Date: Wed, 6 Mar 2024 17:13:47 +0100 Subject: [PATCH] fix: smalls changes --- .../ItaliaTheme/Blocks/_searchSections.scss | 3 +++ .../ItaliaTheme/Blocks/_tableOfContents.scss | 18 ++++++++++++++++++ theme/ItaliaTheme/Subsites/_mixin.scss | 2 ++ 3 files changed, 23 insertions(+) create mode 100644 theme/ItaliaTheme/Subsites/ItaliaTheme/Blocks/_tableOfContents.scss diff --git a/theme/ItaliaTheme/Subsites/ItaliaTheme/Blocks/_searchSections.scss b/theme/ItaliaTheme/Subsites/ItaliaTheme/Blocks/_searchSections.scss index b65cb8ed0..bfd428830 100644 --- a/theme/ItaliaTheme/Subsites/ItaliaTheme/Blocks/_searchSections.scss +++ b/theme/ItaliaTheme/Subsites/ItaliaTheme/Blocks/_searchSections.scss @@ -32,6 +32,9 @@ } } } + .search-section-title { + color: #fff; + } @if $subsite-light-theme { button.rounded-right svg { fill: $body-color !important; diff --git a/theme/ItaliaTheme/Subsites/ItaliaTheme/Blocks/_tableOfContents.scss b/theme/ItaliaTheme/Subsites/ItaliaTheme/Blocks/_tableOfContents.scss new file mode 100644 index 000000000..4bb861c3d --- /dev/null +++ b/theme/ItaliaTheme/Subsites/ItaliaTheme/Blocks/_tableOfContents.scss @@ -0,0 +1,18 @@ +@use '../../all_variables' as *; + +@mixin block($subsite-secondary) { + .table-of-contents { + .ui.bulleted.list { + .item { + &.headline-2 { + &::before { + border-left: 0.5rem solid $subsite-secondary; + } + } + &:not(.headline-2)::before { + border-color: $subsite-secondary; + } + } + } + } +} diff --git a/theme/ItaliaTheme/Subsites/_mixin.scss b/theme/ItaliaTheme/Subsites/_mixin.scss index c0e9f187f..5cebb214b 100644 --- a/theme/ItaliaTheme/Subsites/_mixin.scss +++ b/theme/ItaliaTheme/Subsites/_mixin.scss @@ -19,6 +19,7 @@ @use 'ItaliaTheme/Blocks/ribbonCardTemplate' as it-ribbon-card; @use 'ItaliaTheme/Blocks/highlitedContent' as it-highlight; @use 'ItaliaTheme/Blocks/argumentsInEvidence' as it-args-evidence; +@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/Views/common' as it-views; @@ -108,6 +109,7 @@ @include it-ribbon-card.card($subsite-link-color); @include it-highlight.block($subsite-link-color); @include it-args-evidence.block($subsite-primary, $subsite-primary-text); + @include it-table-contents.block($subsite-secondary); @include it-search-sections.block( $subsite-primary, $subsite-secondary,