tiny-ui 1.0.2 → 1.0.3
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/dist/styles/index.css +2 -2
- package/dist/styles/index.css.map +1 -1
- package/dist/styles/index.min.css +1 -1
- package/dist/styles/index.min.css.map +1 -1
- package/dist/tiny.min.js +1 -1
- package/dist/tiny.min.js.map +1 -1
- package/es/alert/style/_index.scss +72 -0
- package/es/alert/style/_mixin.scss +5 -0
- package/es/alert/style/css.js +2 -0
- package/es/anchor/style/_index.scss +83 -0
- package/es/anchor/style/css.js +3 -0
- package/es/aspect-ratio/style/_index.scss +22 -0
- package/es/aspect-ratio/style/css.js +2 -0
- package/es/auto-complete/style/_index.scss +58 -0
- package/es/auto-complete/style/css.js +2 -0
- package/es/avatar/style/_index.scss +80 -0
- package/es/avatar/style/css.js +2 -0
- package/es/back-top/style/_index.scss +25 -0
- package/es/back-top/style/css.js +2 -0
- package/es/badge/style/_index.scss +60 -0
- package/es/badge/style/_mixin.scss +11 -0
- package/es/badge/style/css.js +2 -0
- package/es/breadcrumb/style/_index.scss +38 -0
- package/es/breadcrumb/style/css.js +2 -0
- package/es/button/style/_index.scss +215 -0
- package/es/button/style/_mixin.scss +45 -0
- package/es/button/style/css.js +2 -0
- package/es/calendar/style/_index.scss +190 -0
- package/es/calendar/style/css.js +2 -0
- package/es/card/style/_index.scss +57 -0
- package/es/card/style/_mixin.scss +4 -0
- package/es/card/style/css.js +2 -0
- package/es/carousel/style/_index.scss +158 -0
- package/es/carousel/style/css.js +2 -0
- package/es/cascader/style/_index.scss +162 -0
- package/es/cascader/style/css.js +2 -0
- package/es/checkbox/style/_index.scss +139 -0
- package/es/checkbox/style/css.js +2 -0
- package/es/collapse/style/_index.scss +101 -0
- package/es/collapse/style/css.js +2 -0
- package/es/collapse-transition/style/_index.scss +4 -0
- package/es/collapse-transition/style/css.js +2 -0
- package/es/color-picker/style/_index.scss +196 -0
- package/es/color-picker/style/css.js +2 -0
- package/es/date-picker/style/_index.scss +272 -0
- package/es/date-picker/style/css.js +2 -0
- package/es/descriptions/style/_index.scss +116 -0
- package/es/descriptions/style/css.js +2 -0
- package/es/divider/style/_index.scss +80 -0
- package/es/divider/style/css.js +2 -0
- package/es/drawer/style/_index.scss +152 -0
- package/es/drawer/style/css.js +4 -0
- package/es/dropdown/style/_index.scss +37 -0
- package/es/dropdown/style/css.js +4 -0
- package/es/empty/style/_index.scss +26 -0
- package/es/empty/style/css.js +2 -0
- package/es/flex/style/_index.scss +5 -0
- package/es/flex/style/css.js +2 -0
- package/es/flip/style/_index.scss +61 -0
- package/es/flip/style/css.js +2 -0
- package/es/form/style/_index.scss +93 -0
- package/es/form/style/css.js +3 -0
- package/es/grid/style/_index.scss +90 -0
- package/es/grid/style/css.js +2 -0
- package/es/icon/style/_index.scss +16 -0
- package/es/icon/style/css.js +2 -0
- package/es/image/style/_index.scss +9 -0
- package/es/image/style/css.js +2 -0
- package/es/input/style/_index.scss +180 -0
- package/es/input/style/_mixin.scss +38 -0
- package/es/input/style/css.js +2 -0
- package/es/input-number/style/_index.scss +142 -0
- package/es/input-number/style/css.js +3 -0
- package/es/input-password/style/_index.scss +20 -0
- package/es/input-password/style/css.js +3 -0
- package/es/keyboard/style/_index.scss +23 -0
- package/es/keyboard/style/css.js +2 -0
- package/es/layout/style/_index.scss +82 -0
- package/es/layout/style/css.js +2 -0
- package/es/link/style/_index.scss +17 -0
- package/es/link/style/css.js +2 -0
- package/es/list/style/_index.scss +141 -0
- package/es/list/style/css.js +2 -0
- package/es/loader/style/_index.scss +142 -0
- package/es/loader/style/css.js +2 -0
- package/es/loading-bar/style/_index.scss +17 -0
- package/es/loading-bar/style/css.js +2 -0
- package/es/menu/style/_index.scss +183 -0
- package/es/menu/style/_mixin.scss +16 -0
- package/es/menu/style/css.js +4 -0
- package/es/message/style/_index.scss +59 -0
- package/es/message/style/css.js +2 -0
- package/es/modal/style/_index.scss +116 -0
- package/es/modal/style/css.js +5 -0
- package/es/native-select/style/_index.scss +65 -0
- package/es/native-select/style/_mixin.scss +4 -0
- package/es/native-select/style/css.js +2 -0
- package/es/notification/style/_index.scss +66 -0
- package/es/notification/style/css.js +2 -0
- package/es/overlay/style/_index.scss +51 -0
- package/es/overlay/style/css.js +2 -0
- package/es/pagination/style/_index.scss +143 -0
- package/es/pagination/style/css.js +2 -0
- package/es/pop-confirm/style/_index.scss +25 -0
- package/es/pop-confirm/style/css.js +5 -0
- package/es/popover/style/_index.scss +42 -0
- package/es/popover/style/css.js +4 -0
- package/es/popup/style/_index.scss +84 -0
- package/es/popup/style/css.js +4 -0
- package/es/progress/style/_index.scss +170 -0
- package/es/progress/style/css.js +2 -0
- package/es/radio/style/_index.scss +86 -0
- package/es/radio/style/css.js +2 -0
- package/es/rate/style/_index.scss +31 -0
- package/es/rate/style/css.js +2 -0
- package/es/result/style/_index.scss +48 -0
- package/es/result/style/css.js +2 -0
- package/es/scroll-indicator/style/_index.scss +15 -0
- package/es/scroll-indicator/style/css.js +2 -0
- package/es/segmented/style/_index.scss +93 -0
- package/es/segmented/style/css.js +2 -0
- package/es/select/style/_index.scss +313 -0
- package/es/select/style/css.js +4 -0
- package/es/skeleton/style/_index.scss +42 -0
- package/es/skeleton/style/css.js +2 -0
- package/es/slider/style/_index.scss +177 -0
- package/es/slider/style/css.js +4 -0
- package/es/space/style/_index.scss +25 -0
- package/es/space/style/css.js +2 -0
- package/es/speed-dial/style/_index.scss +230 -0
- package/es/speed-dial/style/css.js +2 -0
- package/es/split/style/_index.scss +98 -0
- package/es/split/style/css.js +2 -0
- package/es/split-button/style/_index.scss +9 -0
- package/es/split-button/style/css.js +5 -0
- package/es/statistic/style/_index.scss +31 -0
- package/es/statistic/style/css.js +2 -0
- package/es/steps/style/_index.scss +208 -0
- package/es/steps/style/css.js +2 -0
- package/es/sticky/style/_index.scss +8 -0
- package/es/sticky/style/css.js +2 -0
- package/es/strength-indicator/style/_index.scss +46 -0
- package/es/strength-indicator/style/css.js +2 -0
- package/es/style/_animation.scss +31 -0
- package/es/style/_component.scss +78 -0
- package/es/style/_font.scss +981 -0
- package/es/style/_mixins.scss +13 -0
- package/es/style/_normalise.scss +405 -0
- package/es/style/_theme.scss +26 -0
- package/es/style/_tokens.scss +61 -0
- package/es/style/_variables.scss +266 -0
- package/es/style/fonts/iconfont.eot +0 -0
- package/es/style/fonts/iconfont.svg +752 -0
- package/es/style/fonts/iconfont.ttf +0 -0
- package/es/style/fonts/iconfont.woff +0 -0
- package/es/style/index.css +10048 -0
- package/es/style/index.scss +7 -0
- package/es/style/themes/_dark.scss +380 -0
- package/es/style/themes/_light.scss +380 -0
- package/es/switch/style/_index.scss +144 -0
- package/es/switch/style/_mixin.scss +16 -0
- package/es/switch/style/css.js +2 -0
- package/es/table/style/_index.scss +143 -0
- package/es/table/style/css.js +2 -0
- package/es/tabs/style/css.js +2 -0
- package/es/tabs/style/index.css +241 -0
- package/es/tabs/style/index.scss +315 -0
- package/es/tag/style/_index.scss +119 -0
- package/es/tag/style/css.js +2 -0
- package/es/textarea/style/_index.scss +28 -0
- package/es/textarea/style/css.js +4 -0
- package/es/time-picker/style/_index.scss +212 -0
- package/es/time-picker/style/css.js +2 -0
- package/es/timeline/style/_index.scss +91 -0
- package/es/timeline/style/css.js +2 -0
- package/es/tooltip/style/_index.scss +41 -0
- package/es/tooltip/style/css.js +4 -0
- package/es/transfer/style/_index.scss +98 -0
- package/es/transfer/style/css.js +6 -0
- package/es/transition/style/_index.scss +20 -0
- package/es/transition/style/_mixin.scss +58 -0
- package/es/transition/style/css.js +2 -0
- package/es/tree/style/_index.scss +66 -0
- package/es/tree/style/css.js +4 -0
- package/es/typography/style/_index.scss +126 -0
- package/es/typography/style/css.js +2 -0
- package/es/upload/style/_index.scss +99 -0
- package/es/upload/style/css.js +4 -0
- package/lib/alert/style/_index.scss +72 -0
- package/lib/alert/style/_mixin.scss +5 -0
- package/lib/alert/style/css.js +4 -0
- package/lib/anchor/style/_index.scss +83 -0
- package/lib/anchor/style/css.js +5 -0
- package/lib/aspect-ratio/style/_index.scss +22 -0
- package/lib/aspect-ratio/style/css.js +4 -0
- package/lib/auto-complete/style/_index.scss +58 -0
- package/lib/auto-complete/style/css.js +4 -0
- package/lib/avatar/style/_index.scss +80 -0
- package/lib/avatar/style/css.js +4 -0
- package/lib/back-top/style/_index.scss +25 -0
- package/lib/back-top/style/css.js +4 -0
- package/lib/badge/style/_index.scss +60 -0
- package/lib/badge/style/_mixin.scss +11 -0
- package/lib/badge/style/css.js +4 -0
- package/lib/breadcrumb/style/_index.scss +38 -0
- package/lib/breadcrumb/style/css.js +4 -0
- package/lib/button/style/_index.scss +215 -0
- package/lib/button/style/_mixin.scss +45 -0
- package/lib/button/style/css.js +4 -0
- package/lib/calendar/style/_index.scss +190 -0
- package/lib/calendar/style/css.js +4 -0
- package/lib/card/style/_index.scss +57 -0
- package/lib/card/style/_mixin.scss +4 -0
- package/lib/card/style/css.js +4 -0
- package/lib/carousel/style/_index.scss +158 -0
- package/lib/carousel/style/css.js +4 -0
- package/lib/cascader/style/_index.scss +162 -0
- package/lib/cascader/style/css.js +4 -0
- package/lib/checkbox/style/_index.scss +139 -0
- package/lib/checkbox/style/css.js +4 -0
- package/lib/collapse/style/_index.scss +101 -0
- package/lib/collapse/style/css.js +4 -0
- package/lib/collapse-transition/style/_index.scss +4 -0
- package/lib/collapse-transition/style/css.js +4 -0
- package/lib/color-picker/style/_index.scss +196 -0
- package/lib/color-picker/style/css.js +4 -0
- package/lib/date-picker/style/_index.scss +272 -0
- package/lib/date-picker/style/css.js +4 -0
- package/lib/descriptions/style/_index.scss +116 -0
- package/lib/descriptions/style/css.js +4 -0
- package/lib/divider/style/_index.scss +80 -0
- package/lib/divider/style/css.js +4 -0
- package/lib/drawer/style/_index.scss +152 -0
- package/lib/drawer/style/css.js +6 -0
- package/lib/dropdown/style/_index.scss +37 -0
- package/lib/dropdown/style/css.js +6 -0
- package/lib/empty/style/_index.scss +26 -0
- package/lib/empty/style/css.js +4 -0
- package/lib/flex/style/_index.scss +5 -0
- package/lib/flex/style/css.js +4 -0
- package/lib/flip/style/_index.scss +61 -0
- package/lib/flip/style/css.js +4 -0
- package/lib/form/style/_index.scss +93 -0
- package/lib/form/style/css.js +5 -0
- package/lib/grid/style/_index.scss +90 -0
- package/lib/grid/style/css.js +4 -0
- package/lib/icon/style/_index.scss +16 -0
- package/lib/icon/style/css.js +4 -0
- package/lib/image/style/_index.scss +9 -0
- package/lib/image/style/css.js +4 -0
- package/lib/input/style/_index.scss +180 -0
- package/lib/input/style/_mixin.scss +38 -0
- package/lib/input/style/css.js +4 -0
- package/lib/input-number/style/_index.scss +142 -0
- package/lib/input-number/style/css.js +5 -0
- package/lib/input-password/style/_index.scss +20 -0
- package/lib/input-password/style/css.js +5 -0
- package/lib/keyboard/style/_index.scss +23 -0
- package/lib/keyboard/style/css.js +4 -0
- package/lib/layout/style/_index.scss +82 -0
- package/lib/layout/style/css.js +4 -0
- package/lib/link/style/_index.scss +17 -0
- package/lib/link/style/css.js +4 -0
- package/lib/list/style/_index.scss +141 -0
- package/lib/list/style/css.js +4 -0
- package/lib/loader/style/_index.scss +142 -0
- package/lib/loader/style/css.js +4 -0
- package/lib/loading-bar/style/_index.scss +17 -0
- package/lib/loading-bar/style/css.js +4 -0
- package/lib/menu/style/_index.scss +183 -0
- package/lib/menu/style/_mixin.scss +16 -0
- package/lib/menu/style/css.js +6 -0
- package/lib/message/style/_index.scss +59 -0
- package/lib/message/style/css.js +4 -0
- package/lib/modal/style/_index.scss +116 -0
- package/lib/modal/style/css.js +7 -0
- package/lib/native-select/style/_index.scss +65 -0
- package/lib/native-select/style/_mixin.scss +4 -0
- package/lib/native-select/style/css.js +4 -0
- package/lib/notification/style/_index.scss +66 -0
- package/lib/notification/style/css.js +4 -0
- package/lib/overlay/style/_index.scss +51 -0
- package/lib/overlay/style/css.js +4 -0
- package/lib/pagination/style/_index.scss +143 -0
- package/lib/pagination/style/css.js +4 -0
- package/lib/pop-confirm/style/_index.scss +25 -0
- package/lib/pop-confirm/style/css.js +7 -0
- package/lib/popover/style/_index.scss +42 -0
- package/lib/popover/style/css.js +6 -0
- package/lib/popup/style/_index.scss +84 -0
- package/lib/popup/style/css.js +6 -0
- package/lib/progress/style/_index.scss +170 -0
- package/lib/progress/style/css.js +4 -0
- package/lib/radio/style/_index.scss +86 -0
- package/lib/radio/style/css.js +4 -0
- package/lib/rate/style/_index.scss +31 -0
- package/lib/rate/style/css.js +4 -0
- package/lib/result/style/_index.scss +48 -0
- package/lib/result/style/css.js +4 -0
- package/lib/scroll-indicator/style/_index.scss +15 -0
- package/lib/scroll-indicator/style/css.js +4 -0
- package/lib/segmented/style/_index.scss +93 -0
- package/lib/segmented/style/css.js +4 -0
- package/lib/select/style/_index.scss +313 -0
- package/lib/select/style/css.js +6 -0
- package/lib/skeleton/style/_index.scss +42 -0
- package/lib/skeleton/style/css.js +4 -0
- package/lib/slider/style/_index.scss +177 -0
- package/lib/slider/style/css.js +6 -0
- package/lib/space/style/_index.scss +25 -0
- package/lib/space/style/css.js +4 -0
- package/lib/speed-dial/style/_index.scss +230 -0
- package/lib/speed-dial/style/css.js +4 -0
- package/lib/split/style/_index.scss +98 -0
- package/lib/split/style/css.js +4 -0
- package/lib/split-button/style/_index.scss +9 -0
- package/lib/split-button/style/css.js +7 -0
- package/lib/statistic/style/_index.scss +31 -0
- package/lib/statistic/style/css.js +4 -0
- package/lib/steps/style/_index.scss +208 -0
- package/lib/steps/style/css.js +4 -0
- package/lib/sticky/style/_index.scss +8 -0
- package/lib/sticky/style/css.js +4 -0
- package/lib/strength-indicator/style/_index.scss +46 -0
- package/lib/strength-indicator/style/css.js +4 -0
- package/lib/style/_animation.scss +31 -0
- package/lib/style/_component.scss +78 -0
- package/lib/style/_font.scss +981 -0
- package/lib/style/_mixins.scss +13 -0
- package/lib/style/_normalise.scss +405 -0
- package/lib/style/_theme.scss +26 -0
- package/lib/style/_tokens.scss +61 -0
- package/lib/style/_variables.scss +266 -0
- package/lib/style/fonts/iconfont.eot +0 -0
- package/lib/style/fonts/iconfont.svg +752 -0
- package/lib/style/fonts/iconfont.ttf +0 -0
- package/lib/style/fonts/iconfont.woff +0 -0
- package/lib/style/index.css +10048 -0
- package/lib/style/index.scss +7 -0
- package/lib/style/themes/_dark.scss +380 -0
- package/lib/style/themes/_light.scss +380 -0
- package/lib/switch/style/_index.scss +144 -0
- package/lib/switch/style/_mixin.scss +16 -0
- package/lib/switch/style/css.js +4 -0
- package/lib/table/style/_index.scss +143 -0
- package/lib/table/style/css.js +4 -0
- package/lib/tabs/style/css.js +4 -0
- package/lib/tabs/style/index.css +241 -0
- package/lib/tabs/style/index.scss +315 -0
- package/lib/tag/style/_index.scss +119 -0
- package/lib/tag/style/css.js +4 -0
- package/lib/textarea/style/_index.scss +28 -0
- package/lib/textarea/style/css.js +6 -0
- package/lib/time-picker/style/_index.scss +212 -0
- package/lib/time-picker/style/css.js +4 -0
- package/lib/timeline/style/_index.scss +91 -0
- package/lib/timeline/style/css.js +4 -0
- package/lib/tooltip/style/_index.scss +41 -0
- package/lib/tooltip/style/css.js +6 -0
- package/lib/transfer/style/_index.scss +98 -0
- package/lib/transfer/style/css.js +8 -0
- package/lib/transition/style/_index.scss +20 -0
- package/lib/transition/style/_mixin.scss +58 -0
- package/lib/transition/style/css.js +4 -0
- package/lib/tree/style/_index.scss +66 -0
- package/lib/tree/style/css.js +6 -0
- package/lib/typography/style/_index.scss +126 -0
- package/lib/typography/style/css.js +4 -0
- package/lib/upload/style/_index.scss +99 -0
- package/lib/upload/style/css.js +6 -0
- package/package.json +1 -1
|
@@ -0,0 +1,380 @@
|
|
|
1
|
+
// Light theme token values
|
|
2
|
+
$light-theme: (
|
|
3
|
+
// ---- Background ----
|
|
4
|
+
color-bg: #fff,
|
|
5
|
+
color-bg-elevated: #fff,
|
|
6
|
+
color-bg-container: #fff,
|
|
7
|
+
color-bg-spotlight: #f5f5f5,
|
|
8
|
+
color-bg-disabled: #f5f5f5,
|
|
9
|
+
color-bg-layout: #fff,
|
|
10
|
+
|
|
11
|
+
// ---- Text ----
|
|
12
|
+
color-text: rgba(0, 0, 0, 0.85),
|
|
13
|
+
color-text-secondary: rgba(0, 0, 0, 0.65),
|
|
14
|
+
color-text-tertiary: rgba(0, 0, 0, 0.45),
|
|
15
|
+
color-text-quaternary: rgba(0, 0, 0, 0.25),
|
|
16
|
+
color-text-heading: rgba(0, 0, 0, 0.85),
|
|
17
|
+
color-text-label: rgba(0, 0, 0, 0.85),
|
|
18
|
+
color-text-placeholder: #bfbfbf,
|
|
19
|
+
|
|
20
|
+
// ---- Primary ----
|
|
21
|
+
color-primary: #6e41bf,
|
|
22
|
+
color-primary-hover: #8b62d0,
|
|
23
|
+
color-primary-active: #5a30a8,
|
|
24
|
+
color-primary-bg: #f3eefa,
|
|
25
|
+
color-primary-border: #c4a7e6,
|
|
26
|
+
color-primary-bg-hover: #ece3f7,
|
|
27
|
+
color-primary-text-hover: #8b62d0,
|
|
28
|
+
|
|
29
|
+
// ---- Border ----
|
|
30
|
+
color-border: #d9d9d9,
|
|
31
|
+
color-border-secondary: #e8e8e8,
|
|
32
|
+
color-border-light: #f0f0f0,
|
|
33
|
+
color-border-btn-default: #d0d0d5,
|
|
34
|
+
|
|
35
|
+
// ---- Fill ----
|
|
36
|
+
color-fill: #fafafa,
|
|
37
|
+
color-fill-secondary: #f5f5f5,
|
|
38
|
+
color-fill-tertiary: #f0f0f0,
|
|
39
|
+
|
|
40
|
+
// ---- Success ----
|
|
41
|
+
color-success: #52c41a,
|
|
42
|
+
color-success-bg: #f6ffed,
|
|
43
|
+
color-success-border: #b7eb8f,
|
|
44
|
+
color-success-text: #49b10e,
|
|
45
|
+
|
|
46
|
+
// ---- Warning ----
|
|
47
|
+
color-warning: #ff9800,
|
|
48
|
+
color-warning-bg: #fffbe6,
|
|
49
|
+
color-warning-border: #ffe58f,
|
|
50
|
+
color-warning-text: #d48806,
|
|
51
|
+
|
|
52
|
+
// ---- Danger / Error ----
|
|
53
|
+
color-danger: #f44336,
|
|
54
|
+
color-danger-bg: #fff1f0,
|
|
55
|
+
color-danger-border: #ffa39e,
|
|
56
|
+
color-danger-text: #cf1322,
|
|
57
|
+
color-danger-hover: #ff7875,
|
|
58
|
+
|
|
59
|
+
// ---- Info ----
|
|
60
|
+
color-info: #1890ff,
|
|
61
|
+
color-info-bg: #e6f7ff,
|
|
62
|
+
color-info-border: #91d5ff,
|
|
63
|
+
color-info-text: #096dd9,
|
|
64
|
+
|
|
65
|
+
// ---- Shadows ----
|
|
66
|
+
shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075),
|
|
67
|
+
shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15),
|
|
68
|
+
shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175),
|
|
69
|
+
shadow-popup: 0 3px 6px -4px rgba(0, 0, 0, 0.12) #{','} 0 6px 16px 0 rgba(0, 0, 0, 0.08) #{','} 0 9px 28px 8px rgba(0, 0, 0, 0.05),
|
|
70
|
+
shadow-card: 0 1px 6px rgba(0, 0, 0, 0.12),
|
|
71
|
+
shadow-modal: 0 4px 12px rgba(0, 0, 0, 0.15),
|
|
72
|
+
shadow-btn: inset 0 1px 0 rgba(255, 255, 255, 0.15) #{','} 0 1px 1px rgba(0, 0, 0, 0.075),
|
|
73
|
+
|
|
74
|
+
// ---- Overlay ----
|
|
75
|
+
color-overlay-bg: rgba(0, 0, 0, 0.55),
|
|
76
|
+
color-overlay-inverted: rgba(255, 255, 255, 0.75),
|
|
77
|
+
|
|
78
|
+
// ---- Component-specific: Button ----
|
|
79
|
+
btn-default-color: #32325d,
|
|
80
|
+
btn-default-bg: #fff,
|
|
81
|
+
btn-default-border: #d0d0d5,
|
|
82
|
+
btn-default-hover-bg: #fff,
|
|
83
|
+
btn-default-hover-border: #6e41bf,
|
|
84
|
+
btn-default-hover-color: #6e41bf,
|
|
85
|
+
btn-default-active-bg: #f2f2f2,
|
|
86
|
+
btn-default-active-border: #6e41bf,
|
|
87
|
+
btn-default-active-color: #6e41bf,
|
|
88
|
+
btn-disabled-color: rgba(0, 0, 0, 0.25),
|
|
89
|
+
btn-disabled-bg: #f5f5f5,
|
|
90
|
+
btn-disabled-border: #d9d9d9,
|
|
91
|
+
btn-loading-bg: #fff,
|
|
92
|
+
btn-ghost-hover-bg: #f3eefa,
|
|
93
|
+
btn-ghost-active-bg: #ece3f7,
|
|
94
|
+
btn-outline-hover-bg: #f3eefa,
|
|
95
|
+
btn-outline-active-bg: #ece3f7,
|
|
96
|
+
btn-link-disabled-color: rgba(0, 0, 0, 0.25),
|
|
97
|
+
|
|
98
|
+
// ---- Component-specific: Input ----
|
|
99
|
+
input-bg: #fff,
|
|
100
|
+
input-border: #d9d9d9,
|
|
101
|
+
input-disabled-bg: #f4f4f5,
|
|
102
|
+
input-disabled-color: #999,
|
|
103
|
+
input-addon-bg: #fafafa,
|
|
104
|
+
input-focus-shadow: 0 0 0 2px rgba(110, 65, 191, 0.2),
|
|
105
|
+
input-focus-border: rgba(110, 65, 191, 0.8),
|
|
106
|
+
|
|
107
|
+
// ---- Component-specific: Select ----
|
|
108
|
+
select-dropdown-bg: #fff,
|
|
109
|
+
select-option-active-bg: #f5f5f5,
|
|
110
|
+
select-option-selected-bg: #f3eefa,
|
|
111
|
+
select-option-disabled-bg: #fff,
|
|
112
|
+
|
|
113
|
+
// ---- Component-specific: Card ----
|
|
114
|
+
card-bg: #fff,
|
|
115
|
+
card-border: #e8e8e8,
|
|
116
|
+
card-header-color: rgba(0, 0, 0, 0.85),
|
|
117
|
+
card-shadow-border: rgba(0, 0, 0, 0.07),
|
|
118
|
+
|
|
119
|
+
// ---- Component-specific: Modal ----
|
|
120
|
+
modal-bg: #fff,
|
|
121
|
+
modal-header-bg: #fff,
|
|
122
|
+
modal-header-border: #e8e8e8,
|
|
123
|
+
modal-footer-border: #e8e8e8,
|
|
124
|
+
|
|
125
|
+
// ---- Component-specific: Drawer ----
|
|
126
|
+
drawer-bg: #fff,
|
|
127
|
+
drawer-border: #e8e8e8,
|
|
128
|
+
|
|
129
|
+
// ---- Component-specific: Menu ----
|
|
130
|
+
menu-light-bg: #fff,
|
|
131
|
+
menu-light-color: #32325d,
|
|
132
|
+
menu-light-border: #f0f0f0,
|
|
133
|
+
menu-dark-bg: #001529,
|
|
134
|
+
menu-dark-color: rgba(255, 255, 255, 0.65),
|
|
135
|
+
menu-dark-border: #001529,
|
|
136
|
+
menu-divider-color: rgba(0, 0, 0, 0.1),
|
|
137
|
+
menu-group-title-color: rgba(0, 0, 0, 0.45),
|
|
138
|
+
|
|
139
|
+
// ---- Component-specific: Notification / Message ----
|
|
140
|
+
notification-bg: #fff,
|
|
141
|
+
notification-close-color: rgba(0, 0, 0, 0.2),
|
|
142
|
+
notification-close-hover: rgba(0, 0, 0, 0.7),
|
|
143
|
+
message-bg: #fff,
|
|
144
|
+
|
|
145
|
+
// ---- Component-specific: Badge ----
|
|
146
|
+
badge-shadow: 0 0 0 1.5px #fff,
|
|
147
|
+
|
|
148
|
+
// ---- Component-specific: Tag ----
|
|
149
|
+
tag-bg: #fafafa,
|
|
150
|
+
tag-border: #d9d9d9,
|
|
151
|
+
tag-checkable-bg: #fff,
|
|
152
|
+
tag-magenta-color: #eb2f96,
|
|
153
|
+
tag-magenta-bg: #fff0f6,
|
|
154
|
+
tag-magenta-border: #ffadd2,
|
|
155
|
+
tag-red-color: #f5222d,
|
|
156
|
+
tag-red-bg: #fff1f0,
|
|
157
|
+
tag-red-border: #ffa39e,
|
|
158
|
+
tag-volcano-color: #fa541c,
|
|
159
|
+
tag-volcano-bg: #fff2e8,
|
|
160
|
+
tag-volcano-border: #ffbb96,
|
|
161
|
+
tag-orange-color: #fa8c16,
|
|
162
|
+
tag-orange-bg: #fff7e6,
|
|
163
|
+
tag-orange-border: #ffd591,
|
|
164
|
+
tag-gold-color: #faad14,
|
|
165
|
+
tag-gold-bg: #fffbe6,
|
|
166
|
+
tag-gold-border: #ffe58f,
|
|
167
|
+
tag-lime-color: #a0d911,
|
|
168
|
+
tag-lime-bg: #fcffe6,
|
|
169
|
+
tag-lime-border: #eaff8f,
|
|
170
|
+
tag-green-color: #52c41a,
|
|
171
|
+
tag-green-bg: #f6ffed,
|
|
172
|
+
tag-green-border: #b7eb8f,
|
|
173
|
+
tag-cyan-color: #13c2c2,
|
|
174
|
+
tag-cyan-bg: #e6fffb,
|
|
175
|
+
tag-cyan-border: #87e8de,
|
|
176
|
+
tag-blue-color: #1890ff,
|
|
177
|
+
tag-blue-bg: #e6f7ff,
|
|
178
|
+
tag-blue-border: #91d5ff,
|
|
179
|
+
tag-geekblue-color: #2f54eb,
|
|
180
|
+
tag-geekblue-bg: #f0f5ff,
|
|
181
|
+
tag-geekblue-border: #adc6ff,
|
|
182
|
+
tag-purple-color: #722ed1,
|
|
183
|
+
tag-purple-bg: #f9f0ff,
|
|
184
|
+
tag-purple-border: #d3adf7,
|
|
185
|
+
|
|
186
|
+
// ---- Component-specific: Tabs ----
|
|
187
|
+
tabs-border: #f0f0f0,
|
|
188
|
+
tabs-card-bg: #fafafa,
|
|
189
|
+
tabs-card-active-bg: #fff,
|
|
190
|
+
|
|
191
|
+
// ---- Component-specific: Collapse ----
|
|
192
|
+
collapse-bg: #fafafa,
|
|
193
|
+
collapse-border: #d9d9d9,
|
|
194
|
+
collapse-content-bg: #fff,
|
|
195
|
+
collapse-header-hover-bg: #efefef,
|
|
196
|
+
collapse-borderless-bg: #fff,
|
|
197
|
+
|
|
198
|
+
// ---- Component-specific: Descriptions ----
|
|
199
|
+
descriptions-label-bg: #fafafa,
|
|
200
|
+
descriptions-border: #dfe2e5,
|
|
201
|
+
|
|
202
|
+
// ---- Component-specific: Steps ----
|
|
203
|
+
steps-tail-color: #dcdcdc,
|
|
204
|
+
steps-icon-bg: #fff,
|
|
205
|
+
|
|
206
|
+
// ---- Component-specific: Timeline ----
|
|
207
|
+
timeline-line-color: #e8e8e8,
|
|
208
|
+
timeline-dot-bg: #fff,
|
|
209
|
+
timeline-head-bg: #fff,
|
|
210
|
+
|
|
211
|
+
// ---- Component-specific: Slider ----
|
|
212
|
+
slider-rail-bg: #e4e8f1,
|
|
213
|
+
slider-thumb-bg: rgb(245, 248, 250),
|
|
214
|
+
slider-thumb-border: #9570d4,
|
|
215
|
+
slider-dot-bg: #fff,
|
|
216
|
+
slider-dot-border: #f0f0f0,
|
|
217
|
+
slider-dot-active-border: #9570d4,
|
|
218
|
+
slider-mark-color: rgba(0, 0, 0, 0.4),
|
|
219
|
+
slider-mark-active-color: rgba(0, 0, 0, 0.7),
|
|
220
|
+
|
|
221
|
+
// ---- Component-specific: Progress ----
|
|
222
|
+
progress-trail-bg: #e4e8f1,
|
|
223
|
+
progress-text-color: #48576a,
|
|
224
|
+
progress-circle-trail: #e5e9f2,
|
|
225
|
+
|
|
226
|
+
// ---- Component-specific: Skeleton ----
|
|
227
|
+
skeleton-bg: #f2f2f2,
|
|
228
|
+
skeleton-shimmer: linear-gradient(to right, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%),
|
|
229
|
+
|
|
230
|
+
// ---- Component-specific: Keyboard ----
|
|
231
|
+
kbd-bg: #f6f6f6,
|
|
232
|
+
kbd-border: #d8d8d8,
|
|
233
|
+
kbd-border-bottom: #ccc,
|
|
234
|
+
kbd-color: #333,
|
|
235
|
+
kbd-shadow: inset 0 -1px 0 #ccc,
|
|
236
|
+
|
|
237
|
+
// ---- Component-specific: Transfer ----
|
|
238
|
+
transfer-border: #d9d9d9,
|
|
239
|
+
transfer-header-bg: #fff,
|
|
240
|
+
transfer-item-hover-bg: #f5f5f5,
|
|
241
|
+
transfer-footer-bg: #fff,
|
|
242
|
+
transfer-footer-border: #f0f0f0,
|
|
243
|
+
|
|
244
|
+
// ---- Component-specific: Upload ----
|
|
245
|
+
upload-dragger-bg: #fafafa,
|
|
246
|
+
upload-dragger-border: #d9d9d9,
|
|
247
|
+
upload-dragger-hover-bg: #efefef,
|
|
248
|
+
upload-item-hover-bg: #f5f5f5,
|
|
249
|
+
|
|
250
|
+
// ---- Component-specific: Date/Time picker ----
|
|
251
|
+
picker-input-bg: #fff,
|
|
252
|
+
picker-dropdown-bg: #fff,
|
|
253
|
+
picker-cell-hover-bg: #f5f5f5,
|
|
254
|
+
picker-cell-selected-hover-bg: #5a30a8,
|
|
255
|
+
picker-cell-disabled-bg: #f5f5f5,
|
|
256
|
+
picker-clear-bg: #fff,
|
|
257
|
+
|
|
258
|
+
// ---- Component-specific: Split ----
|
|
259
|
+
split-bar-bg: #f8f8f9,
|
|
260
|
+
split-bar-border: #dcdee2,
|
|
261
|
+
split-bar-line: #d5d5d5,
|
|
262
|
+
|
|
263
|
+
// ---- Component-specific: Popup ----
|
|
264
|
+
popup-light-bg: #fff,
|
|
265
|
+
popup-dark-bg: #262626,
|
|
266
|
+
popup-arrow-shadow: rgba(0, 0, 0, 0.07),
|
|
267
|
+
|
|
268
|
+
// ---- Component-specific: Layout ----
|
|
269
|
+
layout-sidebar-bg: #12131a,
|
|
270
|
+
layout-sidebar-trigger-bg: rgb(0, 33, 64),
|
|
271
|
+
layout-sidebar-light-bg: #fff,
|
|
272
|
+
layout-sidebar-light-color: #333,
|
|
273
|
+
layout-sidebar-light-trigger-bg: #efefef,
|
|
274
|
+
layout-sidebar-light-trigger-icon: #bbb,
|
|
275
|
+
|
|
276
|
+
// ---- Component-specific: Anchor ----
|
|
277
|
+
anchor-bg: #fff,
|
|
278
|
+
anchor-ink-bg: #f0f0f0,
|
|
279
|
+
anchor-ball-bg: #fff,
|
|
280
|
+
|
|
281
|
+
// ---- Component-specific: Form ----
|
|
282
|
+
form-notice-bg: #fff7cc,
|
|
283
|
+
form-notice-color: #555,
|
|
284
|
+
form-error-color: #ff4d4f,
|
|
285
|
+
form-error-hover: #ff7875,
|
|
286
|
+
|
|
287
|
+
// ---- Component-specific: Checkbox / Radio ----
|
|
288
|
+
checkbox-bg: #fff,
|
|
289
|
+
checkbox-border: #d9d9d9,
|
|
290
|
+
checkbox-disabled-bg: #f5f5f5,
|
|
291
|
+
checkbox-check-color: #fff,
|
|
292
|
+
radio-bg: #fff,
|
|
293
|
+
radio-disabled-border: #d9d9d9,
|
|
294
|
+
radio-disabled-dot: rgba(0, 0, 0, 0.2),
|
|
295
|
+
|
|
296
|
+
// ---- Component-specific: Switch ----
|
|
297
|
+
switch-bg: rgba(0, 0, 0, 0.25),
|
|
298
|
+
switch-thumb-bg: #fff,
|
|
299
|
+
switch-thumb-border: rgba(0, 0, 0, 0.25),
|
|
300
|
+
switch-thumb-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.2),
|
|
301
|
+
|
|
302
|
+
// ---- Component-specific: Divider ----
|
|
303
|
+
divider-color: #e4e4e4,
|
|
304
|
+
divider-text-color: #333,
|
|
305
|
+
|
|
306
|
+
// ---- Component-specific: Popover ----
|
|
307
|
+
popover-dark-border: #4a4a4a,
|
|
308
|
+
|
|
309
|
+
// ---- Component-specific: Native select ----
|
|
310
|
+
native-select-bg: #fff,
|
|
311
|
+
native-select-disabled-bg: #ddd,
|
|
312
|
+
native-select-disabled-color: #a5a5a5,
|
|
313
|
+
|
|
314
|
+
// ---- Component-specific: Pagination ----
|
|
315
|
+
pagination-bg: #fff,
|
|
316
|
+
pagination-disabled-bg: #f5f5f5,
|
|
317
|
+
pagination-disabled-active-bg: #dbdbdb,
|
|
318
|
+
pagination-disabled-color: #d9d9d9,
|
|
319
|
+
|
|
320
|
+
// ---- Component-specific: Typography ----
|
|
321
|
+
typography-heading-color: rgba(0, 0, 0, 0.85),
|
|
322
|
+
typography-body-color: rgba(0, 0, 0, 0.65),
|
|
323
|
+
typography-code-bg: rgba(0, 0, 0, 0.06),
|
|
324
|
+
typography-code-border: rgba(0, 0, 0, 0.06),
|
|
325
|
+
typography-mark-bg: #ffe58f,
|
|
326
|
+
|
|
327
|
+
// ---- Component-specific: Result ----
|
|
328
|
+
result-content-bg: #fafafa,
|
|
329
|
+
|
|
330
|
+
// ---- Component-specific: Empty ----
|
|
331
|
+
empty-desc-color: rgba(0, 0, 0, 0.35),
|
|
332
|
+
|
|
333
|
+
// ---- Component-specific: Carousel ----
|
|
334
|
+
carousel-arrow-bg: rgba(0, 0, 0, 0.25),
|
|
335
|
+
carousel-arrow-hover-bg: rgba(0, 0, 0, 0.45),
|
|
336
|
+
carousel-dot-bg: rgba(255, 255, 255, 0.3),
|
|
337
|
+
carousel-dot-hover-bg: rgba(255, 255, 255, 0.6),
|
|
338
|
+
carousel-dot-active-bg: #fff,
|
|
339
|
+
|
|
340
|
+
// ---- Component-specific: Avatar ----
|
|
341
|
+
avatar-border: #fff,
|
|
342
|
+
avatar-presence-shadow: 0 0 0 0.1rem #fff,
|
|
343
|
+
|
|
344
|
+
// ---- Component-specific: BackTop ----
|
|
345
|
+
back-top-bg: rgba(0, 0, 0, 0.3),
|
|
346
|
+
|
|
347
|
+
// ---- Component-specific: Input Number ----
|
|
348
|
+
input-number-control-border: #d9d9d9,
|
|
349
|
+
input-number-control-active-bg: #f4f4f4,
|
|
350
|
+
input-number-icon-color: #999,
|
|
351
|
+
|
|
352
|
+
// ---- Component-specific: Tree ----
|
|
353
|
+
tree-arrow-color: #999,
|
|
354
|
+
tree-hover-bg: #f5f5f5,
|
|
355
|
+
|
|
356
|
+
// ---- Component-specific: Textarea ----
|
|
357
|
+
textarea-counter-color: #666,
|
|
358
|
+
|
|
359
|
+
// ---- Component-specific: Table ----
|
|
360
|
+
table-header-bg: #f6f9fc,
|
|
361
|
+
table-border: #e9ecef,
|
|
362
|
+
table-hover: #f6f9fc,
|
|
363
|
+
table-selected-bg: rgba(110, 65, 191, 0.06),
|
|
364
|
+
|
|
365
|
+
// ---- Component-specific: Segmented ----
|
|
366
|
+
segmented-bg: #e9ecef,
|
|
367
|
+
segmented-active-bg: #fff,
|
|
368
|
+
|
|
369
|
+
// ---- Component-specific: Cascader ----
|
|
370
|
+
cascader-bg: #fff,
|
|
371
|
+
cascader-border: #d9d9d9,
|
|
372
|
+
cascader-dropdown-bg: #fff,
|
|
373
|
+
cascader-hover: #f5f5f5,
|
|
374
|
+
cascader-selected-bg: rgba(110, 65, 191, 0.06),
|
|
375
|
+
|
|
376
|
+
// ---- Component-specific: Calendar ----
|
|
377
|
+
calendar-bg: #fff,
|
|
378
|
+
calendar-border: #e9ecef,
|
|
379
|
+
calendar-hover: #f6f9fc,
|
|
380
|
+
);
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
@use '../../style/variables' as *;
|
|
2
|
+
@use './mixin' as *;
|
|
3
|
+
|
|
4
|
+
.#{$prefix}-switch {
|
|
5
|
+
display: inline-block;
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
position: relative;
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
|
|
10
|
+
&__bg {
|
|
11
|
+
position: absolute;
|
|
12
|
+
top: 0;
|
|
13
|
+
left: 0;
|
|
14
|
+
bottom: 0;
|
|
15
|
+
right: 0;
|
|
16
|
+
background-color: var(--ty-switch-bg);
|
|
17
|
+
transition: background-color 300ms;
|
|
18
|
+
user-select: none;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&__thumb {
|
|
22
|
+
position: relative;
|
|
23
|
+
display: inline-flex;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
align-items: center;
|
|
26
|
+
left: 0;
|
|
27
|
+
top: 50%;
|
|
28
|
+
transform: translateX(-50%) translateY(-50%);
|
|
29
|
+
background-color: var(--ty-switch-thumb-bg);
|
|
30
|
+
border: 1px solid var(--ty-switch-thumb-border);
|
|
31
|
+
box-shadow: var(--ty-switch-thumb-shadow);
|
|
32
|
+
transition: all 300ms;
|
|
33
|
+
color: var(--ty-switch-bg);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&__label {
|
|
37
|
+
box-sizing: border-box;
|
|
38
|
+
display: block;
|
|
39
|
+
color: #fff;
|
|
40
|
+
text-align: center;
|
|
41
|
+
position: absolute;
|
|
42
|
+
left: 0;
|
|
43
|
+
right: 0;
|
|
44
|
+
top: 50%;
|
|
45
|
+
transform: translateY(-50%);
|
|
46
|
+
padding-left: 11px;
|
|
47
|
+
padding-right: 5px;
|
|
48
|
+
transition: all 300ms;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&_checked {
|
|
52
|
+
.#{$prefix}-switch {
|
|
53
|
+
&__bg {
|
|
54
|
+
background-color: var(--ty-color-primary);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&__thumb {
|
|
58
|
+
left: 100%;
|
|
59
|
+
border-color: var(--ty-color-primary);
|
|
60
|
+
color: var(--ty-color-primary);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&__label {
|
|
64
|
+
padding-left: 5px;
|
|
65
|
+
padding-right: 11px;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&_disabled {
|
|
71
|
+
cursor: not-allowed;
|
|
72
|
+
opacity: 0.4;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
//TODO: optimise
|
|
76
|
+
&_loading {
|
|
77
|
+
.#{$prefix}-switch__thumb:before {
|
|
78
|
+
display: inline-block !important;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&_sm {
|
|
83
|
+
margin: 0 10px;
|
|
84
|
+
font-size: $switch-sm-font-size;
|
|
85
|
+
width: 29px;
|
|
86
|
+
height: 14px;
|
|
87
|
+
|
|
88
|
+
.#{$prefix}-switch {
|
|
89
|
+
&__bg {
|
|
90
|
+
border-radius: 18px;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&__thumb {
|
|
94
|
+
@include switch-bg(18px);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&__label {
|
|
98
|
+
line-height: 14px;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&_md {
|
|
104
|
+
margin: 0 12px;
|
|
105
|
+
font-size: $switch-md-font-size;
|
|
106
|
+
width: 36px;
|
|
107
|
+
height: 16px;
|
|
108
|
+
|
|
109
|
+
.#{$prefix}-switch {
|
|
110
|
+
&__bg {
|
|
111
|
+
border-radius: 22px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&__thumb {
|
|
115
|
+
@include switch-bg(22px);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&__label {
|
|
119
|
+
line-height: 17px;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&_lg {
|
|
125
|
+
margin: 0 14px;
|
|
126
|
+
font-size: $switch-lg-font-size;
|
|
127
|
+
width: 42px;
|
|
128
|
+
height: 20px;
|
|
129
|
+
|
|
130
|
+
.#{$prefix}-switch {
|
|
131
|
+
&__bg {
|
|
132
|
+
border-radius: 26px;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
&__thumb {
|
|
136
|
+
@include switch-bg(26px);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&__label {
|
|
140
|
+
line-height: 20px;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
@use "../../style/mixins" as *;
|
|
2
|
+
|
|
3
|
+
@mixin switch-bg($size) {
|
|
4
|
+
width: $size;
|
|
5
|
+
height: $size;
|
|
6
|
+
border-radius: $size;
|
|
7
|
+
|
|
8
|
+
&:before {
|
|
9
|
+
content: '';
|
|
10
|
+
width: calc(($size - 22px) / 2) + 10px;
|
|
11
|
+
height: calc(($size - 22px) / 2) + 10px;
|
|
12
|
+
@include loader();
|
|
13
|
+
display: none;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
@use '../../style/variables' as *;
|
|
2
|
+
|
|
3
|
+
.#{$prefix}-table {
|
|
4
|
+
color: var(--ty-color-text, #{$gray-800});
|
|
5
|
+
font-size: $font-size-base;
|
|
6
|
+
|
|
7
|
+
&__wrapper {
|
|
8
|
+
overflow-x: auto;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&__table {
|
|
12
|
+
width: 100%;
|
|
13
|
+
border-collapse: collapse;
|
|
14
|
+
table-layout: auto;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&_bordered &__table {
|
|
18
|
+
border: 1px solid var(--ty-table-border, #{$gray-300});
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&_bordered &__cell {
|
|
22
|
+
border: 1px solid var(--ty-table-border, #{$gray-300});
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Sizes
|
|
26
|
+
&_sm &__cell {
|
|
27
|
+
padding: 8px 8px;
|
|
28
|
+
font-size: $font-size-sm;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&_md &__cell {
|
|
32
|
+
padding: 12px 16px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&_lg &__cell {
|
|
36
|
+
padding: 16px 16px;
|
|
37
|
+
font-size: $font-size-lg;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// Sticky header for virtual scroll
|
|
41
|
+
&__thead_sticky {
|
|
42
|
+
position: sticky;
|
|
43
|
+
top: 0;
|
|
44
|
+
z-index: 2;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// Spacer rows for virtual scroll
|
|
48
|
+
&__row_spacer td {
|
|
49
|
+
padding: 0 !important;
|
|
50
|
+
border: 0 !important;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// Header
|
|
54
|
+
&__thead {
|
|
55
|
+
.#{$prefix}-table__cell {
|
|
56
|
+
background: var(--ty-table-header-bg, #{$gray-100});
|
|
57
|
+
font-weight: 500;
|
|
58
|
+
border-bottom: 1px solid var(--ty-table-border, #{$gray-300});
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// Cells
|
|
63
|
+
&__cell {
|
|
64
|
+
text-align: left;
|
|
65
|
+
vertical-align: middle;
|
|
66
|
+
|
|
67
|
+
&_sortable {
|
|
68
|
+
cursor: pointer;
|
|
69
|
+
user-select: none;
|
|
70
|
+
|
|
71
|
+
&:hover {
|
|
72
|
+
background: var(--ty-table-hover, #{$gray-200});
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&_ellipsis {
|
|
77
|
+
overflow: hidden;
|
|
78
|
+
text-overflow: ellipsis;
|
|
79
|
+
white-space: nowrap;
|
|
80
|
+
max-width: 0;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&_align-center {
|
|
84
|
+
text-align: center;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&_align-right {
|
|
88
|
+
text-align: right;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// Rows
|
|
93
|
+
&__tbody &__row {
|
|
94
|
+
border-bottom: 1px solid var(--ty-table-border, #{$gray-200});
|
|
95
|
+
transition: background 0.2s;
|
|
96
|
+
|
|
97
|
+
&:hover {
|
|
98
|
+
background: var(--ty-table-hover, #{$gray-100});
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&_selected {
|
|
102
|
+
background: var(--ty-table-selected-bg, rgba(110, 65, 191, 0.06));
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
// Selection column
|
|
107
|
+
&__selection-col {
|
|
108
|
+
width: 40px;
|
|
109
|
+
text-align: center;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// Sorter
|
|
113
|
+
&__col-title {
|
|
114
|
+
display: inline;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&__sorter {
|
|
118
|
+
display: inline-flex;
|
|
119
|
+
flex-direction: column;
|
|
120
|
+
margin-left: 4px;
|
|
121
|
+
vertical-align: middle;
|
|
122
|
+
line-height: 1;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&__sorter-icon {
|
|
126
|
+
font-size: 8px;
|
|
127
|
+
line-height: 8px;
|
|
128
|
+
color: var(--ty-color-text-secondary, #{$gray-400});
|
|
129
|
+
|
|
130
|
+
&_active {
|
|
131
|
+
color: var(--ty-color-primary, #{$primary-color});
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// Empty & loading
|
|
136
|
+
&__empty-cell,
|
|
137
|
+
&__loading-cell {
|
|
138
|
+
text-align: center;
|
|
139
|
+
padding: 32px !important;
|
|
140
|
+
color: var(--ty-color-text-secondary, #{$gray-500});
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
}
|