Created
February 5, 2017 18:52
-
-
Save Phoen1x84/661033a574b9d571d7f92ddb06f4a7d8 to your computer and use it in GitHub Desktop.
Styles for the page preview button
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
@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