[IMP] web: FormView, remove unnecessary mixin

task-2918464

X-original-commit: a1f4f8ea930425c9556691d518905b2fe5ee6da2
Part-of: odoo/odoo#101655
This commit is contained in:
Adrien Dieudonné
2022-09-29 19:54:49 +02:00
parent 929769ecdd
commit 98d093b3c2
2 changed files with 3 additions and 11 deletions
@@ -28,10 +28,6 @@
margin-right: -$o-horizontal-padding;
}
@mixin o-label-style {
color: $headings-color;
}
// XXS form view specific rules
@mixin form-break-table {
grid-template-columns: 1fr;
@@ -444,10 +440,6 @@
--columns: 1;
gap: map-get($spacers, 2) $o-horizontal-padding;
.o_wrap_label {
@include o-label-style;
}
span, .o_field_boolean, .oe_avatar, .o_form_uri {
&.o_field_widget {
width: auto;
@@ -470,7 +462,7 @@
}
> .o_form_label {
@include o-label-style;
color: $headings-color;
margin-right: $o-form-label-margin-right;
font-weight: $font-weight-bold;
}
@@ -20,7 +20,7 @@
<t t-foreach="row" t-as="cell" t-key="cell_index">
<t t-if="cell.subType === 'item_component'">
<div class="o_cell o_wrap_label flex-grow-1 flex-sm-grow-0 w-100 text-break">
<div class="o_cell o_wrap_label flex-grow-1 flex-sm-grow-0 w-100 text-break text-900">
<t t-component="cell.Component" t-if="cell.isVisible" t-props="cell.props"/>
</div>
<div
@@ -35,7 +35,7 @@
<div
class="o_cell flex-grow-1 flex-sm-grow-0"
t-attf-style="{{ cell.itemSpan > 1 ? 'grid-column: span ' + cell.itemSpan + ';' : '' }}{{ cell.width ? 'width: ' + cell.width + '%' + ';' : '' }}"
t-attf-class="{{ cell.subType === 'label' ? 'o_wrap_label w-100 text-break' : null }}"
t-attf-class="{{ cell.subType === 'label' ? 'o_wrap_label w-100 text-break text-900' : null }}"
t-if="cell.isVisible">
<t t-slot="{{ cell.name }}" />
</div>