feat: 参考原型图 ui优化提交 企业端-企业中心 相关的页面
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
/* Keep long settings forms scrollable while asynchronous sections mount. */
|
||||
.settings-page {
|
||||
--settings-section-gap: 24px;
|
||||
--settings-field-gap: 24px;
|
||||
margin-top: 60px;
|
||||
padding: 0 max(0px, calc(var(--uc-page-pad-x) - 24px))
|
||||
var(--uc-page-pad-bottom);
|
||||
/* PageLayout top padding (24px) + this page's top margin (60px). */
|
||||
height: calc(100vh - 84px - var(--content-top-offset, 0px));
|
||||
height: calc(100dvh - 84px - var(--content-top-offset, 0px));
|
||||
@@ -9,12 +14,147 @@
|
||||
scrollbar-gutter: stable;
|
||||
}
|
||||
|
||||
/* Override the global full-height tab rules only for the outer settings tabs. */
|
||||
.settings-page .ant-layout,
|
||||
.settings-page .ant-layout-content,
|
||||
.settings-page .ant-tabs-content-holder,
|
||||
.settings-page .ant-tabs-tabpane,
|
||||
.settings-page .ant-card,
|
||||
.settings-page .ant-space-item,
|
||||
.settings-page .ant-col {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.settings-page .ant-card {
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.settings-page .ant-card-body {
|
||||
padding: 24px;
|
||||
}
|
||||
|
||||
.settings-page .settings-section {
|
||||
margin-top: var(--settings-section-gap);
|
||||
}
|
||||
|
||||
.settings-page .settings-section:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.settings-page .ant-form > .ant-card + .ant-card,
|
||||
.settings-page .ant-form + .ant-form,
|
||||
.settings-page .ant-form section + section {
|
||||
margin-top: var(--settings-section-gap);
|
||||
}
|
||||
|
||||
.settings-page .ui-form-section {
|
||||
margin: 0 0 24px;
|
||||
color: var(--text-primary);
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
line-height: 24px;
|
||||
}
|
||||
|
||||
.settings-page .ant-form-item {
|
||||
min-width: 0;
|
||||
margin-bottom: var(--settings-field-gap);
|
||||
}
|
||||
|
||||
.settings-page .ant-form-item-label {
|
||||
white-space: normal;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.settings-page .ant-form-item-label > label {
|
||||
height: auto;
|
||||
min-height: 22px;
|
||||
white-space: normal;
|
||||
line-height: 22px;
|
||||
}
|
||||
|
||||
.settings-page .ant-form-vertical .ant-form-item-label {
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
|
||||
.settings-page .ant-form-horizontal .ant-form-item-label {
|
||||
padding-right: 16px;
|
||||
}
|
||||
|
||||
.settings-page .ant-form-horizontal .ant-form-item-label > label {
|
||||
min-height: 34px;
|
||||
}
|
||||
|
||||
.settings-page
|
||||
.ant-form:not(:has(.ant-card, .ant-row > .ant-col-xs-24, .grid)) {
|
||||
max-width: 960px;
|
||||
}
|
||||
|
||||
.settings-page .ant-form-item-control {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.settings-page .ant-form-item-extra,
|
||||
.settings-page .ant-form-item-explain {
|
||||
margin-top: 6px;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.settings-page
|
||||
.ant-form-item-control
|
||||
:is(.ant-select, .ant-picker, .ant-input-number),
|
||||
.settings-page .ant-space {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.settings-page .ant-space-horizontal {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.settings-page .ant-space-vertical > .ant-space-item {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.settings-page .ant-form section > .ant-btn + .ant-form-item {
|
||||
margin-top: var(--settings-field-gap);
|
||||
}
|
||||
|
||||
.settings-page .ant-table-wrapper {
|
||||
min-width: 0;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.settings-page .ant-table-content {
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.settings-page {
|
||||
padding-inline: max(0px, calc(var(--uc-page-pad-x) - 5px));
|
||||
/* Mobile PageLayout uses 5px top padding. */
|
||||
height: calc(100vh - 65px - var(--content-top-offset, 0px));
|
||||
height: calc(100dvh - 65px - var(--content-top-offset, 0px));
|
||||
}
|
||||
|
||||
.settings-page .ant-card-body {
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
/* Block flow ignores desktop flex label widths without overriding inline styles. */
|
||||
.settings-page .ant-form-horizontal .ant-form-item-row,
|
||||
.settings-form-dialog .ant-form-horizontal .ant-form-item-row {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.settings-page .ant-form-horizontal .ant-form-item-label,
|
||||
.settings-form-dialog .ant-form-horizontal .ant-form-item-label {
|
||||
padding: 0 0 8px;
|
||||
}
|
||||
|
||||
.settings-page .ant-form-horizontal .ant-form-item-label > label,
|
||||
.settings-form-dialog .ant-form-horizontal .ant-form-item-label > label {
|
||||
min-height: 22px;
|
||||
}
|
||||
|
||||
.settings-page .ant-space-horizontal > .ant-space-item {
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user