@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,9 +1,8 @@
|
|
|
1
1
|
@import '../../style/themes/index';
|
|
2
2
|
@import './mixin.less';
|
|
3
|
+
@import './token.less';
|
|
4
|
+
|
|
3
5
|
@alert-prefix-cls: ~'@{kd-prefix}-alert';
|
|
4
|
-
@icon-side-length: 16px;
|
|
5
|
-
@font-size: 12px;
|
|
6
|
-
@line-height: 18px;
|
|
7
6
|
|
|
8
7
|
@success: success;
|
|
9
8
|
@warning: warning;
|
|
@@ -11,18 +10,20 @@
|
|
|
11
10
|
@info: info;
|
|
12
11
|
|
|
13
12
|
.alert-bg-type-set() {
|
|
14
|
-
@success: @success-
|
|
15
|
-
@warning: @warning-
|
|
16
|
-
@error: @error-
|
|
17
|
-
@info: @info-
|
|
18
|
-
}
|
|
13
|
+
@success: @alert-success-bg-color;
|
|
14
|
+
@warning: @alert-warning-bg-color;
|
|
15
|
+
@error: @alert-error-bg-color;
|
|
16
|
+
@info: @alert-info-bg-color;
|
|
17
|
+
}
|
|
19
18
|
|
|
20
19
|
.alert-font-type-set() {
|
|
21
|
-
@success: @success-color;
|
|
22
|
-
@warning: @warning-color;
|
|
23
|
-
@error: @error-color;
|
|
24
|
-
@info: @
|
|
25
|
-
}
|
|
20
|
+
@success: @alert-success-font-color;
|
|
21
|
+
@warning: @alert-warning-font-color;
|
|
22
|
+
@error: @alert-error-font-color;
|
|
23
|
+
@info: @alert-info-font-color;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@alert-transition-fn: cubic-bezier(0.32, 0.94, 0.6, 1);
|
|
26
27
|
|
|
27
28
|
.icon-center {
|
|
28
29
|
i {
|
|
@@ -32,20 +33,18 @@
|
|
|
32
33
|
|
|
33
34
|
.@{alert-prefix-cls} {
|
|
34
35
|
&-container {
|
|
36
|
+
z-index: @z-index-apex;
|
|
35
37
|
display: none;
|
|
36
|
-
margin: 8px 0;
|
|
37
|
-
min-height: 50px;
|
|
38
38
|
width: 100%;
|
|
39
|
-
|
|
39
|
+
padding: @alert-padding-top @alert-padding-horizontal @alert-padding-bottom;
|
|
40
40
|
align-items: center;
|
|
41
|
-
|
|
42
|
-
transition: display 3s;
|
|
41
|
+
transition: display 3s;
|
|
43
42
|
}
|
|
44
43
|
&-banner-container {
|
|
45
44
|
display: flex;
|
|
46
45
|
flex-direction: column;
|
|
47
46
|
position: fixed;
|
|
48
|
-
z-index: @
|
|
47
|
+
z-index: @z-index-apex;
|
|
49
48
|
width: 100%;
|
|
50
49
|
}
|
|
51
50
|
each(.alert-bg-type-set(), {
|
|
@@ -56,47 +55,47 @@
|
|
|
56
55
|
});
|
|
57
56
|
&-icon {
|
|
58
57
|
display: flex;
|
|
59
|
-
margin: 0 8px 0 32px;
|
|
60
|
-
.square(@icon-side-length);
|
|
61
58
|
cursor: default;
|
|
62
59
|
.icon-center();
|
|
60
|
+
margin-right: @alert-message-icon-margin-right;
|
|
61
|
+
font-size: @alert-message-icon-font-size;
|
|
63
62
|
}
|
|
64
63
|
&-message {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
line-height: @line-height;
|
|
64
|
+
font-size: @alert-message-font-size;
|
|
65
|
+
line-height: 18px;
|
|
68
66
|
display: flex;
|
|
69
67
|
flex-grow: 1;
|
|
70
68
|
cursor: default;
|
|
71
69
|
}
|
|
72
|
-
&-without-icon-message {
|
|
73
|
-
margin-left: 56px;
|
|
74
|
-
}
|
|
75
70
|
&-leave {
|
|
76
|
-
transition: min-height @
|
|
71
|
+
transition: min-height @duration-promptly @alert-transition-fn, opacity @duration-promptly @alert-transition-fn,
|
|
72
|
+
margin @duration-promptly @alert-transition-fn, height @duration-promptly @alert-transition-fn,
|
|
73
|
+
line-height @duration-promptly @alert-transition-fn;
|
|
77
74
|
display: flex;
|
|
78
75
|
min-height: 0;
|
|
79
76
|
margin: 0 !important;
|
|
80
77
|
overflow: hidden;
|
|
81
78
|
opacity: 0;
|
|
82
|
-
|
|
83
|
-
.@{alert-prefix-cls}-icon,
|
|
79
|
+
|
|
80
|
+
.@{alert-prefix-cls}-icon,
|
|
81
|
+
.@{alert-prefix-cls}-message,
|
|
82
|
+
.@{alert-prefix-cls}-close-icon {
|
|
84
83
|
height: 0;
|
|
85
84
|
line-height: 0;
|
|
86
85
|
}
|
|
87
86
|
}
|
|
88
87
|
&-close-icon {
|
|
89
88
|
display: flex;
|
|
90
|
-
|
|
91
|
-
color: @
|
|
89
|
+
margin-left: @alert-close-icon-margin-left;
|
|
90
|
+
color: @alert-close-icon-color;
|
|
91
|
+
font-size: @alert-close-icon-font-size;
|
|
92
92
|
justify-self: flex-end;
|
|
93
|
-
margin-right: 15px;
|
|
94
93
|
cursor: pointer;
|
|
95
94
|
&:hover {
|
|
96
|
-
color: @
|
|
95
|
+
color: @alert-close-icon-color-hover;
|
|
97
96
|
}
|
|
98
97
|
&:active {
|
|
99
|
-
color: @theme-
|
|
98
|
+
color: @color-theme-click;
|
|
100
99
|
}
|
|
101
100
|
.icon-center();
|
|
102
101
|
}
|
|
@@ -105,7 +104,7 @@
|
|
|
105
104
|
}
|
|
106
105
|
&-banner {
|
|
107
106
|
position: fixed;
|
|
108
|
-
animation: moveIn @
|
|
107
|
+
animation: moveIn @duration-promptly @alert-transition-fn both;
|
|
109
108
|
}
|
|
110
109
|
}
|
|
111
110
|
@keyframes moveIn {
|
|
@@ -115,4 +114,4 @@
|
|
|
115
114
|
to {
|
|
116
115
|
transform: translateY(0);
|
|
117
116
|
}
|
|
118
|
-
}
|
|
117
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
@import '../../style/themes/token.less';
|
|
2
|
+
|
|
3
|
+
@alert-custom-prefix: ~'--@{kd-prefix}-c-alert';
|
|
4
|
+
|
|
5
|
+
// color
|
|
6
|
+
@alert-success-bg-color: var(~'@{alert-custom-prefix}-color-background-success', @color-background-success); // 反馈浮层成功提示的背景色
|
|
7
|
+
@alert-warning-bg-color: var(~'@{alert-custom-prefix}-color-background-warning', @color-background-warning); // 反馈浮层警告提示的背景色
|
|
8
|
+
@alert-error-bg-color: var(~'@{alert-custom-prefix}-color-background-error', @color-background-error); // 反馈浮层错误提示的背景色
|
|
9
|
+
@alert-info-bg-color: var(~'@{alert-custom-prefix}-color-background-info', @color-background-ongoing); // 反馈浮层一般提示的背景色
|
|
10
|
+
|
|
11
|
+
@alert-success-font-color: var(~'@{alert-custom-prefix}-color-text-success', @color-success); // 反馈浮层成功提示的文字色
|
|
12
|
+
@alert-warning-font-color: var(~'@{alert-custom-prefix}-color-text-warning', @color-warning); // 反馈浮层警告提示的文字色
|
|
13
|
+
@alert-error-font-color: var(~'@{alert-custom-prefix}-color-text-error', @color-error); // 反馈浮层错误提示的文字色
|
|
14
|
+
@alert-info-font-color: var(~'@{alert-custom-prefix}-color-text-info', @color-ongoing); // 反馈浮层一般提示的文字色
|
|
15
|
+
|
|
16
|
+
@alert-close-icon-color: var(~'@{alert-custom-prefix}-close-icon-color-text', @color-text-secondary);
|
|
17
|
+
@alert-close-icon-color-hover: var(~'@{alert-custom-prefix}-close-icon-color-text-hover', @color-theme-hover);
|
|
18
|
+
|
|
19
|
+
// font
|
|
20
|
+
@alert-message-font-size: var(~'@{alert-custom-prefix}-message-font-size', @font-size-small);
|
|
21
|
+
@alert-message-icon-font-size: var(~'@{alert-custom-prefix}-message-icon-font-size', @font-size-middle);
|
|
22
|
+
@alert-close-icon-font-size: var(~'@{alert-custom-prefix}-close-icon-font-size', @font-size-middle);
|
|
23
|
+
|
|
24
|
+
// spacing
|
|
25
|
+
@alert-padding-top: var(~'@{alert-custom-prefix}-sizing-padding-top', 8px);
|
|
26
|
+
@alert-padding-bottom: var(~'@{alert-custom-prefix}-sizing-padding-bottom', 12px);
|
|
27
|
+
@alert-padding-horizontal: var(~'@{alert-custom-prefix}-sizing-padding-horizontal', 12px);
|
|
28
|
+
@alert-message-icon-margin-right: var(~'@{alert-custom-prefix}-message-icon-sizing-margin-right', 8px);
|
|
29
|
+
@alert-close-icon-margin-left: var(~'@{alert-custom-prefix}-close-icon-sizing-margin-left', 8px);
|
|
@@ -92,16 +92,25 @@
|
|
|
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-anchor {
|
|
96
105
|
position: relative;
|
|
97
|
-
padding-left:
|
|
106
|
+
padding-left: var(--kd-c-anchor-spacing-horizontal, 7px);
|
|
98
107
|
-webkit-box-sizing: border-box;
|
|
99
108
|
box-sizing: border-box;
|
|
100
109
|
}
|
|
101
110
|
.kd-anchor-wrapper {
|
|
102
111
|
overflow: auto;
|
|
103
|
-
font-size: 12px;
|
|
104
|
-
width: 120px;
|
|
112
|
+
font-size: var(--kd-c-anchor-font-size, var(--kd-g-font-size-small, 12px));
|
|
113
|
+
width: var(--kd-c-anchor-sizing-width, 120px);
|
|
105
114
|
}
|
|
106
115
|
.kd-anchor-menu {
|
|
107
116
|
display: -webkit-box;
|
|
@@ -116,15 +125,16 @@
|
|
|
116
125
|
}
|
|
117
126
|
.kd-anchor-menu-wrapper {
|
|
118
127
|
overflow: auto;
|
|
119
|
-
font-size: 12px;
|
|
128
|
+
font-size: var(--kd-c-anchor-font-size, var(--kd-g-font-size-small, 12px));
|
|
120
129
|
}
|
|
121
130
|
.kd-anchor-menu-left-arrows {
|
|
122
131
|
margin-right: 10px;
|
|
123
|
-
font-size: 16px;
|
|
132
|
+
font-size: var(--kd-c-anchor-icon-font-size, 16px);
|
|
124
133
|
color: #666;
|
|
134
|
+
cursor: pointer;
|
|
125
135
|
}
|
|
126
136
|
.kd-anchor-menu-left-arrows:hover:not(.kd-anchor-menu-left-arrows-disabled) {
|
|
127
|
-
color: #5582f3;
|
|
137
|
+
color: var(--kd-c-anchor-color-theme, var(--kd-g-color-theme, #5582f3));
|
|
128
138
|
}
|
|
129
139
|
.kd-anchor-menu-left-arrows-disabled {
|
|
130
140
|
color: #b2b2b2;
|
|
@@ -132,11 +142,12 @@
|
|
|
132
142
|
}
|
|
133
143
|
.kd-anchor-menu-right-arrows {
|
|
134
144
|
margin-left: 10px;
|
|
135
|
-
font-size: 16px;
|
|
145
|
+
font-size: var(--kd-c-anchor-icon-font-size, 16px);
|
|
136
146
|
color: #666;
|
|
147
|
+
cursor: pointer;
|
|
137
148
|
}
|
|
138
149
|
.kd-anchor-menu-right-arrows:hover:not(.kd-anchor-menu-right-arrows-disabled) {
|
|
139
|
-
color: #5582f3;
|
|
150
|
+
color: var(--kd-c-anchor-color-theme, var(--kd-g-color-theme, #5582f3));
|
|
140
151
|
}
|
|
141
152
|
.kd-anchor-menu-right-arrows-disabled {
|
|
142
153
|
color: #b2b2b2;
|
|
@@ -154,8 +165,8 @@
|
|
|
154
165
|
display: inline-block;
|
|
155
166
|
white-space: nowrap;
|
|
156
167
|
position: absolute;
|
|
157
|
-
-webkit-transition: all 0.3s cubic-bezier(0.42, 0, 1, 1);
|
|
158
|
-
transition: all 0.3s cubic-bezier(0.42, 0, 1, 1);
|
|
168
|
+
-webkit-transition: all var(--kd-c-anchor-duration-duration, var(--kd-g-duration, 0.3s)) cubic-bezier(0.42, 0, 1, 1);
|
|
169
|
+
transition: all var(--kd-c-anchor-duration-duration, var(--kd-g-duration, 0.3s)) cubic-bezier(0.42, 0, 1, 1);
|
|
159
170
|
left: 0;
|
|
160
171
|
top: 0;
|
|
161
172
|
}
|
|
@@ -178,27 +189,28 @@
|
|
|
178
189
|
content: '';
|
|
179
190
|
height: 0;
|
|
180
191
|
width: 40px;
|
|
181
|
-
border-bottom: 1px dashed #ccc;
|
|
192
|
+
border-bottom: var(--kd-c-anchor-ink-line-spacing-width, 1px) dashed var(--kd-c-anchor-color-border-disabled, var(--kd-g-color-border-disabled, #ccc));
|
|
182
193
|
margin: 4px;
|
|
183
194
|
}
|
|
184
195
|
.kd-anchor-advanced-arrows {
|
|
185
|
-
color: #666;
|
|
186
|
-
font-size: 16px;
|
|
196
|
+
color: var(--kd-c-anchor-advanced-arrows-color-text, #666);
|
|
197
|
+
font-size: var(--kd-c-anchor-icon-font-size, 16px);
|
|
198
|
+
cursor: pointer;
|
|
187
199
|
}
|
|
188
200
|
.kd-anchor-advanced-arrows:hover {
|
|
189
|
-
color: #5582f3;
|
|
201
|
+
color: var(--kd-c-anchor-color-theme, var(--kd-g-color-theme, #5582f3));
|
|
190
202
|
}
|
|
191
203
|
.kd-anchor-advanced {
|
|
192
|
-
padding-top: 8px;
|
|
193
|
-
padding-bottom: 7px;
|
|
204
|
+
padding-top: var(--kd-c-anchor-advanced-spacing-padding-top, 8px);
|
|
205
|
+
padding-bottom: var(--kd-c-anchor-advanced-spacing-padding-bottom, 7px);
|
|
194
206
|
position: relative;
|
|
195
207
|
-webkit-box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
|
|
196
208
|
box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
|
|
197
|
-
background: #fff;
|
|
209
|
+
background: var(--kd-c-anchor-color-background, var(--kd-g-color-background, #fff));
|
|
198
210
|
z-index: 1050;
|
|
199
211
|
}
|
|
200
212
|
.kd-anchor-advanced .kd-anchor-wrapper {
|
|
201
|
-
width: 160px;
|
|
213
|
+
width: var(--kd-c-anchor-advanced-sizing-width, 160px);
|
|
202
214
|
}
|
|
203
215
|
.kd-anchor-advanced-lock {
|
|
204
216
|
display: -webkit-box;
|
|
@@ -208,25 +220,26 @@
|
|
|
208
220
|
-ms-flex-pack: end;
|
|
209
221
|
justify-content: flex-end;
|
|
210
222
|
padding: 0 8px 8px 0;
|
|
211
|
-
font-size: 16px;
|
|
212
|
-
color: #666;
|
|
223
|
+
font-size: var(--kd-c-anchor-advanced-lock-font-size, 16px);
|
|
224
|
+
color: var(--kd-c-anchor-advanced-arrows-color-text, #666);
|
|
225
|
+
cursor: pointer;
|
|
213
226
|
}
|
|
214
227
|
.kd-anchor-advanced .kd-anchor {
|
|
215
|
-
max-width: 160px;
|
|
228
|
+
max-width: var(--kd-c-anchor-advanced-sizing-width, 160px);
|
|
216
229
|
}
|
|
217
230
|
.kd-anchor-ink {
|
|
218
231
|
position: absolute;
|
|
219
|
-
left:
|
|
232
|
+
left: var(--kd-c-anchor-spacing-horizontal, 7px);
|
|
220
233
|
top: 0;
|
|
221
234
|
height: 100%;
|
|
222
235
|
}
|
|
223
236
|
.kd-anchor-ink::before {
|
|
224
237
|
position: relative;
|
|
225
238
|
display: block;
|
|
226
|
-
width: 1px;
|
|
239
|
+
width: var(--kd-c-anchor-ink-line-spacing-width, 1px);
|
|
227
240
|
height: 100%;
|
|
228
241
|
margin: 0 auto;
|
|
229
|
-
background-color: #d9d9d9;
|
|
242
|
+
background-color: var(--kd-c-anchor-color-border, var(--kd-g-color-border-strong, #d9d9d9));
|
|
230
243
|
content: '';
|
|
231
244
|
}
|
|
232
245
|
.kd-anchor-ink-line {
|
|
@@ -234,7 +247,7 @@
|
|
|
234
247
|
display: none;
|
|
235
248
|
width: 0;
|
|
236
249
|
height: 16px;
|
|
237
|
-
border-right: 1px solid #5582f3;
|
|
250
|
+
border-right: var(--kd-c-anchor-ink-line-spacing-width, 1px) solid var(--kd-c-anchor-color-theme, var(--kd-g-color-theme, #5582f3));
|
|
238
251
|
-webkit-transition: top 0.3s ease-in-out;
|
|
239
252
|
transition: top 0.3s ease-in-out;
|
|
240
253
|
}
|
|
@@ -242,37 +255,38 @@
|
|
|
242
255
|
display: inline-block;
|
|
243
256
|
}
|
|
244
257
|
.kd-anchor-link {
|
|
245
|
-
padding:
|
|
258
|
+
padding: var(--kd-c-anchor-spacing-padding, 7px 8px);
|
|
246
259
|
}
|
|
247
260
|
.kd-anchor-link-title {
|
|
248
261
|
text-decoration: none;
|
|
249
|
-
color: #212121;
|
|
250
|
-
margin-bottom: 7px;
|
|
262
|
+
color: var(--kd-c-anchor-color-text-primary, var(--kd-g-color-text-primary, #212121));
|
|
263
|
+
margin-bottom: var(--kd-c-anchor-spacing-vertical, 7px);
|
|
251
264
|
display: block;
|
|
252
265
|
overflow: hidden;
|
|
253
266
|
white-space: nowrap;
|
|
254
267
|
text-overflow: ellipsis;
|
|
255
268
|
line-height: 1.5;
|
|
269
|
+
cursor: pointer;
|
|
256
270
|
}
|
|
257
271
|
.kd-anchor-link-title:only-child {
|
|
258
272
|
margin-bottom: 0;
|
|
259
273
|
}
|
|
260
274
|
.kd-anchor-link-title-secondary {
|
|
261
|
-
color: #666;
|
|
275
|
+
color: var(--kd-c-anchor-color-text-secondary, var(--kd-g-color-text-secondary, #666));
|
|
262
276
|
padding-left: 4px;
|
|
263
277
|
}
|
|
264
278
|
.kd-anchor-link-title:hover {
|
|
265
|
-
color: #5582f3;
|
|
279
|
+
color: var(--kd-c-anchor-color-theme, var(--kd-g-color-theme, #5582f3));
|
|
266
280
|
}
|
|
267
281
|
.kd-anchor-link-active > .kd-anchor-link-title {
|
|
268
|
-
color: #5582f3;
|
|
282
|
+
color: var(--kd-c-anchor-color-theme, var(--kd-g-color-theme, #5582f3));
|
|
269
283
|
}
|
|
270
284
|
.kd-anchor-lock {
|
|
271
|
-
font-size: 16px;
|
|
285
|
+
font-size: var(--kd-c-anchor-icon-font-size, 16px);
|
|
272
286
|
}
|
|
273
287
|
.kd-anchor.hidden {
|
|
274
288
|
opacity: 0;
|
|
275
289
|
visibility: hidden;
|
|
276
|
-
-webkit-transition: all calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
277
|
-
transition: all calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
290
|
+
-webkit-transition: all calc(var(--kd-c-anchor-duration-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
291
|
+
transition: all calc(var(--kd-c-anchor-duration-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
278
292
|
}
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
@import './mixin.less';
|
|
3
3
|
@anchor-prefix-cls: ~'@{kd-prefix}-anchor';
|
|
4
4
|
|
|
5
|
-
@anchor-border-width: 1px;
|
|
6
|
-
|
|
7
5
|
.@{anchor-prefix-cls} {
|
|
8
6
|
position: relative;
|
|
9
7
|
padding-left: @anchor-link-left;
|
|
@@ -11,7 +9,7 @@
|
|
|
11
9
|
|
|
12
10
|
&-wrapper {
|
|
13
11
|
overflow: auto;
|
|
14
|
-
font-size: @
|
|
12
|
+
font-size: @anchor-font-size;
|
|
15
13
|
width: @anchor-width;
|
|
16
14
|
}
|
|
17
15
|
|
|
@@ -23,15 +21,16 @@
|
|
|
23
21
|
|
|
24
22
|
&-wrapper {
|
|
25
23
|
overflow: auto;
|
|
26
|
-
font-size: @
|
|
24
|
+
font-size: @anchor-font-size;
|
|
27
25
|
}
|
|
28
26
|
|
|
29
27
|
&-left-arrows {
|
|
30
28
|
margin-right: 10px;
|
|
31
29
|
font-size: @anchor-icon-font-size;
|
|
32
30
|
color: #666;
|
|
31
|
+
cursor: pointer;
|
|
33
32
|
&:hover:not(&-disabled) {
|
|
34
|
-
color: @
|
|
33
|
+
color: @anchor-color-theme;
|
|
35
34
|
}
|
|
36
35
|
.disabled;
|
|
37
36
|
}
|
|
@@ -40,8 +39,9 @@
|
|
|
40
39
|
margin-left: 10px;
|
|
41
40
|
font-size: @anchor-icon-font-size;
|
|
42
41
|
color: #666;
|
|
42
|
+
cursor: pointer;
|
|
43
43
|
&:hover:not(&-disabled) {
|
|
44
|
-
color: @
|
|
44
|
+
color: @anchor-color-theme;
|
|
45
45
|
}
|
|
46
46
|
.disabled;
|
|
47
47
|
}
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
display: inline-block;
|
|
59
59
|
white-space: nowrap;
|
|
60
60
|
position: absolute;
|
|
61
|
-
transition: all @transition-duration
|
|
61
|
+
transition: all @anchor-transition-duration cubic-bezier(0.42, 0, 1, 1);
|
|
62
62
|
left: 0;
|
|
63
63
|
top: 0;
|
|
64
64
|
}
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
content: '';
|
|
84
84
|
height: 0;
|
|
85
85
|
width: 40px;
|
|
86
|
-
border-bottom:
|
|
86
|
+
border-bottom: @anchor-ink-line-width dashed @anchor-disabled-border-color;
|
|
87
87
|
margin: 4px;
|
|
88
88
|
}
|
|
89
89
|
}
|
|
@@ -91,8 +91,9 @@
|
|
|
91
91
|
&-advanced-arrows {
|
|
92
92
|
color: @anchor-advanced-arrows-color;
|
|
93
93
|
font-size: @anchor-icon-font-size;
|
|
94
|
+
cursor: pointer;
|
|
94
95
|
&:hover {
|
|
95
|
-
color: @
|
|
96
|
+
color: @anchor-color-theme;
|
|
96
97
|
}
|
|
97
98
|
}
|
|
98
99
|
|
|
@@ -114,6 +115,7 @@
|
|
|
114
115
|
padding: 0 8px 8px 0;
|
|
115
116
|
font-size: @anchor-advanced-lock-size;
|
|
116
117
|
color: @anchor-advanced-arrows-color;
|
|
118
|
+
cursor: pointer;
|
|
117
119
|
}
|
|
118
120
|
|
|
119
121
|
.@{anchor-prefix-cls} {
|
|
@@ -129,7 +131,7 @@
|
|
|
129
131
|
&::before {
|
|
130
132
|
position: relative;
|
|
131
133
|
display: block;
|
|
132
|
-
width: @anchor-
|
|
134
|
+
width: @anchor-ink-line-width;
|
|
133
135
|
height: 100%;
|
|
134
136
|
margin: 0 auto;
|
|
135
137
|
background-color: @anchor-border-color;
|
|
@@ -141,7 +143,7 @@
|
|
|
141
143
|
display: none;
|
|
142
144
|
width: 0;
|
|
143
145
|
height: 16px;
|
|
144
|
-
border-right:
|
|
146
|
+
border-right: @anchor-ink-line-width solid @anchor-color-theme;
|
|
145
147
|
transition: top 0.3s ease-in-out;
|
|
146
148
|
&.visible {
|
|
147
149
|
display: inline-block;
|
|
@@ -154,28 +156,29 @@
|
|
|
154
156
|
|
|
155
157
|
&-title {
|
|
156
158
|
text-decoration: none;
|
|
157
|
-
color: @primary-text-color;
|
|
159
|
+
color: @anchor-primary-text-color;
|
|
158
160
|
margin-bottom: @anchor-link-top;
|
|
159
161
|
display: block;
|
|
160
162
|
overflow: hidden;
|
|
161
163
|
white-space: nowrap;
|
|
162
164
|
text-overflow: ellipsis;
|
|
163
165
|
line-height: 1.5;
|
|
166
|
+
cursor: pointer;
|
|
164
167
|
&:only-child {
|
|
165
168
|
margin-bottom: 0;
|
|
166
169
|
}
|
|
167
170
|
&-secondary {
|
|
168
|
-
color: @secondary-text-color;
|
|
171
|
+
color: @anchor-secondary-text-color;
|
|
169
172
|
padding-left: 4px;
|
|
170
173
|
}
|
|
171
174
|
}
|
|
172
175
|
|
|
173
176
|
&-title:hover {
|
|
174
|
-
color: @
|
|
177
|
+
color: @anchor-color-theme;
|
|
175
178
|
}
|
|
176
179
|
|
|
177
180
|
&-active > &-title {
|
|
178
|
-
color: @
|
|
181
|
+
color: @anchor-color-theme;
|
|
179
182
|
}
|
|
180
183
|
}
|
|
181
184
|
|
|
@@ -186,6 +189,6 @@
|
|
|
186
189
|
&.hidden {
|
|
187
190
|
opacity: 0;
|
|
188
191
|
visibility: hidden;
|
|
189
|
-
transition: all calc(@transition-duration - 0.1s)
|
|
192
|
+
transition: all calc(@anchor-transition-duration - 0.1s) cubic-bezier(0.4,0,0.6,1);
|
|
190
193
|
}
|
|
191
194
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
@import '../../style/themes/token.less';
|
|
2
|
+
|
|
3
|
+
@anchor-prefix: '--@{kd-prefix}-c-anchor';
|
|
4
|
+
|
|
5
|
+
// color
|
|
6
|
+
@anchor-bg: var(~'@{anchor-prefix}-color-background', @color-background);
|
|
7
|
+
@anchor-border-color: var(~'@{anchor-prefix}-color-border', @color-border-strong);
|
|
8
|
+
@anchor-advanced-arrows-color: var(~'@{anchor-prefix}-advanced-arrows-color-text', #666);
|
|
9
|
+
@anchor-color-theme: var(~'@{anchor-prefix}-color-theme', @color-theme);
|
|
10
|
+
@anchor-disabled-border-color: var(~'@{anchor-prefix}-color-border-disabled', @color-border-disabled);
|
|
11
|
+
@anchor-primary-text-color: var(~'@{anchor-prefix}-color-text-primary', @color-text-primary);
|
|
12
|
+
@anchor-secondary-text-color: var(~'@{anchor-prefix}-color-text-secondary', @color-text-secondary);
|
|
13
|
+
|
|
14
|
+
// sizing
|
|
15
|
+
@anchor-width: var(~'@{anchor-prefix}-sizing-width', 120px);
|
|
16
|
+
@anchor-advanced-width: var(~'@{anchor-prefix}-advanced-sizing-width', 160px);
|
|
17
|
+
|
|
18
|
+
// spacing
|
|
19
|
+
@anchor-link-top: var(~'@{anchor-prefix}-spacing-vertical', 7px);
|
|
20
|
+
@anchor-link-left: var(~'@{anchor-prefix}-spacing-horizontal', 7px);
|
|
21
|
+
@anchor-link-padding: var(~'@{anchor-prefix}-spacing-padding', 7px 8px);
|
|
22
|
+
@anchor-advanced-padding-top: var(~'@{anchor-prefix}-advanced-spacing-padding-top', 8px);
|
|
23
|
+
@anchor-advanced-padding-bottom: var(~'@{anchor-prefix}-advanced-spacing-padding-bottom', 7px);
|
|
24
|
+
@anchor-ink-line-width: var(~'@{anchor-prefix}-ink-line-spacing-width', 1px);
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
// font
|
|
28
|
+
@anchor-advanced-lock-size: var(~'@{anchor-prefix}-advanced-lock-font-size', 16px);
|
|
29
|
+
@anchor-font-size: var(~'@{anchor-prefix}-font-size', @font-size-small);
|
|
30
|
+
@anchor-icon-font-size: var(~'@{anchor-prefix}-icon-font-size', 16px);
|
|
31
|
+
|
|
32
|
+
// motion
|
|
33
|
+
@anchor-transition-duration: var(~'@{anchor-prefix}-duration-duration', @duration-promptly);
|
|
@@ -99,10 +99,10 @@
|
|
|
99
99
|
white-space: nowrap;
|
|
100
100
|
text-align: center;
|
|
101
101
|
vertical-align: middle;
|
|
102
|
-
background: #
|
|
103
|
-
width: 40px;
|
|
104
|
-
height: 40px;
|
|
105
|
-
line-height: 40px;
|
|
102
|
+
background: var(--kd-c-avatar-color-background, #B2B2B2);
|
|
103
|
+
width: var(--kd-c-avatar-size-base, 40px);
|
|
104
|
+
height: var(--kd-c-avatar-size-base, 40px);
|
|
105
|
+
line-height: var(--kd-c-avatar-size-base, 40px);
|
|
106
106
|
border-radius: 50%;
|
|
107
107
|
}
|
|
108
108
|
.kd-avatar-image {
|
|
@@ -121,15 +121,15 @@
|
|
|
121
121
|
transform-origin: 0 center;
|
|
122
122
|
}
|
|
123
123
|
.kd-avatar.kd-avatar-icon {
|
|
124
|
-
font-size: 22px;
|
|
124
|
+
font-size: var(--kd-c-avatar-font-size-base, 22px);
|
|
125
125
|
}
|
|
126
126
|
.kd-avatar.kd-avatar-icon > .kdicon {
|
|
127
127
|
vertical-align: unset !important;
|
|
128
128
|
}
|
|
129
129
|
.kd-avatar-lg {
|
|
130
|
-
width: 60px;
|
|
131
|
-
height: 60px;
|
|
132
|
-
line-height: 60px;
|
|
130
|
+
width: var(--kd-c-avatar-size-large, 60px);
|
|
131
|
+
height: var(--kd-c-avatar-size-large, 60px);
|
|
132
|
+
line-height: var(--kd-c-avatar-size-large, 60px);
|
|
133
133
|
border-radius: 50%;
|
|
134
134
|
}
|
|
135
135
|
.kd-avatar-lg-string {
|
|
@@ -139,15 +139,15 @@
|
|
|
139
139
|
transform-origin: 0 center;
|
|
140
140
|
}
|
|
141
141
|
.kd-avatar-lg.kd-avatar-icon {
|
|
142
|
-
font-size: 36px;
|
|
142
|
+
font-size: var(--kd-c-avatar-font-size-large, 36px);
|
|
143
143
|
}
|
|
144
144
|
.kd-avatar-lg.kd-avatar-icon > .kdicon {
|
|
145
145
|
vertical-align: unset !important;
|
|
146
146
|
}
|
|
147
147
|
.kd-avatar-sm {
|
|
148
|
-
width: 32px;
|
|
149
|
-
height: 32px;
|
|
150
|
-
line-height: 32px;
|
|
148
|
+
width: var(--kd-c-avatar-size-small, 32px);
|
|
149
|
+
height: var(--kd-c-avatar-size-small, 32px);
|
|
150
|
+
line-height: var(--kd-c-avatar-size-small, 32px);
|
|
151
151
|
border-radius: 50%;
|
|
152
152
|
}
|
|
153
153
|
.kd-avatar-sm-string {
|
|
@@ -157,15 +157,15 @@
|
|
|
157
157
|
transform-origin: 0 center;
|
|
158
158
|
}
|
|
159
159
|
.kd-avatar-sm.kd-avatar-icon {
|
|
160
|
-
font-size: 18px;
|
|
160
|
+
font-size: var(--kd-c-avatar-font-size-small, 18px);
|
|
161
161
|
}
|
|
162
162
|
.kd-avatar-sm.kd-avatar-icon > .kdicon {
|
|
163
163
|
vertical-align: unset !important;
|
|
164
164
|
}
|
|
165
165
|
.kd-avatar-xs {
|
|
166
|
-
width: 24px;
|
|
167
|
-
height: 24px;
|
|
168
|
-
line-height: 24px;
|
|
166
|
+
width: var(--kd-c-avatar-size-x-small, 24px);
|
|
167
|
+
height: var(--kd-c-avatar-size-x-small, 24px);
|
|
168
|
+
line-height: var(--kd-c-avatar-size-x-small, 24px);
|
|
169
169
|
border-radius: 50%;
|
|
170
170
|
}
|
|
171
171
|
.kd-avatar-xs-string {
|
|
@@ -175,13 +175,13 @@
|
|
|
175
175
|
transform-origin: 0 center;
|
|
176
176
|
}
|
|
177
177
|
.kd-avatar-xs.kd-avatar-icon {
|
|
178
|
-
font-size: 14px;
|
|
178
|
+
font-size: var(--kd-c-avatar-font-size-x-small, 14px);
|
|
179
179
|
}
|
|
180
180
|
.kd-avatar-xs.kd-avatar-icon > .kdicon {
|
|
181
181
|
vertical-align: unset !important;
|
|
182
182
|
}
|
|
183
183
|
.kd-avatar-square {
|
|
184
|
-
border-radius: 2px;
|
|
184
|
+
border-radius: var(--kd-c-avatar-border-radius, 2px);
|
|
185
185
|
}
|
|
186
186
|
.kd-avatar > img {
|
|
187
187
|
display: block;
|