Skip to content

Instantly share code, notes, and snippets.

@Phoen1x84
Created February 5, 2017 18:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Phoen1x84/661033a574b9d571d7f92ddb06f4a7d8 to your computer and use it in GitHub Desktop.
Save Phoen1x84/661033a574b9d571d7f92ddb06f4a7d8 to your computer and use it in GitHub Desktop.
Styles for the page preview button
@sc-red: #DC291E;
@black: #222;
@white: #fff;
@ease-in-out-cubic: cubic-bezier(0.645, 0.045, 0.355, 1);
.sc-ribbon-btn {
position: fixed;
bottom: 100px;
right: 100px;
border-radius: 100%;
box-shadow: 0 0 6px @black;
background: @sc-red;
display: none;
width: 52px;
height: 52px;
z-index: 999;
transition: transform 0.25s @ease-in-out-cubic;
transform: scale(0.9);
&:hover {
transform: scale(1);
}
&--visible {
display: block;
}
&__inner {
position: relative;
display: block;
width: 100%;
height: 100%;
}
&__icon {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
margin: auto;
fill: @white;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment