Skip to content
Snippets Groups Projects
Unverified Commit 79148c1f authored by Alexis BENOIT's avatar Alexis BENOIT Committed by GitHub
Browse files

Bloc appel à action (#721)

parent 7ba1cc1b
No related branches found
No related tags found
No related merge requests found
// BUTTONS STYLE
$button-selector: "a:first-child"
@if $block-call-to-action-all-actions-as-buttons
$button-selector: "a"
.block-call_to_action
.top
margin-bottom: 0
......@@ -24,24 +29,25 @@
display: flex
flex-direction: column
a
@include meta
@extend %underline-on-hover
color: $block-call-to-action-color
@if not $block-call-to-action-all-actions-as-buttons
@include meta
@extend %underline-on-hover
text-decoration-color: alphaColor($block-call-to-action-color, 0.3)
color: $block-call-to-action-color
margin-right: $spacing-3
margin-top: $spacing-3
display: inline-block
text-decoration-color: alphaColor($block-call-to-action-color, 0.3)
&:first-child
--btn-background: #{$block-call-to-action-button-background}
--btn-border: #{$block-call-to-action-button-border}
--btn-color: #{$block-call-to-action-button-color}
--btn-hover-background: #{$block-call-to-action-button-hover-background}
--btn-hover-border: #{$block-call-to-action-button-hover-border}
--btn-hover-color: #{$block-call-to-action-button-hover-color}
--btn-min-width: #{columns(2)}
@extend .button
&:last-child
margin-bottom: 0
#{$button-selector}
--btn-background: #{$block-call-to-action-button-background}
--btn-border: #{$block-call-to-action-button-border}
--btn-color: #{$block-call-to-action-button-color}
--btn-hover-background: #{$block-call-to-action-button-hover-background}
--btn-hover-border: #{$block-call-to-action-button-hover-border}
--btn-hover-color: #{$block-call-to-action-button-hover-color}
--btn-min-width: #{columns(2)}
@extend .button
figure
figcaption
@include meta
......@@ -73,7 +79,7 @@
color: $block-call-to-action-accent-color
text-decoration-color: alphaColor($block-call-to-action-accent-color, 0.3)
.actions
a:first-child
#{$button-selector}
--btn-background: #{$block-call-to-action-accent-button-background}
--btn-border: #{$block-call-to-action-accent-button-border}
--btn-color: #{$block-call-to-action-accent-button-color}
......
......@@ -27,6 +27,7 @@ $block-call-to-action-button-color: var(--color-background) !default
$block-call-to-action-button-hover-background: var(--color-text-alt) !default
$block-call-to-action-button-hover-border: pxToRem(1) solid $block-call-to-action-button-hover-background !default
$block-call-to-action-button-hover-color: var(--color-background) !default
$block-call-to-action-all-actions-as-buttons: false !default
$block-call-to-action-accent-background: var(--color-accent) !default
$block-call-to-action-accent-color: var(--color-background) !default
......
......@@ -30,10 +30,11 @@
&--list
@include media-breakpoint-up(desktop)
.location
border-bottom: 1px solid var(--color-border)
flex-direction: row-reverse
gap: var(--grid-gutter)
padding-bottom: $spacing-3
&:not(:last-child)
border-bottom: 1px solid var(--color-border)
padding-bottom: $spacing-3
+ .location
margin-top: $spacing-3
&-content
......
......@@ -30,16 +30,16 @@
</span>
<br>
{{ end }}
{{ if .city }}
<span itemprop="addressLocality">
{{ partial "PrepareHTML" .city }}
</span>
{{ end }}
{{ if .zipcode }}
<span itemprop="postalCode">
{{ partial "PrepareHTML" .zipcode }}
</span>
{{ end }}
{{ if .city }}
<span itemprop="addressLocality">
{{ partial "PrepareHTML" .city }}
</span>
{{ end }}
{{ if .country }}
<span itemprop="addressCountry">
{{ partial "PrepareHTML" .country }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment