@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
package/es/radio/style/index.css
CHANGED
|
@@ -92,6 +92,15 @@
|
|
|
92
92
|
/* ----------- Avatar ——————---- end */
|
|
93
93
|
/* ----------- AdvancedSelector ——————---- start */
|
|
94
94
|
/* ----------- AdvancedSelector ——————---- end */
|
|
95
|
+
/* ----------- motion ——————---- start */
|
|
96
|
+
/* ----------- motion ——————---- end */
|
|
97
|
+
/* ----------- transition ——————---- start */
|
|
98
|
+
/* ----------- transition ——————---- end */
|
|
99
|
+
/* ----------- zIndex ——————---- start */
|
|
100
|
+
/*
|
|
101
|
+
普通组件内部自身层级应设置在0-100间
|
|
102
|
+
*/
|
|
103
|
+
/* ----------- zIndex ——————---- end */
|
|
95
104
|
/* 多行显示省略号 */
|
|
96
105
|
/* 单行显示省略号 */
|
|
97
106
|
/** 浮层箭头样式 **/
|
|
@@ -106,26 +115,26 @@
|
|
|
106
115
|
font-feature-settings: 'tnum';
|
|
107
116
|
position: relative;
|
|
108
117
|
display: inline-block;
|
|
109
|
-
padding-left: 13px;
|
|
110
|
-
margin-right: 8px;
|
|
118
|
+
padding-left: var(--kd-c-radio-square-sizing-width-height, 13px);
|
|
119
|
+
margin-right: var(--kd-c-radio-spacing-margin-right, 8px);
|
|
111
120
|
white-space: nowrap;
|
|
112
121
|
cursor: pointer;
|
|
113
122
|
vertical-align: middle;
|
|
114
|
-
color: #212121;
|
|
115
|
-
font-size: 12px;
|
|
123
|
+
color: var(--kd-c-radio-color-font, var(--kd-g-color-text-primary, #212121));
|
|
124
|
+
font-size: var(--kd-c-radio-font-size, var(--kd-g-font-size-small, 12px));
|
|
116
125
|
}
|
|
117
126
|
.kd-radio::before {
|
|
118
127
|
position: absolute;
|
|
119
128
|
top: 50%;
|
|
120
129
|
left: 0;
|
|
121
|
-
height: 13px;
|
|
122
|
-
width: 13px;
|
|
130
|
+
height: var(--kd-c-radio-square-sizing-width-height, 13px);
|
|
131
|
+
width: var(--kd-c-radio-square-sizing-width-height, 13px);
|
|
123
132
|
content: '';
|
|
124
133
|
border-radius: 50%;
|
|
125
134
|
-webkit-box-sizing: border-box;
|
|
126
135
|
box-sizing: border-box;
|
|
127
|
-
border: 1px solid #d9d9d9;
|
|
128
|
-
background-color: #fff;
|
|
136
|
+
border: var(--kd-c-radio-radius-border-width, 1px) solid var(--kd-c-radio-color-border, var(--kd-g-color-border-strong, #d9d9d9));
|
|
137
|
+
background-color: var(--kd-c-radio-color-background, var(--kd-g-color-white, #fff));
|
|
129
138
|
-webkit-transform: translateY(-50%);
|
|
130
139
|
transform: translateY(-50%);
|
|
131
140
|
-webkit-transition: border-color 0.3s, -webkit-box-shadow 0.3s;
|
|
@@ -137,11 +146,11 @@
|
|
|
137
146
|
position: absolute;
|
|
138
147
|
top: 50%;
|
|
139
148
|
left: 2px;
|
|
140
|
-
width:
|
|
141
|
-
height:
|
|
149
|
+
width: calc(var(--kd-c-radio-square-sizing-width-height, 13px) - 4px);
|
|
150
|
+
height: calc(var(--kd-c-radio-square-sizing-width-height, 13px) - 4px);
|
|
142
151
|
content: '';
|
|
143
152
|
border-radius: 50%;
|
|
144
|
-
background-color: #5582f3;
|
|
153
|
+
background-color: var(--kd-c-radio-color-theme, var(--kd-g-color-theme, #5582f3));
|
|
145
154
|
-webkit-transform: translateY(-50%);
|
|
146
155
|
transform: translateY(-50%);
|
|
147
156
|
-webkit-animation: kdRadioLeaveEffect calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1) both;
|
|
@@ -156,27 +165,27 @@
|
|
|
156
165
|
opacity: 0;
|
|
157
166
|
}
|
|
158
167
|
.kd-radio > span {
|
|
159
|
-
padding: 0 6px;
|
|
168
|
+
padding: 0 6px 0 var(--kd-c-radio-spacing-padding-left, 6px);
|
|
160
169
|
}
|
|
161
170
|
.kd-radio:hover::before {
|
|
162
|
-
border-color: #5582f3;
|
|
171
|
+
border-color: var(--kd-c-radio-color-theme, var(--kd-g-color-theme, #5582f3));
|
|
163
172
|
}
|
|
164
173
|
.kd-radio-checked::before {
|
|
165
|
-
border-color: #5582f3;
|
|
174
|
+
border-color: var(--kd-c-radio-color-theme, var(--kd-g-color-theme, #5582f3));
|
|
166
175
|
}
|
|
167
176
|
.kd-radio-checked:focus-within::before {
|
|
168
|
-
-webkit-box-shadow: 0 0 0 3px rgba(
|
|
169
|
-
box-shadow: 0 0 0 3px rgba(
|
|
177
|
+
-webkit-box-shadow: 0 0 0 3px rgba(var(--kd-c-radio-color-theme, var(--kd-g-color-theme, #5582f3)), 10%);
|
|
178
|
+
box-shadow: 0 0 0 3px rgba(var(--kd-c-radio-color-theme, var(--kd-g-color-theme, #5582f3)), 10%);
|
|
170
179
|
}
|
|
171
180
|
.kd-radio-checked::after {
|
|
172
181
|
position: absolute;
|
|
173
182
|
top: 50%;
|
|
174
183
|
left: 2px;
|
|
175
|
-
width:
|
|
176
|
-
height:
|
|
184
|
+
width: calc(var(--kd-c-radio-square-sizing-width-height, 13px) - 4px);
|
|
185
|
+
height: calc(var(--kd-c-radio-square-sizing-width-height, 13px) - 4px);
|
|
177
186
|
content: '';
|
|
178
187
|
border-radius: 50%;
|
|
179
|
-
background-color: #5582f3;
|
|
188
|
+
background-color: var(--kd-c-radio-color-theme, var(--kd-g-color-theme, #5582f3));
|
|
180
189
|
-webkit-transform: translateY(-50%);
|
|
181
190
|
transform: translateY(-50%);
|
|
182
191
|
-webkit-animation: kdRadioEffect calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1) both;
|
|
@@ -189,18 +198,18 @@
|
|
|
189
198
|
.kd-radio-disabled,
|
|
190
199
|
.kd-radio-disabled:hover {
|
|
191
200
|
cursor: not-allowed;
|
|
192
|
-
color: #b2b2b2;
|
|
201
|
+
color: var(--kd-c-radio-color-disabled, var(--kd-g-color-disabled, #b2b2b2));
|
|
193
202
|
}
|
|
194
203
|
.kd-radio-disabled::before,
|
|
195
204
|
.kd-radio-disabled:hover::before {
|
|
196
|
-
border-color: #b2b2b2;
|
|
197
|
-
background-color: #f5f5f5;
|
|
205
|
+
border-color: var(--kd-c-radio-color-disabled, var(--kd-g-color-disabled, #b2b2b2));
|
|
206
|
+
background-color: var(--kd-c-radio-color-background-disabled, var(--kd-g-color-background-contain-disabled, #f5f5f5));
|
|
198
207
|
-webkit-box-shadow: none;
|
|
199
208
|
box-shadow: none;
|
|
200
209
|
}
|
|
201
210
|
.kd-radio-disabled::after,
|
|
202
211
|
.kd-radio-disabled:hover::after {
|
|
203
|
-
background-color: #b2b2b2;
|
|
212
|
+
background-color: var(--kd-c-radio-color-disabled, var(--kd-g-color-disabled, #b2b2b2));
|
|
204
213
|
-webkit-animation: none;
|
|
205
214
|
animation: none;
|
|
206
215
|
}
|
|
@@ -215,29 +224,32 @@
|
|
|
215
224
|
font-feature-settings: 'tnum';
|
|
216
225
|
position: relative;
|
|
217
226
|
display: inline-block;
|
|
218
|
-
height: 32px;
|
|
219
|
-
padding:
|
|
220
|
-
|
|
221
|
-
|
|
227
|
+
height: var(--kd-c-radio-square-sizing-height, 32px);
|
|
228
|
+
padding-top: var(--kd-c-radio-square-spacing-padding-vertical, 0px);
|
|
229
|
+
padding-right: var(--kd-c-radio-square-spacing-padding-horizontal, 20px);
|
|
230
|
+
padding-bottom: var(--kd-c-radio-square-spacing-padding-vertical, 0px);
|
|
231
|
+
padding-left: var(--kd-c-radio-square-spacing-padding-horizontal, 20px);
|
|
232
|
+
margin-right: var(--kd-c-radio-spacing-margin-right, 8px);
|
|
233
|
+
line-height: calc(var(--kd-c-radio-square-sizing-height, 32px) - (var(--kd-c-radio-square-spacing-padding-vertical, 0px) * 2) - (var(--kd-c-radio-radius-border-width, 1px) * 2));
|
|
222
234
|
vertical-align: middle;
|
|
223
|
-
color: #212121;
|
|
224
|
-
font-size: 12px;
|
|
235
|
+
color: var(--kd-c-radio-color-font, var(--kd-g-color-text-primary, #212121));
|
|
236
|
+
font-size: var(--kd-c-radio-font-size, var(--kd-g-font-size-small, 12px));
|
|
225
237
|
cursor: pointer;
|
|
226
|
-
background-color: #fff;
|
|
238
|
+
background-color: var(--kd-c-radio-color-background, var(--kd-g-color-white, #fff));
|
|
227
239
|
overflow: hidden;
|
|
228
240
|
border-radius: 2px;
|
|
229
|
-
border: 1px solid #d9d9d9;
|
|
241
|
+
border: var(--kd-c-radio-radius-border-width, 1px) solid var(--kd-c-radio-color-border, var(--kd-g-color-border-strong, #d9d9d9));
|
|
230
242
|
-webkit-transition: all 0.3s;
|
|
231
243
|
transition: all 0.3s;
|
|
232
244
|
}
|
|
233
245
|
.kd-radio-square::after {
|
|
234
246
|
position: absolute;
|
|
235
|
-
right: -
|
|
236
|
-
bottom: -
|
|
237
|
-
width:
|
|
238
|
-
height:
|
|
247
|
+
right: calc(-1 * (var(--kd-c-radio-square-sizing-height, 32px) - 10px) / 2);
|
|
248
|
+
bottom: calc(-1 * (var(--kd-c-radio-square-sizing-height, 32px) - 10px) / 2);
|
|
249
|
+
width: calc(var(--kd-c-radio-square-sizing-height, 32px) - 10px);
|
|
250
|
+
height: calc(var(--kd-c-radio-square-sizing-height, 32px) - 10px);
|
|
239
251
|
content: '';
|
|
240
|
-
background-color: #5582f3;
|
|
252
|
+
background-color: var(--kd-c-radio-color-theme, var(--kd-g-color-theme, #5582f3));
|
|
241
253
|
-webkit-transform: rotate(45deg);
|
|
242
254
|
transform: rotate(45deg);
|
|
243
255
|
-webkit-animation: kdRadioSquareLeaveEffect calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1) both;
|
|
@@ -260,24 +272,24 @@
|
|
|
260
272
|
height: 100%;
|
|
261
273
|
}
|
|
262
274
|
.kd-radio-square:hover {
|
|
263
|
-
color: #5582f3;
|
|
264
|
-
border-color: #5582f3;
|
|
275
|
+
color: var(--kd-c-radio-color-theme, var(--kd-g-color-theme, #5582f3));
|
|
276
|
+
border-color: var(--kd-c-radio-color-theme, var(--kd-g-color-theme, #5582f3));
|
|
265
277
|
}
|
|
266
278
|
.kd-radio-square-checked {
|
|
267
|
-
border-color: #5582f3;
|
|
279
|
+
border-color: var(--kd-c-radio-color-theme, var(--kd-g-color-theme, #5582f3));
|
|
268
280
|
}
|
|
269
281
|
.kd-radio-square-checked:focus-within {
|
|
270
|
-
-webkit-box-shadow: 0 0 0 3px rgba(
|
|
271
|
-
box-shadow: 0 0 0 3px rgba(
|
|
282
|
+
-webkit-box-shadow: 0 0 0 3px rgba(var(--kd-c-radio-color-theme, var(--kd-g-color-theme, #5582f3)), 10%);
|
|
283
|
+
box-shadow: 0 0 0 3px rgba(var(--kd-c-radio-color-theme, var(--kd-g-color-theme, #5582f3)), 10%);
|
|
272
284
|
}
|
|
273
285
|
.kd-radio-square-checked::after {
|
|
274
286
|
position: absolute;
|
|
275
|
-
right: -
|
|
276
|
-
bottom: -
|
|
277
|
-
width:
|
|
278
|
-
height:
|
|
287
|
+
right: calc(-1 * (var(--kd-c-radio-square-sizing-height, 32px) - 10px) / 2);
|
|
288
|
+
bottom: calc(-1 * (var(--kd-c-radio-square-sizing-height, 32px) - 10px) / 2);
|
|
289
|
+
width: calc(var(--kd-c-radio-square-sizing-height, 32px) - 10px);
|
|
290
|
+
height: calc(var(--kd-c-radio-square-sizing-height, 32px) - 10px);
|
|
279
291
|
content: '';
|
|
280
|
-
background-color: #5582f3;
|
|
292
|
+
background-color: var(--kd-c-radio-color-theme, var(--kd-g-color-theme, #5582f3));
|
|
281
293
|
-webkit-transform: rotate(45deg);
|
|
282
294
|
transform: rotate(45deg);
|
|
283
295
|
-webkit-animation: kdRadioSquareEffect calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1) both;
|
|
@@ -289,16 +301,16 @@
|
|
|
289
301
|
}
|
|
290
302
|
.kd-radio-square-disabled,
|
|
291
303
|
.kd-radio-square-disabled:hover {
|
|
292
|
-
color: #b2b2b2;
|
|
293
|
-
border-color: #d9d9d9;
|
|
294
|
-
background-color: #f5f5f5;
|
|
304
|
+
color: var(--kd-c-radio-color-disabled, var(--kd-g-color-disabled, #b2b2b2));
|
|
305
|
+
border-color: var(--kd-c-radio-color-border-disabled, var(--kd-g-color-border-strong, #d9d9d9));
|
|
306
|
+
background-color: var(--kd-c-radio-color-background-disabled, var(--kd-g-color-background-contain-disabled, #f5f5f5));
|
|
295
307
|
-webkit-box-shadow: none;
|
|
296
308
|
box-shadow: none;
|
|
297
309
|
cursor: not-allowed;
|
|
298
310
|
}
|
|
299
311
|
.kd-radio-square-disabled::after,
|
|
300
312
|
.kd-radio-square-disabled:hover::after {
|
|
301
|
-
background-color: #b2b2b2;
|
|
313
|
+
background-color: var(--kd-c-radio-color-disabled, var(--kd-g-color-disabled, #b2b2b2));
|
|
302
314
|
-webkit-animation: none;
|
|
303
315
|
animation: none;
|
|
304
316
|
}
|
|
@@ -313,22 +325,25 @@
|
|
|
313
325
|
font-feature-settings: 'tnum';
|
|
314
326
|
position: relative;
|
|
315
327
|
display: inline-block;
|
|
316
|
-
height:
|
|
317
|
-
padding:
|
|
318
|
-
|
|
328
|
+
height: var(--kd-c-radio-square-sizing-height, 32px);
|
|
329
|
+
padding-top: var(--kd-c-radio-square-spacing-padding-vertical, 0px);
|
|
330
|
+
padding-right: var(--kd-c-radio-square-spacing-padding-horizontal, 20px);
|
|
331
|
+
padding-bottom: var(--kd-c-radio-square-spacing-padding-vertical, 0px);
|
|
332
|
+
padding-left: var(--kd-c-radio-square-spacing-padding-horizontal, 20px);
|
|
333
|
+
line-height: calc(var(--kd-c-radio-square-sizing-height, 32px) - (var(--kd-c-radio-square-spacing-padding-vertical, 0px) * 2) - (var(--kd-c-radio-radius-border-width, 1px) * 2));
|
|
319
334
|
vertical-align: middle;
|
|
320
|
-
color: #212121;
|
|
321
|
-
font-size: 12px;
|
|
335
|
+
color: var(--kd-c-radio-color-font, var(--kd-g-color-text-primary, #212121));
|
|
336
|
+
font-size: var(--kd-c-radio-font-size, var(--kd-g-font-size-small, 12px));
|
|
322
337
|
cursor: pointer;
|
|
323
|
-
background-color: #fff;
|
|
324
|
-
border: 1px solid #d9d9d9;
|
|
338
|
+
background-color: var(--kd-c-radio-color-background, var(--kd-g-color-white, #fff));
|
|
339
|
+
border: var(--kd-c-radio-radius-border-width, 1px) solid var(--kd-c-radio-color-border, var(--kd-g-color-border-strong, #d9d9d9));
|
|
325
340
|
border-left: none;
|
|
326
341
|
-webkit-transition: all 0.3s;
|
|
327
342
|
transition: all 0.3s;
|
|
328
343
|
}
|
|
329
344
|
.kd-radio-button:first-child {
|
|
330
345
|
border-radius: 2px 0 0 2px;
|
|
331
|
-
border-left: 1px solid #d9d9d9;
|
|
346
|
+
border-left: var(--kd-c-radio-radius-border-width, 1px) solid var(--kd-c-radio-color-border, var(--kd-g-color-border-strong, #d9d9d9));
|
|
332
347
|
}
|
|
333
348
|
.kd-radio-button:first-child::before {
|
|
334
349
|
content: none;
|
|
@@ -339,12 +354,12 @@
|
|
|
339
354
|
.kd-radio-button::before {
|
|
340
355
|
z-index: 10;
|
|
341
356
|
position: absolute;
|
|
342
|
-
top: -1px;
|
|
343
|
-
left: -1px;
|
|
344
|
-
height:
|
|
345
|
-
width: 1px;
|
|
357
|
+
top: calc(-1 * var(--kd-c-radio-radius-border-width, 1px));
|
|
358
|
+
left: calc(-1 * var(--kd-c-radio-radius-border-width, 1px));
|
|
359
|
+
height: var(--kd-c-radio-square-sizing-height, 32px);
|
|
360
|
+
width: var(--kd-c-radio-radius-border-width, 1px);
|
|
346
361
|
content: '';
|
|
347
|
-
background-color: #d9d9d9;
|
|
362
|
+
background-color: var(--kd-c-radio-color-border, var(--kd-g-color-border-strong, #d9d9d9));
|
|
348
363
|
}
|
|
349
364
|
.kd-radio-button-input {
|
|
350
365
|
position: absolute;
|
|
@@ -357,26 +372,26 @@
|
|
|
357
372
|
opacity: 0;
|
|
358
373
|
}
|
|
359
374
|
.kd-radio-button:hover {
|
|
360
|
-
color: #5582f3;
|
|
375
|
+
color: var(--kd-c-radio-color-theme, var(--kd-g-color-theme, #5582f3));
|
|
361
376
|
}
|
|
362
377
|
.kd-radio-button-checked {
|
|
363
378
|
z-index: 1;
|
|
364
|
-
color: #fff;
|
|
365
|
-
border-color: #5582f3;
|
|
366
|
-
background-color: #5582f3;
|
|
379
|
+
color: var(--kd-c-radio-color-background, var(--kd-g-color-white, #fff));
|
|
380
|
+
border-color: var(--kd-c-radio-color-theme, var(--kd-g-color-theme, #5582f3));
|
|
381
|
+
background-color: var(--kd-c-radio-color-theme, var(--kd-g-color-theme, #5582f3));
|
|
367
382
|
}
|
|
368
383
|
.kd-radio-button-checked:focus-within {
|
|
369
|
-
-webkit-box-shadow: 0 0 0 3px rgba(
|
|
370
|
-
box-shadow: 0 0 0 3px rgba(
|
|
384
|
+
-webkit-box-shadow: 0 0 0 3px rgba(var(--kd-c-radio-color-theme, var(--kd-g-color-theme, #5582f3)), 10%);
|
|
385
|
+
box-shadow: 0 0 0 3px rgba(var(--kd-c-radio-color-theme, var(--kd-g-color-theme, #5582f3)), 10%);
|
|
371
386
|
}
|
|
372
387
|
.kd-radio-button-checked:hover {
|
|
373
|
-
color: #fff;
|
|
388
|
+
color: var(--kd-c-radio-color-background, var(--kd-g-color-white, #fff));
|
|
374
389
|
}
|
|
375
390
|
.kd-radio-button-checked::before {
|
|
376
|
-
background-color: #5582f3;
|
|
391
|
+
background-color: var(--kd-c-radio-color-theme, var(--kd-g-color-theme, #5582f3));
|
|
377
392
|
}
|
|
378
393
|
.kd-radio-button-checked:first-child {
|
|
379
|
-
border-left-color: #5582f3;
|
|
394
|
+
border-left-color: var(--kd-c-radio-color-theme, var(--kd-g-color-theme, #5582f3));
|
|
380
395
|
}
|
|
381
396
|
.kd-radio-button-checked:first-child::before {
|
|
382
397
|
content: none;
|
|
@@ -385,14 +400,14 @@
|
|
|
385
400
|
content: none;
|
|
386
401
|
}
|
|
387
402
|
.kd-radio-button-checked.kd-radio-button-disabled {
|
|
388
|
-
background-color: #d9d9d9;
|
|
389
|
-
border-left-color: #d9d9d9;
|
|
403
|
+
background-color: var(--kd-c-radio-color-border, var(--kd-g-color-border-strong, #d9d9d9));
|
|
404
|
+
border-left-color: var(--kd-c-radio-color-border, var(--kd-g-color-border-strong, #d9d9d9));
|
|
390
405
|
-webkit-box-shadow: none;
|
|
391
406
|
box-shadow: none;
|
|
392
407
|
}
|
|
393
408
|
.kd-radio-button-disabled,
|
|
394
409
|
.kd-radio-button-disabled:hover {
|
|
395
|
-
color: #b2b2b2;
|
|
396
|
-
border-color: #d9d9d9;
|
|
410
|
+
color: var(--kd-c-radio-color-disabled, var(--kd-g-color-disabled, #b2b2b2));
|
|
411
|
+
border-color: var(--kd-c-radio-color-border, var(--kd-g-color-border-strong, #d9d9d9));
|
|
397
412
|
cursor: not-allowed;
|
|
398
413
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
@import '../../style/themes/index';
|
|
2
|
-
@import '
|
|
3
|
-
|
|
2
|
+
@import 'token.less';
|
|
4
3
|
@radio-prefix-cls: ~'@{kd-prefix}-radio';
|
|
5
4
|
@radio-square-prefix-cls: ~'@{radio-prefix-cls}-square';
|
|
6
5
|
@radio-button-prefix-cls: ~'@{radio-prefix-cls}-button';
|
|
7
6
|
@radio-group-prefix-cls: ~'@{radio-prefix-cls}-group';
|
|
8
|
-
@radio-focus-shadow: 0 0 0 3px rgba(@
|
|
7
|
+
@radio-focus-shadow: 0 0 0 3px rgba(@radio-color-theme, 10%);
|
|
9
8
|
|
|
10
9
|
// 默认类型(单选项)
|
|
11
10
|
.@{radio-prefix-cls} {
|
|
@@ -31,8 +30,8 @@
|
|
|
31
30
|
content: '';
|
|
32
31
|
border-radius: 50%;
|
|
33
32
|
box-sizing: border-box;
|
|
34
|
-
border: @radio-border-width solid @
|
|
35
|
-
background-color: @
|
|
33
|
+
border: @radio-border-width solid @radio-color-border;
|
|
34
|
+
background-color: @radio-color-background;
|
|
36
35
|
transform: translateY(-50%);
|
|
37
36
|
transition: border-color @transition-duration, box-shadow @transition-duration;
|
|
38
37
|
}
|
|
@@ -41,11 +40,11 @@
|
|
|
41
40
|
position: absolute;
|
|
42
41
|
top: 50%;
|
|
43
42
|
left: 2px;
|
|
44
|
-
width: @radio-circle-size - 4px;
|
|
45
|
-
height: @radio-circle-size - 4px;
|
|
43
|
+
width: calc(@radio-circle-size - 4px);
|
|
44
|
+
height: calc(@radio-circle-size - 4px);
|
|
46
45
|
content: '';
|
|
47
46
|
border-radius: 50%;
|
|
48
|
-
background-color: @
|
|
47
|
+
background-color: @radio-color-theme;
|
|
49
48
|
transform: translateY(-50%);
|
|
50
49
|
animation: kdRadioLeaveEffect calc(@transition-duration - 0.1s) @ease both;
|
|
51
50
|
transition: all @transition-duration @ease;
|
|
@@ -58,22 +57,23 @@
|
|
|
58
57
|
opacity: 0;
|
|
59
58
|
}
|
|
60
59
|
|
|
61
|
-
|
|
62
|
-
padding: 0 6px;
|
|
60
|
+
&>span {
|
|
61
|
+
padding: 0 6px 0 @radio-padding-left;
|
|
63
62
|
}
|
|
64
63
|
|
|
65
64
|
// 悬停状态
|
|
66
65
|
&:hover {
|
|
67
|
-
|
|
66
|
+
|
|
67
|
+
// color: @radio-color-theme;
|
|
68
68
|
&::before {
|
|
69
|
-
border-color: @
|
|
69
|
+
border-color: @radio-color-theme;
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
// 选中状态
|
|
74
74
|
&-checked {
|
|
75
75
|
&::before {
|
|
76
|
-
border-color: @
|
|
76
|
+
border-color: @radio-color-theme;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
&:focus-within::before {
|
|
@@ -84,11 +84,11 @@
|
|
|
84
84
|
position: absolute;
|
|
85
85
|
top: 50%;
|
|
86
86
|
left: 2px;
|
|
87
|
-
width: @radio-circle-size - 4px;
|
|
88
|
-
height: @radio-circle-size - 4px;
|
|
87
|
+
width: calc(@radio-circle-size - 4px);
|
|
88
|
+
height: calc(@radio-circle-size - 4px);
|
|
89
89
|
content: '';
|
|
90
90
|
border-radius: 50%;
|
|
91
|
-
background-color: @
|
|
91
|
+
background-color: @radio-color-theme;
|
|
92
92
|
transform: translateY(-50%);
|
|
93
93
|
animation: kdRadioEffect calc(@transition-duration - 0.1s) @ease both;
|
|
94
94
|
transition: all calc(@transition-duration - 0.1s) @ease;
|
|
@@ -101,16 +101,16 @@
|
|
|
101
101
|
&-disabled,
|
|
102
102
|
&-disabled:hover {
|
|
103
103
|
cursor: not-allowed;
|
|
104
|
-
color: @
|
|
104
|
+
color: @radio-color-disabled;
|
|
105
105
|
|
|
106
106
|
&::before {
|
|
107
|
-
border-color: @
|
|
108
|
-
background-color: @
|
|
107
|
+
border-color: @radio-color-disabled;
|
|
108
|
+
background-color: @radio-color-background-disabled;
|
|
109
109
|
box-shadow: none;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
&::after {
|
|
113
|
-
background-color: @
|
|
113
|
+
background-color: @radio-color-disabled;
|
|
114
114
|
animation: none;
|
|
115
115
|
}
|
|
116
116
|
}
|
|
@@ -124,27 +124,31 @@
|
|
|
124
124
|
position: relative;
|
|
125
125
|
display: inline-block;
|
|
126
126
|
height: @radio-square-height;
|
|
127
|
-
padding: @radio-square-padding;
|
|
127
|
+
padding-top: @radio-square-padding-vertical;
|
|
128
|
+
padding-right: @radio-square-padding-horizontal;
|
|
129
|
+
padding-bottom: @radio-square-padding-vertical;
|
|
130
|
+
padding-left: @radio-square-padding-horizontal;
|
|
128
131
|
margin-right: @radio-margin-right;
|
|
129
|
-
line-height: @radio-square-height - 2;
|
|
132
|
+
// line-height: calc(@radio-square-height - @radio-border-width * 2);
|
|
133
|
+
line-height: calc(@radio-square-height - (@radio-square-padding-vertical * 2) - (@radio-border-width * 2));
|
|
130
134
|
vertical-align: middle;
|
|
131
135
|
color: @radio-font-color;
|
|
132
136
|
font-size: @radio-font-size;
|
|
133
137
|
cursor: pointer;
|
|
134
|
-
background-color: @
|
|
138
|
+
background-color: @radio-color-background;
|
|
135
139
|
overflow: hidden;
|
|
136
140
|
border-radius: @radius-size;
|
|
137
|
-
border: @radio-border-width solid @
|
|
141
|
+
border: @radio-border-width solid @radio-color-border;
|
|
138
142
|
transition: all @transition-duration;
|
|
139
143
|
|
|
140
144
|
&::after {
|
|
141
145
|
position: absolute;
|
|
142
|
-
right: -1 * (@radio-square-height - 10px) / 2;
|
|
143
|
-
bottom: -1 * (@radio-square-height - 10px) / 2;
|
|
144
|
-
width: @radio-square-height - 10px;
|
|
145
|
-
height: @radio-square-height - 10px;
|
|
146
|
+
right: calc(-1 * (@radio-square-height - 10px) / 2);
|
|
147
|
+
bottom: calc(-1 * (@radio-square-height - 10px) / 2);
|
|
148
|
+
width: calc(@radio-square-height - 10px);
|
|
149
|
+
height: calc(@radio-square-height - 10px);
|
|
146
150
|
content: '';
|
|
147
|
-
background-color: @
|
|
151
|
+
background-color: @radio-color-theme;
|
|
148
152
|
transform: rotate(45deg);
|
|
149
153
|
animation: kdRadioSquareLeaveEffect calc(@transition-duration - 0.1s) @ease both;
|
|
150
154
|
transition: all @transition-duration @ease;
|
|
@@ -167,24 +171,26 @@
|
|
|
167
171
|
|
|
168
172
|
// 悬停状态
|
|
169
173
|
&:hover {
|
|
170
|
-
color: @
|
|
171
|
-
border-color: @
|
|
174
|
+
color: @radio-color-theme;
|
|
175
|
+
border-color: @radio-color-theme;
|
|
172
176
|
}
|
|
173
177
|
|
|
174
178
|
// 选中状态
|
|
175
179
|
&-checked {
|
|
176
|
-
border-color: @
|
|
180
|
+
border-color: @radio-color-theme;
|
|
181
|
+
|
|
177
182
|
&:focus-within {
|
|
178
183
|
box-shadow: @radio-focus-shadow;
|
|
179
184
|
}
|
|
185
|
+
|
|
180
186
|
&::after {
|
|
181
187
|
position: absolute;
|
|
182
|
-
right: -1 * (@radio-square-height - 10px) / 2;
|
|
183
|
-
bottom: -1 * (@radio-square-height - 10px) / 2;
|
|
184
|
-
width: @radio-square-height - 10px;
|
|
185
|
-
height: @radio-square-height - 10px;
|
|
188
|
+
right: calc(-1 * (@radio-square-height - 10px) / 2);
|
|
189
|
+
bottom: calc(-1 * (@radio-square-height - 10px) / 2);
|
|
190
|
+
width: calc(@radio-square-height - 10px);
|
|
191
|
+
height: calc(@radio-square-height - 10px);
|
|
186
192
|
content: '';
|
|
187
|
-
background-color: @
|
|
193
|
+
background-color: @radio-color-theme;
|
|
188
194
|
transform: rotate(45deg);
|
|
189
195
|
animation: kdRadioSquareEffect calc(@transition-duration - 0.1s) @ease both;
|
|
190
196
|
transition: all calc(@transition-duration - 0.1s) @ease;
|
|
@@ -195,14 +201,14 @@
|
|
|
195
201
|
|
|
196
202
|
&-disabled,
|
|
197
203
|
&-disabled:hover {
|
|
198
|
-
color: @
|
|
199
|
-
border-color: @
|
|
200
|
-
background-color: @
|
|
204
|
+
color: @radio-color-disabled;
|
|
205
|
+
border-color: @radio-color-border-disabled;
|
|
206
|
+
background-color: @radio-color-background-disabled;
|
|
201
207
|
box-shadow: none;
|
|
202
208
|
cursor: not-allowed;
|
|
203
209
|
|
|
204
210
|
&::after {
|
|
205
|
-
background-color: @
|
|
211
|
+
background-color: @radio-color-disabled;
|
|
206
212
|
animation: none;
|
|
207
213
|
}
|
|
208
214
|
}
|
|
@@ -215,21 +221,25 @@
|
|
|
215
221
|
// 默认状态
|
|
216
222
|
position: relative;
|
|
217
223
|
display: inline-block;
|
|
218
|
-
height: @radio-
|
|
219
|
-
padding: @radio-
|
|
220
|
-
|
|
224
|
+
height: @radio-square-height;
|
|
225
|
+
padding-top: @radio-square-padding-vertical;
|
|
226
|
+
padding-right: @radio-square-padding-horizontal;
|
|
227
|
+
padding-bottom: @radio-square-padding-vertical;
|
|
228
|
+
padding-left: @radio-square-padding-horizontal;
|
|
229
|
+
line-height: calc(@radio-square-height - (@radio-square-padding-vertical * 2) - (@radio-border-width * 2));
|
|
221
230
|
vertical-align: middle;
|
|
222
231
|
color: @radio-font-color;
|
|
223
232
|
font-size: @radio-font-size;
|
|
224
233
|
cursor: pointer;
|
|
225
|
-
background-color: @
|
|
226
|
-
border: @radio-border-width solid @
|
|
234
|
+
background-color: @radio-color-background;
|
|
235
|
+
border: @radio-border-width solid @radio-color-border;
|
|
227
236
|
border-left: none;
|
|
228
237
|
transition: all @transition-duration;
|
|
229
238
|
|
|
230
239
|
&:first-child {
|
|
231
240
|
border-radius: @radius-size 0 0 @radius-size;
|
|
232
|
-
border-left: @radio-border-width solid @
|
|
241
|
+
border-left: @radio-border-width solid @radio-color-border;
|
|
242
|
+
|
|
233
243
|
&::before {
|
|
234
244
|
content: none;
|
|
235
245
|
}
|
|
@@ -242,12 +252,12 @@
|
|
|
242
252
|
&::before {
|
|
243
253
|
z-index: 10;
|
|
244
254
|
position: absolute;
|
|
245
|
-
top: -1 * @radio-border-width;
|
|
246
|
-
left: -1 * @radio-border-width;
|
|
247
|
-
height: @radio-
|
|
255
|
+
top: calc(-1 * @radio-border-width);
|
|
256
|
+
left: calc(-1 * @radio-border-width);
|
|
257
|
+
height: @radio-square-height;
|
|
248
258
|
width: @radio-border-width;
|
|
249
259
|
content: '';
|
|
250
|
-
background-color: @
|
|
260
|
+
background-color: @radio-color-border;
|
|
251
261
|
}
|
|
252
262
|
|
|
253
263
|
&-input {
|
|
@@ -263,53 +273,55 @@
|
|
|
263
273
|
|
|
264
274
|
// 悬停状态
|
|
265
275
|
&:hover {
|
|
266
|
-
color: @
|
|
276
|
+
color: @radio-color-theme;
|
|
277
|
+
// border-color: @radio-color-theme;
|
|
267
278
|
}
|
|
268
279
|
|
|
269
280
|
// 选中状态
|
|
270
281
|
&-checked {
|
|
271
282
|
z-index: 1;
|
|
272
|
-
color: @
|
|
273
|
-
border-color: @
|
|
274
|
-
background-color: @
|
|
283
|
+
color: @radio-color-background;
|
|
284
|
+
border-color: @radio-color-theme;
|
|
285
|
+
background-color: @radio-color-theme;
|
|
275
286
|
|
|
276
287
|
&:focus-within {
|
|
277
288
|
box-shadow: @radio-focus-shadow;
|
|
278
289
|
}
|
|
279
290
|
|
|
280
291
|
&:hover {
|
|
281
|
-
color: @
|
|
292
|
+
color: @radio-color-background;
|
|
282
293
|
}
|
|
283
294
|
|
|
284
295
|
&::before {
|
|
285
|
-
background-color: @
|
|
296
|
+
background-color: @radio-color-theme;
|
|
286
297
|
}
|
|
287
298
|
|
|
288
299
|
&:first-child {
|
|
289
|
-
border-left-color: @
|
|
300
|
+
border-left-color: @radio-color-theme;
|
|
301
|
+
|
|
290
302
|
&::before {
|
|
291
303
|
content: none;
|
|
292
304
|
}
|
|
293
305
|
}
|
|
294
306
|
|
|
295
|
-
|
|
307
|
+
&+.@{radio-button-prefix-cls} {
|
|
296
308
|
&::before {
|
|
297
309
|
content: none;
|
|
298
310
|
}
|
|
299
311
|
}
|
|
300
312
|
|
|
301
313
|
&.@{radio-button-prefix-cls}-disabled {
|
|
302
|
-
background-color: @
|
|
303
|
-
border-left-color: @
|
|
314
|
+
background-color: @radio-color-border;
|
|
315
|
+
border-left-color: @radio-color-border;
|
|
304
316
|
box-shadow: none;
|
|
305
317
|
}
|
|
306
318
|
}
|
|
307
319
|
|
|
308
320
|
&-disabled,
|
|
309
321
|
&-disabled:hover {
|
|
310
|
-
color: @
|
|
311
|
-
border-color: @
|
|
312
|
-
// background-color: @
|
|
322
|
+
color: @radio-color-disabled;
|
|
323
|
+
border-color: @radio-color-border;
|
|
324
|
+
// background-color: @radio-color-background-disabled;
|
|
313
325
|
cursor: not-allowed;
|
|
314
326
|
}
|
|
315
327
|
}
|