Skip to content

Commit

Permalink
feat(comp: space): add size and block props (IDuxFE#670)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: size is used instead of gap
  • Loading branch information
liuzaijiang authored and Lincoln-xzc committed Dec 30, 2021
1 parent aab8096 commit f8c907e
Showing 1 changed file with 32 additions and 30 deletions.
62 changes: 32 additions & 30 deletions packages/components/typography/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,36 +5,6 @@
overflow-wrap: break-word;
color: @typography-default-color;

// text

&-secondary {
color: @typography-color-secondary;
}

&-success {
color: @typography-success;
}

&-warning {
color: @typography-warning;
}

&-error {
color: @typography-error;
}

&-disabled {
color: @typography-disabled-color;
cursor: not-allowed;

a,
a:hover,
a:focus {
color: @typography-disabled-color !important;
cursor: not-allowed !important;
}
}

// tag

mark {
Expand Down Expand Up @@ -128,6 +98,38 @@
}
}

// text

&-secondary {
color: @typography-color-secondary;
}

&-success {
color: @typography-success;
}

&-warning {
color: @typography-warning;
}

&-error {
color: @typography-error;
}

&-disabled {
color: @typography-disabled-color;
cursor: not-allowed;

> * {
pointer-events: none;
}

> a {
color: @typography-disabled-color;
cursor: not-allowed;
}
}

// list

ul,
Expand Down

0 comments on commit f8c907e

Please sign in to comment.