Skip to content

Commit

Permalink
fix: more fixes for subsite and info block
Browse files Browse the repository at this point in the history
  • Loading branch information
Wagner3UB committed Feb 1, 2024
1 parent 293ad29 commit 3680a0b
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 7 deletions.
8 changes: 2 additions & 6 deletions src/components/ItaliaTheme/Blocks/Info/Edit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,8 @@ import { connect } from 'react-redux';
import { compose } from 'redux';
import { injectIntl } from 'react-intl';
import cx from 'classnames';
import {
Container,
Row,
Col,
Icon,
} from 'design-react-kit/dist/design-react-kit';
import { Container, Row, Col } from 'design-react-kit/dist/design-react-kit';
import { Icon } from '@italia/components/ItaliaTheme';

import { createContent } from '@plone/volto/actions';
import { SidebarPortal } from '@plone/volto/components';
Expand Down
11 changes: 10 additions & 1 deletion theme/ItaliaTheme/Blocks/_info.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,19 @@ $tertiary-hover: darken($gray-border, 10%);
&.bg-color-true {
.draftjs-buttons a {
background-color: #fff;
border: 1px solid transparent;
color: $text-color;
span {
color: $text-color;
}

&:hover {
background-color: #000;
background-color: $primary;
border-color: #fff;
color: #fff;
span {
color: #fff;
}
}
}
}
Expand Down
28 changes: 28 additions & 0 deletions theme/ItaliaTheme/Subsites/ItaliaTheme/Blocks/_info.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
@use '../../all_variables' as *;

@mixin info($subsite-primary) {
.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;
}
}
}
}
.bg-alert-primary.bg-color-true {
p,
span,
svg.icon.left-image {
color: $body-color;
fill: $body-color;
}
}
}
}
}
3 changes: 3 additions & 0 deletions theme/ItaliaTheme/Subsites/_mixin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
@use 'ItaliaTheme/Blocks/highlitedContent' as it-highlight;
@use 'ItaliaTheme/Blocks/argumentsInEvidence' as it-args-evidence;
@use 'ItaliaTheme/Blocks/searchSections' as it-search-sections;
@use 'ItaliaTheme/Blocks/info' as it-info;
@use 'ItaliaTheme/Views/common' as it-views;
@use 'ItaliaTheme/common' as it-common;
@use 'ItaliaTheme/cms-ui' as it-cms-ui;
Expand Down Expand Up @@ -99,6 +100,8 @@
$subsite-secondary,
$subsite-secondary-text
);
@include it-info.info($subsite-primary);

@include it-views.common(
$subsite-primary,
$subsite-secondary,
Expand Down

0 comments on commit 3680a0b

Please sign in to comment.