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

Add a less variable to opt out of form item colons
This commit is contained in:
偏右 2017-04-22 13:30:14 +08:00 committed by GitHub
commit aa0c29dfc0
2 changed files with 7 additions and 1 deletions

View File

@ -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;

View File

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