Skip to content

Instantly share code, notes, and snippets.

@BulatSa
Last active May 31, 2017 11:59
Show Gist options
  • Save BulatSa/223d6bfd777630c3fa57dbe941d74a4f to your computer and use it in GitHub Desktop.
Save BulatSa/223d6bfd777630c3fa57dbe941d74a4f to your computer and use it in GitHub Desktop.
Copy link to Buffer
<div class="soc-sharing__copy">
<textarea></textarea>
<em>Ссылка скопирована</em>
<img src="img/svg/icons/icon-copy-link.svg" alt="">
<span>Копировать ссылку</span>
</div>
.soc-sharing__copy {
position: relative;
display: flex;
align-items: center;
margin-left: 25px;
cursor: pointer;
&:hover {
span {
color: @blue-bord;
}
}
span {
display: block;
padding-left: 4px;
padding-bottom: 1px;
font-size: 17px;
color: #697796;
line-height: 1.2;
.trans-stnd();
@media @tablet {
font-size: 16px;
}
@media @phone {
font-size: 14px;
}
}
textarea {
position: absolute;
width: 0;
height: 0;
opacity: 0;
pointer-events: none;
}
em {
position: absolute;
top: 0;
left: 0;
display: block;
width: 100%;
padding: 5px;
padding-top: 0;
font-size: 16px;
color: #697796;
line-height: 1.2;
background: #FFF;
transform: translateY(-100%);
opacity: 0;
.trans-stnd();
@media @tablet {
font-size: 14px;
}
&.active {
transform: translateY(0);
opacity: 1;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment