Created
January 30, 2018 15:37
-
-
Save ilko725/689b171e05bfbe3455e888fe04ecc9a9 to your computer and use it in GitHub Desktop.
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
/* | |
* ToTop | |
*/ | |
.ui-to-top { | |
position: fixed; | |
right: 15px; | |
bottom: 15px; | |
z-index: 100; | |
width: $form-input-height; | |
height: $form-input-height; | |
font-size: 20px; | |
line-height: $form-input-height - 4px; | |
color: $white-invariable; | |
background: $primary; | |
overflow: hidden; | |
text-align: center; | |
text-decoration: none; | |
transition: .45s all ease-in-out; | |
transform: translate3d(0, 100px, 0); | |
&:hover { | |
color: $white; | |
background: $gray-900; | |
text-decoration: none; | |
} | |
&:focus { | |
color: $white-invariable; | |
} | |
&.active { | |
transform: translate3d(0, 0, 0); | |
} | |
} | |
html.mobile .ui-to-top, | |
html.tablet .ui-to-top { | |
display: none !important; | |
} | |
@include media-breakpoint-up(sm) { | |
.ui-to-top { | |
right: 40px; | |
bottom: 40px; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment