[FIX] web: correctly style o_status class
The `o_status` style has been moved in a previous rev. in `fields.less` which is only for `o_field_widget` nodes. This class however is used in other context than a field (e.g. on a label in the project.task.type form view) so its style needs to be placed at an upper level.
This commit is contained in:
@@ -180,24 +180,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
// Status
|
||||
&.o_selection .o_status {
|
||||
display: inline-block;
|
||||
height: 12px;
|
||||
width: 12px;
|
||||
border-radius: 6px;
|
||||
vertical-align: middle;
|
||||
|
||||
background-color: @odoo-brand-secondary;
|
||||
|
||||
&.o_status_green {
|
||||
background-color: @brand-success;
|
||||
}
|
||||
&.o_status_red {
|
||||
background-color: @brand-danger;
|
||||
}
|
||||
}
|
||||
|
||||
// Specific success color for toggle_button widget
|
||||
.fa.o_toggle_button_success {
|
||||
color: @brand-success;
|
||||
|
||||
@@ -21,3 +21,23 @@
|
||||
.o_invisible_modifier {
|
||||
display: none!important;
|
||||
}
|
||||
|
||||
// Status
|
||||
// This should normally be put in fields.less but these classes are used outside
|
||||
// of `.o_field_widget` so it needs to be placed at an upper level.
|
||||
.o_status {
|
||||
display: inline-block;
|
||||
height: 12px;
|
||||
width: 12px;
|
||||
border-radius: 6px;
|
||||
vertical-align: middle;
|
||||
|
||||
background-color: @odoo-brand-secondary;
|
||||
|
||||
&.o_status_green {
|
||||
background-color: @brand-success;
|
||||
}
|
||||
&.o_status_red {
|
||||
background-color: @brand-danger;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user