tk-ligat.ru/shablon/gsore/assets/css/plugin/material-scrolltop.css

84 lines
2.1 KiB
CSS
Raw Permalink Normal View History

2022-05-30 23:06:37 +05:00
/**
* material-scrolltop
*
* Author: Bartholomej
* Website: https://github.com/bartholomej/material-scrolltop
* Docs: https://github.com/bartholomej/material-scrolltop
* Repo: https://github.com/bartholomej/material-scrolltop
* Issues: https://github.com/bartholomej/material-scrolltop/issues
*/
.material-scrolltop {
display: block;
position: fixed;
width: 0;
height: 0;
bottom: 23px;
right: 23px;
padding: 0;
overflow: hidden;
outline: none;
border: none;
border-radius: 2px;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
cursor: pointer;
border-radius: 50%;
background: #323232;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-transition: all 0.3s cubic-bezier(0.25, 0.25, 0, 1);
-ms-transition: all 0.3s cubic-bezier(0.25, 0.25, 0, 1);
-moz-transition: all 0.3s cubic-bezier(0.25, 0.25, 0, 1);
-o-transition: all 0.3s cubic-bezier(0.25, 0.25, 0, 1);
transition: all 0.3s cubic-bezier(0.25, 0.25, 0, 1);
z-index: 999;
}
.material-scrolltop:hover {
background-color: #89c74a;
border: 2px solid #89c74a;
text-decoration: none;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}
.material-scrolltop::before {
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
-moz-transform: translate(-50%, -50%);
-o-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
content: '\f102';
border-radius: 100%;
font-family: 'Font Awesome 5 Light';
font-weight: 500;
text-align: center;
color: #fff;
}
.material-scrolltop:hover::before{
color: white;
}
.material-scrolltop:active::before {
width: 120%;
padding-top: 120%;
-webkit-transition: all 0.2s ease-out;
-ms-transition: all 0.2s ease-out;
-moz-transition: all 0.2s ease-out;
-o-transition: all 0.2s ease-out;
transition: all 0.2s ease-out;
}
.material-scrolltop.reveal {
width: 50px;
height: 50px;
border: 2px solid white;
}
.material-scrolltop span {
display: block;
font-size: 25px;
color: #fff;
}