update odoo customize

This commit is contained in:
ivan deng
2023-02-19 03:09:49 +08:00
parent f4072ce20e
commit b1cec576b5
9 changed files with 172 additions and 139 deletions

View File

@@ -0,0 +1,89 @@
// 上方菜单下拉group 也有箭头
.o_main_navbar {
.o-dropdown {
.dropdown-menu_group.dropdown-header::after {
display: inline-block;
margin-left: 3.4px;
vertical-align: 3.4px;
content: "";
border-top: 4px solid;
border-right: 4px solid transparent;
border-bottom: 0;
border-left: 4px solid transparent;
}
}
}
//list
.o_list_renderer.table-responsive .o_list_table {
//list 改标头背景o2m这里分开写
:not(.o_field_x2many_list) > & thead, tfoot {
tr {
background-color: $o-gray-100;
}
}
.o_field_x2many_list > & thead, tfoot {
tr {
background-color: $o-gray-100;
}
}
//列表标头下显示边框,标尾头显示边框
> :not(:first-child) {
border-top-width: 2px;
}
//列表标头左右下显示边框
--ListRenderer-thead-border-end-color: #{map-get($grays, '300')};
//内容显示边框
.o_data_row > .o_data_cell {
border-left: 1px solid map-get($grays, '300');
border-right: 1px solid map-get($grays, '300');
}
.o_data_row:not(.o_selected_row) > .o_data_cell:not(.o_readonly_modifier):not(:last-child) {
border-left: 1px solid map-get($grays, '300');
border-right: 1px solid map-get($grays, '300');
}
}
//form
@media (min-width: 768px) {
.o_form_view .o_form_view_container .o_form_sheet_bg .o_form_sheet {
margin: 6px auto;
}
}
@media (min-width: 576px) {
.o_form_view .o_form_view_container .o_form_sheet_bg .o_form_sheet {
max-width: 98%;
}
}
@media (min-width: 768px) {
.o_form_view .o_form_view_container .o_form_sheet_bg .o_form_sheet {
max-width: 98%;
}
}
@media (min-width: 992px) {
.o_form_view .o_form_view_container .o_form_sheet_bg .o_form_sheet {
max-width: 98%;
}
}
@media (min-width: 1200px) {
.o_form_view .o_form_view_container .o_form_sheet_bg .o_form_sheet {
max-width: 98%;
}
}
@media (min-width: 1400px) {
.o_form_view .o_form_view_container .o_form_sheet_bg .o_form_sheet {
max-width: 98%;
}
}

View File

@@ -0,0 +1,8 @@
// 编辑模式默认 input下方border 有颜色
.o_form_view {
.o_form_view_container {
&:not(.o_field_highlight) .o_field_widget:not(.o_field_invalid):not(.o_field_highlight) .o_input:not(:hover):not(:focus) {
--o-input-border-color: #{map-get($grays, '200')};
}
}
}

View File

@@ -1,27 +0,0 @@
//list 改标头背景
.o_list_renderer {
.o_list_table {
:not(.o_field_x2many_list) > & thead, tfoot {
tr > :not(:empty) {
padding-top: var(--ListRenderer-thead-padding-v);
padding-bottom: var(--ListRenderer-thead-padding-v);
background-color: $o-gray-100;
}
}
}
}
// 上方菜单下拉group 也有箭头
.o_main_navbar {
.o-dropdown {
.dropdown-menu_group.dropdown-header::after {
display: inline-block;
margin-left: 3.4px;
vertical-align: 3.4px;
content: "";
border-top: 4px solid;
border-right: 4px solid transparent;
border-bottom: 0;
border-left: 4px solid transparent;
}
}
}

View File

@@ -5,6 +5,6 @@
<label class="o_form_label" t-att-for="props.id" t-att-class="className" >
<t t-esc="props.string"/><sup class="btn-link p-1" t-if="hasTooltip" t-att="{'data-tooltip-template': 'web.FieldTooltip', 'data-tooltip-info': tooltipInfo, 'data-tooltip-touch-tap-to-show': 'true'}">*</sup>
</label>
</t>
</xpath>
</t>
</templates>