Skip to content

Commit

Permalink
Merge pull request #3 from eea/develop
Browse files Browse the repository at this point in the history
fix(call-to-action): CSS when volto-block-style is enabled
  • Loading branch information
avoinea authored Jun 2, 2022
2 parents ad039a5 + 7fc2292 commit a45f304
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,15 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### [0.2.2](https://github.com/eea/volto-call-to-action-block/compare/0.2.1...0.2.2)

- fix(call-to-action): CSS when volto-block-style is enabled [`3912c11`](https://github.com/eea/volto-call-to-action-block/commit/3912c11de4e11f6e671a2ec510122da9e5613d5b)

#### [0.2.1](https://github.com/eea/volto-call-to-action-block/compare/0.2.0...0.2.1)

- fix(call-to-action): Icon right for link theme [`b69ca24`](https://github.com/eea/volto-call-to-action-block/commit/b69ca24ba8b0ce75b8da4df5cc5e2adf5ec7d0f6)
> 2 June 2022
- fix(call-to-action): Icon right for link theme [`#2`](https://github.com/eea/volto-call-to-action-block/pull/2)

#### [0.2.0](https://github.com/eea/volto-call-to-action-block/compare/0.1.0...0.2.0)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eeacms/volto-call-to-action-block",
"version": "0.2.1",
"version": "0.2.2",
"description": "@eeacms/volto-call-to-action-block: Volto add-on",
"main": "src/index.js",
"author": "European Environment Agency: IDM2 A-Team",
Expand Down
18 changes: 18 additions & 0 deletions src/theme/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,21 @@
}
}
}

/* Fix CSS when volto-block-style is present */
.styled {
&.styled-callToActionBlock {
&.right,
&.left {
float: none;
}

&.full-width {
right: 0;
left: 0;
width: 100% !important;
margin-right: 0 !important;
margin-left: 0 !important;
}
}
}

0 comments on commit a45f304

Please sign in to comment.