Skip to content

DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.

2.0 KB
Raw Blame
/* 全局滚动条样式优化 */
/* 默认隐藏滚动条,适用于所有可滚动元素 */
* {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

/* Webkit 浏览器滚动条样式(Chrome, Safari, Edge) */
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background-color: transparent;
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background-color 0.2s ease;
}

/* 鼠标悬停到可滚动元素时显示滚动条 */
*:hover::-webkit-scrollbar-thumb {
  background-color: var(--color-scroll-thumb);
}

*:hover {
  scrollbar-color: var(--color-scroll-thumb) transparent;
}

/* 鼠标悬停到滚动条本身时加深颜色 */
*:hover::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-scroll-thumb-strong);
}

/* 滚动时也显示滚动条(通过 active 状态) */
*:active::-webkit-scrollbar-thumb {
  background-color: var(--color-scroll-thumb);
}

*:active {
  scrollbar-color: var(--color-scroll-thumb) transparent;
}

/* 焦点时显示滚动条(用于键盘导航) */
*:focus-within::-webkit-scrollbar-thumb {
  background-color: var(--color-scroll-thumb);
}

*:focus-within {
  scrollbar-color: var(--color-scroll-thumb) transparent;
}

/* 确保 body 和 html 也应用滚动条样式 */
html,
body {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

html:hover,
body:hover {
  scrollbar-color: var(--color-scroll-thumb) transparent;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background-color: transparent;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

html:hover::-webkit-scrollbar-thumb,
body:hover::-webkit-scrollbar-thumb {
  background-color: var(--color-scroll-thumb);
}