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; }