forked from italia/design-comuni-plone-theme
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: subsite light colors contrast (#513)
* fix: light colors contrast * fix: more fixes for subsite and info block * fix: search icon mobile * fix: info and search * fix: search page * fix: search page and pagination * fix: toggles and external links * chore: release.md * fix: block form * fix: small changes subsites * chore: release.md
- Loading branch information
Showing
17 changed files
with
288 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
@use '../../all_variables' as *; | ||
|
||
@mixin info($subsite-primary, $subsite-secondary, $subsite-light-theme) { | ||
.public-ui { | ||
.infoblock { | ||
.bg-alert-primary, | ||
.bg-alert-secondary, | ||
.bg-alert-tertiary { | ||
&.bg-color-true { | ||
.draftjs-buttons { | ||
a { | ||
&:hover { | ||
border-color: $body-color; | ||
background-color: $subsite-primary; | ||
@if $subsite-light-theme { | ||
color: $body-color; | ||
span { | ||
color: $body-color; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
.bg-alert-primary { | ||
svg.icon { | ||
color: $subsite-primary; | ||
fill: $subsite-primary; | ||
} | ||
&.bg-color-true { | ||
p, | ||
span, | ||
svg.icon { | ||
color: $body-color; | ||
fill: $body-color; | ||
} | ||
} | ||
.draftjs-buttons { | ||
a { | ||
background-color: $subsite-secondary; | ||
color: #fff; | ||
span { | ||
color: #fff; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
@use '../all_variables' as *; | ||
|
||
@mixin cms-ui($subsite-primary, $subsite-secondary, $subsite-primary-text) { | ||
&.cms-ui { | ||
.color-list-widget { | ||
.button { | ||
&.primary, | ||
&.primary.active { | ||
background-color: $subsite-primary; | ||
} | ||
&.secondary, | ||
&.secondary.active { | ||
background-color: $subsite-secondary; | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
@use '../all_variables' as *; | ||
|
||
@mixin main( | ||
$subsite-primary, | ||
$subsite-secondary, | ||
$subsite-primary-text, | ||
$subsite-link-color | ||
) { | ||
&.public-ui, | ||
&.cms-ui { | ||
.draftjs-buttons { | ||
a { | ||
background-color: $subsite-primary; | ||
border-radius: $subsite-primary; | ||
color: $subsite-primary-text; | ||
|
||
&:hover, | ||
&:active { | ||
background-color: darken($subsite-primary, 8); | ||
color: $subsite-primary-text; | ||
} | ||
} | ||
} | ||
.pagination { | ||
.page-item { | ||
.page-link { | ||
&[aria-current] { | ||
border: 1px solid $subsite-primary; | ||
color: $subsite-primary; | ||
} | ||
&:hover { | ||
color: $subsite-link-color; | ||
svg { | ||
fill: $subsite-link-color !important; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
.bg-primary { | ||
background-color: $subsite-primary !important; | ||
} | ||
.bg-alert-primary { | ||
border-color: $subsite-primary; | ||
&.bg-color-true { | ||
background-color: $subsite-primary !important; | ||
} | ||
} | ||
.bg-secondary { | ||
background-color: $subsite-secondary !important; | ||
} | ||
.bg-alert-secondary { | ||
border-color: $subsite-secondary; | ||
&.bg-color-true { | ||
background-color: $subsite-secondary !important; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
@mixin search($subsite-link-color) { | ||
.search-results-wrapper { | ||
.ordering-widget { | ||
.react-select__option--is-focused { | ||
border-color: $subsite-link-color !important; | ||
box-shadow: 0 0 0 2px $subsite-link-color !important; | ||
} | ||
} | ||
} | ||
.toggles label input[type='checkbox']:checked + .lever:after { | ||
background-color: $subsite-link-color; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
theme/ItaliaTheme/Subsites/bootstrap-italia/custom/_forms.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
@use '../../all_variables' as *; | ||
|
||
@mixin forms($subsite-link-color) { | ||
.public-ui .form-check { | ||
[type='checkbox'], | ||
[type='radio'] { | ||
&:checked + label { | ||
&::after { | ||
border-color: $subsite-link-color; | ||
background-color: $subsite-link-color; | ||
} | ||
&::before { | ||
border-color: $subsite-link-color; | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.