From eca0045adadcabde2794aa192974bceaa289fbd3 Mon Sep 17 00:00:00 2001 From: "Oliver.Ke" Date: Thu, 14 Mar 2024 16:17:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20scrollbar-wid?= =?UTF-8?q?th=E3=80=81scrollbar-color=E5=8F=AA=E5=9C=A8Firefox=E4=B8=8B?= =?UTF-8?q?=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fineui/src/less/resource/app.less | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/packages/fineui/src/less/resource/app.less b/packages/fineui/src/less/resource/app.less index e09b2bd15..e6f29e3f9 100644 --- a/packages/fineui/src/less/resource/app.less +++ b/packages/fineui/src/less/resource/app.less @@ -25,10 +25,20 @@ body { outline: 0 none; } -div, textarea { - scrollbar-color: fade(@scroll-color, 10%) fade(@scroll-color, 5%); - scrollbar-width: thin; +@-moz-document url-prefix() { + div, textarea { + scrollbar-color: fade(@scroll-color, 10%) fade(@scroll-color, 5%); + scrollbar-width: thin; + } + .bi-theme-dark { + div, textarea { + scrollbar-color: fade(@scroll-color-theme-dark, 10%) fade(@scroll-color-theme-dark, 5%); + } + } +} + +div, textarea { &::-webkit-scrollbar { -webkit-appearance: none; width: 10px; @@ -63,8 +73,6 @@ div, textarea { .bi-theme-dark { div, textarea { - scrollbar-color: fade(@scroll-color-theme-dark, 10%) fade(@scroll-color-theme-dark, 5%); - &::-webkit-scrollbar { -webkit-appearance: none; }