Browse Source

feat: add padding less variable for Alert (#38369)

* feat: add padding less variable for Alert

* feat: Alert less variable
pull/38375/head
章鱼怪 2 years ago
committed by GitHub
parent
commit
ad3c7747e1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      components/alert/style/index.less
  2. 2
      components/style/themes/default.less
  3. 2
      components/style/themes/variable.less

2
components/alert/style/index.less

@ -9,7 +9,7 @@
position: relative;
display: flex;
align-items: center;
padding: 8px 15px;
padding: @alert-padding-vertical @alert-padding-horizontal;
word-wrap: break-word;
border-radius: @border-radius-base;

2
components/style/themes/default.less

@ -966,6 +966,8 @@
@alert-text-color: @text-color;
@alert-close-color: @text-color-secondary;
@alert-close-hover-color: @icon-color-hover;
@alert-padding-vertical: @padding-xs;
@alert-padding-horizontal: @padding-md - 1px;
@alert-no-icon-padding-vertical: @padding-xs;
@alert-with-description-no-icon-padding-vertical: @padding-md - 1px;
@alert-with-description-padding-vertical: @padding-md - 1px;

2
components/style/themes/variable.less

@ -1021,6 +1021,8 @@
@alert-text-color: @text-color;
@alert-close-color: @text-color-secondary;
@alert-close-hover-color: @icon-color-hover;
@alert-padding-vertical: @padding-xs;
@alert-padding-horizontal: @padding-md - 1px;
@alert-no-icon-padding-vertical: @padding-xs;
@alert-with-description-no-icon-padding-vertical: @padding-md - 1px;
@alert-with-description-padding-vertical: @padding-md - 1px;

Loading…
Cancel
Save