@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
|
@@ -1,59 +1,66 @@
|
|
|
1
|
+
@import './token.less';
|
|
2
|
+
|
|
1
3
|
// 输入框默认样式Mixins
|
|
2
4
|
.input(@prefix) {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
5
|
+
@disabled-prefix-cls: ~'@{prefix}-disabled';
|
|
6
|
+
width: 100%;
|
|
7
|
+
min-width: 0;
|
|
8
|
+
border: @input-border-width-inner solid @input-border-color-disabled-inner;
|
|
9
|
+
border-radius: @input-border-radius-inner;
|
|
10
|
+
color: @input-font-color-inner;
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
background-color: @input-background-color-inner;
|
|
13
|
+
display: inline-block;
|
|
14
|
+
font-variant: tabular-nums;
|
|
15
|
+
list-style: none;
|
|
16
|
+
background-image: none;
|
|
17
|
+
font-feature-settings: "tnum";
|
|
16
18
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
19
|
+
&::-webkit-input-placeholder {
|
|
20
|
+
color: @input-placeholder-color-inner !important;
|
|
21
|
+
}
|
|
22
|
+
&::-moz-input-placeholder {
|
|
23
|
+
color: @input-placeholder-color-inner !important;
|
|
24
|
+
}
|
|
25
|
+
&::-ms-input-placeholder {
|
|
26
|
+
color: @input-placeholder-color-inner !important;
|
|
27
|
+
}
|
|
28
|
+
&:focus {
|
|
29
|
+
box-shadow: none;
|
|
30
|
+
outline: none;
|
|
31
|
+
}
|
|
32
|
+
&:not(.@{disabled-prefix-cls}):hover {
|
|
33
|
+
border-color: @input-border-color-focused;
|
|
34
|
+
}
|
|
35
|
+
&:not(.@{disabled-prefix-cls}):focus {
|
|
36
|
+
color: @input-focus-color;
|
|
37
|
+
border-color: @input-border-color-focused;
|
|
38
|
+
}
|
|
37
39
|
}
|
|
40
|
+
|
|
38
41
|
.input-size(@height, @fonSize, @padding-vertical, @padding-horizontal) {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
height: @height;
|
|
43
|
+
line-height: calc(@height - (@padding-vertical * 2) - (@input-border-width * 2));
|
|
44
|
+
font-size: @fonSize;
|
|
45
|
+
padding: @padding-vertical @padding-horizontal;
|
|
43
46
|
}
|
|
47
|
+
|
|
44
48
|
.input-clear-icon() {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
color: @input-border-color-focused;
|
|
51
|
+
i {
|
|
52
|
+
vertical-align: middle;
|
|
53
|
+
font-size: 12px !important;
|
|
54
|
+
}
|
|
51
55
|
}
|
|
56
|
+
|
|
57
|
+
|
|
52
58
|
.border-less() {
|
|
53
|
-
|
|
59
|
+
border: none !important;
|
|
54
60
|
}
|
|
61
|
+
|
|
55
62
|
.underline() {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
63
|
+
border: none;
|
|
64
|
+
border-bottom: 1px solid @input-color-border;
|
|
65
|
+
border-radius: 0 !important;
|
|
59
66
|
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
@import "../../style/themes/token.less";
|
|
2
|
+
|
|
3
|
+
@input-prefix: '--@{kd-prefix}-c-input';
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
// color
|
|
7
|
+
@input-font-color-inner: var(~'@{input-prefix}-color', @color-text-secondary);
|
|
8
|
+
@input-placeholder-color-inner: var(~'@{input-prefix}-color-placeholder', @color-text-third);
|
|
9
|
+
@input-color-border: var(~'@{input-prefix}-color-border', #999);
|
|
10
|
+
@input-background-color-inner: var(~'@{input-prefix}-color-background', @color-white);
|
|
11
|
+
@input-background-color-disabled-inner: var(~'@{input-prefix}-color-background-disabled', @color-background-contain-disabled);
|
|
12
|
+
@input-border-color-focused: var(~'@{input-prefix}-color-border-focused', @color-theme);
|
|
13
|
+
@input-border-color-disabled-inner: var(~'@{input-prefix}-color-border-disabled', @color-border-strong);
|
|
14
|
+
@input-color-disabled-inner: var(~'@{input-prefix}-color-disabled', @color-disabled);
|
|
15
|
+
|
|
16
|
+
// sizing
|
|
17
|
+
@input-small-height-inner: var(~'@{input-prefix}-small-sizing-height', 20px);
|
|
18
|
+
@input-middle-height-inner: var(~'@{input-prefix}-middle-sizing-height', 30px);
|
|
19
|
+
@input-large-height-inner: var(~'@{input-prefix}-large-sizing-height', 36px);
|
|
20
|
+
@input-border-width-inner: var(~'@{input-prefix}-sizing-border', 1px);
|
|
21
|
+
|
|
22
|
+
// spacing
|
|
23
|
+
@input-small-padding-vertical-inner: var(~'@{input-prefix}-small-spacing-padding-vertical', 3px);
|
|
24
|
+
@input-small-padding-horizontal-inner: var(~'@{input-prefix}-small-spacing-padding-horizontal', 9px);
|
|
25
|
+
@input-middle-padding-vertical-inner: var(~'@{input-prefix}-middle-spacing-padding-vertical', 5px);
|
|
26
|
+
@input-middle-padding-horizontal-inner: var(~'@{input-prefix}-middle-spacing-padding-horizontal', 9px);
|
|
27
|
+
@input-large-padding-vertical-inner: var(~'@{input-prefix}-large-spacing-padding-vertical', 8px);
|
|
28
|
+
@input-large-padding-horizontal-inner: var(~'@{input-prefix}-large-spacing-padding-horizontal', 9px);
|
|
29
|
+
|
|
30
|
+
// motion
|
|
31
|
+
@transition-duration-inner: var(~'@{input-prefix}-motion-duration', @duration-promptly);
|
|
32
|
+
|
|
33
|
+
// font
|
|
34
|
+
@input-small-font-size-inner: var(~'@{input-prefix}-small-font-size', @font-size-small);
|
|
35
|
+
@input-middle-font-size-inner: var(~'@{input-prefix}-middle-font-size', @font-size-middle);
|
|
36
|
+
@input-large-font-size-inner: var(~'@{input-prefix}-large-font-size', @font-size-large);
|
|
37
|
+
|
|
38
|
+
// radius
|
|
39
|
+
@input-border-radius-inner: var(~'@{input-prefix}-radius-border', @radius-border);
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
@@ -92,6 +92,15 @@
|
|
|
92
92
|
/* ----------- Avatar ——————---- end */
|
|
93
93
|
/* ----------- AdvancedSelector ——————---- start */
|
|
94
94
|
/* ----------- AdvancedSelector ——————---- end */
|
|
95
|
+
/* ----------- motion ——————---- start */
|
|
96
|
+
/* ----------- motion ——————---- end */
|
|
97
|
+
/* ----------- transition ——————---- start */
|
|
98
|
+
/* ----------- transition ——————---- end */
|
|
99
|
+
/* ----------- zIndex ——————---- start */
|
|
100
|
+
/*
|
|
101
|
+
普通组件内部自身层级应设置在0-100间
|
|
102
|
+
*/
|
|
103
|
+
/* ----------- zIndex ——————---- end */
|
|
95
104
|
.kd-inputNumber-baseStep {
|
|
96
105
|
display: -webkit-box;
|
|
97
106
|
display: -ms-flexbox;
|
|
@@ -108,24 +117,24 @@
|
|
|
108
117
|
cursor: pointer;
|
|
109
118
|
}
|
|
110
119
|
.kd-inputNumber-baseStep-small {
|
|
111
|
-
width: 20px;
|
|
120
|
+
width: var(--kd-c-input-number-sizing-height-small, 20px);
|
|
112
121
|
}
|
|
113
122
|
.kd-inputNumber-baseStep-middle {
|
|
114
|
-
width: 30px;
|
|
123
|
+
width: var(--kd-c-input-number-sizing-height-middle, 30px);
|
|
115
124
|
}
|
|
116
125
|
.kd-inputNumber-baseStep-large {
|
|
117
|
-
width: 36px;
|
|
126
|
+
width: var(--kd-c-input-number-sizing-height-large, 36px);
|
|
118
127
|
}
|
|
119
128
|
.kd-inputNumber-baseStep .kd-inputNumber-icon {
|
|
120
|
-
color: #666;
|
|
121
|
-
-webkit-transition: color 0.3s;
|
|
122
|
-
transition: color 0.3s;
|
|
129
|
+
color: var(--kd-c-input-number-color-text-baseStep, var(--kd-g-color-text-secondary, #666));
|
|
130
|
+
-webkit-transition: color var(--kd-g-duration, 0.3s);
|
|
131
|
+
transition: color var(--kd-g-duration, 0.3s);
|
|
123
132
|
}
|
|
124
133
|
.kd-inputNumber-baseStep:hover .kd-inputNumber-icon {
|
|
125
|
-
color: #87adff;
|
|
134
|
+
color: var(--kd-c-input-number-color-theme-5, var(--kd-g-color-theme-5, #87adff));
|
|
126
135
|
}
|
|
127
136
|
.kd-inputNumber-baseStep-decrease {
|
|
128
|
-
border-right: 1px solid #d9d9d9;
|
|
137
|
+
border-right: 1px solid var(--kd-c-input-number-color-border-strong, var(--kd-g-color-border-strong, #d9d9d9));
|
|
129
138
|
}
|
|
130
139
|
.kd-inputNumber-baseStep-decrease.kd-inputNumber-baseStep-small,
|
|
131
140
|
.kd-inputNumber-baseStep-decrease.kd-inputNumber-embedStep-small {
|
|
@@ -140,7 +149,7 @@
|
|
|
140
149
|
margin-left: -9px;
|
|
141
150
|
}
|
|
142
151
|
.kd-inputNumber-baseStep-increase {
|
|
143
|
-
border-left: 1px solid #d9d9d9;
|
|
152
|
+
border-left: 1px solid var(--kd-c-input-number-color-border-strong, var(--kd-g-color-border-strong, #d9d9d9));
|
|
144
153
|
}
|
|
145
154
|
.kd-inputNumber-baseStep-increase.kd-inputNumber-baseStep-small,
|
|
146
155
|
.kd-inputNumber-baseStep-increase.kd-inputNumber-embedStep-small {
|
|
@@ -167,9 +176,9 @@
|
|
|
167
176
|
justify-content: center;
|
|
168
177
|
height: 100%;
|
|
169
178
|
border-radius: 0 1px 1px 0;
|
|
170
|
-
background-color: #f6f7f9;
|
|
179
|
+
background-color: var(--kd-c-input-number-color-text, #f6f7f9);
|
|
171
180
|
overflow: hidden;
|
|
172
|
-
border-left: 1px solid #d9d9d9;
|
|
181
|
+
border-left: 1px solid var(--kd-c-input-number-color-border-strong, var(--kd-g-color-border-strong, #d9d9d9));
|
|
173
182
|
border: none;
|
|
174
183
|
}
|
|
175
184
|
.kd-inputNumber-embedStep.kd-inputNumber-baseStep-small,
|
|
@@ -195,17 +204,17 @@
|
|
|
195
204
|
-webkit-box-pack: center;
|
|
196
205
|
-ms-flex-pack: center;
|
|
197
206
|
justify-content: center;
|
|
198
|
-
border-left: 1px solid #d9d9d9;
|
|
199
|
-
border-bottom: 1px solid #d9d9d9;
|
|
207
|
+
border-left: 1px solid var(--kd-c-input-number-color-border-strong, var(--kd-g-color-border-strong, #d9d9d9));
|
|
208
|
+
border-bottom: 1px solid var(--kd-c-input-number-color-border-strong, var(--kd-g-color-border-strong, #d9d9d9));
|
|
200
209
|
cursor: pointer;
|
|
201
210
|
font-size: 12px;
|
|
202
211
|
}
|
|
203
212
|
.kd-inputNumber-embedStep span .kd-inputNumber-icon {
|
|
204
|
-
-webkit-transition: color 0.3s;
|
|
205
|
-
transition: color 0.3s;
|
|
213
|
+
-webkit-transition: color var(--kd-g-duration, 0.3s);
|
|
214
|
+
transition: color var(--kd-g-duration, 0.3s);
|
|
206
215
|
}
|
|
207
216
|
.kd-inputNumber-embedStep span:hover .kd-inputNumber-icon {
|
|
208
|
-
color: #87adff;
|
|
217
|
+
color: var(--kd-c-input-number-color-theme-5, var(--kd-g-color-theme-5, #87adff));
|
|
209
218
|
}
|
|
210
219
|
.kd-inputNumber-embedStep span:last-child {
|
|
211
220
|
border-bottom: none;
|
|
@@ -10,20 +10,20 @@
|
|
|
10
10
|
height: 100%;
|
|
11
11
|
cursor: pointer;
|
|
12
12
|
&-small {
|
|
13
|
-
.base-step-size(@input-small-height);
|
|
13
|
+
.base-step-size(@input-number-small-height);
|
|
14
14
|
}
|
|
15
15
|
&-middle {
|
|
16
|
-
.base-step-size(@input-middle-height);
|
|
16
|
+
.base-step-size(@input-number-middle-height);
|
|
17
17
|
}
|
|
18
18
|
&-large {
|
|
19
|
-
.base-step-size(@input-large-height);
|
|
19
|
+
.base-step-size(@input-number-large-height);
|
|
20
20
|
}
|
|
21
21
|
.@{inputNumber-prefix-cls}-icon {
|
|
22
|
-
color: @
|
|
23
|
-
transition: color @
|
|
22
|
+
color: @input-number-color-text-baseStep;
|
|
23
|
+
transition: color @duration-promptly;
|
|
24
24
|
}
|
|
25
25
|
&:hover .@{inputNumber-prefix-cls}-icon {
|
|
26
|
-
color
|
|
26
|
+
color:@input-number-color-theme-5;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
&-baseStep-decrease {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
justify-content: center;
|
|
39
39
|
height: 100%;
|
|
40
40
|
border-radius: 0 1px 1px 0;
|
|
41
|
-
background-color: @
|
|
41
|
+
background-color: @input-number-color-text;
|
|
42
42
|
overflow: hidden;
|
|
43
43
|
.step-style(left, right);
|
|
44
44
|
border: none;
|
|
@@ -47,19 +47,19 @@
|
|
|
47
47
|
display: flex;
|
|
48
48
|
align-items: center;
|
|
49
49
|
justify-content: center;
|
|
50
|
-
border-left: 1px solid @
|
|
51
|
-
border-bottom: 1px solid @
|
|
50
|
+
border-left: 1px solid @input-number-color-border-strong;
|
|
51
|
+
border-bottom: 1px solid @input-number-color-border-strong;
|
|
52
52
|
cursor: pointer;
|
|
53
53
|
font-size: 12px;
|
|
54
54
|
.@{inputNumber-prefix-cls}-icon {
|
|
55
|
-
transition: color @
|
|
55
|
+
transition: color @duration-promptly;
|
|
56
56
|
}
|
|
57
57
|
&:hover .@{inputNumber-prefix-cls}-icon {
|
|
58
|
-
color
|
|
58
|
+
color:@input-number-color-theme-5;
|
|
59
59
|
}
|
|
60
60
|
&:last-child {
|
|
61
61
|
border-bottom: none;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
}
|
|
65
|
+
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
@import './token.less';
|
|
2
|
+
|
|
1
3
|
.base-step-size(@width) {
|
|
2
4
|
width: @width;
|
|
3
5
|
}
|
|
4
6
|
.step-style(@borderDirection, @marginDirection) {
|
|
5
|
-
border-@{borderDirection}: 1px solid @
|
|
7
|
+
border-@{borderDirection}: 1px solid @input-number-color-border-strong;
|
|
6
8
|
&.@{inputNumber-prefix-cls}-baseStep-small, &.@{inputNumber-prefix-cls}-embedStep-small {
|
|
7
9
|
margin-@{marginDirection}: -@input-small-padding-horizontal;
|
|
8
10
|
}
|
|
@@ -12,4 +14,4 @@
|
|
|
12
14
|
&.@{inputNumber-prefix-cls}-baseStep-large, &.@{inputNumber-prefix-cls}-embedStep-large {
|
|
13
15
|
margin-@{marginDirection}: -@input-large-padding-horizontal;
|
|
14
16
|
}
|
|
15
|
-
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@import '../../style/themes/token.less';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
@input-number-prefix: '--@{kd-prefix}-c-input-number';
|
|
5
|
+
|
|
6
|
+
// color
|
|
7
|
+
@input-number-color-border-strong: var(~'@{input-number-prefix}-color-border-strong', @color-border-strong);
|
|
8
|
+
@input-number-color-theme-5: var(~'@{input-number-prefix}-color-theme-5', @color-theme-5);
|
|
9
|
+
@input-number-color-text: var(~'@{input-number-prefix}-color-text', #f6f7f9);
|
|
10
|
+
@input-number-color-text-baseStep: var(~'@{input-number-prefix}-color-text-baseStep',@color-text-secondary);
|
|
11
|
+
@input-number-color-text-baseStep-hover: var(~'@{input-number-prefix}-color-text-baseStep-hover',@color-text-secondary);
|
|
12
|
+
|
|
13
|
+
// sizing
|
|
14
|
+
@input-number-small-height: var(~'@{input-number-prefix}-sizing-height-small', 20px);
|
|
15
|
+
@input-number-middle-height: var(~'@{input-number-prefix}-sizing-height-middle', 30px);
|
|
16
|
+
@input-number-large-height: var(~'@{input-number-prefix}-sizing-height-large', 36px);
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
@@ -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
|
/** 浮层箭头样式 **/
|
|
@@ -108,7 +117,7 @@
|
|
|
108
117
|
-ms-flex-direction: column;
|
|
109
118
|
flex-direction: column;
|
|
110
119
|
min-height: 0;
|
|
111
|
-
background: #f2f2f2;
|
|
120
|
+
background: var(--kd-c-layout-body-color-background, var(--kd-g-color-background-2, #f2f2f2));
|
|
112
121
|
}
|
|
113
122
|
.kd-layout,
|
|
114
123
|
.kd-layout * {
|
|
@@ -132,17 +141,17 @@
|
|
|
132
141
|
flex: 0 0 auto;
|
|
133
142
|
}
|
|
134
143
|
.kd-layout-header {
|
|
135
|
-
height: 52px;
|
|
136
|
-
padding: 0 20px 0 35px;
|
|
137
|
-
color: #212121;
|
|
138
|
-
line-height: 52px;
|
|
139
|
-
background: #fff;
|
|
144
|
+
height: var(--kd-c-layout-header-sizing-height, 52px);
|
|
145
|
+
padding: var(--kd-c-layout-header-spacing-padding, 0 20px 0 35px);
|
|
146
|
+
color: var(--kd-c-layout-header-color-text, var(--kd-g-color-text-primary, #212121));
|
|
147
|
+
line-height: var(--kd-c-layout-header-sizing-height, 52px);
|
|
148
|
+
background: var(--kd-c-layout-header-color-background, var(--kd-g-color-background, #fff));
|
|
140
149
|
}
|
|
141
150
|
.kd-layout-footer {
|
|
142
|
-
padding: 24px 50px;
|
|
143
|
-
color: #212121;
|
|
144
|
-
font-size: 14px;
|
|
145
|
-
background: #f2f2f2;
|
|
151
|
+
padding: var(--kd-c-layout-footer-spacing-padding, 24px 50px);
|
|
152
|
+
color: var(--kd-g-color-text-primary, #212121);
|
|
153
|
+
font-size: var(--kd-g-font-size-middle, 14px);
|
|
154
|
+
background: var(--kd-c-layout-footer-color-background, var(--kd-g-color-background-2, #f2f2f2));
|
|
146
155
|
}
|
|
147
156
|
.kd-layout-content {
|
|
148
157
|
-webkit-box-flex: 1;
|
|
@@ -153,7 +162,7 @@
|
|
|
153
162
|
.kd-layout-sider {
|
|
154
163
|
position: relative;
|
|
155
164
|
min-width: 0;
|
|
156
|
-
background: #343848;
|
|
165
|
+
background: var(--kd-c-layout-sider-color-background, #343848);
|
|
157
166
|
-webkit-transition: all 0.2s;
|
|
158
167
|
transition: all 0.2s;
|
|
159
168
|
}
|
|
@@ -163,7 +172,7 @@
|
|
|
163
172
|
padding-top: 0.1px;
|
|
164
173
|
}
|
|
165
174
|
.kd-layout-sider-has-trigger {
|
|
166
|
-
padding-bottom: 50px;
|
|
175
|
+
padding-bottom: var(--kd-c-layout-trigger-sizing-height, 50px);
|
|
167
176
|
}
|
|
168
177
|
.kd-layout-sider-right {
|
|
169
178
|
-webkit-box-ordinal-group: 2;
|
|
@@ -175,11 +184,11 @@
|
|
|
175
184
|
bottom: 0;
|
|
176
185
|
z-index: 1;
|
|
177
186
|
padding: 0 16px;
|
|
178
|
-
color: #fff;
|
|
179
|
-
height: 50px;
|
|
180
|
-
line-height:
|
|
187
|
+
color: var(--kd-c-layout-trigger-color-text, var(--kd-g-color-white, #fff));
|
|
188
|
+
height: var(--kd-c-layout-trigger-sizing-height, 50px);
|
|
189
|
+
line-height: calc(var(--kd-c-layout-trigger-sizing-height, 50px) - 2px);
|
|
181
190
|
font-size: 20px;
|
|
182
|
-
background: #343848;
|
|
191
|
+
background: var(--kd-c-layout-trigger-color-background, #343848);
|
|
183
192
|
cursor: pointer;
|
|
184
193
|
-webkit-transition: all 0.2s;
|
|
185
194
|
transition: all 0.2s;
|
|
@@ -190,17 +199,17 @@
|
|
|
190
199
|
}
|
|
191
200
|
.kd-layout-sider-zero-width-trigger {
|
|
192
201
|
position: absolute;
|
|
193
|
-
top: 52px;
|
|
194
|
-
right: -36px;
|
|
202
|
+
top: var(--kd-c-layout-header-sizing-height, 52px);
|
|
203
|
+
right: calc(-1 * var(--kd-c-layout-trigger-sizing-width, 36px));
|
|
195
204
|
z-index: 1;
|
|
196
|
-
width: 36px;
|
|
197
|
-
height: 42px;
|
|
198
|
-
color: #fff;
|
|
199
|
-
font-size:
|
|
200
|
-
line-height: 42px;
|
|
205
|
+
width: var(--kd-c-layout-trigger-sizing-width, 36px);
|
|
206
|
+
height: var(--kd-c-layout-trigger-sizing-height, 42px);
|
|
207
|
+
color: var(--kd-c-layout-trigger-color-text, var(--kd-g-color-white, #fff));
|
|
208
|
+
font-size: calc(var(--kd-c-layout-trigger-sizing-width, 36px) / 2);
|
|
209
|
+
line-height: var(--kd-c-layout-trigger-sizing-height, 42px);
|
|
201
210
|
text-align: center;
|
|
202
|
-
background: #343848;
|
|
203
|
-
border-radius: 0 2px 2px 0;
|
|
211
|
+
background: var(--kd-c-layout-sider-color-background, #343848);
|
|
212
|
+
border-radius: 0 var(--kd-g-radius-border, 2px) var(--kd-g-radius-border, 2px) 0;
|
|
204
213
|
cursor: pointer;
|
|
205
214
|
-webkit-transition: background 0.3s ease;
|
|
206
215
|
transition: background 0.3s ease;
|
|
@@ -220,17 +229,17 @@
|
|
|
220
229
|
background: rgba(255, 255, 255, 0.1);
|
|
221
230
|
}
|
|
222
231
|
.kd-layout-sider-zero-width-trigger-right {
|
|
223
|
-
left: -36px;
|
|
224
|
-
border-radius: 2px 0 0 2px;
|
|
232
|
+
left: calc(-1 * var(--kd-c-layout-trigger-sizing-width, 36px));
|
|
233
|
+
border-radius: var(--kd-g-radius-border, 2px) 0 0 var(--kd-g-radius-border, 2px);
|
|
225
234
|
}
|
|
226
235
|
.kd-layout-sider-light {
|
|
227
|
-
background: #fff;
|
|
236
|
+
background: var(--kd-c-layout-sider-color-background-light, var(--kd-g-color-background, #fff));
|
|
228
237
|
}
|
|
229
238
|
.kd-layout-sider-light .kd-layout-sider-trigger {
|
|
230
|
-
color: #212121;
|
|
231
|
-
background: #fff;
|
|
239
|
+
color: var(--kd-c-layout-trigger-color-text-light, var(--kd-g-color-text-primary, #212121));
|
|
240
|
+
background: var(--kd-c-layout-trigger-color-background-light, var(--kd-g-color-background, #fff));
|
|
232
241
|
}
|
|
233
242
|
.kd-layout-sider-light .kd-layout-sider-zero-width-trigger {
|
|
234
|
-
color: #212121;
|
|
235
|
-
background: #fff;
|
|
243
|
+
color: var(--kd-c-layout-trigger-color-text-light, var(--kd-g-color-text-primary, #212121));
|
|
244
|
+
background: var(--kd-c-layout-trigger-color-background-light, var(--kd-g-color-background, #fff));
|
|
236
245
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@import '../../style/themes/index';
|
|
2
2
|
@import '../../style/mixins/index';
|
|
3
|
+
@import './token.less';
|
|
3
4
|
|
|
4
5
|
@layout-prefix-cls: ~'@{kd-prefix}-layout';
|
|
5
6
|
|
|
@@ -40,8 +41,8 @@
|
|
|
40
41
|
|
|
41
42
|
&-footer {
|
|
42
43
|
padding: @layout-footer-padding;
|
|
43
|
-
color: @
|
|
44
|
-
font-size: @font-size;
|
|
44
|
+
color: @color-text-primary;
|
|
45
|
+
font-size: @font-size-middle;
|
|
45
46
|
background: @layout-footer-background;
|
|
46
47
|
}
|
|
47
48
|
|
|
@@ -77,7 +78,7 @@
|
|
|
77
78
|
padding: 0 16px;
|
|
78
79
|
color: @layout-trigger-color;
|
|
79
80
|
height: @layout-trigger-height;
|
|
80
|
-
line-height: @layout-trigger-height - 2px;
|
|
81
|
+
line-height: calc(@layout-trigger-height - 2px);
|
|
81
82
|
font-size: 20px;
|
|
82
83
|
background: @layout-trigger-background;
|
|
83
84
|
cursor: pointer;
|
|
@@ -93,16 +94,16 @@
|
|
|
93
94
|
&-trigger {
|
|
94
95
|
position: absolute;
|
|
95
96
|
top: @layout-header-height;
|
|
96
|
-
right:
|
|
97
|
+
right: calc(-1 * @layout-zero-trigger-width);
|
|
97
98
|
z-index: 1;
|
|
98
99
|
width: @layout-zero-trigger-width;
|
|
99
100
|
height: @layout-zero-trigger-height;
|
|
100
101
|
color: @layout-trigger-color;
|
|
101
|
-
font-size: (@layout-zero-trigger-width / 2);
|
|
102
|
+
font-size: calc(@layout-zero-trigger-width / 2);
|
|
102
103
|
line-height: @layout-zero-trigger-height;
|
|
103
104
|
text-align: center;
|
|
104
105
|
background: @layout-sider-background;
|
|
105
|
-
border-radius: 0 @radius-
|
|
106
|
+
border-radius: 0 @radius-border @radius-border 0;
|
|
106
107
|
cursor: pointer;
|
|
107
108
|
transition: background 0.3s ease;
|
|
108
109
|
|
|
@@ -122,8 +123,8 @@
|
|
|
122
123
|
}
|
|
123
124
|
|
|
124
125
|
&-right {
|
|
125
|
-
left:
|
|
126
|
-
border-radius: @radius-
|
|
126
|
+
left: calc(-1 * @layout-zero-trigger-width);
|
|
127
|
+
border-radius: @radius-border 0 0 @radius-border;
|
|
127
128
|
}
|
|
128
129
|
}
|
|
129
130
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
@import '../../style/themes/token.less';
|
|
2
|
+
|
|
3
|
+
@layout-custom-prefix: ~'--@{kd-prefix}-c-layout';
|
|
4
|
+
|
|
5
|
+
// color
|
|
6
|
+
@layout-body-background: var(~'@{layout-custom-prefix}-body-color-background', @color-background-2);
|
|
7
|
+
|
|
8
|
+
@layout-header-background: var(~'@{layout-custom-prefix}-header-color-background', @color-background);
|
|
9
|
+
@layout-header-color: var(~'@{layout-custom-prefix}-header-color-text', @color-text-primary);
|
|
10
|
+
|
|
11
|
+
@layout-footer-background: var(~'@{layout-custom-prefix}-footer-color-background', @color-background-2);
|
|
12
|
+
|
|
13
|
+
@layout-sider-background: var(~'@{layout-custom-prefix}-sider-color-background', #343848);
|
|
14
|
+
|
|
15
|
+
@layout-trigger-background: var(~'@{layout-custom-prefix}-trigger-color-background', #343848);
|
|
16
|
+
@layout-trigger-color: var(~'@{layout-custom-prefix}-trigger-color-text', @color-white);
|
|
17
|
+
|
|
18
|
+
@layout-sider-background-light: var(~'@{layout-custom-prefix}-sider-color-background-light', @color-background);
|
|
19
|
+
@layout-trigger-background-light: var(~'@{layout-custom-prefix}-trigger-color-background-light', @color-background);
|
|
20
|
+
@layout-trigger-color-light: var(~'@{layout-custom-prefix}-trigger-color-text-light', @color-text-primary);
|
|
21
|
+
|
|
22
|
+
// spacing
|
|
23
|
+
@layout-header-padding: var(~'@{layout-custom-prefix}-header-spacing-padding', 0 20px 0 35px);
|
|
24
|
+
@layout-footer-padding: var(~'@{layout-custom-prefix}-footer-spacing-padding', 24px 50px);
|
|
25
|
+
|
|
26
|
+
// sizing
|
|
27
|
+
@layout-header-height: var(~'@{layout-custom-prefix}-header-sizing-height', 52px);
|
|
28
|
+
@layout-trigger-height: var(~'@{layout-custom-prefix}-trigger-sizing-height', 50px);
|
|
29
|
+
@layout-zero-trigger-width: var(~'@{layout-custom-prefix}-trigger-sizing-width', 36px);
|
|
30
|
+
@layout-zero-trigger-height: var(~'@{layout-custom-prefix}-trigger-sizing-height', 42px);
|
package/es/link/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const LinkSizes: ["large", "middle", "small"];
|
|
3
|
+
export declare type LinkSize = typeof LinkSizes[number];
|
|
4
|
+
export interface ILinkProps {
|
|
5
|
+
size?: LinkSize;
|
|
6
|
+
style?: Record<string, unknown>;
|
|
7
|
+
className?: string;
|
|
8
|
+
target?: string;
|
|
9
|
+
href?: string;
|
|
10
|
+
underscore?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
prefix?: React.ReactNode;
|
|
14
|
+
suffix?: React.ReactNode;
|
|
15
|
+
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
16
|
+
}
|
|
17
|
+
declare const Link: React.ForwardRefExoticComponent<ILinkProps & React.RefAttributes<unknown>>;
|
|
18
|
+
export default Link;
|