diff --git a/assets/sass/_theme/_configuration.sass b/assets/sass/_theme/_configuration.sass index 1336740cc03e30fe29512ab44f13db92d9bcb832..a8c279d4c92fe7ed992657e7110aa587892ba055 100644 --- a/assets/sass/_theme/_configuration.sass +++ b/assets/sass/_theme/_configuration.sass @@ -270,6 +270,8 @@ $block-call-to-action-background: $color-accent !default $block-call-to-action-color: $color-background !default $block-call-to-action-button-background: $color-background !default $block-call-to-action-button-color: $color-text !default +$block-call-to-action-button-hover-background: $color-text-alt !default +$block-call-to-action-button-hover-color: white !default // Block chapter $block-chapter-layout-accent-background: $color-accent !default diff --git a/assets/sass/_theme/blocks/call_to_action.sass b/assets/sass/_theme/blocks/call_to_action.sass index f06a53ec3037942f2cbbbad13f57db6f597c0ae0..32f2f4d99aa155cec805931c7692f4cdc33e6d0e 100644 --- a/assets/sass/_theme/blocks/call_to_action.sass +++ b/assets/sass/_theme/blocks/call_to_action.sass @@ -30,6 +30,12 @@ @include btn background: $block-call-to-action-button-background color: $block-call-to-action-button-color + transition: background .3s ease, color .3s ease + &:hover, + &:focus-visible, + &:focus + background: $block-call-to-action-button-hover-background + color: $block-call-to-action-button-hover-color &:last-child margin-bottom: 0 * + .actions