From ffc90c4ff2821fca8067e77734d1160a73e6d77e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= Date: Mon, 24 Aug 2026 19:43:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../static/src/scss/tree_fullborder.scss | 121 +++++++++--------- 1 file changed, 61 insertions(+), 60 deletions(-) diff --git a/gzth_tree_style/static/src/scss/tree_fullborder.scss b/gzth_tree_style/static/src/scss/tree_fullborder.scss index a126f0f9f..626482de7 100644 --- a/gzth_tree_style/static/src/scss/tree_fullborder.scss +++ b/gzth_tree_style/static/src/scss/tree_fullborder.scss @@ -1,60 +1,61 @@ -// gzth 物业系统统一 Tree 列表样式(全局生效,作用于所有列表视图) -// 效果:只保留单元格之间的边框,去掉 table 最外层四边边框;斑马纹 #F1F6FD。 -body.o_web_client .o_action_manager .o_list_view, -body.o_web_client .o_action_manager .o_list_view .o_list_table, -body.o_web_client .o_action_manager .o_list_view .o_list_table * { - box-sizing: border-box !important; -} - -// table 自身不要外框 -body.o_web_client .o_action_manager .o_list_view .o_list_table { - border-collapse: collapse !important; - border: none !important; - background-color: #ffffff !important; -} - -// 表头单元格:统一 1px 细边框 -body.o_web_client .o_action_manager .o_list_view thead th { - font-weight: 700 !important; - border: 1px solid #b6c0cc !important; - padding: 11px 14px !important; - text-align: left !important; -} - -// 数据单元格:统一 1px 细边框 -body.o_web_client .o_action_manager .o_list_view tbody td { - border: 1px solid #b6c0cc !important; - padding: 10px 14px !important; - color: #0f172a !important; - font-weight: 500 !important; - background-color: #ffffff !important; -} - -// 去掉最外层四边:上、下、左、右 -body.o_web_client .o_action_manager .o_list_view thead tr:first-child th { - border-top: none !important; -} - -body.o_web_client .o_action_manager .o_list_view tbody tr:last-child td { - border-bottom: none !important; -} - -body.o_web_client .o_action_manager .o_list_view thead th:first-child, -body.o_web_client .o_action_manager .o_list_view tbody td:first-child { - border-left: none !important; -} - -body.o_web_client .o_action_manager .o_list_view thead th:last-child, -body.o_web_client .o_action_manager .o_list_view tbody td:last-child { - border-right: none !important; -} - -// 斑马纹(直接写到 td 上) -body.o_web_client .o_action_manager .o_list_view tbody tr.o_data_row:nth-child(even) td { - background-color: #F1F6FD !important; -} - -// 悬停高亮(同样写到 td 上) -body.o_web_client .o_action_manager .o_list_view tbody tr.o_data_row:hover td { - background-color: #cfe2fb !important; -} +//// gzth 物业系统统一 Tree 列表样式(全局生效,作用于所有列表视图) +//// 效果:只保留单元格之间的边框,去掉 table 最外层四边边框;斑马纹 #F1F6FD。 +//// 注意:绝不能对 td 强制 color / font-weight / background,否则会覆盖 Odoo 原生 +//// decoration-*(text-success/text-muted/fw-bold 等加在 tr 上、靠继承生效)。 +//body.o_web_client .o_action_manager .o_list_view, +//body.o_web_client .o_action_manager .o_list_view .o_list_table, +//body.o_web_client .o_action_manager .o_list_view .o_list_table * { +// box-sizing: border-box !important; +//} +// +//// table 自身不要外框 +//body.o_web_client .o_action_manager .o_list_view .o_list_table { +// border-collapse: collapse !important; +// border: none !important; +// background-color: #ffffff !important; +//} +// +//// 表头单元格:统一 1px 细边框(表头无 decoration,字重可保留) +//body.o_web_client .o_action_manager .o_list_view thead th { +// font-weight: 700 !important; +// border: 1px solid #b6c0cc !important; +// padding: 11px 14px !important; +// text-align: left !important; +//} +// +//// 数据单元格:只管边框与内边距,不强制颜色/字重/背景, +//// 让 Odoo 原生 decoration-*(文字色、加粗)从 tr 正常继承。 +//body.o_web_client .o_action_manager .o_list_view tbody td { +// border: 1px solid #b6c0cc !important; +// padding: 10px 14px !important; +//} +// +//// 去掉最外层四边:上、下、左、右 +//body.o_web_client .o_action_manager .o_list_view thead tr:first-child th { +// border-top: none !important; +//} +// +//body.o_web_client .o_action_manager .o_list_view tbody tr:last-child td { +// border-bottom: none !important; +//} +// +//body.o_web_client .o_action_manager .o_list_view thead th:first-child, +//body.o_web_client .o_action_manager .o_list_view tbody td:first-child { +// border-left: none !important; +//} +// +//body.o_web_client .o_action_manager .o_list_view thead th:last-child, +//body.o_web_client .o_action_manager .o_list_view tbody td:last-child { +// border-right: none !important; +//} +// +//// 斑马纹:仅普通数据行,排除 Odoo 选中行(table-info)与带 decoration 文字色的行, +//// 直接写到 td 上(td 透明时背景才可见)。 +//body.o_web_client .o_action_manager .o_list_view tbody tr.o_data_row:nth-child(even):not(.table-info):not([class*="text-"]) td { +// background-color: #F1F6FD !important; +//} +// +//// 悬停高亮:排除 Odoo 选中行(table-info),同样写到 td 上 +//body.o_web_client .o_action_manager .o_list_view tbody tr.o_data_row:not(.table-info):hover td { +// background-color: #cfe2fb !important; +//}