bkui-vue 2.0.1-beta.34.scrollbar.1 → 2.0.1-beta.34.scrollbar.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -4,5 +4,5 @@ export { default } from './preset';
4
4
  export * from './config-provider';
5
5
  export * from './directives';
6
6
  export * as plugins from './plugins';
7
- export const version = "2.0.1-beta.34.scrollbar.1";
7
+ export const version = "2.0.1-beta.34.scrollbar.2";
8
8
  window.__bkui_vue_version__ = version;
@@ -0,0 +1,240 @@
1
+ :root {
2
+ --bk-prefix: bk;
3
+ --popover-max-height: 216px;
4
+ --primary-color: #3a84ff;
5
+ --success-color: #2dcb56;
6
+ --warning-color: #ff9c01;
7
+ --danger-color: #ea3636;
8
+ --default-color: #63656e;
9
+ --gray-color: #979ba5;
10
+ --light-gray: #c4c6cc;
11
+ --white-color: white;
12
+ --whitesmoke-color: #fafbfd;
13
+ --disable-color: #dcdee5;
14
+ --disable-bg-color: #f9fafd;
15
+ --border-color: #dcdee5;
16
+ --font-size-base: 12px;
17
+ --font-size-medium: 14px;
18
+ --font-size-large: 16px;
19
+ --line-height-base: 16px;
20
+ --line-height-medium: 16px;
21
+ --line-height-large: 18px;
22
+ --component-size-small: 26px;
23
+ --component-size-base: 32px;
24
+ --component-size-large: 40px;
25
+ --component-size-small-padding: 0 12px;
26
+ --component-size-base-padding: 0 14px;
27
+ --component-size-large-padding: 0 16px;
28
+ --border-width-base: 1px;
29
+ --border-style-base: solid;
30
+ --border-radius-base: 2px;
31
+ --border-style-color: var(--light-gray);
32
+ --input-disabled-bg: #fafbfd;
33
+ --input-disabled-border: var(--disable-color);
34
+ --input-height-base: var(--component-size-base);
35
+ --input-color: var(--default-color);
36
+ --input-bg: white;
37
+ --input-border-color: var(--light-gray);
38
+ --input-broder-radius: 3px;
39
+ --input-shadow-color: #a3c5fd;
40
+ --input-horizontal-padding: 8px;
41
+ --input-block-color: #f5f7fa;
42
+ --input-block-hover-color: #eaebf0;
43
+ --input-icon-size: var(--font-size-medium);
44
+ --input-maxlength-color: #979ba5;
45
+ --button-primary-hover-color: #5594fa;
46
+ --button-danger-hover-color: #ff5656;
47
+ --button-success-hover-color: #45e35f;
48
+ --button-warning-hover-color: #ffb848;
49
+ --button-default-hover-border-color: #979ba5;
50
+ --button-primary-active-color: #2c77f4;
51
+ --button-danger-active-color: #db2626;
52
+ --button-success-active-color: #1ab943;
53
+ --button-warning-active-color: #eb9000;
54
+ --button-selected-bg-color: #e1ecff;
55
+ --button-disabled-selected-bg-color: #f0f1f5;
56
+ --radio-font-color: #63656e;
57
+ --radio-active-color: #3a84ff;
58
+ --radio-hover-border-color: #979ba5;
59
+ --radio-disabled-border: #dcdee5;
60
+ --radio-disabled-font-color: #c4c6cc;
61
+ --radio-disabled-checked-bg: #a3c5fd;
62
+ --radio-button-checked-bg: #e1ecff;
63
+ --radio-button-disabled-checked-bg: #fafbfd;
64
+ --checkbox-disabled-checked-bg: #a3c5fd;
65
+ --fixed-navbar-background: #fff;
66
+ --fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
67
+ --switch-default-color: #fff;
68
+ --switch-grey-color: #c4c6cc;
69
+ --breadcrumb-black-color: #979ba5;
70
+ --breadcrumb-primary-hover-color: #0082ff;
71
+ --breadcrumb-fn-main-color: #63656e;
72
+ --link-default-hover-color: #979ba5;
73
+ --link-primary-hover-color: #699df4;
74
+ --link-success-hover-color: #45e35f;
75
+ --link-warning-hover-color: #ffb848;
76
+ --link-danger-hover-color: #ff5656;
77
+ --link-default-disabled-color: #dcdee5;
78
+ --link-primary-disabled-color: #a3c5fd;
79
+ --link-success-disabled-color: #94f5a4;
80
+ --link-warning-disabled-color: #ffd695;
81
+ --link-danger-disabled-color: #fd9c9c;
82
+ --message-color: var(--default-color);
83
+ --message-primary-bg-color: #f0f8ff;
84
+ --message-primary-border-color: #e1ecff;
85
+ --message-primary-shadow-color: #e1e8f4;
86
+ --message-warning-bg-color: #fff4e2;
87
+ --message-warning-border-color: #ffe8c3;
88
+ --message-warning-shadow-color: #ede6db;
89
+ --message-success-bg-color: #f2fff4;
90
+ --message-success-border-color: #dcffe2;
91
+ --message-success-shadow-color: #cef0d7;
92
+ --message-danger-bg-color: #ffeded;
93
+ --message-danger-border-color: #ffdddd;
94
+ --message-danger-shadow-color: #f6dada;
95
+ --slider-default-bg: #dcdee5;
96
+ --slider-disable-bar-bg: #979ba5;
97
+ --menu-bg-color: #182132;
98
+ --submenu-bg-color: #151d2c;
99
+ --menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
100
+ --menu-color: #96a2b9;
101
+ --menu-group-color: var(--default-color);
102
+ --menu-width: 260px;
103
+ --menu-collapse-width: 60px;
104
+ --menu-active-color: white;
105
+ --nav-header-bg-color: #182132;
106
+ --nav-bg-color: #182132;
107
+ --date-picker-disabled-bg: #fafbfd;
108
+ --date-picker-dropdown-mb: 4px;
109
+ --date-picker-dropdown-bg: #fff;
110
+ --table-bg-color: var(--white-color);
111
+ --table-border-color: #dcdee5;
112
+ --table-strip-color: #fafbfd;
113
+ --table-head-bg-color: #fafbfd;
114
+ --table-head-font-color: #313238;
115
+ --table-body-font-color: #63656e;
116
+ --table-row-hover-bg-color: #f5f7fa;
117
+ --table-row-active-bg-color: #f0f1f5;
118
+ --cascader-panel-border-color: #dcdee5;
119
+ --cascader-panel-hover: #f5f7fa;
120
+ --cascader-panel-active: #e1ecff;
121
+ --cascader-panel-disabled-bg: #fff;
122
+ --search-select-focus-border-color: var(--primary-color);
123
+ --search-select-focus-color: #3c96ff;
124
+ --search-select-font-color: var(--default-color);
125
+ --search-select-placeholder-color: var(--light-gray);
126
+ --search-select-message-color: var(--danger-color);
127
+ --search-select-menu-border-color: var(--disable-color);
128
+ --select-active-color: #e1ecff;
129
+ --select-hover-color: #f5f7fa;
130
+ }
131
+ .bk-scrollbar {
132
+ overflow: hidden !important;
133
+ overflow-anchor: none;
134
+ touch-action: auto;
135
+ /*
136
+ * Scrollbar rail styles
137
+ */
138
+ /*
139
+ * Scrollbar thumb styles
140
+ */
141
+ }
142
+ .bk-scrollbar.bk--active-x > .bk__rail-x,
143
+ .bk-scrollbar.bk--active-y > .bk__rail-y {
144
+ display: block;
145
+ }
146
+ .bk-scrollbar .bk__rail-x:hover,
147
+ .bk-scrollbar .bk__rail-y:hover,
148
+ .bk-scrollbar .bk__rail-x:focus,
149
+ .bk-scrollbar .bk__rail-y:focus,
150
+ .bk-scrollbar .bk__rail-x.bk--clicking,
151
+ .bk-scrollbar .bk__rail-y.bk--clicking {
152
+ background-color: #f0f1f5;
153
+ }
154
+ .bk-scrollbar .bk__rail-x {
155
+ display: none;
156
+ opacity: 0;
157
+ transition: background-color 0.2s linear, opacity 0.2s linear;
158
+ height: 10px;
159
+ bottom: 0px;
160
+ position: absolute;
161
+ margin-bottom: 2px;
162
+ }
163
+ .bk-scrollbar .bk__rail-x.bk-size-small {
164
+ height: 8px;
165
+ }
166
+ .bk-scrollbar .bk__rail-x.bk-size-small .bk__thumb-x {
167
+ height: 6px;
168
+ }
169
+ .bk-scrollbar .bk__rail-y {
170
+ display: none;
171
+ opacity: 0;
172
+ transition: background-color 0.2s linear, opacity 0.2s linear;
173
+ width: 10px;
174
+ right: 0px;
175
+ position: absolute;
176
+ margin-right: 2px;
177
+ }
178
+ .bk-scrollbar .bk__rail-y.bk-size-small {
179
+ width: 8px;
180
+ }
181
+ .bk-scrollbar .bk__rail-y.bk-size-small .bk__thumb-y {
182
+ width: 6px;
183
+ }
184
+ .bk-scrollbar:hover > .bk__rail-x,
185
+ .bk-scrollbar:hover > .bk__rail-y,
186
+ .bk-scrollbar.bk--focus > .bk__rail-x,
187
+ .bk-scrollbar.bk--focus > .bk__rail-y,
188
+ .bk-scrollbar.bk--scrolling-x > .bk__rail-x,
189
+ .bk-scrollbar.bk--scrolling-y > .bk__rail-y {
190
+ opacity: 0.9;
191
+ }
192
+ .bk-scrollbar .bk__thumb-x {
193
+ background-color: #dcdee5;
194
+ border-radius: 8px;
195
+ transition: background-color 0.2s linear, height 0.2s ease-in-out;
196
+ height: 8px;
197
+ bottom: 0px;
198
+ position: absolute;
199
+ }
200
+ .bk-scrollbar .bk__thumb-y {
201
+ background-color: #dcdee5;
202
+ border-radius: 8px;
203
+ transition: background-color 0.2s linear, width 0.2s ease-in-out;
204
+ width: 8px;
205
+ right: 0px;
206
+ position: absolute;
207
+ }
208
+ .bk-scrollbar .bk__rail-x:hover > .bk__thumb-x,
209
+ .bk-scrollbar .bk__rail-x:focus > .bk__thumb-x,
210
+ .bk-scrollbar .bk__rail-x.bk--clicking .bk__thumb-x {
211
+ background-color: #979ba5;
212
+ height: 10px;
213
+ }
214
+ .bk-scrollbar .bk__rail-y:hover > .bk__thumb-y,
215
+ .bk-scrollbar .bk__rail-y:focus > .bk__thumb-y,
216
+ .bk-scrollbar .bk__rail-y.bk--clicking .bk__thumb-y {
217
+ background-color: #979ba5;
218
+ width: 10px;
219
+ }
220
+ .bk-scrollbar .bk-size-small > .bk__thumb-x,
221
+ .bk-scrollbar .bk-size-small > .bk__thumb-x,
222
+ .bk-scrollbar .bk-size-small.bk--clicking .bk__thumb-x {
223
+ height: 8px;
224
+ }
225
+ .bk-scrollbar .bk-size-small:hover > .bk__thumb-y,
226
+ .bk-scrollbar .bk-size-small:focus > .bk__thumb-y,
227
+ .bk-scrollbar .bk-size-small.bk--clicking .bk__thumb-y {
228
+ width: 8px;
229
+ }
230
+ /* MS supports */
231
+ @supports (-ms-overflow-style: none) {
232
+ .bk-scrollbar {
233
+ overflow: auto !important;
234
+ }
235
+ }
236
+ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
237
+ .bk-scrollbar {
238
+ overflow: auto !important;
239
+ }
240
+ }
@@ -0,0 +1,139 @@
1
+ @import '../styles/themes/themes.less';
2
+
3
+ .@{bk-prefix}-scrollbar {
4
+ overflow: hidden !important;
5
+ overflow-anchor: none;
6
+ touch-action: auto;
7
+
8
+ &.@{bk-prefix}--active-x > .@{bk-prefix}__rail-x,
9
+ &.@{bk-prefix}--active-y > .@{bk-prefix}__rail-y {
10
+ display: block;
11
+ }
12
+
13
+ .@{bk-prefix}__rail-x:hover,
14
+ .@{bk-prefix}__rail-y:hover,
15
+ .@{bk-prefix}__rail-x:focus,
16
+ .@{bk-prefix}__rail-y:focus,
17
+ .@{bk-prefix}__rail-x.@{bk-prefix}--clicking,
18
+ .@{bk-prefix}__rail-y.@{bk-prefix}--clicking {
19
+ background-color: #f0f1f5;
20
+ }
21
+
22
+ /*
23
+ * Scrollbar rail styles
24
+ */
25
+ .@{bk-prefix}__rail-x {
26
+ display: none;
27
+ opacity: 0;
28
+ transition:
29
+ background-color 0.2s linear,
30
+ opacity 0.2s linear;
31
+ height: 10px;
32
+ bottom: 0px;
33
+ position: absolute;
34
+ margin-bottom: 2px;
35
+
36
+ &.@{bk-prefix}-size-small {
37
+ height: 8px;
38
+
39
+ .@{bk-prefix}__thumb-x {
40
+ height: 6px;
41
+ }
42
+ }
43
+ }
44
+
45
+ .@{bk-prefix}__rail-y {
46
+ display: none;
47
+ opacity: 0;
48
+ transition:
49
+ background-color 0.2s linear,
50
+ opacity 0.2s linear;
51
+ width: 10px;
52
+ right: 0px;
53
+ position: absolute;
54
+ margin-right: 2px;
55
+
56
+ &.@{bk-prefix}-size-small {
57
+ width: 8px;
58
+
59
+ .@{bk-prefix}__thumb-y {
60
+ width: 6px;
61
+ }
62
+ }
63
+ }
64
+
65
+ &:hover > .@{bk-prefix}__rail-x,
66
+ &:hover > .@{bk-prefix}__rail-y,
67
+ &.@{bk-prefix}--focus > .@{bk-prefix}__rail-x,
68
+ &.@{bk-prefix}--focus > .@{bk-prefix}__rail-y,
69
+ &.@{bk-prefix}--scrolling-x > .@{bk-prefix}__rail-x,
70
+ &.@{bk-prefix}--scrolling-y > .@{bk-prefix}__rail-y {
71
+ opacity: 0.9;
72
+ }
73
+
74
+ /*
75
+ * Scrollbar thumb styles
76
+ */
77
+ .@{bk-prefix}__thumb-x {
78
+ background-color: #dcdee5;
79
+ border-radius: 8px;
80
+ transition:
81
+ background-color 0.2s linear,
82
+ height 0.2s ease-in-out;
83
+ height: 8px;
84
+ bottom: 0px;
85
+ position: absolute;
86
+ }
87
+
88
+ .@{bk-prefix}__thumb-y {
89
+ background-color: #dcdee5;
90
+ border-radius: 8px;
91
+ transition:
92
+ background-color 0.2s linear,
93
+ width 0.2s ease-in-out;
94
+ width: 8px;
95
+ right: 0px;
96
+ position: absolute;
97
+ }
98
+
99
+ .@{bk-prefix}__rail-x:hover > .@{bk-prefix}__thumb-x,
100
+ .@{bk-prefix}__rail-x:focus > .@{bk-prefix}__thumb-x,
101
+ .@{bk-prefix}__rail-x.@{bk-prefix}--clicking .@{bk-prefix}__thumb-x {
102
+ background-color: #979ba5;
103
+ height: 10px;
104
+ }
105
+
106
+ .@{bk-prefix}__rail-y:hover > .@{bk-prefix}__thumb-y,
107
+ .@{bk-prefix}__rail-y:focus > .@{bk-prefix}__thumb-y,
108
+ .@{bk-prefix}__rail-y.@{bk-prefix}--clicking .@{bk-prefix}__thumb-y {
109
+ background-color: #979ba5;
110
+ width: 10px;
111
+ }
112
+
113
+ .@{bk-prefix}-size-small {
114
+ > .@{bk-prefix}__thumb-x,
115
+ > .@{bk-prefix}__thumb-x,
116
+ &.@{bk-prefix}--clicking .@{bk-prefix}__thumb-x {
117
+ height: 8px;
118
+ }
119
+
120
+ &:hover > .@{bk-prefix}__thumb-y,
121
+ &:focus > .@{bk-prefix}__thumb-y,
122
+ &.@{bk-prefix}--clicking .@{bk-prefix}__thumb-y {
123
+ width: 8px;
124
+ }
125
+ }
126
+ }
127
+
128
+ /* MS supports */
129
+ @supports (-ms-overflow-style: none) {
130
+ .@{bk-prefix}-scrollbar {
131
+ overflow: auto !important;
132
+ }
133
+ }
134
+
135
+ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
136
+ .@{bk-prefix}-scrollbar {
137
+ overflow: auto !important;
138
+ }
139
+ }