mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-16 11:00:08 +00:00
47 lines
942 B
Plaintext
47 lines
942 B
Plaintext
|
// Don't style scrollbar for touch device
|
||
|
// Since the scrollbar will stay visible if styled
|
||
|
// Besides scrollbar is subtle enough on touch devices
|
||
|
@media ( hover: hover ) {
|
||
|
* {
|
||
|
scrollbar-width: thin;
|
||
|
}
|
||
|
|
||
|
::-webkit-scrollbar {
|
||
|
width: 14px;
|
||
|
}
|
||
|
|
||
|
::-webkit-scrollbar-track {
|
||
|
background: transparent;
|
||
|
transition: @transition-background-quick;
|
||
|
|
||
|
&:hover {
|
||
|
background: var( --background-color-framed );
|
||
|
}
|
||
|
}
|
||
|
|
||
|
::-webkit-scrollbar-thumb {
|
||
|
border: 5px solid transparent;
|
||
|
background-clip: content-box;
|
||
|
border-radius: @border-radius-large;
|
||
|
box-shadow: inset 0 0 0 10px var( --background-color-icon );
|
||
|
|
||
|
&:hover {
|
||
|
box-shadow: inset 0 0 0 10px var( --background-color-icon--hover );
|
||
|
}
|
||
|
|
||
|
&:active {
|
||
|
box-shadow: inset 0 0 0 10px var( --background-color-icon--active );
|
||
|
}
|
||
|
}
|
||
|
|
||
|
::-webkit-scrollbar-button {
|
||
|
display: none;
|
||
|
width: 0;
|
||
|
height: 0;
|
||
|
}
|
||
|
|
||
|
::-webkit-scrollbar-corner {
|
||
|
background-color: transparent;
|
||
|
}
|
||
|
}
|