@@ -1,37 +1,42 @@
|
||||
// gzth 物业系统统一 Tree 全边框样式(全局生效,作用于所有列表视图)
|
||||
// 不依赖任何 class 注入或模板继承,直接对 .o_list_view 施加样式。
|
||||
.o_list_view {
|
||||
.o_list_table {
|
||||
border-collapse: collapse;
|
||||
border: 2px solid #94a3b8;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
thead th {
|
||||
background-color: #dde3ea !important;
|
||||
color: #0f172a !important;
|
||||
font-weight: 700 !important;
|
||||
border: 2px solid #94a3b8 !important;
|
||||
padding: 11px 14px !important;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
tbody tr.o_data_row {
|
||||
background-color: #ffffff !important;
|
||||
}
|
||||
|
||||
tbody tr.o_data_row:nth-child(even) {
|
||||
background-color: #d8e0ea !important;
|
||||
}
|
||||
|
||||
tbody tr.o_data_row:hover {
|
||||
background-color: #bdd8fc !important;
|
||||
}
|
||||
|
||||
tbody td {
|
||||
border: 1px solid #b6c0cc !important;
|
||||
padding: 10px 14px !important;
|
||||
color: #0f172a;
|
||||
font-weight: 500 !important;
|
||||
}
|
||||
// 使用 body > .o_web_client 超高特异性选择器,确保能覆盖自定义主题。
|
||||
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;
|
||||
}
|
||||
|
||||
// 全边框(稳定版:1px 单元格 + 2px 外框,不加粗)
|
||||
body.o_web_client .o_action_manager .o_list_view .o_list_table {
|
||||
border-collapse: collapse !important;
|
||||
border: 2px solid #94a3b8 !important;
|
||||
background-color: #ffffff !important;
|
||||
}
|
||||
|
||||
body.o_web_client .o_action_manager .o_list_view thead th {
|
||||
background-color: #dde3ea !important;
|
||||
color: #0f172a !important;
|
||||
font-weight: 700 !important;
|
||||
border: 2px solid #94a3b8 !important;
|
||||
padding: 11px 14px !important;
|
||||
text-align: left !important;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
// 斑马纹(直接写道 td 上,确保不被主题的行背景覆盖)
|
||||
body.o_web_client .o_action_manager .o_list_view tbody tr.o_data_row:nth-child(even) td {
|
||||
background-color: #e6ecf3 !important;
|
||||
}
|
||||
|
||||
// 悬停高亮(同样写到 td 上)
|
||||
body.o_web_client .o_action_manager .o_list_view tbody tr.o_data_row:hover td {
|
||||
background-color: #cfe2fb !important;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user