style: refine scroll bar and rename class to tui-scroll-bar

This commit is contained in:
Timi
2026-11-26 12:08:11 +08:00
parent 98406c655d
commit 96febc972b
2 changed files with 22 additions and 12 deletions
@@ -1,5 +1,5 @@
<template>
<div class="tui-demo">
<div class="tui-demo tui-scroll-bar">
<section class="stage">
<slot />
</section>
+21 -11
View File
@@ -1,18 +1,28 @@
@import url(./variable);
.custom-scroll-bar *::-webkit-scrollbar {
width: 10px !important;
height: 10px !important;
background: #CFD2E0;
}
.tui-scroll-bar {
.custom-scroll-bar *::-webkit-scrollbar-corner {
background: #CFD2E0;
}
*::-webkit-scrollbar {
width: 10px !important;
height: 10px !important;
cursor: default;
background: #CFD2E0;
}
.custom-scroll-bar *::-webkit-scrollbar-thumb {
background: #525870;
border-radius: 0 !important;
*::-webkit-scrollbar-corner {
background: #CFD2E0;
}
*::-webkit-scrollbar-thumb {
cursor: default;
background: #525870;
border-radius: 0 !important;
&:hover {
cursor: default;
background: #636981;
}
}
}
*::selection {