Skip to content

Commit a005549

Browse files
committed
feature: improve btn-doctolib
1 parent 8a2af68 commit a005549

File tree

10 files changed

+61
-11
lines changed

10 files changed

+61
-11
lines changed

assets/sass/medicalify-theme.sass

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
@import theme/components/btn-doctolib
2+
@import theme/components/btn-icons
13
@import theme/components/contact-list
2-
@import theme/components/doctolib
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
.btn-doctolib
2+
--bs-btn-bg: #{$doctolib} !important
3+
--bs-btn-border-color: #{$doctolib} !important
4+
--bs-btn-color: #{$white} !important
5+
--bs-btn-hover-bg: #{$doctolib-hover} !important
6+
--bs-btn-hover-border-color: #{$doctolib-hover} !important
7+
--bs-btn-active-bg: #{$doctolib-hover} !important
8+
--bs-btn-active-border-color: #{$doctolib-hover} !important
9+
display: inline-flex
10+
&::before
11+
filter: brightness(0) invert(1)
12+
13+
i
14+
display: none
15+
16+
&::before
17+
content: ""
18+
background: url("/assets/images/logo-doctolib.svg") no-repeat center center
19+
display: block
20+
margin-right: 1rem
21+
height: 20px
22+
transition: filter .15s ease-in-out
23+
width: 80px
24+
25+
.btn + &
26+
--bs-btn-bg: transparent !important
27+
--bs-btn-color: #{$doctolib} !important
28+
&::before
29+
filter: none
30+
&:active,
31+
&:hover,
32+
&:focus-visible
33+
&::before
34+
filter: brightness(0) invert(1)
35+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.btn-phone
2+
@if variable-exists(icons-map)
3+
&::before
4+
@include icon("telephone")
5+
margin-right: .5rem
6+
7+
.btn-email
8+
@if variable-exists(icons-map)
9+
&::before
10+
@include icon("envelope-at")
11+
margin-right: .5rem

assets/sass/theme/components/_doctolib.sass

Lines changed: 0 additions & 6 deletions
This file was deleted.

i18n/en.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ admin:
1010
contact:
1111
doctolib:
1212
label: Doctolib
13-
booking: Book an appointment on Doctolib
13+
booking: Book an appointment <i>on Doctolib</i>
1414
diplomas:
1515
label:
1616
one: Diploma

i18n/fr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ admin:
1010
contact:
1111
doctolib:
1212
label: Doctolib
13-
booking: Prendre rendez-vous sur Doctolib
13+
booking: Prendre rendez-vous <i>sur Doctolib</i>
1414
diplomas:
1515
label:
1616
one: Diplôme
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{{ with .Params.contact }}
2+
<aside class="contact-list"{{ partial "func/SetAnim.html" (dict "element" "content") }}>
3+
<div>
4+
{{ partial "commons/contact/title.html" . }}
5+
{{ partial "commons/contact/contacts.html" . }}
6+
{{ partial "commons/contact/socials.html" . }}
7+
</div>
8+
</aside>
9+
{{ end }}

layouts/partials/commons/contact/doctolib.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
{{- $name := i18n "contact.doctolib.booking" }}
33
{{- $title := i18n "link.blank_aria" (dict "Title" $name) }}
44
<a href="{{ $url }}" class="btn btn-doctolib" target="_blank" rel="noopener noreferrer" title="{{ safeHTML $title }}">
5-
<span>{{ $name }}</span>
5+
<span>{{ $name | safeHTML }}</span>
66
</a>
Lines changed: 1 addition & 0 deletions
Loading

static/images/logo-doctolib.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)