227 lines
5.0 KiB
CSS
227 lines
5.0 KiB
CSS
.section-card {
|
|
position: relative;
|
|
flex: 1;
|
|
height: 100%;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
box-sizing: border-box;
|
|
overflow: hidden;
|
|
padding: 16px;
|
|
border: 1px solid var(--app-border-color, #e6e6e6);
|
|
border-radius: 4px;
|
|
background-color: var(--app-surface-color, #fff);
|
|
background-image: url("../../../assets/home/mask.png");
|
|
background-position: right top;
|
|
background-size: contain;
|
|
background-repeat: no-repeat;
|
|
}
|
|
|
|
.section-card--auto {
|
|
height: auto;
|
|
min-height: 0;
|
|
overflow: visible;
|
|
}
|
|
|
|
.section-card__header {
|
|
z-index: 1;
|
|
position: relative;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
min-width: 0;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.section-card__title-wrap {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.section-card__title {
|
|
margin: 0;
|
|
padding-bottom: 8px;
|
|
color: var(--app-text-main, #333);
|
|
font-family: "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
line-height: 28px;
|
|
letter-spacing: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.section-card__title::before {
|
|
content: "";
|
|
flex: 0 0 auto;
|
|
width: 4px;
|
|
height: 16px;
|
|
border-radius: 1px;
|
|
background: var(--app-primary-color, #3c70f5);
|
|
}
|
|
|
|
.section-card__description {
|
|
padding: 0 0 16px 12px;
|
|
color: var(--app-text-secondary, #9095a1);
|
|
font-family: "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
|
|
font-size: 14px;
|
|
font-weight: 400;
|
|
line-height: 24px;
|
|
letter-spacing: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.section-card__extra {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.section-card__tabs {
|
|
z-index: 1;
|
|
flex-shrink: 0;
|
|
min-width: 0;
|
|
}
|
|
|
|
.section-card__tabs:has(+ .section-card__content .data-list-panel) {
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.section-card__tabs > .ant-tabs {
|
|
width: 100%;
|
|
}
|
|
|
|
.section-card__tabs > .ant-tabs > .ant-tabs-nav {
|
|
margin: 0 !important;
|
|
border-bottom: none !important;
|
|
}
|
|
|
|
.section-card__tabs > .ant-tabs > .ant-tabs-nav::before {
|
|
border-bottom: none !important;
|
|
}
|
|
|
|
.section-card__tabs .ant-tabs-nav-list {
|
|
transition: none !important;
|
|
}
|
|
|
|
.section-card__tabs .ant-tabs-content-holder,
|
|
.section-card__tabs .ant-tabs-ink-bar {
|
|
display: none !important;
|
|
}
|
|
|
|
.section-card__tabs .ant-tabs-tab {
|
|
margin-left: 0 !important;
|
|
padding: 10px 16px !important;
|
|
border: 0 solid transparent !important;
|
|
border-radius: 0 !important;
|
|
background-color: rgba(249, 250, 254, 0) !important;
|
|
transition: background-color 0.16s ease !important;
|
|
}
|
|
|
|
.section-card__tabs .ant-tabs-tab:hover {
|
|
background-color: transparent !important;
|
|
}
|
|
|
|
.section-card__tabs .ant-tabs-tab.ant-tabs-tab-active,
|
|
.section-card__tabs .ant-tabs-tab.ant-tabs-tab-active:hover,
|
|
.section-card__tabs .ant-tabs-tab.ant-tabs-tab-active:focus,
|
|
.section-card__tabs .ant-tabs-tab.ant-tabs-tab-active:active {
|
|
border: none !important;
|
|
border-radius: 0 !important;
|
|
background-color: var(--app-bg-surface-soft, #e9eef8) !important;
|
|
}
|
|
|
|
.section-card__tabs .ant-tabs-tab-btn {
|
|
color: var(--app-text-main, #333);
|
|
font-family: "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
|
|
font-size: 14px;
|
|
line-height: 22px;
|
|
letter-spacing: 0;
|
|
transition: color 0.16s ease !important;
|
|
}
|
|
|
|
.section-card__tabs .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
|
|
color: var(--app-primary-color, #1677ff) !important;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.section-card__content {
|
|
z-index: 1;
|
|
flex: 1;
|
|
height: 100%;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
box-sizing: border-box;
|
|
overflow: hidden;
|
|
padding: 8px;
|
|
border-radius: 4px;
|
|
background-color: var(--app-bg-surface-soft, #f9fafe);
|
|
}
|
|
|
|
.section-card--auto .section-card__content {
|
|
height: auto;
|
|
overflow: visible;
|
|
}
|
|
|
|
:root[data-theme="tech"] .section-card {
|
|
background-image:
|
|
radial-gradient(circle at 90% 0%, rgba(47, 211, 255, 0.18), transparent 28%),
|
|
linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(232, 244, 255, 0.88)),
|
|
linear-gradient(rgba(22, 119, 255, 0.08) 1px, transparent 1px),
|
|
linear-gradient(90deg, rgba(22, 119, 255, 0.08) 1px, transparent 1px);
|
|
background-size: auto, auto, 28px 28px, 28px 28px;
|
|
box-shadow: var(--app-shadow);
|
|
border-color: rgba(22, 119, 255, 0.24);
|
|
}
|
|
|
|
:root[data-theme="tech"] .section-card__content {
|
|
background:
|
|
linear-gradient(180deg, rgba(246, 251, 255, 0.94), rgba(232, 244, 255, 0.9));
|
|
border: 1px solid rgba(22, 119, 255, 0.12);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.section-card {
|
|
padding: 12px;
|
|
}
|
|
|
|
.section-card__header {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.section-card__title-wrap {
|
|
width: 100%;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.section-card__title {
|
|
align-items: flex-start;
|
|
white-space: normal;
|
|
}
|
|
|
|
.section-card__title::before {
|
|
margin-top: 6px;
|
|
}
|
|
|
|
.section-card__description {
|
|
white-space: normal;
|
|
}
|
|
|
|
.section-card__extra {
|
|
width: 100%;
|
|
justify-content: flex-start;
|
|
}
|
|
}
|