mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 07:56:28 +08:00
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:
commit
aa0c29dfc0
@ -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;
|
||||
|
@ -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…
Reference in New Issue
Block a user