ui: increase scrollbar size & add arrows to its buttons
This commit is contained in:
parent
3775e53ef4
commit
e5b46c488a
2 changed files with 14 additions and 3 deletions
|
|
@ -22,6 +22,7 @@
|
|||
}
|
||||
::-webkit-scrollbar-thumb {
|
||||
background:var(--color-raised);
|
||||
|
||||
&:vertical {
|
||||
border-left:2rem solid var(--color-bg);
|
||||
}
|
||||
|
|
@ -30,6 +31,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
@mixin arrow($i) {
|
||||
background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="50px" width="50px"><text x="50%" y="50%" font-size="30" fill="rgba(255,255,255,0.15)" alignment-baseline="central" text-anchor="middle" font-family="fontawesome"> '+$i+' </text></svg>');
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-button:decrement:start, ::-webkit-scrollbar-button:increment:end {
|
||||
|
||||
background:var(--color-fg);
|
||||
|
|
@ -37,29 +42,35 @@
|
|||
width: var(--scrollbar-size);
|
||||
|
||||
display: block;
|
||||
color:red;
|
||||
|
||||
background-size:contain;
|
||||
background-position: center;
|
||||
|
||||
&:vertical {
|
||||
&:decrement:start {
|
||||
border-left:2rem solid var(--color-bg);
|
||||
border-bottom:2rem solid var(--color-bg);
|
||||
@include arrow()
|
||||
}
|
||||
|
||||
&:increment:end {
|
||||
border-left:2rem solid var(--color-bg);
|
||||
border-top:2rem solid var(--color-bg);
|
||||
|
||||
@include arrow()
|
||||
}
|
||||
}
|
||||
&:horizontal {
|
||||
&:decrement:start {
|
||||
border-right:2rem solid var(--color-bg);
|
||||
border-top:2rem solid var(--color-bg);
|
||||
@include arrow()
|
||||
}
|
||||
|
||||
&:increment:end {
|
||||
border-left:2rem solid var(--color-bg);
|
||||
border-top:2rem solid var(--color-bg);
|
||||
|
||||
@include arrow()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
--nav-height:40rem;
|
||||
--sidepanel-size:300rem;
|
||||
--scrollbar-size:20rem;
|
||||
--scrollbar-size:30rem;
|
||||
|
||||
--pixel-scale:1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue