-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hotfix-21 added btn group for social networks login (link, unlink)
- Loading branch information
Aleksandr Yurchenko
committed
Mar 29, 2022
1 parent
db3ed81
commit e33d6de
Showing
7 changed files
with
247 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,49 @@ | ||
#select-language { | ||
width: auto; | ||
width: auto; | ||
|
||
&:focus { | ||
outline: none; | ||
text-decoration: none; | ||
box-shadow: none; | ||
border: 1px solid #ced4da; | ||
} | ||
} | ||
} | ||
|
||
.social-group { | ||
display: inline-block; | ||
font-weight: 400; | ||
color: #212529; | ||
text-align: center; | ||
vertical-align: middle; | ||
user-select: none; | ||
background-color: transparent; | ||
border: 1px solid transparent; | ||
padding: 0.375rem 0.75rem; | ||
font-size: 1rem; | ||
line-height: 1.5; | ||
border-radius: 0.25rem; | ||
transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; | ||
|
||
&--unlink { | ||
color: #dc3545; | ||
background-color: #f4f4f4; | ||
border-color: #dc3545; | ||
} | ||
|
||
&--link { | ||
color: #fff; | ||
border-color: #28a745; | ||
background-color: #28a745; | ||
|
||
&:hover { | ||
color: #fff; | ||
cursor: pointer; | ||
text-decoration: none; | ||
} | ||
|
||
&:focus { | ||
color: #fff; | ||
text-decoration: none; | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
templates/front/_embed/_utils/_social_network_link_unlink_btn.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{% if socialName %} | ||
<span class="social-group social-group--unlink"> | ||
{{ 'personal_account.social_group.link'|trans }} | ||
</span> | ||
<a class="social-group social-group--link" href="#"> | ||
{{ 'personal_account.social_group.unlink'|trans }} | ||
</a> | ||
{% else %} | ||
<a class="social-group social-group--link" href="#"> | ||
{{ 'personal_account.social_group.link'|trans }} | ||
</a> | ||
<span class="social-group social-group--unlink"> | ||
{{ 'personal_account.social_group.unlink'|trans }} | ||
</span> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters