@kdcloudjs/kdesign 1.0.2 → 1.1.0
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/LICENSE +104 -105
- package/dist/default-theme.js +17 -12
- package/dist/kdesign-complete.less +3334 -1374
- package/dist/kdesign.css +2565 -1931
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +783 -112
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +4 -4
- package/dist/kdesign.min.js +6 -6
- package/dist/kdesign.min.js.map +1 -1
- package/es/alert/style/index.css +32 -30
- package/es/alert/style/index.less +36 -37
- package/es/alert/style/token.less +29 -0
- package/es/anchor/style/index.css +48 -34
- package/es/anchor/style/index.less +19 -16
- package/es/anchor/style/mixin.less +1 -0
- package/es/anchor/style/token.less +33 -0
- package/es/avatar/style/index.css +18 -18
- package/es/avatar/style/index.less +4 -25
- package/es/avatar/style/mixin.less +21 -4
- package/es/avatar/style/token.less +20 -0
- package/es/badge/style/index.css +38 -29
- package/es/badge/style/index.less +28 -30
- package/es/badge/style/mixin.less +1 -5
- package/es/badge/style/token.less +23 -0
- package/es/base-data/style/index.css +25 -16
- package/es/base-data/style/index.less +17 -17
- package/es/base-data/style/token.less +27 -0
- package/es/button/button.d.ts +1 -3
- package/es/button/button.js +3 -15
- package/es/button/style/index.css +80 -81
- package/es/button/style/index.less +43 -51
- package/es/button/style/mixin.less +6 -4
- package/es/button/style/token.less +88 -0
- package/es/card/card.d.ts +1 -0
- package/es/card/card.js +4 -1
- package/es/card/style/index.css +48 -23
- package/es/card/style/index.less +43 -23
- package/es/card/style/token.less +28 -0
- package/es/carousel/style/index.css +36 -30
- package/es/carousel/style/index.less +14 -6
- package/es/carousel/style/mixin.less +1 -4
- package/es/carousel/style/token.less +20 -0
- package/es/cascader/cascader.js +1 -1
- package/es/cascader/style/index.css +35 -26
- package/es/cascader/style/index.less +24 -23
- package/es/cascader/style/token.less +28 -0
- package/es/checkbox/style/index.css +86 -80
- package/es/checkbox/style/index.less +26 -27
- package/es/checkbox/style/token.less +48 -0
- package/es/city-picker/style/index.css +24 -14
- package/es/city-picker/style/index.less +16 -16
- package/es/city-picker/style/token.less +25 -0
- package/es/collapse/style/index.css +37 -26
- package/es/collapse/style/index.less +7 -5
- package/es/collapse/style/mixin.less +1 -5
- package/es/collapse/style/token.less +26 -0
- package/es/config-provider/compDefaultProps.d.ts +4 -1
- package/es/config-provider/compDefaultProps.js +5 -2
- package/es/date-picker/style/index.css +81 -72
- package/es/date-picker/style/index.less +36 -36
- package/es/date-picker/style/mixin.less +20 -18
- package/es/date-picker/style/token.less +71 -0
- package/es/drawer/drawer.d.ts +0 -1
- package/es/drawer/drawer.js +6 -26
- package/es/drawer/style/index.css +37 -31
- package/es/drawer/style/index.less +24 -39
- package/es/drawer/style/token.less +23 -0
- package/es/dropdown/dropdown.d.ts +1 -0
- package/es/dropdown/dropdown.js +13 -8
- package/es/dropdown/menu.d.ts +1 -1
- package/es/dropdown/menu.js +3 -3
- package/es/dropdown/style/index.css +57 -48
- package/es/dropdown/style/index.less +27 -24
- package/es/dropdown/style/token.less +26 -0
- package/es/empty/defaultEmptyImg.d.ts +2 -0
- package/es/empty/defaultEmptyImg.js +92 -0
- package/es/empty/empty.d.ts +5 -1
- package/es/empty/empty.js +10 -9
- package/es/empty/illustrationEmptyImg.d.ts +2 -0
- package/es/empty/illustrationEmptyImg.js +439 -0
- package/es/empty/style/index.css +12 -3
- package/es/empty/style/index.less +1 -1
- package/es/empty/style/token.less +12 -0
- package/es/filter/style/index.css +44 -32
- package/es/filter/style/index.less +34 -32
- package/es/filter/style/token.less +28 -0
- package/es/form/style/index.css +19 -10
- package/es/form/style/index.less +9 -6
- package/es/form/style/token.less +27 -0
- package/es/grid/style/index.css +9 -0
- package/es/image/style/index.css +32 -23
- package/es/image/style/index.less +23 -22
- package/es/image/style/token.less +45 -0
- package/es/image-cropper/style/index.css +9 -0
- package/es/image-cropper/style/index.less +1 -1
- package/es/index.d.ts +1 -0
- package/es/index.js +2 -1
- package/es/input/style/index.css +97 -88
- package/es/input/style/index.less +34 -31
- package/es/input/style/mixin.less +54 -47
- package/es/input/style/token.less +46 -0
- package/es/input-number/style/css.js +1 -0
- package/es/input-number/style/index.css +25 -16
- package/es/input-number/style/index.d.ts +1 -0
- package/es/input-number/style/index.js +1 -0
- package/es/input-number/style/index.less +12 -12
- package/es/input-number/style/mixin.less +4 -2
- package/es/input-number/style/token.less +20 -0
- package/es/layout/style/index.css +41 -32
- package/es/layout/style/index.less +9 -8
- package/es/layout/style/token.less +30 -0
- package/es/link/index.d.ts +3 -0
- package/es/link/index.js +3 -0
- package/es/link/link.d.ts +18 -0
- package/es/link/link.js +89 -0
- package/es/link/style/css.js +2 -0
- package/es/link/style/index.css +155 -0
- package/es/link/style/index.d.ts +2 -0
- package/es/link/style/index.js +2 -0
- package/es/link/style/index.less +61 -0
- package/es/link/style/mixin.less +7 -0
- package/es/link/style/token.less +24 -0
- package/es/menu/menuItem.js +1 -2
- package/es/menu/style/index.css +89 -80
- package/es/menu/style/index.less +51 -26
- package/es/menu/style/mixin.less +16 -19
- package/es/menu/style/token.less +32 -0
- package/es/message/style/index.css +23 -13
- package/es/message/style/index.less +15 -13
- package/es/message/style/token.less +21 -0
- package/es/modal/style/index.css +37 -28
- package/es/modal/style/index.less +16 -26
- package/es/modal/style/mixin.less +2 -0
- package/es/modal/style/token.less +46 -0
- package/es/notification/content.js +1 -1
- package/es/notification/style/index.css +34 -25
- package/es/notification/style/index.less +21 -20
- package/es/notification/style/token.less +28 -0
- package/es/pagination/pagination.js +2 -2
- package/es/pagination/style/index.css +159 -159
- package/es/pagination/style/index.less +104 -113
- package/es/pagination/style/token.less +28 -0
- package/es/popconfirm/style/index.css +54 -33
- package/es/popconfirm/style/index.less +41 -20
- package/es/popconfirm/style/token.less +28 -0
- package/es/progress/style/index.css +41 -27
- package/es/progress/style/index.less +24 -8
- package/es/progress/style/mixin.less +2 -1
- package/es/progress/style/token.less +40 -0
- package/es/radio/style/index.css +91 -76
- package/es/radio/style/index.less +76 -64
- package/es/radio/style/token.less +47 -0
- package/es/rate/style/index.css +26 -17
- package/es/rate/style/index.less +4 -3
- package/es/rate/style/token.less +18 -0
- package/es/search/style/index.css +103 -82
- package/es/search/style/index.less +49 -35
- package/es/search/style/mixin.less +4 -2
- package/es/search/style/token.less +60 -0
- package/es/select/select.js +3 -14
- package/es/select/style/index.css +46 -37
- package/es/select/style/index.less +10 -10
- package/es/select/style/mixin.less +4 -7
- package/es/select/style/token.less +43 -0
- package/es/slider/slider.js +5 -13
- package/es/slider/sliderTooltip.js +0 -1
- package/es/slider/style/index.css +21 -12
- package/es/slider/style/index.less +10 -10
- package/es/slider/style/mixin.less +3 -1
- package/es/slider/style/token.less +17 -0
- package/es/space/style/index.css +9 -0
- package/es/spin/style/index.css +23 -14
- package/es/spin/style/index.less +3 -2
- package/es/spin/style/mixin.less +1 -0
- package/es/spin/style/token.less +15 -0
- package/es/split-panel/style/index.css +35 -44
- package/es/split-panel/style/index.less +16 -34
- package/es/split-panel/style/token.less +23 -0
- package/es/stepper/style/index.css +50 -25
- package/es/stepper/style/index.less +45 -11
- package/es/stepper/style/mixin.less +7 -5
- package/es/stepper/style/token.less +28 -0
- package/es/steps/Steps.js +4 -1
- package/es/steps/style/index.css +74 -37
- package/es/steps/style/index.less +281 -189
- package/es/steps/style/token.less +31 -0
- package/es/style/mixins/index.less +10 -9
- package/es/style/mixins/overlay.less +2 -2
- package/es/style/themes/default.less +22 -12
- package/es/style/themes/token.less +128 -0
- package/es/switch/style/index.css +38 -29
- package/es/switch/style/index.less +17 -6
- package/es/switch/style/mixin.less +6 -5
- package/es/switch/style/token.less +45 -0
- package/es/tabs/style/index.css +59 -50
- package/es/tabs/style/index.less +3 -3
- package/es/tabs/style/mixin.less +2 -0
- package/es/tabs/style/token.less +32 -0
- package/es/tabs/tabs.js +3 -1
- package/es/tag/style/index.css +122 -113
- package/es/tag/style/index.less +19 -19
- package/es/tag/style/mixin.less +2 -1
- package/es/tag/style/token.less +42 -0
- package/es/timeline/style/index.css +40 -30
- package/es/timeline/style/index.less +33 -30
- package/es/timeline/style/token.less +45 -0
- package/es/tooltip/style/index.css +26 -17
- package/es/tooltip/style/index.less +6 -5
- package/es/tooltip/style/token.less +20 -0
- package/es/transfer/operation.js +2 -2
- package/es/transfer/style/index.css +37 -24
- package/es/transfer/style/index.less +4 -0
- package/es/transfer/style/mixins.less +2 -0
- package/es/transfer/style/token.less +29 -0
- package/es/tree/style/index.css +37 -37
- package/es/tree/style/index.less +8 -20
- package/es/tree/style/mixin.less +1 -5
- package/es/tree/style/token.less +27 -0
- package/es/typography/style/index.css +46 -53
- package/es/typography/style/index.less +15 -15
- package/es/typography/style/mixin.less +9 -11
- package/es/typography/style/token.less +38 -0
- package/es/upload/style/index.css +41 -31
- package/es/upload/style/index.less +27 -25
- package/es/upload/style/token.less +28 -0
- package/lib/alert/style/index.css +32 -30
- package/lib/alert/style/index.less +36 -37
- package/lib/alert/style/token.less +29 -0
- package/lib/anchor/style/index.css +48 -34
- package/lib/anchor/style/index.less +19 -16
- package/lib/anchor/style/mixin.less +1 -0
- package/lib/anchor/style/token.less +33 -0
- package/lib/avatar/style/index.css +18 -18
- package/lib/avatar/style/index.less +4 -25
- package/lib/avatar/style/mixin.less +21 -4
- package/lib/avatar/style/token.less +20 -0
- package/lib/badge/style/index.css +38 -29
- package/lib/badge/style/index.less +28 -30
- package/lib/badge/style/mixin.less +1 -5
- package/lib/badge/style/token.less +23 -0
- package/lib/base-data/style/index.css +25 -16
- package/lib/base-data/style/index.less +17 -17
- package/lib/base-data/style/token.less +27 -0
- package/lib/button/button.d.ts +1 -3
- package/lib/button/button.js +3 -15
- package/lib/button/style/index.css +80 -81
- package/lib/button/style/index.less +43 -51
- package/lib/button/style/mixin.less +6 -4
- package/lib/button/style/token.less +88 -0
- package/lib/card/card.d.ts +1 -0
- package/lib/card/card.js +4 -1
- package/lib/card/style/index.css +48 -23
- package/lib/card/style/index.less +43 -23
- package/lib/card/style/token.less +28 -0
- package/lib/carousel/style/index.css +36 -30
- package/lib/carousel/style/index.less +14 -6
- package/lib/carousel/style/mixin.less +1 -4
- package/lib/carousel/style/token.less +20 -0
- package/lib/cascader/cascader.js +1 -1
- package/lib/cascader/style/index.css +35 -26
- package/lib/cascader/style/index.less +24 -23
- package/lib/cascader/style/token.less +28 -0
- package/lib/checkbox/style/index.css +86 -80
- package/lib/checkbox/style/index.less +26 -27
- package/lib/checkbox/style/token.less +48 -0
- package/lib/city-picker/style/index.css +24 -14
- package/lib/city-picker/style/index.less +16 -16
- package/lib/city-picker/style/token.less +25 -0
- package/lib/collapse/style/index.css +37 -26
- package/lib/collapse/style/index.less +7 -5
- package/lib/collapse/style/mixin.less +1 -5
- package/lib/collapse/style/token.less +26 -0
- package/lib/config-provider/compDefaultProps.d.ts +4 -1
- package/lib/config-provider/compDefaultProps.js +5 -2
- package/lib/date-picker/style/index.css +81 -72
- package/lib/date-picker/style/index.less +36 -36
- package/lib/date-picker/style/mixin.less +20 -18
- package/lib/date-picker/style/token.less +71 -0
- package/lib/drawer/drawer.d.ts +0 -1
- package/lib/drawer/drawer.js +6 -26
- package/lib/drawer/style/index.css +37 -31
- package/lib/drawer/style/index.less +24 -39
- package/lib/drawer/style/token.less +23 -0
- package/lib/dropdown/dropdown.d.ts +1 -0
- package/lib/dropdown/dropdown.js +13 -8
- package/lib/dropdown/menu.d.ts +1 -1
- package/lib/dropdown/menu.js +3 -3
- package/lib/dropdown/style/index.css +57 -48
- package/lib/dropdown/style/index.less +27 -24
- package/lib/dropdown/style/token.less +26 -0
- package/lib/empty/defaultEmptyImg.d.ts +2 -0
- package/lib/empty/defaultEmptyImg.js +113 -0
- package/lib/empty/empty.d.ts +5 -1
- package/lib/empty/empty.js +13 -9
- package/lib/empty/illustrationEmptyImg.d.ts +2 -0
- package/lib/empty/illustrationEmptyImg.js +460 -0
- package/lib/empty/style/index.css +12 -3
- package/lib/empty/style/index.less +1 -1
- package/lib/empty/style/token.less +12 -0
- package/lib/filter/style/index.css +44 -32
- package/lib/filter/style/index.less +34 -32
- package/lib/filter/style/token.less +28 -0
- package/lib/form/style/index.css +19 -10
- package/lib/form/style/index.less +9 -6
- package/lib/form/style/token.less +27 -0
- package/lib/grid/style/index.css +9 -0
- package/lib/image/style/index.css +32 -23
- package/lib/image/style/index.less +23 -22
- package/lib/image/style/token.less +45 -0
- package/lib/image-cropper/style/index.css +9 -0
- package/lib/image-cropper/style/index.less +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +8 -0
- package/lib/input/style/index.css +97 -88
- package/lib/input/style/index.less +34 -31
- package/lib/input/style/mixin.less +54 -47
- package/lib/input/style/token.less +46 -0
- package/lib/input-number/style/css.js +2 -0
- package/lib/input-number/style/index.css +25 -16
- package/lib/input-number/style/index.d.ts +1 -0
- package/lib/input-number/style/index.js +2 -0
- package/lib/input-number/style/index.less +12 -12
- package/lib/input-number/style/mixin.less +4 -2
- package/lib/input-number/style/token.less +20 -0
- package/lib/layout/style/index.css +41 -32
- package/lib/layout/style/index.less +9 -8
- package/lib/layout/style/token.less +30 -0
- package/lib/link/index.d.ts +3 -0
- package/lib/link/index.js +36 -0
- package/lib/link/link.d.ts +18 -0
- package/lib/link/link.js +120 -0
- package/lib/link/style/css.js +5 -0
- package/lib/link/style/index.css +155 -0
- package/lib/link/style/index.d.ts +2 -0
- package/lib/link/style/index.js +5 -0
- package/lib/link/style/index.less +61 -0
- package/lib/link/style/mixin.less +7 -0
- package/lib/link/style/token.less +24 -0
- package/lib/menu/menuItem.js +1 -2
- package/lib/menu/style/index.css +89 -80
- package/lib/menu/style/index.less +51 -26
- package/lib/menu/style/mixin.less +16 -19
- package/lib/menu/style/token.less +32 -0
- package/lib/message/style/index.css +23 -13
- package/lib/message/style/index.less +15 -13
- package/lib/message/style/token.less +21 -0
- package/lib/modal/style/index.css +37 -28
- package/lib/modal/style/index.less +16 -26
- package/lib/modal/style/mixin.less +2 -0
- package/lib/modal/style/token.less +46 -0
- package/lib/notification/content.js +1 -1
- package/lib/notification/style/index.css +34 -25
- package/lib/notification/style/index.less +21 -20
- package/lib/notification/style/token.less +28 -0
- package/lib/pagination/pagination.js +2 -2
- package/lib/pagination/style/index.css +159 -159
- package/lib/pagination/style/index.less +104 -113
- package/lib/pagination/style/token.less +28 -0
- package/lib/popconfirm/style/index.css +54 -33
- package/lib/popconfirm/style/index.less +41 -20
- package/lib/popconfirm/style/token.less +28 -0
- package/lib/progress/style/index.css +41 -27
- package/lib/progress/style/index.less +24 -8
- package/lib/progress/style/mixin.less +2 -1
- package/lib/progress/style/token.less +40 -0
- package/lib/radio/style/index.css +91 -76
- package/lib/radio/style/index.less +76 -64
- package/lib/radio/style/token.less +47 -0
- package/lib/rate/style/index.css +26 -17
- package/lib/rate/style/index.less +4 -3
- package/lib/rate/style/token.less +18 -0
- package/lib/search/style/index.css +103 -82
- package/lib/search/style/index.less +49 -35
- package/lib/search/style/mixin.less +4 -2
- package/lib/search/style/token.less +60 -0
- package/lib/select/select.js +3 -14
- package/lib/select/style/index.css +46 -37
- package/lib/select/style/index.less +10 -10
- package/lib/select/style/mixin.less +4 -7
- package/lib/select/style/token.less +43 -0
- package/lib/slider/slider.js +5 -13
- package/lib/slider/sliderTooltip.js +0 -1
- package/lib/slider/style/index.css +21 -12
- package/lib/slider/style/index.less +10 -10
- package/lib/slider/style/mixin.less +3 -1
- package/lib/slider/style/token.less +17 -0
- package/lib/space/style/index.css +9 -0
- package/lib/spin/style/index.css +23 -14
- package/lib/spin/style/index.less +3 -2
- package/lib/spin/style/mixin.less +1 -0
- package/lib/spin/style/token.less +15 -0
- package/lib/split-panel/style/index.css +35 -44
- package/lib/split-panel/style/index.less +16 -34
- package/lib/split-panel/style/token.less +23 -0
- package/lib/stepper/style/index.css +50 -25
- package/lib/stepper/style/index.less +45 -11
- package/lib/stepper/style/mixin.less +7 -5
- package/lib/stepper/style/token.less +28 -0
- package/lib/steps/Steps.js +4 -1
- package/lib/steps/style/index.css +74 -37
- package/lib/steps/style/index.less +281 -189
- package/lib/steps/style/token.less +31 -0
- package/lib/style/components.less +1 -0
- package/lib/style/mixins/index.less +10 -9
- package/lib/style/mixins/overlay.less +2 -2
- package/lib/style/themes/default.less +22 -12
- package/lib/style/themes/token.less +128 -0
- package/lib/switch/style/index.css +38 -29
- package/lib/switch/style/index.less +17 -6
- package/lib/switch/style/mixin.less +6 -5
- package/lib/switch/style/token.less +45 -0
- package/lib/tabs/style/index.css +59 -50
- package/lib/tabs/style/index.less +3 -3
- package/lib/tabs/style/mixin.less +2 -0
- package/lib/tabs/style/token.less +32 -0
- package/lib/tabs/tabs.js +3 -1
- package/lib/tag/style/index.css +122 -113
- package/lib/tag/style/index.less +19 -19
- package/lib/tag/style/mixin.less +2 -1
- package/lib/tag/style/token.less +42 -0
- package/lib/timeline/style/index.css +40 -30
- package/lib/timeline/style/index.less +33 -30
- package/lib/timeline/style/token.less +45 -0
- package/lib/tooltip/style/index.css +26 -17
- package/lib/tooltip/style/index.less +6 -5
- package/lib/tooltip/style/token.less +20 -0
- package/lib/transfer/operation.js +2 -2
- package/lib/transfer/style/index.css +37 -24
- package/lib/transfer/style/index.less +4 -0
- package/lib/transfer/style/mixins.less +2 -0
- package/lib/transfer/style/token.less +29 -0
- package/lib/tree/style/index.css +37 -37
- package/lib/tree/style/index.less +8 -20
- package/lib/tree/style/mixin.less +1 -5
- package/lib/tree/style/token.less +27 -0
- package/lib/typography/style/index.css +46 -53
- package/lib/typography/style/index.less +15 -15
- package/lib/typography/style/mixin.less +9 -11
- package/lib/typography/style/token.less +38 -0
- package/lib/upload/style/index.css +41 -31
- package/lib/upload/style/index.less +27 -25
- package/lib/upload/style/token.less +28 -0
- package/package.json +5 -4
- package/es/base-data/style/mixin.less +0 -5
- package/es/empty/style/mixin.less +0 -5
- package/es/form/style/mixin.less +0 -5
- package/es/steps/style/mixin.less +0 -41
- package/lib/base-data/style/mixin.less +0 -5
- package/lib/empty/style/mixin.less +0 -5
- package/lib/form/style/mixin.less +0 -5
- package/lib/steps/style/mixin.less +0 -41
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
@import '../../style/themes/token.less';
|
|
2
|
+
@import '../../style/mixins/index';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
@radio-prefix: '--@{kd-prefix}-c-radio';
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@radio-transition-fn: cubic-bezier(0.075, 0.82, 0.165, 1);
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
// color
|
|
18
|
+
@radio-font-color: var(~'@{radio-prefix}-color-font', @color-text-primary);//单选项字体颜色
|
|
19
|
+
@radio-color-theme: var(~'@{radio-prefix}-color-theme', @color-theme);//悬停/选中跟随主题色
|
|
20
|
+
@radio-color-border: var(~'@{radio-prefix}-color-border', @color-border-strong);//边框色
|
|
21
|
+
@radio-color-disabled: var(~'@{radio-prefix}-color-disabled', @color-disabled);//禁用色(全局)
|
|
22
|
+
@radio-color-background-disabled: var(~'@{radio-prefix}-color-background-disabled', @color-background-contain-disabled);//禁用色(全局)
|
|
23
|
+
@radio-color-border-disabled: var(~'@{radio-prefix}-color-border-disabled', @color-border-strong);//禁用边框色
|
|
24
|
+
@radio-color-background: var(~'@{radio-prefix}-color-background', @color-white);// 基础颜色
|
|
25
|
+
|
|
26
|
+
// font
|
|
27
|
+
@radio-font-size: var(~'@{radio-prefix}-font-size', @font-size-small);//单选项字体大小
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
//radius
|
|
33
|
+
@radio-border-width: var(~'@{radio-prefix}-radius-border-width',1px);
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
// sizing
|
|
38
|
+
@radio-circle-size:var(~'@{radio-prefix}-square-sizing-width-height',13px);//单选图标大小
|
|
39
|
+
@radio-square-height: var(~'@{radio-prefix}-square-sizing-height',32px);//单选框 高度
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
// spacing
|
|
43
|
+
@radio-margin-right: var(~'@{radio-prefix}-spacing-margin-right',8px);
|
|
44
|
+
@radio-square-padding-vertical: var(~'@{radio-prefix}-square-spacing-padding-vertical',0px); //内间距 纵向
|
|
45
|
+
@radio-square-padding-horizontal: var(~'@{radio-prefix}-square-spacing-padding-horizontal',20px);//内间距 横向 /单选框 宽度
|
|
46
|
+
@radio-padding-left: var(~'@{radio-prefix}-spacing-padding-left',6px);//图标与文字间距
|
|
47
|
+
|
package/lib/rate/style/index.css
CHANGED
|
@@ -92,6 +92,15 @@
|
|
|
92
92
|
/* ----------- Avatar ——————---- end */
|
|
93
93
|
/* ----------- AdvancedSelector ——————---- start */
|
|
94
94
|
/* ----------- AdvancedSelector ——————---- end */
|
|
95
|
+
/* ----------- motion ——————---- start */
|
|
96
|
+
/* ----------- motion ——————---- end */
|
|
97
|
+
/* ----------- transition ——————---- start */
|
|
98
|
+
/* ----------- transition ——————---- end */
|
|
99
|
+
/* ----------- zIndex ——————---- start */
|
|
100
|
+
/*
|
|
101
|
+
普通组件内部自身层级应设置在0-100间
|
|
102
|
+
*/
|
|
103
|
+
/* ----------- zIndex ——————---- end */
|
|
95
104
|
/* 多行显示省略号 */
|
|
96
105
|
/* 单行显示省略号 */
|
|
97
106
|
/** 浮层箭头样式 **/
|
|
@@ -112,13 +121,13 @@
|
|
|
112
121
|
justify-content: flex-start;
|
|
113
122
|
}
|
|
114
123
|
.kd-rate-size-large {
|
|
115
|
-
font-size: 16px;
|
|
124
|
+
font-size: var(--kd-c-rate-font-size-large, var(--kd-g-font-size-large, 16px));
|
|
116
125
|
}
|
|
117
126
|
.kd-rate-size-middle {
|
|
118
|
-
font-size: 14px;
|
|
127
|
+
font-size: var(--kd-c-rate-font-size-middle, var(--kd-g-font-size-middle, 14px));
|
|
119
128
|
}
|
|
120
129
|
.kd-rate-size-small {
|
|
121
|
-
font-size: 12px;
|
|
130
|
+
font-size: var(--kd-c-rate-font-size-small, var(--kd-g-font-size-small, 12px));
|
|
122
131
|
}
|
|
123
132
|
.kd-rate-item {
|
|
124
133
|
display: -webkit-inline-box;
|
|
@@ -132,17 +141,17 @@
|
|
|
132
141
|
-ms-flex-align: center;
|
|
133
142
|
align-items: center;
|
|
134
143
|
line-height: 100%;
|
|
135
|
-
margin-right: 10px;
|
|
144
|
+
margin-right: var(--kd-c-rate-spacing-margin-right, 10px);
|
|
136
145
|
}
|
|
137
146
|
.kd-rate-item .kd-rate-icon-view {
|
|
138
147
|
position: relative;
|
|
139
148
|
display: -webkit-inline-box;
|
|
140
149
|
display: -ms-inline-flexbox;
|
|
141
150
|
display: inline-flex;
|
|
142
|
-
-webkit-transition: -webkit-transform 0.3s;
|
|
143
|
-
transition: -webkit-transform 0.3s;
|
|
144
|
-
transition: transform 0.3s;
|
|
145
|
-
transition: transform 0.3s, -webkit-transform 0.3s;
|
|
151
|
+
-webkit-transition: -webkit-transform var(--kd-c-rate-motion-duration, var(--kd-g-duration, 0.3s));
|
|
152
|
+
transition: -webkit-transform var(--kd-c-rate-motion-duration, var(--kd-g-duration, 0.3s));
|
|
153
|
+
transition: transform var(--kd-c-rate-motion-duration, var(--kd-g-duration, 0.3s));
|
|
154
|
+
transition: transform var(--kd-c-rate-motion-duration, var(--kd-g-duration, 0.3s)), -webkit-transform var(--kd-c-rate-motion-duration, var(--kd-g-duration, 0.3s));
|
|
146
155
|
}
|
|
147
156
|
.kd-rate-item .kd-rate-icon-view:hover {
|
|
148
157
|
-webkit-transform: scale(1.2);
|
|
@@ -162,24 +171,24 @@
|
|
|
162
171
|
left: 0;
|
|
163
172
|
width: 50%;
|
|
164
173
|
overflow: hidden;
|
|
165
|
-
color: #d9d9d9;
|
|
174
|
+
color: var(--kd-c-rate-color-text-not-selected, #d9d9d9);
|
|
166
175
|
opacity: 1;
|
|
167
176
|
cursor: pointer;
|
|
168
|
-
-webkit-transition: color 0.3s;
|
|
169
|
-
transition: color 0.3s;
|
|
177
|
+
-webkit-transition: color var(--kd-c-rate-motion-duration, var(--kd-g-duration, 0.3s));
|
|
178
|
+
transition: color var(--kd-c-rate-motion-duration, var(--kd-g-duration, 0.3s));
|
|
170
179
|
}
|
|
171
180
|
.kd-rate-item .kd-rate-icon-first:hover {
|
|
172
|
-
color: #fdc200;
|
|
181
|
+
color: var(--kd-c-rate-color-text-selected, #fdc200);
|
|
173
182
|
}
|
|
174
183
|
.kd-rate-item .kd-rate-icon-second {
|
|
175
184
|
display: -webkit-inline-box;
|
|
176
185
|
display: -ms-inline-flexbox;
|
|
177
186
|
display: inline-flex;
|
|
178
|
-
color: #d9d9d9;
|
|
187
|
+
color: var(--kd-c-rate-color-text-not-selected, #d9d9d9);
|
|
179
188
|
opacity: 1;
|
|
180
189
|
cursor: pointer;
|
|
181
|
-
-webkit-transition: color 0.3s;
|
|
182
|
-
transition: color 0.3s;
|
|
190
|
+
-webkit-transition: color var(--kd-c-rate-motion-duration, var(--kd-g-duration, 0.3s));
|
|
191
|
+
transition: color var(--kd-c-rate-motion-duration, var(--kd-g-duration, 0.3s));
|
|
183
192
|
}
|
|
184
193
|
.kd-rate-item .kd-rate-icon-second-content {
|
|
185
194
|
display: -webkit-inline-box;
|
|
@@ -187,10 +196,10 @@
|
|
|
187
196
|
display: inline-flex;
|
|
188
197
|
}
|
|
189
198
|
.kd-rate-item .kd-rate-icon-second:hover {
|
|
190
|
-
color: #fdc200;
|
|
199
|
+
color: var(--kd-c-rate-color-text-selected, #fdc200);
|
|
191
200
|
}
|
|
192
201
|
.kd-rate-item .kd-rate-icon-selected {
|
|
193
|
-
color: #fdc200;
|
|
202
|
+
color: var(--kd-c-rate-color-text-selected, #fdc200);
|
|
194
203
|
opacity: 1;
|
|
195
204
|
}
|
|
196
205
|
.kd-rate-item:last-child {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@import '../../style/themes/index';
|
|
2
2
|
@import '../../style/mixins/index';
|
|
3
|
+
@import './token.less';
|
|
3
4
|
|
|
4
5
|
@rate-prefix-cls: ~'@{kd-prefix}-rate';
|
|
5
6
|
@rate-icon-prefix-cls: ~'@{rate-prefix-cls}-icon';
|
|
@@ -28,7 +29,7 @@
|
|
|
28
29
|
&-view {
|
|
29
30
|
position: relative;
|
|
30
31
|
display: inline-flex;
|
|
31
|
-
transition: transform @transition-duration;
|
|
32
|
+
transition: transform @rate-transition-duration;
|
|
32
33
|
}
|
|
33
34
|
&-view:hover {
|
|
34
35
|
transform: scale(1.2);
|
|
@@ -46,7 +47,7 @@
|
|
|
46
47
|
color: @rate-not-selected-color;
|
|
47
48
|
opacity: 1;
|
|
48
49
|
cursor: pointer;
|
|
49
|
-
transition: color @transition-duration;
|
|
50
|
+
transition: color @rate-transition-duration;
|
|
50
51
|
}
|
|
51
52
|
&-first:hover {
|
|
52
53
|
color: @rate-selected-color;
|
|
@@ -56,7 +57,7 @@
|
|
|
56
57
|
color: @rate-not-selected-color;
|
|
57
58
|
opacity: 1;
|
|
58
59
|
cursor: pointer;
|
|
59
|
-
transition: color @transition-duration;
|
|
60
|
+
transition: color @rate-transition-duration;
|
|
60
61
|
&-content {
|
|
61
62
|
display: inline-flex;
|
|
62
63
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
@import '../../style/themes/token.less';
|
|
2
|
+
|
|
3
|
+
@rate-prefix: '--@{kd-prefix}-c-rate';
|
|
4
|
+
|
|
5
|
+
// color
|
|
6
|
+
@rate-selected-color: var(~'@{rate-prefix}-color-text-selected', #fdc200);
|
|
7
|
+
@rate-not-selected-color: var(~'@{rate-prefix}-color-text-not-selected', #d9d9d9);
|
|
8
|
+
|
|
9
|
+
// font
|
|
10
|
+
@rate-small-font-size: var(~'@{rate-prefix}-font-size-small', @font-size-small);
|
|
11
|
+
@rate-middle-font-size: var(~'@{rate-prefix}-font-size-middle', @font-size-middle);
|
|
12
|
+
@rate-large-font-size: var(~'@{rate-prefix}-font-size-large', @font-size-large);
|
|
13
|
+
|
|
14
|
+
// motion
|
|
15
|
+
@rate-transition-duration: var(~'@{rate-prefix}-motion-duration', @duration-promptly);
|
|
16
|
+
|
|
17
|
+
// spacing
|
|
18
|
+
@rate-icon-margin: var(~'@{rate-prefix}-spacing-margin-right', 10px);
|
|
@@ -92,6 +92,15 @@
|
|
|
92
92
|
/* ----------- Avatar ——————---- end */
|
|
93
93
|
/* ----------- AdvancedSelector ——————---- start */
|
|
94
94
|
/* ----------- AdvancedSelector ——————---- end */
|
|
95
|
+
/* ----------- motion ——————---- start */
|
|
96
|
+
/* ----------- motion ——————---- end */
|
|
97
|
+
/* ----------- transition ——————---- start */
|
|
98
|
+
/* ----------- transition ——————---- end */
|
|
99
|
+
/* ----------- zIndex ——————---- start */
|
|
100
|
+
/*
|
|
101
|
+
普通组件内部自身层级应设置在0-100间
|
|
102
|
+
*/
|
|
103
|
+
/* ----------- zIndex ——————---- end */
|
|
95
104
|
@-webkit-keyframes SlideDownIn {
|
|
96
105
|
0% {
|
|
97
106
|
-webkit-transform: scaleY(0.8);
|
|
@@ -177,16 +186,16 @@
|
|
|
177
186
|
}
|
|
178
187
|
}
|
|
179
188
|
.kd-search {
|
|
180
|
-
border-bottom: 1px solid #d9d9d9;
|
|
189
|
+
border-bottom: var(--kd-c-search-sizing-border-width, 1px) solid var(--kd-c-search-color-border, var(--kd-g-color-border-strong-2, #d9d9d9));
|
|
181
190
|
}
|
|
182
191
|
.kd-search-size-small {
|
|
183
|
-
width: 200px;
|
|
192
|
+
width: var(--kd-c-search-sizing-width-small, 200px);
|
|
184
193
|
}
|
|
185
194
|
.kd-search-size-middle {
|
|
186
|
-
width: 260px;
|
|
195
|
+
width: var(--kd-c-search-sizing-width-middle, 260px);
|
|
187
196
|
}
|
|
188
197
|
.kd-search-size-large {
|
|
189
|
-
width: 320px;
|
|
198
|
+
width: var(--kd-c-search-sizing-width-large, 320px);
|
|
190
199
|
}
|
|
191
200
|
.kd-search-disabled {
|
|
192
201
|
cursor: not-allowed;
|
|
@@ -195,45 +204,54 @@
|
|
|
195
204
|
border: none !important;
|
|
196
205
|
}
|
|
197
206
|
.kd-search-border {
|
|
198
|
-
border: 1px solid #d9d9d9;
|
|
207
|
+
border: var(--kd-c-search-sizing-border-width, 1px) solid var(--kd-c-search-color-border, var(--kd-g-color-border-strong-2, #d9d9d9));
|
|
208
|
+
}
|
|
209
|
+
.kd-search-prefix,
|
|
210
|
+
.kd-search-suffix {
|
|
211
|
+
font-size: var(--kd-c-search-icon-font-size, 16px);
|
|
212
|
+
color: var(--kd-c-search-icon-color, #B2B2B2);
|
|
199
213
|
}
|
|
200
214
|
.kd-search-focused,
|
|
201
215
|
.kd-search:not(.kd-search-disabled):hover {
|
|
202
|
-
border-color: #
|
|
216
|
+
border-color: var(--kd-c-search-color-theme, var(--kd-g-color-theme, #5582f3));
|
|
203
217
|
}
|
|
204
218
|
.kd-search-focused .kd-search-prefix,
|
|
205
219
|
.kd-search:not(.kd-search-disabled):hover .kd-search-prefix {
|
|
206
|
-
color: #
|
|
220
|
+
color: var(--kd-c-search-color-theme, var(--kd-g-color-theme, #5582f3));
|
|
207
221
|
}
|
|
208
222
|
.kd-search-focused .kd-search-suffix,
|
|
209
223
|
.kd-search:not(.kd-search-disabled):hover .kd-search-suffix {
|
|
210
|
-
color: #
|
|
224
|
+
color: var(--kd-c-search-color-theme, var(--kd-g-color-theme, #5582f3));
|
|
211
225
|
}
|
|
212
226
|
.kd-quick-search {
|
|
213
227
|
display: inline-block;
|
|
214
|
-
max-width: 400px;
|
|
215
|
-
width: 200px;
|
|
216
|
-
height: 24px;
|
|
228
|
+
max-width: var(--kd-c-search-sizing-width-max, 400px);
|
|
229
|
+
width: var(--kd-c-search-sizing-width-default, 200px);
|
|
230
|
+
height: var(--kd-c-search-sizing-height-default, 24px);
|
|
217
231
|
position: relative;
|
|
218
|
-
border-bottom: 1px solid #d9d9d9;
|
|
219
|
-
-webkit-transition: all calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
220
|
-
transition: all calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
232
|
+
border-bottom: var(--kd-c-search-sizing-border-width, 1px) solid var(--kd-c-search-color-border, var(--kd-g-color-border-strong-2, #d9d9d9));
|
|
233
|
+
-webkit-transition: all calc(var(--kd-c-search-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
234
|
+
transition: all calc(var(--kd-c-search-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
221
235
|
}
|
|
222
236
|
.kd-quick-search-borderless {
|
|
223
237
|
border: none !important;
|
|
224
238
|
}
|
|
225
239
|
.kd-quick-search-border {
|
|
226
|
-
border: 1px solid #d9d9d9;
|
|
240
|
+
border: var(--kd-c-search-sizing-border-width, 1px) solid var(--kd-c-search-color-border, var(--kd-g-color-border-strong-2, #d9d9d9));
|
|
227
241
|
}
|
|
228
242
|
.kd-quick-search:hover:not(.kd-quick-search-disabled) {
|
|
229
|
-
border-color: #
|
|
243
|
+
border-color: var(--kd-c-search-color-theme, var(--kd-g-color-theme, #5582f3));
|
|
230
244
|
}
|
|
231
245
|
.kd-quick-search:hover:not(.kd-quick-search-disabled) .kd-quick-search-prefix {
|
|
232
|
-
color: #
|
|
246
|
+
color: var(--kd-c-search-color-theme, var(--kd-g-color-theme, #5582f3));
|
|
233
247
|
}
|
|
234
248
|
.kd-quick-search-focused:not(.kd-quick-search-disabled) {
|
|
235
|
-
max-width: 400px;
|
|
249
|
+
max-width: var(--kd-c-search-sizing-width-max, 400px);
|
|
236
250
|
width: 100% !important;
|
|
251
|
+
border-color: var(--kd-c-search-color-theme, var(--kd-g-color-theme, #5582f3));
|
|
252
|
+
}
|
|
253
|
+
.kd-quick-search-focused:not(.kd-quick-search-disabled) .kd-quick-search-prefix {
|
|
254
|
+
color: var(--kd-c-search-color-theme, var(--kd-g-color-theme, #5582f3));
|
|
237
255
|
}
|
|
238
256
|
.kd-quick-search-disabled {
|
|
239
257
|
cursor: not-allowed;
|
|
@@ -248,6 +266,8 @@
|
|
|
248
266
|
-webkit-transform: translateY(-50%);
|
|
249
267
|
transform: translateY(-50%);
|
|
250
268
|
line-height: 1;
|
|
269
|
+
font-size: var(--kd-c-search-icon-font-size, 16px);
|
|
270
|
+
color: var(--kd-c-search-icon-color, #B2B2B2);
|
|
251
271
|
}
|
|
252
272
|
.kd-quick-search-selector {
|
|
253
273
|
cursor: text;
|
|
@@ -279,7 +299,7 @@
|
|
|
279
299
|
display: flex;
|
|
280
300
|
position: relative;
|
|
281
301
|
border-radius: 2px;
|
|
282
|
-
border: 1px solid #666;
|
|
302
|
+
border: 1px solid var(--kd-c-search-color-end, var(--kd-g-color-end, #666));
|
|
283
303
|
margin: 2px 12px 2px 0;
|
|
284
304
|
cursor: pointer;
|
|
285
305
|
max-width: 100%;
|
|
@@ -293,16 +313,16 @@
|
|
|
293
313
|
-ms-flex-negative: 0;
|
|
294
314
|
flex-shrink: 0;
|
|
295
315
|
max-width: 170px;
|
|
296
|
-
background: #666;
|
|
316
|
+
background: var(--kd-c-search-color-end, var(--kd-g-color-end, #666));
|
|
297
317
|
line-height: 20px;
|
|
298
|
-
font-size: 12px;
|
|
318
|
+
font-size: var(--kd-c-search-dropdown-font-size, 12px);
|
|
299
319
|
color: #fff;
|
|
300
320
|
overflow: hidden;
|
|
301
321
|
white-space: nowrap;
|
|
302
322
|
text-overflow: ellipsis;
|
|
303
323
|
}
|
|
304
324
|
.kd-quick-search-selection-overflow-item-label {
|
|
305
|
-
font-size: 12px;
|
|
325
|
+
font-size: var(--kd-c-search-dropdown-font-size, 12px);
|
|
306
326
|
color: #212121;
|
|
307
327
|
letter-spacing: 0;
|
|
308
328
|
padding: 0 4px;
|
|
@@ -316,16 +336,16 @@
|
|
|
316
336
|
height: 14px;
|
|
317
337
|
width: 14px;
|
|
318
338
|
line-height: 1;
|
|
319
|
-
font-size: 14px;
|
|
339
|
+
font-size: var(--kd-c-search-font-size-middle, var(--kd-g-font-size-middle, 14px));
|
|
320
340
|
border-radius: 50%;
|
|
321
341
|
position: absolute;
|
|
322
342
|
right: -7px;
|
|
323
343
|
top: -6px;
|
|
324
344
|
display: none;
|
|
325
|
-
background: #fff;
|
|
345
|
+
background: var(--kd-c-search-color-background, var(--kd-g-color-background, #fff));
|
|
326
346
|
}
|
|
327
347
|
.kd-quick-search-selection-overflow-item-del:hover {
|
|
328
|
-
color: #
|
|
348
|
+
color: var(--kd-c-search-selected-tags-del-color-background-hover, #999999);
|
|
329
349
|
}
|
|
330
350
|
.kd-quick-search-selection-placeholder {
|
|
331
351
|
position: absolute;
|
|
@@ -333,7 +353,8 @@
|
|
|
333
353
|
left: 0;
|
|
334
354
|
-webkit-transform: translateY(-50%);
|
|
335
355
|
transform: translateY(-50%);
|
|
336
|
-
color: #
|
|
356
|
+
color: var(--kd-c-search-selection-placeholder-color-text, #B2B2B2);
|
|
357
|
+
font-size: var(--kd-c-search-placeholder-font-size, 12px);
|
|
337
358
|
overflow: hidden;
|
|
338
359
|
white-space: nowrap;
|
|
339
360
|
text-overflow: ellipsis;
|
|
@@ -358,41 +379,43 @@
|
|
|
358
379
|
border: none;
|
|
359
380
|
width: 100%;
|
|
360
381
|
background: transparent;
|
|
382
|
+
font-size: var(--kd-c-search-input-font-size, 12px);
|
|
383
|
+
color: var(--kd-c-search-color-text-primary, var(--kd-g-color-text-primary, #212121));
|
|
361
384
|
}
|
|
362
385
|
.kd-quick-search-input::-webkit-input-placeholder {
|
|
363
386
|
font-size: 12px;
|
|
364
|
-
color: #b2b2b2;
|
|
387
|
+
color: var(--kd-c-search-input-color-text, var(--kd-g-color-disabled, #b2b2b2));
|
|
365
388
|
letter-spacing: 0;
|
|
366
389
|
}
|
|
367
390
|
.kd-quick-search-input::-moz-placeholder {
|
|
368
391
|
font-size: 12px;
|
|
369
|
-
color: #b2b2b2;
|
|
392
|
+
color: var(--kd-c-search-input-color-text, var(--kd-g-color-disabled, #b2b2b2));
|
|
370
393
|
letter-spacing: 0;
|
|
371
394
|
}
|
|
372
395
|
.kd-quick-search-input:-ms-input-placeholder {
|
|
373
396
|
font-size: 12px;
|
|
374
|
-
color: #b2b2b2;
|
|
397
|
+
color: var(--kd-c-search-input-color-text, var(--kd-g-color-disabled, #b2b2b2));
|
|
375
398
|
letter-spacing: 0;
|
|
376
399
|
}
|
|
377
400
|
.kd-quick-search-input::-ms-input-placeholder {
|
|
378
401
|
font-size: 12px;
|
|
379
|
-
color: #b2b2b2;
|
|
402
|
+
color: var(--kd-c-search-input-color-text, var(--kd-g-color-disabled, #b2b2b2));
|
|
380
403
|
letter-spacing: 0;
|
|
381
404
|
}
|
|
382
405
|
.kd-quick-search-input::placeholder {
|
|
383
406
|
font-size: 12px;
|
|
384
|
-
color: #b2b2b2;
|
|
407
|
+
color: var(--kd-c-search-input-color-text, var(--kd-g-color-disabled, #b2b2b2));
|
|
385
408
|
letter-spacing: 0;
|
|
386
409
|
}
|
|
387
410
|
.kd-quick-search-dropdown {
|
|
388
411
|
padding: 8px 0;
|
|
389
412
|
margin: 0;
|
|
390
413
|
z-index: 1050;
|
|
391
|
-
font-size: 12px;
|
|
414
|
+
font-size: var(--kd-c-search-dropdown-font-size, 12px);
|
|
392
415
|
-webkit-box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2);
|
|
393
416
|
box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2);
|
|
394
|
-
border-radius: 2px;
|
|
395
|
-
background: #fff;
|
|
417
|
+
border-radius: var(--kd-c-search-radius-border, var(--kd-g-radius-border, 2px));
|
|
418
|
+
background: var(--kd-c-search-color-background, var(--kd-g-color-background, #fff));
|
|
396
419
|
overflow: auto;
|
|
397
420
|
}
|
|
398
421
|
.kd-quick-search-dropdown-scroll {
|
|
@@ -402,48 +425,46 @@
|
|
|
402
425
|
padding: 5px 12px;
|
|
403
426
|
}
|
|
404
427
|
.kd-quick-search-dropdown-desc {
|
|
405
|
-
padding-left: 12px;
|
|
406
|
-
padding-right: 12px;
|
|
407
|
-
line-height: 32px;
|
|
428
|
+
padding-left: var(--kd-c-search-dropdown-option-spacing-padding-horizontal, 12px);
|
|
429
|
+
padding-right: var(--kd-c-search-dropdown-option-spacing-padding-horizontal, 12px);
|
|
430
|
+
line-height: var(--kd-c-search-dropdown-option-sizing-height, 32px);
|
|
408
431
|
overflow: hidden;
|
|
409
432
|
white-space: nowrap;
|
|
410
433
|
text-overflow: ellipsis;
|
|
411
|
-
color: #999999;
|
|
434
|
+
color: var(--kd-c-search-dropdown-desc-color-text, #999999);
|
|
435
|
+
font-size: var(--kd-c-search-dropdown-desc-font-size, 12px);
|
|
412
436
|
}
|
|
413
437
|
.kd-quick-search-option {
|
|
414
|
-
padding-left: 12px;
|
|
415
|
-
padding-right: 12px;
|
|
416
|
-
line-height: 32px;
|
|
438
|
+
padding-left: var(--kd-c-search-dropdown-option-spacing-padding-horizontal, 12px);
|
|
439
|
+
padding-right: var(--kd-c-search-dropdown-option-spacing-padding-horizontal, 12px);
|
|
440
|
+
line-height: var(--kd-c-search-dropdown-option-sizing-height, 32px);
|
|
417
441
|
overflow: hidden;
|
|
418
442
|
white-space: nowrap;
|
|
419
443
|
text-overflow: ellipsis;
|
|
420
444
|
cursor: pointer;
|
|
445
|
+
color: var(--kd-c-search-color-text-primary, var(--kd-g-color-text-primary, #212121));
|
|
421
446
|
}
|
|
422
447
|
.kd-quick-search-option-tag {
|
|
423
|
-
color: #666666;
|
|
424
448
|
margin-right: 12px;
|
|
425
449
|
}
|
|
426
|
-
.kd-quick-search-option-content {
|
|
427
|
-
color: #212121;
|
|
428
|
-
}
|
|
429
450
|
.kd-quick-search-option:hover:not(.kd-quick-search-option-selected) {
|
|
430
|
-
background: #f5f5f5;
|
|
451
|
+
background: var(--kd-c-search-color-background-contain-disabled, var(--kd-g-color-background-contain-disabled, #f5f5f5));
|
|
431
452
|
}
|
|
432
453
|
.kd-quick-search-option-selected:not(.kd-quick-search-option-disabled) {
|
|
433
|
-
background: #
|
|
454
|
+
background: var(--kd-c-search-dropdown-tags-color-background-selected, #F2F6FF);
|
|
434
455
|
}
|
|
435
456
|
.kd-quick-search-option-selected:not(.kd-quick-search-option-disabled) .kd-quick-search-option-tag {
|
|
436
|
-
color: #
|
|
457
|
+
color: var(--kd-c-search-color-hover, #5582F3);
|
|
437
458
|
}
|
|
438
459
|
.kd-quick-search-option-selected:not(.kd-quick-search-option-disabled) .kd-quick-search-option-content {
|
|
439
|
-
color: #
|
|
460
|
+
color: var(--kd-c-search-color-hover, #5582F3);
|
|
440
461
|
}
|
|
441
462
|
.kd-quick-search-npl {
|
|
442
|
-
border-top: 1px solid #D8D8D8;
|
|
463
|
+
border-top: 1px solid var(--kd-c-search-npl-color-border, #D8D8D8);
|
|
443
464
|
}
|
|
444
465
|
.kd-quick-search-npl-loading {
|
|
445
|
-
height: 32px;
|
|
446
|
-
line-height: 32px;
|
|
466
|
+
height: var(--kd-c-search-dropdown-option-sizing-height, 32px);
|
|
467
|
+
line-height: var(--kd-c-search-dropdown-option-sizing-height, 32px);
|
|
447
468
|
display: -webkit-box;
|
|
448
469
|
display: -ms-flexbox;
|
|
449
470
|
display: flex;
|
|
@@ -451,7 +472,7 @@
|
|
|
451
472
|
-ms-flex-align: center;
|
|
452
473
|
align-items: center;
|
|
453
474
|
overflow: hidden;
|
|
454
|
-
padding-left: 12px;
|
|
475
|
+
padding-left: var(--kd-c-search-dropdown-option-spacing-padding-horizontal, 12px);
|
|
455
476
|
}
|
|
456
477
|
.kd-quick-search-npl-loading-item {
|
|
457
478
|
width: 4px;
|
|
@@ -462,7 +483,7 @@
|
|
|
462
483
|
animation: animate_loading 1s infinite;
|
|
463
484
|
}
|
|
464
485
|
.kd-quick-search-npl-loading-item:nth-child(1) {
|
|
465
|
-
background-color: #2386ee;
|
|
486
|
+
background-color: var(--kd-c-search-dot-color-first, var(--kd-g-color-logo-1, #2386ee));
|
|
466
487
|
}
|
|
467
488
|
.kd-quick-search-npl-loading-item:nth-child(2) {
|
|
468
489
|
background-color: #00ccfe;
|
|
@@ -474,9 +495,9 @@
|
|
|
474
495
|
background-color: #a06eff;
|
|
475
496
|
}
|
|
476
497
|
.kd-search-panel {
|
|
477
|
-
width: 800px;
|
|
498
|
+
width: var(--kd-c-search-panel-sizing-width, 800px);
|
|
478
499
|
border-radius: 4px;
|
|
479
|
-
background: #fff;
|
|
500
|
+
background: var(--kd-c-search-color-background, var(--kd-g-color-background, #fff));
|
|
480
501
|
}
|
|
481
502
|
.kd-search-panel-wrapper {
|
|
482
503
|
display: -webkit-box;
|
|
@@ -485,7 +506,7 @@
|
|
|
485
506
|
-webkit-box-align: center;
|
|
486
507
|
-ms-flex-align: center;
|
|
487
508
|
align-items: center;
|
|
488
|
-
height: 60px;
|
|
509
|
+
height: var(--kd-c-search-panel-sizing-height, 60px);
|
|
489
510
|
border-radius: 4px;
|
|
490
511
|
}
|
|
491
512
|
.kd-search-panel-recommend {
|
|
@@ -500,8 +521,8 @@
|
|
|
500
521
|
.kd-search-panel-recommend-icon {
|
|
501
522
|
font-size: 18px;
|
|
502
523
|
margin: 0 8px;
|
|
503
|
-
-webkit-transition: all calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
504
|
-
transition: all calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
524
|
+
-webkit-transition: all calc(var(--kd-c-search-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
525
|
+
transition: all calc(var(--kd-c-search-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
505
526
|
}
|
|
506
527
|
.kd-search-panel-type {
|
|
507
528
|
width: 230px;
|
|
@@ -514,32 +535,32 @@
|
|
|
514
535
|
padding-left: 24px;
|
|
515
536
|
}
|
|
516
537
|
.kd-search-panel-type-list:hover {
|
|
517
|
-
background: #eef3fe;
|
|
518
|
-
color: #597cfc;
|
|
538
|
+
background: var(--kd-c-search-panel-color-background-hover, #eef3fe);
|
|
539
|
+
color: var(--kd-c-search-panel-color-hover, #597cfc);
|
|
519
540
|
}
|
|
520
541
|
.kd-search-panel-type-list-active {
|
|
521
|
-
color: #597cfc;
|
|
542
|
+
color: var(--kd-c-search-panel-color-hover, #597cfc);
|
|
522
543
|
}
|
|
523
544
|
.kd-search-panel-dropDown {
|
|
524
545
|
height: 400px;
|
|
525
546
|
display: -webkit-box;
|
|
526
547
|
display: -ms-flexbox;
|
|
527
548
|
display: flex;
|
|
528
|
-
border-top: 1px solid #E6E8ED;
|
|
549
|
+
border-top: 1px solid var(--kd-c-search-panel-color-border, #E6E8ED);
|
|
529
550
|
border-bottom-right-radius: 4px;
|
|
530
551
|
border-bottom-left-radius: 4px;
|
|
531
|
-
-webkit-transition: all calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
532
|
-
transition: all calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
552
|
+
-webkit-transition: all calc(var(--kd-c-search-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
553
|
+
transition: all calc(var(--kd-c-search-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
533
554
|
}
|
|
534
555
|
.kd-search-panel-dropDown-result {
|
|
535
556
|
width: 300px;
|
|
536
557
|
height: 400px;
|
|
537
|
-
border-right: 1px solid #E6E8ED;
|
|
558
|
+
border-right: 1px solid var(--kd-c-search-panel-color-border, #E6E8ED);
|
|
538
559
|
}
|
|
539
560
|
.kd-search-panel-dropDown-result-wrapper {
|
|
540
561
|
max-height: 330px;
|
|
541
562
|
overflow: auto;
|
|
542
|
-
border-bottom: 1px solid #E6E8ED;
|
|
563
|
+
border-bottom: 1px solid var(--kd-c-search-panel-color-border, #E6E8ED);
|
|
543
564
|
}
|
|
544
565
|
.kd-search-panel-dropDown-result-list {
|
|
545
566
|
display: -webkit-box;
|
|
@@ -557,10 +578,10 @@
|
|
|
557
578
|
box-sizing: border-box;
|
|
558
579
|
}
|
|
559
580
|
.kd-search-panel-dropDown-result-list:hover {
|
|
560
|
-
background: #eef3fe;
|
|
581
|
+
background: var(--kd-c-search-panel-color-background-hover, #eef3fe);
|
|
561
582
|
}
|
|
562
583
|
.kd-search-panel-dropDown-result-list-active {
|
|
563
|
-
background: #eef3fe;
|
|
584
|
+
background: var(--kd-c-search-panel-color-background-hover, #eef3fe);
|
|
564
585
|
}
|
|
565
586
|
.kd-search-panel-dropDown-result-list-title {
|
|
566
587
|
overflow: hidden;
|
|
@@ -572,10 +593,10 @@
|
|
|
572
593
|
-webkit-line-clamp: 1;
|
|
573
594
|
}
|
|
574
595
|
.kd-search-panel-dropDown-result-list-type {
|
|
575
|
-
color: #999;
|
|
596
|
+
color: var(--kd-c-search-color-text-third, var(--kd-g-color-text-third, #999));
|
|
576
597
|
}
|
|
577
598
|
.kd-search-panel-dropDown-result-list-sub-title {
|
|
578
|
-
color: #999;
|
|
599
|
+
color: var(--kd-c-search-color-text-third, var(--kd-g-color-text-third, #999));
|
|
579
600
|
white-space: nowrap;
|
|
580
601
|
overflow: hidden;
|
|
581
602
|
text-overflow: ellipsis;
|
|
@@ -622,13 +643,13 @@
|
|
|
622
643
|
}
|
|
623
644
|
.kd-search-panel-dropDown-summary-title {
|
|
624
645
|
margin-bottom: 10px;
|
|
625
|
-
font-size: 14px;
|
|
626
|
-
color: #212121;
|
|
646
|
+
font-size: var(--kd-c-search-font-size-middle, var(--kd-g-font-size-middle, 14px));
|
|
647
|
+
color: var(--kd-c-search-color-text-primary, var(--kd-g-color-text-primary, #212121));
|
|
627
648
|
}
|
|
628
649
|
.kd-search-panel-dropDown-summary-list {
|
|
629
650
|
margin-top: 4px;
|
|
630
|
-
color: #666;
|
|
631
|
-
font-size: 12px;
|
|
651
|
+
color: var(--kd-c-search-color-text-secondary, var(--kd-g-color-text-secondary, #666));
|
|
652
|
+
font-size: var(--kd-c-search-font-size-small, var(--kd-g-font-size-small, 12px));
|
|
632
653
|
line-height: 20px;
|
|
633
654
|
}
|
|
634
655
|
.kd-search-panel-dropDown-search {
|
|
@@ -640,14 +661,14 @@
|
|
|
640
661
|
-ms-flex-align: center;
|
|
641
662
|
align-items: center;
|
|
642
663
|
padding-left: 17px;
|
|
643
|
-
font-size: 14px;
|
|
664
|
+
font-size: var(--kd-c-search-font-size-middle, var(--kd-g-font-size-middle, 14px));
|
|
644
665
|
cursor: pointer;
|
|
645
666
|
}
|
|
646
667
|
.kd-search-panel-dropDown-search:hover {
|
|
647
|
-
background: #eef3fe;
|
|
668
|
+
background: var(--kd-c-search-panel-color-background-hover, #eef3fe);
|
|
648
669
|
}
|
|
649
670
|
.kd-search-panel-dropDown-search-active {
|
|
650
|
-
background: #eef3fe;
|
|
671
|
+
background: var(--kd-c-search-panel-color-background-hover, #eef3fe);
|
|
651
672
|
}
|
|
652
673
|
.kd-search-panel-dropDown-search-value {
|
|
653
674
|
overflow: hidden;
|
|
@@ -666,7 +687,7 @@
|
|
|
666
687
|
width: 18px;
|
|
667
688
|
height: 18px;
|
|
668
689
|
border-radius: 50%;
|
|
669
|
-
background: #666;
|
|
690
|
+
background: var(--kd-c-search-color-end, var(--kd-g-color-end, #666));
|
|
670
691
|
position: relative;
|
|
671
692
|
}
|
|
672
693
|
.kd-search-panel .kd-input-clear-icon .kdicon {
|
|
@@ -689,14 +710,14 @@
|
|
|
689
710
|
cursor: pointer;
|
|
690
711
|
}
|
|
691
712
|
.kd-search-panel-tooltip-content:hover {
|
|
692
|
-
background: #eef3fe;
|
|
713
|
+
background: var(--kd-c-search-panel-color-background-hover, #eef3fe);
|
|
693
714
|
}
|
|
694
715
|
.kd-quick-search-dropdown-wrapper.topLeft.hidden,
|
|
695
716
|
.kd-quick-search-dropdown-wrapper.bottomLeft.hidden {
|
|
696
717
|
opacity: 0;
|
|
697
718
|
visibility: hidden;
|
|
698
|
-
-webkit-transition: all calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
699
|
-
transition: all calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
719
|
+
-webkit-transition: all calc(var(--kd-c-search-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
720
|
+
transition: all calc(var(--kd-c-search-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
700
721
|
}
|
|
701
722
|
.kd-quick-search-dropdown-wrapper.bottomLeft-active {
|
|
702
723
|
padding: 10px 0;
|