Files
linuxdistro-roguelite/Assets/Resources/TerminalScrollbars.uss
T
2026-10-22 21:59:50 +02:00

118 lines
3.0 KiB
CSS

:root {
--kp-scroll-track: var(--kp-panel);
--kp-scroll-thumb: var(--kp-border);
--kp-scroll-thumb-hover: var(--kp-primary);
}
ScrollView .unity-scroll-view__content-viewport {
padding-right: 2px;
padding-bottom: 2px;
}
ScrollView .unity-scroll-view__vertical-scroller {
width: 12px;
min-width: 12px;
background-color: transparent;
border-left-width: 0;
border-right-width: 0;
border-top-width: 0;
border-bottom-width: 0;
border-radius: 0;
}
ScrollView .unity-scroll-view__horizontal-scroller {
height: 12px;
min-height: 12px;
background-color: transparent;
border-left-width: 0;
border-right-width: 0;
border-top-width: 0;
border-bottom-width: 0;
border-radius: 0;
}
ScrollView .unity-scroller,
ScrollView .unity-scroller--vertical,
ScrollView .unity-scroller--horizontal,
ScrollView .unity-scroller__slider,
ScrollView .unity-base-slider {
margin: 0;
padding: 0;
min-width: 0;
min-height: 0;
background-color: transparent;
border-left-width: 0;
border-right-width: 0;
border-top-width: 0;
border-bottom-width: 0;
border-radius: 0;
}
/* The default theme's 18px thumb otherwise extends outside the thin scroller. */
.kernel-ui ScrollView .unity-scroller--vertical .unity-base-slider__dragger,
.kernel-ui ScrollView .unity-scroller--vertical .unity-base-slider__tracker {
width: 8px;
min-width: 8px;
max-width: 8px;
left: 2px;
margin: 0;
}
.kernel-ui ScrollView .unity-scroller--horizontal .unity-base-slider__dragger,
.kernel-ui ScrollView .unity-scroller--horizontal .unity-base-slider__tracker {
height: 8px;
min-height: 8px;
max-height: 8px;
top: 2px;
margin: 0;
}
.kernel-ui ScrollView .unity-base-slider__dragger-border { display: none; }
ScrollView .unity-scroller__low-button,
ScrollView .unity-scroller__high-button {
display: none;
width: 0;
height: 0;
min-width: 0;
min-height: 0;
background-color: transparent;
border-left-width: 0;
border-right-width: 0;
border-top-width: 0;
border-bottom-width: 0;
}
ScrollView .unity-base-slider__tracker {
background-color: var(--kp-scroll-track);
opacity: 0.28;
border-left-width: 0;
border-right-width: 0;
border-top-width: 0;
border-bottom-width: 0;
border-radius: 0;
}
ScrollView .unity-base-slider__dragger,
ScrollView .unity-base-slider__dragger-border,
ScrollView #unity-dragger {
min-width: 6px;
min-height: 6px;
background-color: var(--kp-scroll-thumb);
border-left-width: 0;
border-right-width: 0;
border-top-width: 0;
border-bottom-width: 0;
border-radius: 0;
}
ScrollView .unity-base-slider__dragger:hover,
ScrollView .unity-base-slider__dragger-border:hover,
ScrollView #unity-dragger:hover {
background-color: var(--kp-scroll-thumb-hover);
}
ScrollView .unity-base-slider__dragger:active,
ScrollView .unity-base-slider__dragger-border:active,
ScrollView #unity-dragger:active {
background-color: var(--kp-scroll-thumb-hover);
}