Last active
December 16, 2021 09:49
-
-
Save peterkarn/c7b9f602250e40eb19438f5b24769362 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| <button class="buttons"> | |
| <img class="buttons__image" src="img/common/messages.svg" alt=""> | |
| <ul class="buttons__wrapper"> | |
| <li> | |
| <a class="buttons__link" href="#"> | |
| <span> | |
| Чат в Telegram | |
| </span> | |
| <img src="img/common/tg.svg" alt=""> | |
| </a> | |
| </li> | |
| <li> | |
| <a class="buttons__link" href="#"> | |
| <span> | |
| Чат в WhatsApp | |
| </span> | |
| <img src="img/common/wh.svg" alt=""> | |
| </a> | |
| </li> | |
| <li> | |
| <a class="buttons__link"> | |
| <span> | |
| Заказать звонок | |
| </span> | |
| <img src="img/common/phone.svg" alt=""> | |
| </a> | |
| </li> | |
| </ul> | |
| </button> |
This file contains hidden or 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
| .buttons { | |
| position: fixed; | |
| right: 60px; | |
| bottom: 60px; | |
| &__image { | |
| display: block; | |
| border-radius: 50%; | |
| transition: box-shadow 0.2s; | |
| cursor: pointer; | |
| &:hover { | |
| box-shadow: 0px 0px 8px rgba($white, 0.4); | |
| } | |
| } | |
| &__wrapper { | |
| position: absolute; | |
| right: 0; | |
| bottom: 0; | |
| z-index: -1; | |
| padding-bottom: 70px; | |
| padding-right: 10px; | |
| min-width: 200px; | |
| li { | |
| transition: all 0.2s; | |
| opacity: 0; | |
| &:not(:last-child) { | |
| margin-bottom: 10px; | |
| } | |
| span { | |
| margin-right: 10px; | |
| padding: 6px; | |
| font-size: 12px; | |
| background-color: $grey; | |
| border-radius: 5px; | |
| line-height: 1; | |
| transform: scaleX(0); | |
| opacity: 0; | |
| transition: all 0.2s; | |
| transform-origin: center right; | |
| } | |
| &:hover { | |
| span { | |
| opacity: 1; | |
| transform: scaleX(1); | |
| } | |
| } | |
| &.visible { | |
| opacity: 1; | |
| } | |
| } | |
| } | |
| &__link { | |
| display: flex; | |
| align-items: center; | |
| justify-content: flex-end; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment