Browse Source

Pull request #3737: 无JIRA任务 scrollbar-width、scrollbar-color只在Firefox下生效

Merge in VISUAL/fineui from ~OLIVER.KE/fineui:master to master

* commit 'eca0045adadcabde2794aa192974bceaa289fbd3':
  无JIRA任务 scrollbar-width、scrollbar-color只在Firefox下生效
research/test
Oliver.Ke-柯键基 9 months ago
parent
commit
4a5fd0fa4d
  1. 14
      packages/fineui/src/less/resource/app.less

14
packages/fineui/src/less/resource/app.less

@ -25,10 +25,20 @@ body {
outline: 0 none; outline: 0 none;
} }
div, textarea { @-moz-document url-prefix() {
div, textarea {
scrollbar-color: fade(@scroll-color, 10%) fade(@scroll-color, 5%); scrollbar-color: fade(@scroll-color, 10%) fade(@scroll-color, 5%);
scrollbar-width: thin; 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-scrollbar {
-webkit-appearance: none; -webkit-appearance: none;
width: 10px; width: 10px;
@ -63,8 +73,6 @@ div, textarea {
.bi-theme-dark { .bi-theme-dark {
div, textarea { div, textarea {
scrollbar-color: fade(@scroll-color-theme-dark, 10%) fade(@scroll-color-theme-dark, 5%);
&::-webkit-scrollbar { &::-webkit-scrollbar {
-webkit-appearance: none; -webkit-appearance: none;
} }

Loading…
Cancel
Save