Skip to content

Commit

Permalink
fix: info and search
Browse files Browse the repository at this point in the history
  • Loading branch information
Wagner3UB committed Feb 1, 2024
1 parent c2c3739 commit 6ea802a
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 11 deletions.
17 changes: 13 additions & 4 deletions theme/ItaliaTheme/Subsites/ItaliaTheme/Blocks/_info.scss
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@
@use '../../all_variables' as *;

@mixin info($subsite-primary) {
@mixin info($subsite-primary, $subsite-light-theme) {
.public-ui,
&.public-ui {
.infoblock {
.bg-alert-primary,
.bg-alert-secondary,
.bg-alert-tertiary {
&.bg-color-true {
.draftjs-buttons a {
&:hover {
background-color: $subsite-primary;
.draftjs-buttons {
a {
&:hover {
border-color: $body-color;
background-color: $subsite-primary;
@if $subsite-light-theme {
color: $body-color;
span {
color: $body-color;
}
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
@use '../../all_variables' as *;

@mixin block($subsite-primary, $subsite-secondary, $subsite-secondary-text) {
@mixin block(
$subsite-primary,
$subsite-secondary,
$subsite-secondary-text,
$subsite-light-theme
) {
.container .block {
.searchSections {
@if $subsite-secondary != $subsite-primary {
Expand All @@ -27,6 +32,11 @@
}
}
}
@if $subsite-light-theme {
button.rounded-right svg {
fill: $body-color !important;
}
}
}
}
}
Expand Down
12 changes: 6 additions & 6 deletions theme/ItaliaTheme/Subsites/_mixin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,10 @@
@include it-search-sections.block(
$subsite-primary,
$subsite-secondary,
$subsite-secondary-text
$subsite-secondary-text,
$subsite-light-theme
);
@include it-info.info($subsite-primary);
@include it-info.info($subsite-primary, $subsite-light-theme);

@include it-views.common(
$subsite-primary,
Expand All @@ -118,10 +119,9 @@
color: color-hover($subsite-link-color);
}
}

.icon-primary {
fill: $subsite-primary !important;
}
}
.icon-primary {
fill: $subsite-primary !important;
}
}
}

0 comments on commit 6ea802a

Please sign in to comment.