@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
|
@@ -102,12 +102,11 @@ var compDefaultProps = {
|
|
|
102
102
|
destroyOnClose: false,
|
|
103
103
|
forceRender: false,
|
|
104
104
|
getContainer: document.body,
|
|
105
|
-
height: 220,
|
|
106
105
|
keyboard: true,
|
|
107
106
|
mask: true,
|
|
108
107
|
maskClosable: true,
|
|
109
108
|
placement: 'right',
|
|
110
|
-
width:
|
|
109
|
+
width: 320,
|
|
111
110
|
zIndex: 1050
|
|
112
111
|
},
|
|
113
112
|
Empty: {},
|
|
@@ -406,6 +405,10 @@ var compDefaultProps = {
|
|
|
406
405
|
size: 'middle',
|
|
407
406
|
shape: 'circle',
|
|
408
407
|
gap: 4
|
|
408
|
+
},
|
|
409
|
+
Link: {
|
|
410
|
+
size: 'middle',
|
|
411
|
+
underscore: false
|
|
409
412
|
}
|
|
410
413
|
};
|
|
411
414
|
export default compDefaultProps;
|
|
@@ -92,78 +92,87 @@
|
|
|
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
|
/** 浮层箭头样式 **/
|
|
98
107
|
.kd-date-picker {
|
|
99
|
-
width: 230px;
|
|
108
|
+
width: var(--kd-c-date-picker-sizing-width, 230px);
|
|
100
109
|
display: -webkit-inline-box;
|
|
101
110
|
display: -ms-inline-flexbox;
|
|
102
111
|
display: inline-flex;
|
|
103
|
-
border: 1px solid #d9d9d9;
|
|
104
|
-
border-radius: 2px;
|
|
112
|
+
border: 1px solid var(--kd-c-date-picker-input-color-border, var(--kd-g-color-border-strong, #d9d9d9));
|
|
113
|
+
border-radius: var(--kd-c-date-picker-input-radius-border, var(--kd-g-radius-border, 2px));
|
|
105
114
|
-webkit-box-sizing: border-box;
|
|
106
115
|
box-sizing: border-box;
|
|
107
|
-
background-color: #fff;
|
|
116
|
+
background-color: var(--kd-c-date-picker-input-color-background, var(--kd-g-color-white, #fff));
|
|
108
117
|
}
|
|
109
118
|
.kd-date-picker-small {
|
|
110
|
-
height: 20px;
|
|
111
|
-
line-height:
|
|
112
|
-
font-size: 12px;
|
|
113
|
-
padding: 4px 9px;
|
|
119
|
+
height: var(--kd-c-date-picker-small-sizing-height, 20px);
|
|
120
|
+
line-height: calc(var(--kd-c-date-picker-small-sizing-height, 20px) - (var(--kd-c-date-picker-small-spacing-padding-vertical, 4px) * 2) - 2);
|
|
121
|
+
font-size: var(--kd-c-date-picker-small-font-size, var(--kd-g-font-size-small, 12px));
|
|
122
|
+
padding: var(--kd-c-date-picker-small-spacing-padding-vertical, 4px) var(--kd-c-date-picker-small-spacing-padding-horizontal, 9px);
|
|
114
123
|
}
|
|
115
124
|
.kd-date-picker-small input {
|
|
116
|
-
font-size: 12px;
|
|
125
|
+
font-size: var(--kd-c-date-picker-small-font-size, var(--kd-g-font-size-small, 12px));
|
|
117
126
|
}
|
|
118
127
|
.kd-date-picker-small .kd-date-picker-clear {
|
|
119
|
-
right:
|
|
128
|
+
right: calc(var(--kd-c-date-picker-small-font-size, var(--kd-g-font-size-small, 12px)) + 1px);
|
|
120
129
|
}
|
|
121
130
|
.kd-date-picker-small.kd-date-picker-range .kd-date-picker-clear {
|
|
122
|
-
right:
|
|
131
|
+
right: calc(var(--kd-c-date-picker-small-font-size, var(--kd-g-font-size-small, 12px)) + 9px);
|
|
123
132
|
}
|
|
124
133
|
.kd-date-picker-large {
|
|
125
|
-
height: 36px;
|
|
126
|
-
line-height:
|
|
127
|
-
font-size: 16px;
|
|
128
|
-
padding: 4px 9px;
|
|
134
|
+
height: var(--kd-c-date-picker-large-sizing-height, 36px);
|
|
135
|
+
line-height: calc(var(--kd-c-date-picker-large-sizing-height, 36px) - (var(--kd-c-date-picker-small-spacing-padding-vertical, 4px) * 2) - 2);
|
|
136
|
+
font-size: var(--kd-c-date-picker-large-font-size, var(--kd-g-font-size-large, 16px));
|
|
137
|
+
padding: var(--kd-c-date-picker-small-spacing-padding-vertical, 4px) var(--kd-c-date-picker-small-spacing-padding-horizontal, 9px);
|
|
129
138
|
}
|
|
130
139
|
.kd-date-picker-large input {
|
|
131
|
-
font-size: 16px;
|
|
140
|
+
font-size: var(--kd-c-date-picker-large-font-size, var(--kd-g-font-size-large, 16px));
|
|
132
141
|
}
|
|
133
142
|
.kd-date-picker-large .kd-date-picker-clear {
|
|
134
|
-
right:
|
|
143
|
+
right: calc(var(--kd-c-date-picker-large-font-size, var(--kd-g-font-size-large, 16px)) + 1px);
|
|
135
144
|
}
|
|
136
145
|
.kd-date-picker-large.kd-date-picker-range .kd-date-picker-clear {
|
|
137
|
-
right:
|
|
146
|
+
right: calc(var(--kd-c-date-picker-large-font-size, var(--kd-g-font-size-large, 16px)) + 9px);
|
|
138
147
|
}
|
|
139
148
|
.kd-date-picker-middle {
|
|
140
|
-
height: 30px;
|
|
141
|
-
line-height:
|
|
142
|
-
font-size: 14px;
|
|
143
|
-
padding: 4px 9px;
|
|
149
|
+
height: var(--kd-c-date-picker-middle-sizing-height, 30px);
|
|
150
|
+
line-height: calc(var(--kd-c-date-picker-middle-sizing-height, 30px) - (var(--kd-c-date-picker-small-spacing-padding-vertical, 4px) * 2) - 2);
|
|
151
|
+
font-size: var(--kd-c-date-picker-middle-font-size, var(--kd-g-font-size-middle, 14px));
|
|
152
|
+
padding: var(--kd-c-date-picker-small-spacing-padding-vertical, 4px) var(--kd-c-date-picker-small-spacing-padding-horizontal, 9px);
|
|
144
153
|
}
|
|
145
154
|
.kd-date-picker-middle input {
|
|
146
|
-
font-size: 14px;
|
|
155
|
+
font-size: var(--kd-c-date-picker-middle-font-size, var(--kd-g-font-size-middle, 14px));
|
|
147
156
|
}
|
|
148
157
|
.kd-date-picker-middle .kd-date-picker-clear {
|
|
149
|
-
right:
|
|
158
|
+
right: calc(var(--kd-c-date-picker-middle-font-size, var(--kd-g-font-size-middle, 14px)) + 1px);
|
|
150
159
|
}
|
|
151
160
|
.kd-date-picker-middle.kd-date-picker-range .kd-date-picker-clear {
|
|
152
|
-
right:
|
|
161
|
+
right: calc(var(--kd-c-date-picker-middle-font-size, var(--kd-g-font-size-middle, 14px)) + 9px);
|
|
153
162
|
}
|
|
154
163
|
.kd-date-picker-borderless {
|
|
155
164
|
border: 0;
|
|
156
165
|
}
|
|
157
166
|
.kd-date-picker-underline {
|
|
158
167
|
border: none;
|
|
159
|
-
border-bottom: 1px solid #999;
|
|
168
|
+
border-bottom: 1px solid var(--kd-c-date-picker-input-underline-color, #999);
|
|
160
169
|
border-radius: 0;
|
|
161
170
|
padding-left: 0;
|
|
162
171
|
}
|
|
163
172
|
.kd-date-picker-disabled {
|
|
164
|
-
background-color: #f5f5f5 !important;
|
|
165
|
-
border-color: #d9d9d9 !important;
|
|
166
|
-
color: #b2b2b2 !important;
|
|
173
|
+
background-color: var(--kd-c-date-picker-input-color-background-disabled, var(--kd-g-color-background-contain-disabled, #f5f5f5)) !important;
|
|
174
|
+
border-color: var(--kd-c-date-picker-input-color-border, var(--kd-g-color-border-strong, #d9d9d9)) !important;
|
|
175
|
+
color: var(--kd-c-date-picker-input-color-disabled, var(--kd-g-color-disabled, #b2b2b2)) !important;
|
|
167
176
|
cursor: not-allowed !important;
|
|
168
177
|
}
|
|
169
178
|
.kd-date-picker-disabled input {
|
|
@@ -171,20 +180,20 @@
|
|
|
171
180
|
}
|
|
172
181
|
.kd-date-picker-underline.kd-date-picker-disabled,
|
|
173
182
|
.kd-date-picker-borderless.kd-date-picker-disabled {
|
|
174
|
-
background-color: #fff;
|
|
175
|
-
border-color: #d9d9d9;
|
|
183
|
+
background-color: var(--kd-c-date-picker-input-color-background, var(--kd-g-color-white, #fff));
|
|
184
|
+
border-color: var(--kd-c-date-picker-input-color-border, var(--kd-g-color-border-strong, #d9d9d9));
|
|
176
185
|
}
|
|
177
186
|
.kd-date-picker-focused {
|
|
178
187
|
-webkit-box-shadow: none;
|
|
179
188
|
box-shadow: none;
|
|
180
189
|
outline: none;
|
|
181
|
-
border-color: #5582f3;
|
|
190
|
+
border-color: var(--kd-c-date-picker-color-background-checked, var(--kd-g-color-theme, #5582f3));
|
|
182
191
|
}
|
|
183
192
|
.kd-date-picker:hover {
|
|
184
|
-
border-color: #5582f3;
|
|
193
|
+
border-color: var(--kd-c-date-picker-color-background-checked, var(--kd-g-color-theme, #5582f3));
|
|
185
194
|
}
|
|
186
195
|
.kd-date-picker:not(.kd-date-picker-disabled) input:focus {
|
|
187
|
-
color: #212121;
|
|
196
|
+
color: var(--kd-c-date-picker-input-color-focused, var(--kd-g-color-text-primary, #212121));
|
|
188
197
|
}
|
|
189
198
|
.kd-date-picker-input {
|
|
190
199
|
position: relative;
|
|
@@ -202,7 +211,7 @@
|
|
|
202
211
|
.kd-date-picker-input input {
|
|
203
212
|
width: 100%;
|
|
204
213
|
min-width: 0;
|
|
205
|
-
color: #666;
|
|
214
|
+
color: var(--kd-c-date-picker-input-color, var(--kd-g-color-text-secondary, #666));
|
|
206
215
|
line-height: inherit;
|
|
207
216
|
-webkit-box-flex: 1;
|
|
208
217
|
-ms-flex: auto;
|
|
@@ -217,25 +226,25 @@
|
|
|
217
226
|
white-space: nowrap;
|
|
218
227
|
}
|
|
219
228
|
.kd-date-picker-input input::-webkit-input-placeholder {
|
|
220
|
-
color: #666;
|
|
229
|
+
color: var(--kd-c-date-picker-input-color-placeholder, var(--kd-g-color-text-secondary, #666));
|
|
221
230
|
}
|
|
222
231
|
.kd-date-picker-input input::-moz-input-placeholder {
|
|
223
|
-
color: #666;
|
|
232
|
+
color: var(--kd-c-date-picker-input-color-placeholder, var(--kd-g-color-text-secondary, #666));
|
|
224
233
|
}
|
|
225
234
|
.kd-date-picker-input input::-ms-input-placeholder {
|
|
226
|
-
color: #666;
|
|
235
|
+
color: var(--kd-c-date-picker-input-color-placeholder, var(--kd-g-color-text-secondary, #666));
|
|
227
236
|
}
|
|
228
237
|
.kd-date-picker-input input:focus {
|
|
229
238
|
-webkit-box-shadow: none;
|
|
230
239
|
box-shadow: none;
|
|
231
240
|
outline: none;
|
|
232
|
-
border-color: #5582f3;
|
|
241
|
+
border-color: var(--kd-c-date-picker-color-background-checked, var(--kd-g-color-theme, #5582f3));
|
|
233
242
|
}
|
|
234
243
|
.kd-date-picker-input input[disabled] {
|
|
235
244
|
background: transparent;
|
|
236
245
|
}
|
|
237
246
|
.kd-date-picker-input-placeholder > input {
|
|
238
|
-
color: #666;
|
|
247
|
+
color: var(--kd-c-date-picker-input-color-placeholder, var(--kd-g-color-text-secondary, #666));
|
|
239
248
|
}
|
|
240
249
|
.kd-date-picker-range {
|
|
241
250
|
display: -webkit-inline-box;
|
|
@@ -248,7 +257,7 @@
|
|
|
248
257
|
padding: 0 8px;
|
|
249
258
|
}
|
|
250
259
|
.kd-date-picker-range .kd-date-picker-clear {
|
|
251
|
-
right: 9px;
|
|
260
|
+
right: var(--kd-c-date-picker-small-spacing-padding-horizontal, 9px);
|
|
252
261
|
}
|
|
253
262
|
.kd-date-picker-range .kd-date-picker-active-bar {
|
|
254
263
|
bottom: -1px;
|
|
@@ -266,8 +275,8 @@
|
|
|
266
275
|
.kd-date-picker-suffix {
|
|
267
276
|
-ms-flex-item-align: center;
|
|
268
277
|
align-self: center;
|
|
269
|
-
margin-left: 10px;
|
|
270
|
-
color: #b2b2b2;
|
|
278
|
+
margin-left: var(--kd-c-date-picker-suffix-spacing-margin-left, 10px);
|
|
279
|
+
color: var(--kd-c-date-picker-icon-color, var(--kd-g-color-disabled, #b2b2b2));
|
|
271
280
|
line-height: 1;
|
|
272
281
|
pointer-events: none;
|
|
273
282
|
}
|
|
@@ -280,9 +289,9 @@
|
|
|
280
289
|
.kd-date-picker-clear {
|
|
281
290
|
position: absolute;
|
|
282
291
|
top: 50%;
|
|
283
|
-
color: #b2b2b2;
|
|
292
|
+
color: var(--kd-c-date-picker-icon-color, var(--kd-g-color-disabled, #b2b2b2));
|
|
284
293
|
line-height: 1;
|
|
285
|
-
background: #fff;
|
|
294
|
+
background: var(--kd-c-date-picker-clear-color-background, var(--kd-g-color-background, #fff));
|
|
286
295
|
-webkit-transform: translateY(-48%);
|
|
287
296
|
transform: translateY(-48%);
|
|
288
297
|
cursor: pointer;
|
|
@@ -292,19 +301,19 @@
|
|
|
292
301
|
vertical-align: top;
|
|
293
302
|
}
|
|
294
303
|
.kd-date-picker-clear:hover {
|
|
295
|
-
color: #87adff;
|
|
304
|
+
color: var(--kd-c-date-picker-clear-color-background-hover, var(--kd-g-color-theme-5, #87adff));
|
|
296
305
|
}
|
|
297
306
|
.kd-date-picker-focused .kd-date-picker-suffix {
|
|
298
|
-
color: #5582f3;
|
|
307
|
+
color: var(--kd-c-date-picker-clear-color-background-focused, var(--kd-g-color-theme, #5582f3));
|
|
299
308
|
}
|
|
300
309
|
.kd-date-picker-panel {
|
|
301
310
|
-webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
|
|
302
311
|
box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
|
|
303
|
-
border-radius: 2px;
|
|
312
|
+
border-radius: var(--kd-c-date-picker-panel-radius-border, var(--kd-g-radius-border, 2px));
|
|
304
313
|
background-color: #fff;
|
|
305
314
|
text-align: center;
|
|
306
315
|
z-index: 999;
|
|
307
|
-
font-size: 14px;
|
|
316
|
+
font-size: var(--kd-c-date-picker-panel-font-size, var(--kd-g-font-size-middle, 14px));
|
|
308
317
|
}
|
|
309
318
|
.kd-date-picker-panel-range {
|
|
310
319
|
display: -webkit-box;
|
|
@@ -319,7 +328,7 @@
|
|
|
319
328
|
}
|
|
320
329
|
.kd-date-picker-panel .kd-date-picker-warpper {
|
|
321
330
|
font-size: 12px;
|
|
322
|
-
background: #fff;
|
|
331
|
+
background: var(--kd-c-date-picker-wrapper-color-background, var(--kd-g-color-background, #fff));
|
|
323
332
|
}
|
|
324
333
|
.kd-date-picker-panel .kd-date-picker-warpper .kd-date-picker-month,
|
|
325
334
|
.kd-date-picker-panel .kd-date-picker-warpper .kd-date-picker-year,
|
|
@@ -356,7 +365,7 @@
|
|
|
356
365
|
.kd-date-picker-panel .kd-date-picker-warpper .kd-date-picker-quarter-text {
|
|
357
366
|
line-height: 24px;
|
|
358
367
|
display: inline-block;
|
|
359
|
-
border-radius: 2px;
|
|
368
|
+
border-radius: var(--kd-c-date-picker-panel-radius-border, var(--kd-g-radius-border, 2px));
|
|
360
369
|
}
|
|
361
370
|
.kd-date-picker-panel .kd-date-picker-warpper .kd-date-picker-year-warpper .kd-date-picker-year-item {
|
|
362
371
|
overflow: hidden;
|
|
@@ -382,7 +391,7 @@
|
|
|
382
391
|
width: 6px;
|
|
383
392
|
height: 6px;
|
|
384
393
|
border-radius: 6px;
|
|
385
|
-
background: #5582f3;
|
|
394
|
+
background: var(--kd-c-date-picker-color-background-checked, var(--kd-g-color-theme, #5582f3));
|
|
386
395
|
content: '';
|
|
387
396
|
bottom: 0;
|
|
388
397
|
left: calc(50% - 3px);
|
|
@@ -395,7 +404,7 @@
|
|
|
395
404
|
background: #f5f5f5;
|
|
396
405
|
}
|
|
397
406
|
.kd-date-picker-panel .kd-date-picker-warpper .kd-date-picker-year-warpper .kd-date-picker-year-item .kd-date-picker-year-text-selected {
|
|
398
|
-
background: #5582f3;
|
|
407
|
+
background: var(--kd-c-date-picker-color-background-checked, var(--kd-g-color-theme, #5582f3));
|
|
399
408
|
color: #fff;
|
|
400
409
|
}
|
|
401
410
|
.kd-date-picker-panel .kd-date-picker-warpper .kd-date-picker-year .kd-date-picker-range-view::before,
|
|
@@ -427,7 +436,7 @@
|
|
|
427
436
|
width: 6px;
|
|
428
437
|
height: 6px;
|
|
429
438
|
border-radius: 6px;
|
|
430
|
-
background: #5582f3;
|
|
439
|
+
background: var(--kd-c-date-picker-color-background-checked, var(--kd-g-color-theme, #5582f3));
|
|
431
440
|
content: '';
|
|
432
441
|
bottom: 0;
|
|
433
442
|
left: calc(50% - 3px);
|
|
@@ -440,7 +449,7 @@
|
|
|
440
449
|
background: #f5f5f5;
|
|
441
450
|
}
|
|
442
451
|
.kd-date-picker-panel .kd-date-picker-warpper .kd-date-picker-month-warpper .kd-date-picker-month-item .kd-date-picker-month-text-selected {
|
|
443
|
-
background: #5582f3;
|
|
452
|
+
background: var(--kd-c-date-picker-color-background-checked, var(--kd-g-color-theme, #5582f3));
|
|
444
453
|
color: #fff;
|
|
445
454
|
}
|
|
446
455
|
.kd-date-picker-panel .kd-date-picker-warpper .kd-date-picker-month .kd-date-picker-range-view::before,
|
|
@@ -477,7 +486,7 @@
|
|
|
477
486
|
width: 6px;
|
|
478
487
|
height: 6px;
|
|
479
488
|
border-radius: 6px;
|
|
480
|
-
background: #5582f3;
|
|
489
|
+
background: var(--kd-c-date-picker-color-background-checked, var(--kd-g-color-theme, #5582f3));
|
|
481
490
|
content: '';
|
|
482
491
|
bottom: 0;
|
|
483
492
|
left: calc(50% - 3px);
|
|
@@ -490,7 +499,7 @@
|
|
|
490
499
|
background: #f5f5f5;
|
|
491
500
|
}
|
|
492
501
|
.kd-date-picker-panel .kd-date-picker-warpper .kd-date-picker-quarter-warpper .kd-date-picker-quarter-item .kd-date-picker-quarter-text-selected {
|
|
493
|
-
background: #5582f3;
|
|
502
|
+
background: var(--kd-c-date-picker-color-background-checked, var(--kd-g-color-theme, #5582f3));
|
|
494
503
|
color: #fff;
|
|
495
504
|
}
|
|
496
505
|
.kd-date-picker-panel .kd-date-picker-warpper .kd-date-picker-calendar {
|
|
@@ -577,7 +586,7 @@
|
|
|
577
586
|
background: #f5f5f5;
|
|
578
587
|
}
|
|
579
588
|
.kd-date-picker-panel .kd-date-picker-warpper .kd-date-picker-calendar .kd-date-picker-calendar-week-line.kd-date-picker-calendar-week-selected .kd-date-picker-calendar-week-text::before {
|
|
580
|
-
background: #5582f3;
|
|
589
|
+
background: var(--kd-c-date-picker-color-background-checked, var(--kd-g-color-theme, #5582f3));
|
|
581
590
|
}
|
|
582
591
|
.kd-date-picker-panel .kd-date-picker-warpper .kd-date-picker-calendar .kd-date-picker-calendar-week-line.kd-date-picker-calendar-week-selected:hover .kd-date-picker-calendar-item:not(.kd-date-picker-calendar-item-disabled) .kd-date-picker-calendar-week-text::before {
|
|
583
592
|
background: #104ccc;
|
|
@@ -622,7 +631,7 @@
|
|
|
622
631
|
text-align: center;
|
|
623
632
|
line-height: 32px;
|
|
624
633
|
display: inline-block;
|
|
625
|
-
border-radius: 2px;
|
|
634
|
+
border-radius: var(--kd-c-date-picker-panel-radius-border, var(--kd-g-radius-border, 2px));
|
|
626
635
|
color: #b2b2b2;
|
|
627
636
|
}
|
|
628
637
|
.kd-date-picker-panel .kd-date-picker-warpper .kd-date-picker-calendar .kd-date-picker-calendar-text-today,
|
|
@@ -635,7 +644,7 @@
|
|
|
635
644
|
width: 6px;
|
|
636
645
|
height: 6px;
|
|
637
646
|
border-radius: 6px;
|
|
638
|
-
background: #5582f3;
|
|
647
|
+
background: var(--kd-c-date-picker-color-background-checked, var(--kd-g-color-theme, #5582f3));
|
|
639
648
|
content: '';
|
|
640
649
|
bottom: 0;
|
|
641
650
|
left: calc(50% - 3px);
|
|
@@ -652,7 +661,7 @@
|
|
|
652
661
|
color: #212121;
|
|
653
662
|
}
|
|
654
663
|
.kd-date-picker-panel .kd-date-picker-warpper .kd-date-picker-calendar .kd-date-picker-calendar-current .kd-date-picker-calendar-text-selected {
|
|
655
|
-
background: #5582f3;
|
|
664
|
+
background: var(--kd-c-date-picker-color-background-checked, var(--kd-g-color-theme, #5582f3));
|
|
656
665
|
color: #fff;
|
|
657
666
|
}
|
|
658
667
|
.kd-date-picker-panel .kd-date-picker-warpper .kd-date-picker-calendar .kd-date-picker-calendar-weeknumber,
|
|
@@ -708,8 +717,8 @@
|
|
|
708
717
|
}
|
|
709
718
|
.kd-date-picker-panel .kd-date-picker-time-header,
|
|
710
719
|
.kd-date-picker-panel .kd-date-picker-header {
|
|
711
|
-
height: 36px;
|
|
712
|
-
line-height: 36px;
|
|
720
|
+
height: var(--kd-c-date-picker-panel-header-sizing-height, 36px);
|
|
721
|
+
line-height: var(--kd-c-date-picker-panel-header-sizing-height, 36px);
|
|
713
722
|
background: #fafafa;
|
|
714
723
|
color: #212121;
|
|
715
724
|
padding: 7px;
|
|
@@ -806,7 +815,7 @@
|
|
|
806
815
|
-webkit-box-sizing: border-box;
|
|
807
816
|
box-sizing: border-box;
|
|
808
817
|
text-align: right;
|
|
809
|
-
background: #fff;
|
|
818
|
+
background: var(--kd-c-date-picker-footer-color-background, var(--kd-g-color-background, #fff));
|
|
810
819
|
}
|
|
811
820
|
.kd-date-picker-panel .kd-date-picker-footer::after {
|
|
812
821
|
content: '';
|
|
@@ -820,9 +829,9 @@
|
|
|
820
829
|
.kd-date-picker-panel .kd-date-picker-footer .kd-date-picker-ok-btn {
|
|
821
830
|
display: inline-block;
|
|
822
831
|
padding: 5px 12px;
|
|
823
|
-
background: #5582f3;
|
|
832
|
+
background: var(--kd-c-date-picker-color-background-checked, var(--kd-g-color-theme, #5582f3));
|
|
824
833
|
color: #fff;
|
|
825
|
-
border-radius: 2px;
|
|
834
|
+
border-radius: var(--kd-c-date-picker-panel-radius-border, var(--kd-g-radius-border, 2px));
|
|
826
835
|
line-height: initial;
|
|
827
836
|
vertical-align: middle;
|
|
828
837
|
cursor: pointer;
|
|
@@ -857,7 +866,7 @@
|
|
|
857
866
|
display: -webkit-box;
|
|
858
867
|
display: -ms-flexbox;
|
|
859
868
|
display: flex;
|
|
860
|
-
background: #f2f2f2;
|
|
869
|
+
background: var(--kd-c-date-picker-container-color-background, var(--kd-g-color-background-2, #f2f2f2));
|
|
861
870
|
}
|
|
862
871
|
.kd-date-picker-container-date {
|
|
863
872
|
display: -webkit-box;
|
|
@@ -866,15 +875,15 @@
|
|
|
866
875
|
}
|
|
867
876
|
.kd-date-picker-container .kd-date-picker-ranges {
|
|
868
877
|
width: 160px;
|
|
869
|
-
color: #212121;
|
|
878
|
+
color: var(--kd-c-date-picker-container-color, var(--kd-g-color-text-primary, #212121));
|
|
870
879
|
padding: 0 12px;
|
|
871
880
|
text-align: left;
|
|
872
881
|
overflow: auto;
|
|
873
882
|
max-height: 276px;
|
|
874
883
|
}
|
|
875
884
|
.kd-date-picker-container .kd-date-picker-ranges-item {
|
|
876
|
-
height: 36px;
|
|
877
|
-
line-height: 36px;
|
|
878
|
-
font-size: 12px;
|
|
879
|
-
border-bottom: 0.5px solid #e5e5e5;
|
|
885
|
+
height: var(--kd-c-date-picker-panel-header-sizing-height, 36px);
|
|
886
|
+
line-height: var(--kd-c-date-picker-panel-header-sizing-height, 36px);
|
|
887
|
+
font-size: var(--kd-c-date-picker-container-font-size, var(--kd-g-font-size-small, 12px));
|
|
888
|
+
border-bottom: 0.5px solid var(--kd-c-date-picker-container-color-border, var(--kd-g-color-border-weak, #e5e5e5));
|
|
880
889
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@import '../../style/themes/index';
|
|
2
2
|
@import '../../style/mixins/index';
|
|
3
3
|
@import './mixin.less';
|
|
4
|
-
|
|
4
|
+
|
|
5
5
|
|
|
6
6
|
@datePicker-prefix-cls: ~'@{kd-prefix}-date-picker';
|
|
7
7
|
// @rangePicker-prefix-cls: ~'@{kd-prefix}-rangePicker';
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.@{datePicker-prefix-cls}-clear {
|
|
26
|
-
right: @date-small-font-size +
|
|
26
|
+
right: calc(@date-small-font-size + 1px);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
&.@{datePicker-prefix-cls}-range .@{datePicker-prefix-cls}-clear {
|
|
30
|
-
right: @date-small-font-size +
|
|
30
|
+
right: calc(@date-small-font-size + 9px);
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
.@{datePicker-prefix-cls}-clear {
|
|
42
|
-
right:
|
|
42
|
+
right:calc(@date-large-font-size + 1px);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
&.@{datePicker-prefix-cls}-range .@{datePicker-prefix-cls}-clear {
|
|
46
|
-
right: @date-large-font-size +
|
|
46
|
+
right: calc(@date-large-font-size + 9px);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
.@{datePicker-prefix-cls}-clear {
|
|
58
|
-
right: @date-middle-font-size +
|
|
58
|
+
right: calc(@date-middle-font-size + 1px);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
&.@{datePicker-prefix-cls}-range .@{datePicker-prefix-cls}-clear {
|
|
62
|
-
right: @date-middle-font-size +
|
|
62
|
+
right: calc(@date-middle-font-size + 9px);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
|
|
94
94
|
&-placeholder {
|
|
95
95
|
> input {
|
|
96
|
-
color: @date-
|
|
96
|
+
color: @date-input-color-placeholder;
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
}
|
|
@@ -130,8 +130,8 @@
|
|
|
130
130
|
|
|
131
131
|
&-suffix {
|
|
132
132
|
align-self: center;
|
|
133
|
-
margin-left: @date-
|
|
134
|
-
color: @
|
|
133
|
+
margin-left: @date-suffix-spacing-margin-left;
|
|
134
|
+
color: @date-icon-color;
|
|
135
135
|
line-height: 1;
|
|
136
136
|
pointer-events: none;
|
|
137
137
|
|
|
@@ -149,9 +149,9 @@
|
|
|
149
149
|
&-clear {
|
|
150
150
|
position: absolute;
|
|
151
151
|
top: 50%;
|
|
152
|
-
color: @
|
|
152
|
+
color: @date-icon-color;
|
|
153
153
|
line-height: 1;
|
|
154
|
-
background: @
|
|
154
|
+
background: @date-clear-background-color;
|
|
155
155
|
transform: translateY(-48%);
|
|
156
156
|
cursor: pointer;
|
|
157
157
|
opacity: 0;
|
|
@@ -161,24 +161,24 @@
|
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
&:hover {
|
|
164
|
-
color: @
|
|
164
|
+
color: @date-clear-background-color-hover;
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
&-focused {
|
|
169
169
|
.@{datePicker-prefix-cls}-suffix {
|
|
170
|
-
color: @
|
|
170
|
+
color: @date-clear-background-color-focused;
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
.@{datePicker-prefix-cls-panel} {
|
|
176
176
|
box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
|
|
177
|
-
border-radius: @radius
|
|
177
|
+
border-radius: @date-panel-border-radius;
|
|
178
178
|
background-color: #fff;
|
|
179
179
|
text-align: center;
|
|
180
180
|
z-index: 999;
|
|
181
|
-
font-size: @font-size;
|
|
181
|
+
font-size: @date-panel-font-size;
|
|
182
182
|
|
|
183
183
|
&-range {
|
|
184
184
|
display: flex;
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
|
|
193
193
|
.@{datePicker-prefix-cls}-warpper {
|
|
194
194
|
font-size: 12px;
|
|
195
|
-
background: @
|
|
195
|
+
background: @date-wrapper-color-background;
|
|
196
196
|
|
|
197
197
|
.@{datePicker-prefix-cls}-month,
|
|
198
198
|
.@{datePicker-prefix-cls}-year,
|
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
.@{datePicker-prefix-cls}-quarter-text {
|
|
226
226
|
line-height: 24px;
|
|
227
227
|
display: inline-block;
|
|
228
|
-
border-radius: @radius
|
|
228
|
+
border-radius: @date-panel-border-radius;
|
|
229
229
|
}
|
|
230
230
|
|
|
231
231
|
.@{datePicker-prefix-cls}-year {
|
|
@@ -256,7 +256,7 @@
|
|
|
256
256
|
}
|
|
257
257
|
|
|
258
258
|
.@{datePicker-prefix-cls}-year-text-today {
|
|
259
|
-
.today-after(@
|
|
259
|
+
.today-after(@date-color-background-checked);
|
|
260
260
|
}
|
|
261
261
|
|
|
262
262
|
&-disabled {
|
|
@@ -269,7 +269,7 @@
|
|
|
269
269
|
}
|
|
270
270
|
|
|
271
271
|
.@{datePicker-prefix-cls}-year-text-selected {
|
|
272
|
-
background: @
|
|
272
|
+
background: @date-color-background-checked;
|
|
273
273
|
color: #fff;
|
|
274
274
|
}
|
|
275
275
|
}
|
|
@@ -312,7 +312,7 @@
|
|
|
312
312
|
}
|
|
313
313
|
|
|
314
314
|
.@{datePicker-prefix-cls}-month-text-today {
|
|
315
|
-
.today-after(@
|
|
315
|
+
.today-after(@date-color-background-checked);
|
|
316
316
|
}
|
|
317
317
|
|
|
318
318
|
&-disabled {
|
|
@@ -325,7 +325,7 @@
|
|
|
325
325
|
}
|
|
326
326
|
|
|
327
327
|
.@{datePicker-prefix-cls}-month-text-selected {
|
|
328
|
-
background: @
|
|
328
|
+
background: @date-color-background-checked;
|
|
329
329
|
color: #fff;
|
|
330
330
|
}
|
|
331
331
|
}
|
|
@@ -372,7 +372,7 @@
|
|
|
372
372
|
}
|
|
373
373
|
|
|
374
374
|
.@{datePicker-prefix-cls}-quarter-text-today {
|
|
375
|
-
.today-after(@
|
|
375
|
+
.today-after(@date-color-background-checked);
|
|
376
376
|
}
|
|
377
377
|
|
|
378
378
|
&-disabled {
|
|
@@ -385,7 +385,7 @@
|
|
|
385
385
|
}
|
|
386
386
|
|
|
387
387
|
.@{datePicker-prefix-cls}-quarter-text-selected {
|
|
388
|
-
background: @
|
|
388
|
+
background: @date-color-background-checked;
|
|
389
389
|
color: #fff;
|
|
390
390
|
}
|
|
391
391
|
}
|
|
@@ -483,7 +483,7 @@
|
|
|
483
483
|
|
|
484
484
|
&.@{datePicker-prefix-cls}-calendar-week-selected {
|
|
485
485
|
.@{datePicker-prefix-cls}-calendar-week-text::before {
|
|
486
|
-
background: @
|
|
486
|
+
background: @date-color-background-checked;
|
|
487
487
|
}
|
|
488
488
|
|
|
489
489
|
&:hover {
|
|
@@ -539,11 +539,11 @@
|
|
|
539
539
|
text-align: center;
|
|
540
540
|
line-height: 32px;
|
|
541
541
|
display: inline-block;
|
|
542
|
-
border-radius: @radius
|
|
542
|
+
border-radius: @date-panel-border-radius;
|
|
543
543
|
color: #b2b2b2;
|
|
544
544
|
|
|
545
545
|
&-today {
|
|
546
|
-
.today-after(@
|
|
546
|
+
.today-after(@date-color-background-checked);
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
549
|
|
|
@@ -563,7 +563,7 @@
|
|
|
563
563
|
}
|
|
564
564
|
|
|
565
565
|
.@{datePicker-prefix-cls}-calendar-text-selected {
|
|
566
|
-
background: @
|
|
566
|
+
background: @date-color-background-checked;
|
|
567
567
|
color: #fff;
|
|
568
568
|
}
|
|
569
569
|
}
|
|
@@ -732,7 +732,7 @@
|
|
|
732
732
|
font-size: 12px;
|
|
733
733
|
box-sizing: border-box;
|
|
734
734
|
text-align: right;
|
|
735
|
-
background: @
|
|
735
|
+
background: @date-footer-color-background;
|
|
736
736
|
|
|
737
737
|
&::after {
|
|
738
738
|
content: '';
|
|
@@ -748,9 +748,9 @@
|
|
|
748
748
|
.@{datePicker-prefix-cls}-ok-btn {
|
|
749
749
|
display: inline-block;
|
|
750
750
|
padding: 5px 12px;
|
|
751
|
-
background: @
|
|
751
|
+
background: @date-color-background-checked;
|
|
752
752
|
color: #fff;
|
|
753
|
-
border-radius: @radius
|
|
753
|
+
border-radius: @date-panel-border-radius;
|
|
754
754
|
line-height: initial;
|
|
755
755
|
vertical-align: middle;
|
|
756
756
|
cursor: pointer;
|
|
@@ -796,15 +796,15 @@
|
|
|
796
796
|
|
|
797
797
|
.@{datePicker-prefix-cls}-container {
|
|
798
798
|
display: flex;
|
|
799
|
-
background: @
|
|
799
|
+
background: @date-container-color-background;
|
|
800
800
|
|
|
801
801
|
&-date{
|
|
802
802
|
display: flex;
|
|
803
803
|
}
|
|
804
804
|
|
|
805
805
|
.@{datePicker-prefix-cls}-ranges {
|
|
806
|
-
width:
|
|
807
|
-
color: @
|
|
806
|
+
width: 160px;
|
|
807
|
+
color: @date-container-color;
|
|
808
808
|
padding: 0 12px;
|
|
809
809
|
text-align: left;
|
|
810
810
|
overflow: auto;
|
|
@@ -813,8 +813,8 @@
|
|
|
813
813
|
&-item {
|
|
814
814
|
height: @date-panel-header-height;
|
|
815
815
|
line-height: @date-panel-header-height;
|
|
816
|
-
font-size: @
|
|
817
|
-
border-bottom: .5px solid @
|
|
816
|
+
font-size: @date-container-font-size;
|
|
817
|
+
border-bottom: .5px solid @date-container-color-border;
|
|
818
818
|
}
|
|
819
819
|
}
|
|
820
820
|
}
|