[IMP] web: removes fields_extra.scss
And normalize styles between Community & Enterprise. task-3439226 Part-of: odoo/odoo#133289
This commit is contained in:
@@ -147,7 +147,6 @@ This module provides the core of the Odoo Web Client.
|
||||
'web/static/src/legacy/scss/model_field_selector.scss',
|
||||
'web/static/src/legacy/scss/dropdown.scss',
|
||||
'web/static/src/legacy/scss/fields.scss',
|
||||
'web/static/src/legacy/scss/fields_extra.scss',
|
||||
'web/static/src/legacy/scss/color_picker.scss',
|
||||
'base/static/src/scss/res_partner.scss',
|
||||
|
||||
|
||||
@@ -384,3 +384,74 @@ button.o_field_float_toggle {
|
||||
select.o_field_widget.o_input {
|
||||
padding: 1px; // Other inputs get a 1px padding automatically added by the browsers but selects do not
|
||||
}
|
||||
|
||||
.o_field_widget.o_legacy_field_widget {
|
||||
.o_field_many2one {
|
||||
.o_input_dropdown .o_input {
|
||||
transform: translateY($input-border-width + $dropdown-border-width);
|
||||
}
|
||||
}
|
||||
|
||||
// HTML fields
|
||||
&.o_field_html.o_field_html { // Make rules more important
|
||||
.note-editor {
|
||||
border-color: map-get($grays, '400');
|
||||
}
|
||||
.note-editable {
|
||||
border-radius: 0;
|
||||
}
|
||||
:not(.oe-bordered-editor).note-editable {
|
||||
border: 0;
|
||||
padding: 3px 40px 5px 0px;
|
||||
}
|
||||
.note-toolbar.panel-heading, .popover-body {
|
||||
border-color: map-get($grays, '400');
|
||||
background: map-get($grays, '100');
|
||||
|
||||
.btn-secondary {
|
||||
background: transparent;
|
||||
border-color: transparent;
|
||||
@include o-hover-text-color($body-color, $link-color);
|
||||
}
|
||||
.show .btn-secondary, .btn-secondary.active, .btn-secondary:focus {
|
||||
background: white !important;
|
||||
color: $body-color !important;
|
||||
border-color: map-get($grays, '400');
|
||||
}
|
||||
.dropdown-menu {
|
||||
margin-top: 0;
|
||||
border-top: none;
|
||||
border-color: map-get($grays, '400');
|
||||
background-color: white;
|
||||
box-shadow: none;
|
||||
|
||||
a {
|
||||
background-color: transparent;
|
||||
color: $body-color;
|
||||
|
||||
&:hover {
|
||||
background-color: map-get($grays, '200');
|
||||
}
|
||||
}
|
||||
&.show .btn-secondary, .btn-secondary.active, .btn-secondary:focus {
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
.btn-group.show::after {
|
||||
@include o-position-absolute(auto, 1px, -1px, 1px);
|
||||
height: 1px;
|
||||
background-color: white;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.ui-autocomplete .ui-menu-item {
|
||||
&.o_m2o_dropdown_option > a {
|
||||
color: $o-brand-primary;
|
||||
|
||||
&.ui-state-active {
|
||||
color: $o-brand-primary;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
//
|
||||
// This file regroups all the rules which apply to field widgets wherever they
|
||||
// are in the DOM, in the community version.
|
||||
//
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Fields
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
.o_field_widget {
|
||||
// Many2one
|
||||
&.o_field_many2one .o_external_button {
|
||||
flex: 0 0 auto;
|
||||
padding: 0;
|
||||
margin-left: 2px;
|
||||
font-size: 19px;
|
||||
color: #7C7BAD;
|
||||
border: none;
|
||||
&:hover {
|
||||
background-color: transparent;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user