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