[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:
Martin Geubelle
2017-06-15 10:59:35 +02:00
parent f6525c6b6c
commit 46751de506
2 changed files with 20 additions and 18 deletions
-18
View File
@@ -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;
+20
View File
@@ -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;
}
}