Difference between revisions of "Template:XJTU-China/style"

Line 809: Line 809:
 
     height: 90px;
 
     height: 90px;
 
     margin-bottom: -10px;
 
     margin-bottom: -10px;
 +
}
 +
 +
/*! locomotive-scroll v3.5.4 | MIT License | https://github.com/locomotivemtl/locomotive-scroll */
 +
 +
html.has-scroll-smooth {
 +
overflow: hidden;
 +
}
 +
 
 +
html.has-scroll-dragging {
 +
-webkit-user-select: none;
 +
-moz-user-select: none;
 +
-ms-user-select: none;
 +
user-select: none;
 +
}
 +
 
 +
.has-scroll-smooth body {
 +
overflow: hidden;
 +
}
 +
 
 +
.has-scroll-smooth [data-scroll-container] {
 +
min-height: 100vh;
 +
}
 +
 
 +
.c-scrollbar {
 +
position: absolute;
 +
right: 0;
 +
top: 0;
 +
width: 11px;
 +
height: 100vh;
 +
transform-origin: center right;
 +
transition: transform 0.3s, opacity 0.3s;
 +
opacity: 0;
 +
}
 +
.c-scrollbar:hover {
 +
transform: scaleX(1.45);
 +
}
 +
.c-scrollbar:hover, .has-scroll-scrolling .c-scrollbar, .has-scroll-dragging .c-scrollbar {
 +
opacity: 1;
 +
}
 +
 
 +
.c-scrollbar_thumb {
 +
position: absolute;
 +
top: 0;
 +
right: 0;
 +
background-color: black;
 +
opacity: 0.5;
 +
width: 7px;
 +
border-radius: 10px;
 +
margin: 2px;
 +
cursor: -webkit-grab;
 +
cursor: grab;
 +
}
 +
.has-scroll-dragging .c-scrollbar_thumb {
 +
cursor: -webkit-grabbing;
 +
cursor: grabbing;
 
}
 
}
  
 
</style>
 
</style>
 
</html>
 
</html>

Revision as of 05:09, 10 July 2021