TanchoToplineCargo/public/sunsarioverseas/css/partials/scrolling_top.css

59 lines
1.3 KiB
CSS
Raw Normal View History

2024-05-05 04:47:49 +00:00
/* =====================================
SCROLLING TOP.
===================================== */
@media only screen and (min-width: 1024px) {
main p {
font-size: 20px;
font-size: 1.25rem;
}
}
.cd-top {
display: inline-block;
height: 40px;
width: 40px;
position: fixed;
bottom: 40px;
right: 10px;
overflow: hidden;
text-indent: 100%;
white-space: nowrap;
background: var(--secundary-color) url(../../images/icons/cd-top-arrow.svg) no-repeat center 50%;
visibility: hidden;
border-radius: 5px;
z-index: 4;
}
.cd-top.cd-is-visible,
.cd-top.cd-fade-out,
.no-touch .cd-top:hover {
-webkit-transition: opacity .3s 0s, visibility 0s 0s;
-moz-transition: opacity .3s 0s, visibility 0s 0s;
transition: opacity .3s 0s, visibility 0s 0s;
}
.cd-top.cd-is-visible {
/* the button becomes visible */
visibility: visible;
opacity: 1;
}
.no-touch .cd-top:hover {
background-color: var(--primary-color);
}
@media only screen and (min-width: 768px) {
.cd-top {
right: 20px;
bottom: 20px;
}
}
@media only screen and (min-width: 1024px) {
.cd-top {
height: 45px;
width: 45px;
right: 30px;
bottom: 30px;
}
}