Browse Source

Merge pull request #5855 from megawac/optional-form-colon

Add a less variable to opt out of form item colons
pull/5836/head
偏右 8 years ago
committed by GitHub
parent
commit
aa0c29dfc0
  1. 7
      components/form/style/index.less
  2. 1
      components/style/themes/default.less

7
components/form/style/index.less

@ -98,7 +98,12 @@ input[type="checkbox"] {
color: @label-color;
&:after {
content: ":";
& when (@form-item-trailing-colon=true) {
content: ":";
}
& when not (@form-item-trailing-colon=true) {
content: " ";
}
margin: 0 8px 0 2px;
position: relative;
top: -0.5px;

1
components/style/themes/default.less

@ -195,6 +195,7 @@
@label-required-color : @highlight-color;
@label-color : @text-color;
@form-item-margin-bottom : 24px;
@form-item-trailing-colon : true;
// Input
// ---

Loading…
Cancel
Save