Scrollbar styles
This commit is contained in:
parent
0841640e76
commit
68bd830ab9
12
index.html
12
index.html
@ -155,24 +155,30 @@
|
|||||||
|
|
||||||
* {
|
* {
|
||||||
scrollbar-width: thin;
|
scrollbar-width: thin;
|
||||||
|
scrollbar-color: var(--background-light) transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
*:hover, *:focus-within {
|
||||||
scrollbar-color: var(--background-hover) transparent;
|
scrollbar-color: var(--background-hover) transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
*::-webkit-scrollbar {
|
*::-webkit-scrollbar {
|
||||||
width: 1.2rem;
|
width: 0.7rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
*::-webkit-scrollbar-track {
|
*::-webkit-scrollbar-track {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
*::-webkit-scrollbar-thumb {
|
*::-webkit-scrollbar-thumb {
|
||||||
background-color: var(--background-light);
|
background-color: var(--background-light);
|
||||||
|
border: 2px solid #000000;
|
||||||
border-radius: 2rem;
|
border-radius: 2rem;
|
||||||
transition: background 1s ease-in;
|
transition: background 1s ease-in;
|
||||||
|
padding-right: 0.2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
*:hover::-webkit-scrollbar-thumb {
|
*:hover::-webkit-scrollbar-thumb, *:focus-within::-webkit-scrollbar-thumb {
|
||||||
background-color: var(--background-hover);
|
background-color: var(--background-hover);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -168,6 +168,14 @@ export default defineComponent({
|
|||||||
padding: 0.2rem 0.5rem 0 0.2rem;
|
padding: 0.2rem 0.5rem 0 0.2rem;
|
||||||
width: 24rem;
|
width: 24rem;
|
||||||
align-items: flex-end;
|
align-items: flex-end;
|
||||||
|
|
||||||
|
&:not(:hover):not(:focus-within) {
|
||||||
|
scrollbar-color: var(--background-base) transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:not(:hover):not(:focus-within)::-webkit-scrollbar-thumb {
|
||||||
|
background-color: var(--background-base);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar__section {
|
.sidebar__section {
|
||||||
|
Loading…
Reference in New Issue
Block a user