[IMP] web,*: move views.scss out of legacy

*: mrp_subcontracting,project,stock

task-3439226

Part-of: odoo/odoo#132787
This commit is contained in:
Pierre Paridans
2023-08-23 14:43:47 +02:00
parent 954b2d1673
commit cb1ba1f2ba
6 changed files with 29 additions and 37 deletions
@@ -77,7 +77,6 @@
'web/static/lib/jquery.ba-bbq/jquery.ba-bbq.js',
'web/static/src/legacy/scss/fields.scss',
'web/static/src/legacy/scss/views.scss',
'web/static/src/legacy/scss/form_view.scss',
'web/static/src/legacy/scss/list_view.scss',
-1
View File
@@ -130,7 +130,6 @@
'web/static/lib/jquery.ba-bbq/jquery.ba-bbq.js',
'web/static/src/legacy/scss/fields.scss',
'web/static/src/legacy/scss/views.scss',
'base/static/src/scss/res_partner.scss',
-1
View File
@@ -97,7 +97,6 @@
'post_init_hook': '_assign_default_mail_template_picking_id',
'assets': {
'web.report_assets_common': [
'web/static/src/legacy/scss/views.scss',
'stock/static/src/scss/report_stock_reception.scss',
'stock/static/src/scss/report_stock_rule.scss',
],
-1
View File
@@ -183,7 +183,6 @@ This module provides the core of the Odoo Web Client.
'web/static/src/legacy/scss/dropdown.scss',
'web/static/src/legacy/scss/tooltip.scss',
'web/static/src/legacy/scss/fields.scss',
'web/static/src/legacy/scss/views.scss',
'web/static/src/legacy/scss/fields_extra.scss',
'web/static/src/legacy/scss/color_picker.scss',
'base/static/src/scss/res_partner.scss',
@@ -1,33 +0,0 @@
/**
* This file regroups the rules which apply on elements which are shared between
* all renderers. For field default rules, see the fields.scss file.
*/
// Invisible modifier (can be inside the view, the button area, ...)
.o_invisible_modifier {
display: none!important;
}
// Status
// This should normally be put in fields.scss but these classes are used outside
// of `.o_field_widget` so it needs to be placed at an upper level.
.o_status {
@extend .rounded-circle;
background-color: map-get($grays, '200');
height: 12px;
width: 12px;
box-shadow: inset 0 0 0 1px rgba($black, .2);
&.o_status_green {
@extend .bg-success;
}
&.o_status_red {
@extend .bg-danger;
}
.dropdown-item > & {
margin-bottom: .2em;
transform: translateX(-50%);
}
}
+29
View File
@@ -56,3 +56,32 @@
}
}
}
// Invisible modifier (can be inside the view, the button area, ...)
.o_invisible_modifier {
display: none!important;
}
// Status
// This should normally be put in fields.scss but these classes are used outside
// of `.o_field_widget` so it needs to be placed at an upper level.
.o_status {
@extend .rounded-circle;
background-color: map-get($grays, '200');
height: 12px;
width: 12px;
box-shadow: inset 0 0 0 1px rgba($black, .2);
&.o_status_green {
@extend .bg-success;
}
&.o_status_red {
@extend .bg-danger;
}
.dropdown-item > & {
margin-bottom: .2em;
transform: translateX(-50%);
}
}