style(frontend): 表格首列左对齐其余列居中
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* 全项目表格统一规范:宽度百分比自适应,表头与内容全部居中。 */
|
||||
/* 全项目表格统一规范:宽度百分比自适应,首列左对齐,其余表头与内容居中。 */
|
||||
.ant-table-wrapper .ant-table {
|
||||
width: 100%;
|
||||
table-layout: fixed;
|
||||
@@ -9,6 +9,11 @@
|
||||
text-align: center !important;
|
||||
}
|
||||
|
||||
.ant-table-wrapper .ant-table-thead > tr > th.percent-table-first-column,
|
||||
.ant-table-wrapper .ant-table-tbody > tr > td.percent-table-first-column {
|
||||
text-align: left !important;
|
||||
}
|
||||
|
||||
.ant-table-wrapper .ant-table-tbody > tr > td .cell-stack {
|
||||
width: 100%;
|
||||
justify-items: center;
|
||||
@@ -24,3 +29,17 @@
|
||||
.ant-table-wrapper .ant-table-tbody > tr > td .cell-stack > .ant-space {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.ant-table-wrapper .ant-table-tbody > tr > td.percent-table-first-column .cell-stack {
|
||||
justify-items: start;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.ant-table-wrapper .ant-table-tbody > tr > td.percent-table-first-column .cell-stack > * {
|
||||
justify-self: start;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.ant-table-wrapper .ant-table-tbody > tr > td.percent-table-first-column .cell-stack > .ant-space {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user