@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
|
@@ -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
|
/** 浮层箭头样式 **/
|
|
@@ -102,23 +111,23 @@
|
|
|
102
111
|
cursor: pointer;
|
|
103
112
|
}
|
|
104
113
|
.kd-cascader-picker:focus > .kd-cascader-picker-input {
|
|
105
|
-
border-color: #5582f3;
|
|
114
|
+
border-color: var(--kd-c-cascader-color-active, var(--kd-g-color-theme, #5582f3));
|
|
106
115
|
}
|
|
107
116
|
.kd-cascader-picker:focus > .kd-cascader-picker-input .kd-input-suffix,
|
|
108
117
|
.kd-cascader-picker:focus > .kd-cascader-picker-input i[class*="kdicon"] {
|
|
109
|
-
color: #5582f3;
|
|
118
|
+
color: var(--kd-c-cascader-color-active, var(--kd-g-color-theme, #5582f3));
|
|
110
119
|
}
|
|
111
120
|
.kd-cascader-picker:hover > .kd-cascader-picker-input .kd-input-suffix,
|
|
112
121
|
.kd-cascader-picker:hover > .kd-cascader-picker-input i[class*="kdicon"] {
|
|
113
|
-
color: #5582f3;
|
|
122
|
+
color: var(--kd-c-cascader-color-active, var(--kd-g-color-theme, #5582f3));
|
|
114
123
|
}
|
|
115
124
|
.kd-cascader-picker.disabled .kd-cascader-picker-input {
|
|
116
125
|
cursor: not-allowed;
|
|
117
|
-
border-color: #d9d9d9;
|
|
126
|
+
border-color: var(--kd-g-color-border-strong, #d9d9d9);
|
|
118
127
|
}
|
|
119
128
|
.kd-cascader-picker.disabled .kd-cascader-picker-input .kd-input-suffix,
|
|
120
129
|
.kd-cascader-picker.disabled .kd-cascader-picker-input i[class*="kdicon"] {
|
|
121
|
-
color: #b2b2b2;
|
|
130
|
+
color: var(--kd-c-cascader-color-text-disabled, var(--kd-g-color-disabled, #b2b2b2));
|
|
122
131
|
}
|
|
123
132
|
.kd-cascader-picker-label {
|
|
124
133
|
-webkit-box-sizing: border-box;
|
|
@@ -146,10 +155,10 @@
|
|
|
146
155
|
cursor: pointer;
|
|
147
156
|
}
|
|
148
157
|
.kd-cascader-picker-input.expand {
|
|
149
|
-
border-color: #5582f3;
|
|
158
|
+
border-color: var(--kd-c-cascader-color-active, var(--kd-g-color-theme, #5582f3));
|
|
150
159
|
}
|
|
151
160
|
.kd-cascader-picker-input.expand i[class*="kdicon"] {
|
|
152
|
-
color: #5582f3;
|
|
161
|
+
color: var(--kd-c-cascader-color-active, var(--kd-g-color-theme, #5582f3));
|
|
153
162
|
-webkit-transform: rotate(180deg);
|
|
154
163
|
transform: rotate(180deg);
|
|
155
164
|
}
|
|
@@ -179,7 +188,7 @@
|
|
|
179
188
|
opacity: 0;
|
|
180
189
|
cursor: pointer;
|
|
181
190
|
visibility: hidden;
|
|
182
|
-
color: #5582f3;
|
|
191
|
+
color: var(--kd-c-cascader-color-active, var(--kd-g-color-theme, #5582f3));
|
|
183
192
|
-webkit-transition: all 0.1s;
|
|
184
193
|
transition: all 0.1s;
|
|
185
194
|
-webkit-transform-origin: 50% 50%;
|
|
@@ -196,15 +205,16 @@
|
|
|
196
205
|
list-style: none;
|
|
197
206
|
-webkit-font-feature-settings: 'tnum';
|
|
198
207
|
font-feature-settings: 'tnum';
|
|
199
|
-
color: #212121;
|
|
200
|
-
border-radius: 2px;
|
|
201
|
-
font-size: 12px;
|
|
202
|
-
|
|
208
|
+
color: var(--kd-c-cascader-color-text, var(--kd-g-color-text-primary, #212121));
|
|
209
|
+
border-radius: var(--kd-c-cascader-radius-border, var(--kd-g-radius-border, 2px));
|
|
210
|
+
font-size: var(--kd-c-cascader-font-size, var(--kd-g-font-size-small, 12px));
|
|
211
|
+
font-weight: var(--kd-c-cascader-font-weight, 'normal');
|
|
212
|
+
background-color: var(--kd-c-cascader-color-background, var(--kd-g-color-white, #fff));
|
|
203
213
|
-webkit-box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.3);
|
|
204
214
|
box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.3);
|
|
205
215
|
opacity: 1;
|
|
206
216
|
visibility: visible;
|
|
207
|
-
z-index: 1050;
|
|
217
|
+
z-index: var(--kd-g-z-index-popper, 1050);
|
|
208
218
|
}
|
|
209
219
|
.kd-cascader-menus.hidden {
|
|
210
220
|
opacity: 0;
|
|
@@ -212,14 +222,14 @@
|
|
|
212
222
|
}
|
|
213
223
|
.kd-cascader-menus .kd-cascader-menu {
|
|
214
224
|
display: inline-table;
|
|
215
|
-
height:
|
|
216
|
-
min-width: 116px;
|
|
225
|
+
height: var(--kd-c-cascader-sizing-height, 192px);
|
|
226
|
+
min-width: var(--kd-c-cascader-menu-sizing-min-width, 116px);
|
|
217
227
|
margin: 0;
|
|
218
|
-
padding: 0;
|
|
228
|
+
padding: var(--kd-c-cascader-menu-spacing-padding-vertical, 8px) 0;
|
|
219
229
|
overflow-y: auto;
|
|
220
230
|
}
|
|
221
231
|
.kd-cascader-menus .kd-cascader-menu:not(:first-child) {
|
|
222
|
-
border-left: 1px solid #d9d9d9;
|
|
232
|
+
border-left: 1px solid var(--kd-g-color-border-strong, #d9d9d9);
|
|
223
233
|
}
|
|
224
234
|
.kd-cascader-menus .kd-cascader-menu-item {
|
|
225
235
|
display: -webkit-box;
|
|
@@ -228,23 +238,22 @@
|
|
|
228
238
|
-webkit-box-pack: justify;
|
|
229
239
|
-ms-flex-pack: justify;
|
|
230
240
|
justify-content: space-between;
|
|
231
|
-
padding: 0 12px;
|
|
232
|
-
height: 32px;
|
|
233
|
-
line-height: 32px;
|
|
241
|
+
padding: 0 var(--kd-c-cascader-menu-item-spacing-padding-horizontal, 12px);
|
|
242
|
+
line-height: var(--kd-c-cascader-menu-item-sizing-height, 32px);
|
|
234
243
|
cursor: pointer;
|
|
235
244
|
}
|
|
236
245
|
.kd-cascader-menus .kd-cascader-menu-item:not(.disabled, .selected):hover {
|
|
237
|
-
background-color: #f5f5f5;
|
|
238
|
-
-webkit-transition: all calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
239
|
-
transition: all calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
246
|
+
background-color: var(--kd-c-cascader-color-background-hover, var(--kd-g-color-hover, #f5f5f5));
|
|
247
|
+
-webkit-transition: all calc(var(--kd-g-duration, 0.3s) - 0.1s) var(--kd-g-ease, cubic-bezier(0.4, 0, 0.6, 1));
|
|
248
|
+
transition: all calc(var(--kd-g-duration, 0.3s) - 0.1s) var(--kd-g-ease, cubic-bezier(0.4, 0, 0.6, 1));
|
|
240
249
|
}
|
|
241
250
|
.kd-cascader-menus .kd-cascader-menu-item.disabled {
|
|
242
|
-
color: #b2b2b2;
|
|
251
|
+
color: var(--kd-c-cascader-color-text-disabled, var(--kd-g-color-disabled, #b2b2b2));
|
|
243
252
|
cursor: not-allowed;
|
|
244
253
|
}
|
|
245
254
|
.kd-cascader-menus .kd-cascader-menu-item.selected {
|
|
246
|
-
color: #5582f3;
|
|
247
|
-
background-color: #f2f9ff;
|
|
255
|
+
color: var(--kd-c-cascader-color-text-selected, var(--kd-g-color-theme, #5582f3));
|
|
256
|
+
background-color: var(--kd-c-cascader-color-background-selected, var(--kd-g-color-background-ongoing, #f2f9ff));
|
|
248
257
|
}
|
|
249
258
|
.kd-cascader-menus .kd-cascader-menu-item-label {
|
|
250
259
|
width: 72px;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@import '../../style/themes/index';
|
|
2
2
|
@import '../../style/mixins/index';
|
|
3
|
+
@import './token.less';
|
|
3
4
|
|
|
4
5
|
@cascader-picker-prefix-cls: ~'@{kd-prefix}-cascader-picker';
|
|
5
6
|
@cascader-menus-prefix-cls: ~'@{kd-prefix}-cascader-menus';
|
|
@@ -12,29 +13,29 @@
|
|
|
12
13
|
cursor: pointer;
|
|
13
14
|
|
|
14
15
|
&:focus > &-input {
|
|
15
|
-
border-color: @
|
|
16
|
+
border-color: @cascader-active-color;
|
|
16
17
|
|
|
17
18
|
.@{kd-prefix}-input-suffix,
|
|
18
19
|
i[class*="kdicon"] {
|
|
19
|
-
color: @
|
|
20
|
+
color: @cascader-active-color;
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
&:hover > &-input {
|
|
24
25
|
.@{kd-prefix}-input-suffix,
|
|
25
26
|
i[class*="kdicon"] {
|
|
26
|
-
color: @
|
|
27
|
+
color: @cascader-active-color;
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
&.disabled {
|
|
31
32
|
.@{cascader-picker-prefix-cls}-input {
|
|
32
33
|
cursor: not-allowed;
|
|
33
|
-
border-color: @
|
|
34
|
+
border-color: @color-border-strong;
|
|
34
35
|
|
|
35
36
|
.@{kd-prefix}-input-suffix,
|
|
36
37
|
i[class*="kdicon"] {
|
|
37
|
-
color: @disabled-color;
|
|
38
|
+
color: @cascader-disabled-color;
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
41
|
}
|
|
@@ -62,10 +63,10 @@
|
|
|
62
63
|
}
|
|
63
64
|
|
|
64
65
|
&.expand {
|
|
65
|
-
border-color: @
|
|
66
|
+
border-color: @cascader-active-color;
|
|
66
67
|
|
|
67
68
|
i[class*="kdicon"] {
|
|
68
|
-
color: @
|
|
69
|
+
color: @cascader-active-color;
|
|
69
70
|
transform: rotate(180deg);
|
|
70
71
|
}
|
|
71
72
|
}
|
|
@@ -98,7 +99,7 @@
|
|
|
98
99
|
opacity: 0;
|
|
99
100
|
cursor: pointer;
|
|
100
101
|
visibility: hidden;
|
|
101
|
-
color: @
|
|
102
|
+
color: @cascader-active-color;
|
|
102
103
|
transition: all 0.1s;
|
|
103
104
|
transform-origin: 50% 50%;
|
|
104
105
|
transform: scale(0.9) translateY(-50%);
|
|
@@ -108,13 +109,14 @@
|
|
|
108
109
|
.@{cascader-menus-prefix-cls} {
|
|
109
110
|
.reset-component;
|
|
110
111
|
color: @cascader-color;
|
|
111
|
-
border-radius: @radius-size;
|
|
112
|
+
border-radius: @cascader-radius-size;
|
|
112
113
|
font-size: @cascader-font-size;
|
|
113
|
-
|
|
114
|
-
|
|
114
|
+
font-weight: @cascader-font-weight;
|
|
115
|
+
background-color: @cascader-bg-color;
|
|
116
|
+
box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.3);
|
|
115
117
|
opacity: 1;
|
|
116
118
|
visibility: visible;
|
|
117
|
-
z-index: @
|
|
119
|
+
z-index: @z-index-popper;
|
|
118
120
|
|
|
119
121
|
&.hidden {
|
|
120
122
|
opacity: 0;
|
|
@@ -123,37 +125,36 @@
|
|
|
123
125
|
|
|
124
126
|
.@{cascader-menu-prefix-cls} {
|
|
125
127
|
display: inline-table;
|
|
126
|
-
height: @cascader-
|
|
128
|
+
height: @cascader-height;
|
|
127
129
|
min-width: @cascader-menu-min-width;
|
|
128
130
|
margin: 0;
|
|
129
|
-
padding: 0;
|
|
131
|
+
padding: @cascader-menu-padding-vertical 0;
|
|
130
132
|
overflow-y: auto;
|
|
131
133
|
|
|
132
134
|
&:not(:first-child) {
|
|
133
|
-
border-left: 1px solid @
|
|
135
|
+
border-left: 1px solid @color-border-strong;
|
|
134
136
|
}
|
|
135
137
|
|
|
136
138
|
&-item {
|
|
137
139
|
display: flex;
|
|
138
140
|
justify-content: space-between;
|
|
139
|
-
padding: 0
|
|
140
|
-
height:
|
|
141
|
-
line-height: 32px;
|
|
141
|
+
padding: 0 @cascader-menu-item-padding-horizontal;
|
|
142
|
+
line-height: @cascader-menu-item-height;
|
|
142
143
|
cursor: pointer;
|
|
143
144
|
|
|
144
145
|
&:not(.disabled, .selected):hover {
|
|
145
|
-
background-color: @hover-color;
|
|
146
|
-
transition: all calc(@
|
|
146
|
+
background-color: @cascader-hover-bg-color;
|
|
147
|
+
transition: all calc(@duration-promptly - 0.1s) @motion-ease;
|
|
147
148
|
}
|
|
148
149
|
|
|
149
150
|
&.disabled {
|
|
150
|
-
color: @disabled-color;
|
|
151
|
+
color: @cascader-disabled-color;
|
|
151
152
|
cursor: not-allowed;
|
|
152
153
|
}
|
|
153
154
|
|
|
154
155
|
&.selected {
|
|
155
|
-
color: @
|
|
156
|
-
background-color: @
|
|
156
|
+
color: @cascader-selected-color;
|
|
157
|
+
background-color: @cascader-selected-bg-color;
|
|
157
158
|
}
|
|
158
159
|
|
|
159
160
|
&-label {
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
@import '../../style/themes/token.less';
|
|
2
|
+
|
|
3
|
+
@cascader-prefix: '--@{kd-prefix}-c-cascader';
|
|
4
|
+
|
|
5
|
+
// sizing
|
|
6
|
+
@cascader-height: var(~'@{cascader-prefix}-sizing-height', 192px);
|
|
7
|
+
@cascader-menu-min-width: var(~'@{cascader-prefix}-menu-sizing-min-width', 116px);
|
|
8
|
+
@cascader-menu-item-height: var(~'@{cascader-prefix}-menu-item-sizing-height', 32px);
|
|
9
|
+
|
|
10
|
+
// spacing
|
|
11
|
+
@cascader-menu-padding-vertical: var(~'@{cascader-prefix}-menu-spacing-padding-vertical', 8px);
|
|
12
|
+
@cascader-menu-item-padding-horizontal: var(~'@{cascader-prefix}-menu-item-spacing-padding-horizontal', 12px);
|
|
13
|
+
|
|
14
|
+
// colors
|
|
15
|
+
@cascader-active-color: var(~'@{cascader-prefix}-color-active', @color-theme);
|
|
16
|
+
@cascader-color: var(~'@{cascader-prefix}-color-text', @color-text-primary);
|
|
17
|
+
@cascader-bg-color: var(~'@{cascader-prefix}-color-background', @color-white);
|
|
18
|
+
@cascader-hover-bg-color: var(~'@{cascader-prefix}-color-background-hover', @color-hover);
|
|
19
|
+
@cascader-selected-color: var(~'@{cascader-prefix}-color-text-selected', @color-theme);
|
|
20
|
+
@cascader-selected-bg-color: var(~'@{cascader-prefix}-color-background-selected', @color-background-ongoing);
|
|
21
|
+
@cascader-disabled-color: var(~'@{cascader-prefix}-color-text-disabled', @color-disabled);
|
|
22
|
+
|
|
23
|
+
// font
|
|
24
|
+
@cascader-font-size: var(~'@{cascader-prefix}-font-size', @font-size-small);
|
|
25
|
+
@cascader-font-weight: var(~'@{cascader-prefix}-font-weight', 'normal');
|
|
26
|
+
|
|
27
|
+
// radius
|
|
28
|
+
@cascader-radius-size: var(~'@{cascader-prefix}-radius-border', @radius-border);
|
|
@@ -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
|
.kd-checkbox {
|
|
96
105
|
display: -webkit-inline-box;
|
|
97
106
|
display: -ms-inline-flexbox;
|
|
@@ -110,25 +119,25 @@
|
|
|
110
119
|
text-overflow: ellipsis;
|
|
111
120
|
-webkit-box-sizing: border-box;
|
|
112
121
|
box-sizing: border-box;
|
|
113
|
-
font-size: 12px;
|
|
114
|
-
color: #212121;
|
|
115
|
-
height: 36px;
|
|
122
|
+
font-size: var(--kd-c-checkbox-font-size, var(--kd-g-font-size-small, 12px));
|
|
123
|
+
color: var(--kd-c-checkbox-color-text-primary, var(--kd-g-color-text-primary, #212121));
|
|
124
|
+
height: var(--kd-c-checkbox-sizing-height-middle, 36px);
|
|
116
125
|
}
|
|
117
126
|
.kd-checkbox-no-child {
|
|
118
|
-
height: 16px;
|
|
119
|
-
width: 16px;
|
|
127
|
+
height: var(--kd-c-checkbox-default-input-sizing-height, 16px);
|
|
128
|
+
width: var(--kd-c-checkbox-default-input-sizing-width, 16px);
|
|
120
129
|
}
|
|
121
130
|
.kd-checkbox-small {
|
|
122
|
-
height: 32px;
|
|
131
|
+
height: var(--kd-c-checkbox-sizing-height-small, 32px);
|
|
123
132
|
}
|
|
124
133
|
.kd-checkbox-middle {
|
|
125
|
-
height: 36px;
|
|
134
|
+
height: var(--kd-c-checkbox-sizing-height-middle, 36px);
|
|
126
135
|
}
|
|
127
136
|
.kd-checkbox-large {
|
|
128
|
-
height: 40px;
|
|
137
|
+
height: var(--kd-c-checkbox-sizing-height-large, 40px);
|
|
129
138
|
}
|
|
130
139
|
.kd-checkbox-group > *:not(:last-child) {
|
|
131
|
-
margin-right: 8px;
|
|
140
|
+
margin-right: var(--kd-c-checkbox-group-spacing-margin-right, 8px);
|
|
132
141
|
}
|
|
133
142
|
.kd-checkbox-input {
|
|
134
143
|
margin: 0;
|
|
@@ -156,10 +165,10 @@
|
|
|
156
165
|
}
|
|
157
166
|
.kd-checkbox-square {
|
|
158
167
|
border-radius: 2px;
|
|
159
|
-
border: 1px solid #d9d9d9;
|
|
160
|
-
padding: 0 20px;
|
|
161
|
-
-webkit-transition: color 0.3s, border-color 0.3s;
|
|
162
|
-
transition: color 0.3s, border-color 0.3s;
|
|
168
|
+
border: 1px solid var(--kd-c-checkbox-color-border, var(--kd-g-color-border-strong, #d9d9d9));
|
|
169
|
+
padding: var(--kd-c-checkbox-square-spacing-padding, 0 20px);
|
|
170
|
+
-webkit-transition: color var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)), border-color var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s));
|
|
171
|
+
transition: color var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)), border-color var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s));
|
|
163
172
|
}
|
|
164
173
|
.kd-checkbox-square:not(.kd-checkbox-square-disabled)::after {
|
|
165
174
|
content: '';
|
|
@@ -170,12 +179,12 @@
|
|
|
170
179
|
left: 0;
|
|
171
180
|
border-radius: inherit;
|
|
172
181
|
opacity: 0.2;
|
|
173
|
-
-webkit-box-shadow: 0 0 0 0 #5582f3;
|
|
174
|
-
box-shadow: 0 0 0 0 #5582f3;
|
|
182
|
+
-webkit-box-shadow: 0 0 0 0 var(--kd-c-checkbox-color-theme, var(--kd-g-color-theme, #5582f3));
|
|
183
|
+
box-shadow: 0 0 0 0 var(--kd-c-checkbox-color-theme, var(--kd-g-color-theme, #5582f3));
|
|
175
184
|
}
|
|
176
185
|
.kd-checkbox-square:hover {
|
|
177
|
-
color: #5582f3;
|
|
178
|
-
border-color: #5582f3;
|
|
186
|
+
color: var(--kd-c-checkbox-color-text-hover, var(--kd-g-color-theme, #5582f3));
|
|
187
|
+
border-color: var(--kd-c-checkbox-color-border-active, var(--kd-g-color-theme, #5582f3));
|
|
179
188
|
}
|
|
180
189
|
.kd-checkbox-square-triangle,
|
|
181
190
|
.kd-checkbox-square-triangle-checked {
|
|
@@ -186,17 +195,17 @@
|
|
|
186
195
|
right: 0;
|
|
187
196
|
bottom: 0;
|
|
188
197
|
border-style: solid;
|
|
189
|
-
border-width: 0 0 18px 18px;
|
|
198
|
+
border-width: 0 0 var(--kd-c-checkbox-square-triangle-sizing-height, 18px) var(--kd-c-checkbox-square-triangle-sizing-width, 18px);
|
|
190
199
|
border-top-color: transparent;
|
|
191
200
|
border-right-color: transparent;
|
|
192
201
|
border-left-color: transparent;
|
|
193
|
-
border-bottom-color: #5582f3;
|
|
202
|
+
border-bottom-color: var(--kd-c-checkbox-color-border-active, var(--kd-g-color-theme, #5582f3));
|
|
194
203
|
}
|
|
195
204
|
.kd-checkbox-square-triangle {
|
|
196
|
-
-webkit-animation: kdZoomBounceLeaveEffect calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards;
|
|
197
|
-
animation: kdZoomBounceLeaveEffect calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards;
|
|
198
|
-
-webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.6, 1);
|
|
199
|
-
transition: all 0.3s cubic-bezier(0.4, 0, 0.6, 1);
|
|
205
|
+
-webkit-animation: kdZoomBounceLeaveEffect calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards;
|
|
206
|
+
animation: kdZoomBounceLeaveEffect calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards;
|
|
207
|
+
-webkit-transition: all var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) cubic-bezier(0.4, 0, 0.6, 1);
|
|
208
|
+
transition: all var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) cubic-bezier(0.4, 0, 0.6, 1);
|
|
200
209
|
visibility: hidden;
|
|
201
210
|
opacity: 0;
|
|
202
211
|
}
|
|
@@ -204,8 +213,8 @@
|
|
|
204
213
|
position: absolute;
|
|
205
214
|
height: 9px;
|
|
206
215
|
width: 11px;
|
|
207
|
-
color: #fff;
|
|
208
|
-
font-size: 12px;
|
|
216
|
+
color: var(--kd-c-checkbox-square-input-icon-color, #fff);
|
|
217
|
+
font-size: var(--kd-c-checkbox-default-input-icon-font-size, 12px);
|
|
209
218
|
display: -webkit-inline-box;
|
|
210
219
|
display: -ms-inline-flexbox;
|
|
211
220
|
display: inline-flex;
|
|
@@ -221,43 +230,43 @@
|
|
|
221
230
|
.kd-checkbox-square-inner-icon {
|
|
222
231
|
font-size: inherit;
|
|
223
232
|
line-height: 100%;
|
|
224
|
-
-webkit-animation: kdZoomLeaveEffect calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
|
|
225
|
-
animation: kdZoomLeaveEffect calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
|
|
233
|
+
-webkit-animation: kdZoomLeaveEffect calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
|
|
234
|
+
animation: kdZoomLeaveEffect calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
|
|
226
235
|
}
|
|
227
236
|
.kd-checkbox-square-triangle-disabled {
|
|
228
|
-
border-bottom-color: #b2b2b2;
|
|
237
|
+
border-bottom-color: var(--kd-c-checkbox-color-background-disabled, var(--kd-g-color-disabled, #b2b2b2));
|
|
229
238
|
}
|
|
230
239
|
.kd-checkbox-square-disabled,
|
|
231
240
|
.kd-checkbox-square-disabled:hover {
|
|
232
|
-
border-color: #d9d9d9;
|
|
233
|
-
color: #212121;
|
|
241
|
+
border-color: var(--kd-c-checkbox-color-border, var(--kd-g-color-border-strong, #d9d9d9));
|
|
242
|
+
color: var(--kd-c-checkbox-color-text-primary, var(--kd-g-color-text-primary, #212121));
|
|
234
243
|
cursor: not-allowed !important;
|
|
235
244
|
}
|
|
236
245
|
.kd-checkbox-square-checked {
|
|
237
|
-
border-color: #5582f3;
|
|
246
|
+
border-color: var(--kd-c-checkbox-color-border-active, var(--kd-g-color-theme, #5582f3));
|
|
238
247
|
}
|
|
239
248
|
.kd-checkbox-square-checked:not(.kd-checkbox-square-checked-disabled)::after {
|
|
240
|
-
-webkit-animation: fadeEffect calc(0.3s + 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards, waveEffect calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards;
|
|
241
|
-
animation: fadeEffect calc(0.3s + 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards, waveEffect calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards;
|
|
249
|
+
-webkit-animation: fadeEffect calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) + 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards, waveEffect calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards;
|
|
250
|
+
animation: fadeEffect calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) + 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards, waveEffect calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards;
|
|
242
251
|
}
|
|
243
252
|
.kd-checkbox-square-checked .kd-checkbox-square-triangle-checked:not(.kd-checkbox-square-disabled) {
|
|
244
|
-
-webkit-animation: kdZoomBounceEffect calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
245
|
-
animation: kdZoomBounceEffect calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
253
|
+
-webkit-animation: kdZoomBounceEffect calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
254
|
+
animation: kdZoomBounceEffect calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
246
255
|
}
|
|
247
256
|
.kd-checkbox-square-checked .kd-checkbox-square-inner-icon:not(.kd-checkbox-square-disabled) {
|
|
248
|
-
-webkit-animation: kdZoomEffect calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
|
|
249
|
-
animation: kdZoomEffect calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
|
|
257
|
+
-webkit-animation: kdZoomEffect calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
|
|
258
|
+
animation: kdZoomEffect calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
|
|
250
259
|
}
|
|
251
260
|
.kd-checkbox-square-checked-disabled {
|
|
252
|
-
background-color: #b2b2b2 !important;
|
|
253
|
-
border-color: #b2b2b2 !important;
|
|
261
|
+
background-color: var(--kd-c-checkbox-color-background-disabled, var(--kd-g-color-disabled, #b2b2b2)) !important;
|
|
262
|
+
border-color: var(--kd-c-checkbox-color-background-disabled, var(--kd-g-color-disabled, #b2b2b2)) !important;
|
|
254
263
|
cursor: not-allowed !important;
|
|
255
264
|
}
|
|
256
265
|
.kd-checkbox-square-wrapper {
|
|
257
266
|
display: -webkit-inline-box;
|
|
258
267
|
display: -ms-inline-flexbox;
|
|
259
268
|
display: inline-flex;
|
|
260
|
-
height: 16px;
|
|
269
|
+
height: var(--kd-c-checkbox-default-input-sizing-height, 16px);
|
|
261
270
|
width: 0;
|
|
262
271
|
-webkit-box-sizing: border-box;
|
|
263
272
|
box-sizing: border-box;
|
|
@@ -265,21 +274,21 @@
|
|
|
265
274
|
}
|
|
266
275
|
.kd-checkbox-default {
|
|
267
276
|
border: none;
|
|
268
|
-
padding: 0;
|
|
269
|
-
-webkit-transition: color 0.3s, border-color 0.3s;
|
|
270
|
-
transition: color 0.3s, border-color 0.3s;
|
|
277
|
+
padding: var(--kd-c-checkbox-default-spacing-padding, 0);
|
|
278
|
+
-webkit-transition: color var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)), border-color var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s));
|
|
279
|
+
transition: color var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)), border-color var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s));
|
|
271
280
|
}
|
|
272
281
|
.kd-checkbox-default:hover,
|
|
273
282
|
.kd-checkbox-default:hover .kd-checkbox-default-wrapper {
|
|
274
|
-
color: #5582f3;
|
|
275
|
-
border-color: #5582f3;
|
|
283
|
+
color: var(--kd-c-checkbox-color-text-hover, var(--kd-g-color-theme, #5582f3));
|
|
284
|
+
border-color: var(--kd-c-checkbox-color-border-active, var(--kd-g-color-theme, #5582f3));
|
|
276
285
|
cursor: pointer;
|
|
277
286
|
}
|
|
278
287
|
.kd-checkbox-default-disabled,
|
|
279
288
|
.kd-checkbox-default-disabled:hover,
|
|
280
289
|
.kd-checkbox-default-disabled:hover .kd-checkbox-default-wrapper {
|
|
281
|
-
color: #212121;
|
|
282
|
-
border-color: #d9d9d9;
|
|
290
|
+
color: var(--kd-c-checkbox-color-text-primary, var(--kd-g-color-text-primary, #212121));
|
|
291
|
+
border-color: var(--kd-c-checkbox-color-border, var(--kd-g-color-border-strong, #d9d9d9));
|
|
283
292
|
cursor: not-allowed !important;
|
|
284
293
|
}
|
|
285
294
|
.kd-checkbox-default-wrapper {
|
|
@@ -287,13 +296,13 @@
|
|
|
287
296
|
display: -webkit-inline-box;
|
|
288
297
|
display: -ms-inline-flexbox;
|
|
289
298
|
display: inline-flex;
|
|
290
|
-
background-color: #fff;
|
|
291
|
-
border: 1px solid #d9d9d9;
|
|
292
|
-
border-radius: 2px;
|
|
299
|
+
background-color: var(--kd-c-checkbox-color-background, var(--kd-g-color-background, #fff));
|
|
300
|
+
border: var(--kd-c-checkbox-default-input-border-width, 1px) solid var(--kd-c-checkbox-color-border, var(--kd-g-color-border-strong, #d9d9d9));
|
|
301
|
+
border-radius: var(--kd-c-checkbox-default-input-radius-border, 2px);
|
|
293
302
|
-webkit-box-sizing: border-box;
|
|
294
303
|
box-sizing: border-box;
|
|
295
|
-
-webkit-transition: color 0.3s, border-color 0.3s;
|
|
296
|
-
transition: color 0.3s, border-color 0.3s;
|
|
304
|
+
-webkit-transition: color var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)), border-color var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s));
|
|
305
|
+
transition: color var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)), border-color var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s));
|
|
297
306
|
}
|
|
298
307
|
.kd-checkbox-default-wrapper:not(.kd-checkbox-default-wrapper-disabled)::after {
|
|
299
308
|
content: '';
|
|
@@ -304,43 +313,43 @@
|
|
|
304
313
|
left: 0;
|
|
305
314
|
border-radius: inherit;
|
|
306
315
|
opacity: 0.2;
|
|
307
|
-
-webkit-box-shadow: 0 0 0 0 #5582f3;
|
|
308
|
-
box-shadow: 0 0 0 0 #5582f3;
|
|
316
|
+
-webkit-box-shadow: 0 0 0 0 var(--kd-c-checkbox-color-theme, var(--kd-g-color-theme, #5582f3));
|
|
317
|
+
box-shadow: 0 0 0 0 var(--kd-c-checkbox-color-theme, var(--kd-g-color-theme, #5582f3));
|
|
309
318
|
}
|
|
310
319
|
.kd-checkbox-default-wrapper-size {
|
|
311
|
-
height: 16px;
|
|
312
|
-
width: 16px;
|
|
320
|
+
height: var(--kd-c-checkbox-default-input-sizing-height, 16px);
|
|
321
|
+
width: var(--kd-c-checkbox-default-input-sizing-width, 16px);
|
|
313
322
|
}
|
|
314
323
|
.kd-checkbox-default-margin {
|
|
315
|
-
margin-right: 8px;
|
|
324
|
+
margin-right: var(--kd-c-checkbox-default-input-spacing-margin-right, 8px);
|
|
316
325
|
}
|
|
317
326
|
.kd-checkbox-default-no-child {
|
|
318
327
|
height: 100%;
|
|
319
328
|
width: 100%;
|
|
320
329
|
}
|
|
321
330
|
.kd-checkbox-default-checked-disabled {
|
|
322
|
-
background-color: #b2b2b2 !important;
|
|
323
|
-
border-color: #b2b2b2 !important;
|
|
331
|
+
background-color: var(--kd-c-checkbox-color-background-disabled, var(--kd-g-color-disabled, #b2b2b2)) !important;
|
|
332
|
+
border-color: var(--kd-c-checkbox-color-background-disabled, var(--kd-g-color-disabled, #b2b2b2)) !important;
|
|
324
333
|
cursor: not-allowed !important;
|
|
325
334
|
}
|
|
326
335
|
.kd-checkbox-default-checked {
|
|
327
|
-
background-color: #5582f3;
|
|
328
|
-
border-color: #5582f3;
|
|
329
|
-
-webkit-transition: background-color calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1), border-color calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
|
|
330
|
-
transition: background-color calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1), border-color calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
|
|
336
|
+
background-color: var(--kd-c-checkbox-color-border-active, var(--kd-g-color-theme, #5582f3));
|
|
337
|
+
border-color: var(--kd-c-checkbox-color-border-active, var(--kd-g-color-theme, #5582f3));
|
|
338
|
+
-webkit-transition: background-color calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0, 0.4, 0.4, 1), border-color calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
|
|
339
|
+
transition: background-color calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0, 0.4, 0.4, 1), border-color calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
|
|
331
340
|
}
|
|
332
341
|
.kd-checkbox-default-checked:not(.kd-checkbox-default-checked-disabled)::after {
|
|
333
|
-
-webkit-animation: fadeEffect calc(0.3s + 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards, waveEffect calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards;
|
|
334
|
-
animation: fadeEffect calc(0.3s + 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards, waveEffect calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards;
|
|
342
|
+
-webkit-animation: fadeEffect calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) + 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards, waveEffect calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards;
|
|
343
|
+
animation: fadeEffect calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) + 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards, waveEffect calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards;
|
|
335
344
|
}
|
|
336
345
|
.kd-checkbox-default-inner:not(.kd-checkbox-default-checked-disabled .kd-checkbox-default-inner) {
|
|
337
|
-
-webkit-animation: kdZoomBounceDefaultEffect calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1) !important;
|
|
338
|
-
animation: kdZoomBounceDefaultEffect calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1) !important;
|
|
346
|
+
-webkit-animation: kdZoomBounceDefaultEffect calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0.4, 0, 0.6, 1) !important;
|
|
347
|
+
animation: kdZoomBounceDefaultEffect calc(var(--kd-c-checkbox-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0.4, 0, 0.6, 1) !important;
|
|
339
348
|
}
|
|
340
349
|
.kd-checkbox-default-inner {
|
|
341
350
|
position: absolute;
|
|
342
|
-
color: #fff;
|
|
343
|
-
font-size: 14px;
|
|
351
|
+
color: var(--kd-c-checkbox-default-input-icon-color, #fff);
|
|
352
|
+
font-size: var(--kd-c-checkbox-default-input-icon-font-size, 14px);
|
|
344
353
|
height: 100%;
|
|
345
354
|
width: 100%;
|
|
346
355
|
top: 5%;
|
|
@@ -358,19 +367,16 @@
|
|
|
358
367
|
font-size: inherit;
|
|
359
368
|
line-height: 100%;
|
|
360
369
|
}
|
|
361
|
-
.kd-checkbox-default-indeterminate {
|
|
362
|
-
background-color: #5582f3;
|
|
363
|
-
border-color: #5582f3;
|
|
364
|
-
}
|
|
365
370
|
.kd-checkbox-default-indeterminate::before {
|
|
366
|
-
background-color: #fff;
|
|
367
371
|
position: absolute;
|
|
368
|
-
width: 70%;
|
|
369
|
-
height: 2px;
|
|
370
|
-
border-radius: 1px;
|
|
371
372
|
top: 50%;
|
|
372
|
-
-webkit-transform: translate(-50%, -50%);
|
|
373
|
-
transform: translate(-50%, -50%);
|
|
374
373
|
left: 50%;
|
|
375
|
-
|
|
374
|
+
width: 8px;
|
|
375
|
+
height: 8px;
|
|
376
|
+
background-color: var(--kd-c-checkbox-color-border-active, var(--kd-g-color-theme, #5582f3));
|
|
377
|
+
border: 0;
|
|
378
|
+
-webkit-transform: translate(-50%, -50%) scale(1);
|
|
379
|
+
transform: translate(-50%, -50%) scale(1);
|
|
380
|
+
opacity: 1;
|
|
381
|
+
content: " ";
|
|
376
382
|
}
|