必填字段label添加星号
This commit is contained in:
@@ -1,15 +1,22 @@
|
||||
.test_model {
|
||||
display: flex !important;
|
||||
}
|
||||
.test_model>.o_form_label {
|
||||
|
||||
.test_model > .o_form_label {
|
||||
margin-left: 20px;
|
||||
margin-right: 0px !important;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.o_form_label.o_field_invalid::after {
|
||||
|
||||
div:has(.o_required_modifier)>label::before {
|
||||
content: '*' !important;
|
||||
color: red !important;
|
||||
padding: 0 4px !important;
|
||||
vertical-align: top !important;
|
||||
font-size: 1.5rem !important;
|
||||
}
|
||||
display: inline !important;
|
||||
}
|
||||
|
||||
.o_required_modifier {
|
||||
display: flex !important;
|
||||
}
|
||||
Reference in New Issue
Block a user