Skip to content

Instantly share code, notes, and snippets.

@ilko725
Created January 30, 2018 15:37
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 ilko725/689b171e05bfbe3455e888fe04ecc9a9 to your computer and use it in GitHub Desktop.
Save ilko725/689b171e05bfbe3455e888fe04ecc9a9 to your computer and use it in GitHub Desktop.
/*
* 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