index.less 1.99 KB
// 嵌套表格去掉左方多余部分
.ant-table .ant-table-middle {
  margin-inline: 0 !important;
}

td {
  font-family: 'San Francisco', 'Helvetica Neue', Helvetica, Arial,
    'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Heiti SC',
    'WenQuanYi Micro Hei', sans-serif;
  font-size: 13px;
}

//订单编辑抽屉中,订单总额addonAfter的padding去除
#total-payment .ant-input-number-group-addon {
  padding: 0 !important;
}

table:hover,
tr:hover,
thead:hover {
  background: none !important;
}

#main-table .ant-table-tbody > tr.ant-table-row:hover > td {
  background: none !important;
}

.ant-pro-card {
  background-color: transparent;
}

#main-table .ant-table-tbody .ant-table-cell {
  padding: 10px 0 0;
}

#main-table .ant-table-tbody {
  background-color: #f5f5f5;
}

.ant-pro-card-body {
  padding: 0 !important;
}

.ant-table-thead .ant-table-cell {
  background-color: #fff !important;
  border-radius: 8px !important;
}

#sub-table tbody td {
  padding: 10px 0 !important;
}

// 子订单第一行的上边两个角为圆角
#sub-table tbody tr:first-child td:first-child {
  border-top-left-radius: 8px;
}

#sub-table tbody tr:first-child td:nth-child(2) {
  border-top-right-radius: 8px;
}

//子订单最后一行的下边两个角为圆角
#sub-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 8px;
}

#sub-table tbody tr:last-child td:nth-child(2) {
  border-bottom-right-radius: 8px;
}

//子订单边线颜色
#sub-table tbody tr td:first-child {
  border-top: 1px solid #d7d6d6; /* 设置行与行之间分割线的颜色 */
  border-bottom: 1px solid #d7d6d6; /* 设置行与行之间分割线的颜色 */
  border-left: 1px solid #d7d6d6; /* 设置行与行之间分割线的颜色 */
}

#sub-table tbody tr td:nth-child(2) {
  border-top: 1px solid #d7d6d6; /* 设置行与行之间分割线的颜色 */
  border-bottom: 1px solid #d7d6d6; /* 设置行与行之间分割线的颜色 */
  border-right: 1px solid #d7d6d6; /* 设置行与行之间分割线的颜色 */
}