列表样式

This commit is contained in:
李鹏宇
2026-08-24 19:55:27 +08:00
parent ffc90c4ff2
commit 8649a535b4
@@ -1,61 +1,61 @@
//// gzth 物业系统统一 Tree 列表样式(全局生效,作用于所有列表视图) // gzth 物业系统统一 Tree 列表样式(全局生效,作用于所有列表视图)
//// 效果:只保留单元格之间的边框,去掉 table 最外层四边边框;斑马纹 #F1F6FD。 // 效果:只保留单元格之间的边框,去掉 table 最外层四边边框;斑马纹 #F1F6FD。
//// 注意:绝不能对 td 强制 color / font-weight / background,否则会覆盖 Odoo 原生 // 注意:绝不能对 td 强制 color / font-weight / background,否则会覆盖 Odoo 原生
//// decoration-*(text-success/text-muted/fw-bold 等加在 tr 上、靠继承生效)。 // 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,
//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,
//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; box-sizing: border-box !important;
//} }
//
//// table 自身不要外框 // table 自身不要外框
//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 {
// border-collapse: collapse !important; border-collapse: collapse !important;
// border: none !important; border: none !important;
// background-color: #ffffff !important; background-color: #ffffff !important;
//} }
//
//// 表头单元格:统一 1px 细边框(表头无 decoration,字重可保留) // 表头单元格:统一 1px 细边框(表头无 decoration,字重可保留)
//body.o_web_client .o_action_manager .o_list_view thead th { body.o_web_client .o_action_manager .o_list_view thead th {
// font-weight: 700 !important; font-weight: 700 !important;
// border: 1px solid #b6c0cc !important; border: 1px solid #b6c0cc !important;
// padding: 11px 14px !important; padding: 11px 14px !important;
// text-align: left !important; text-align: left !important;
//} }
//
//// 数据单元格:只管边框与内边距,不强制颜色/字重/背景, // 数据单元格:只管边框与内边距,不强制颜色/字重/背景,
//// 让 Odoo 原生 decoration-*(文字色、加粗)从 tr 正常继承。 // 让 Odoo 原生 decoration-*(文字色、加粗)从 tr 正常继承。
//body.o_web_client .o_action_manager .o_list_view tbody td { body.o_web_client .o_action_manager .o_list_view tbody td {
// border: 1px solid #b6c0cc !important; border: 1px solid #b6c0cc !important;
// padding: 10px 14px !important; padding: 10px 14px !important;
//} }
//
//// 去掉最外层四边:上、下、左、右 // 去掉最外层四边:上、下、左、右
//body.o_web_client .o_action_manager .o_list_view thead tr:first-child th { body.o_web_client .o_action_manager .o_list_view thead tr:first-child th {
// border-top: none !important; border-top: none !important;
//} }
//
//body.o_web_client .o_action_manager .o_list_view tbody tr:last-child td { body.o_web_client .o_action_manager .o_list_view tbody tr:last-child td {
// border-bottom: none !important; 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 thead th:first-child,
//body.o_web_client .o_action_manager .o_list_view tbody td:first-child { body.o_web_client .o_action_manager .o_list_view tbody td:first-child {
// border-left: none !important; 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 thead th:last-child,
//body.o_web_client .o_action_manager .o_list_view tbody td:last-child { body.o_web_client .o_action_manager .o_list_view tbody td:last-child {
// border-right: none !important; border-right: none !important;
//} }
//
//// 斑马纹:仅普通数据行,排除 Odoo 选中行(table-info)与带 decoration 文字色的行, // 斑马纹:仅普通数据行,排除 Odoo 选中行(table-info)与带 decoration 文字色的行,
//// 直接写到 td 上(td 透明时背景才可见)。 // 直接写到 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 { 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; background-color: #F1F6FD !important;
//} }
//
//// 悬停高亮:排除 Odoo 选中行(table-info),同样写到 td 上 // 悬停高亮:排除 Odoo 选中行(table-info),同样写到 td 上
//body.o_web_client .o_action_manager .o_list_view tbody tr.o_data_row:not(.table-info):hover 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; background-color: #cfe2fb !important;
//} }