forked from lunanting/cangku
253 lines
6.0 KiB
CSS
253 lines
6.0 KiB
CSS
.product-information-page {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--sycm-page-section-gap);
|
|
}
|
|
|
|
.product-information-overview,
|
|
.product-information-details {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.product-information-overview {
|
|
min-height: calc(100vh - (var(--sycm-page-padding-y) * 2));
|
|
padding: var(--sycm-module-padding);
|
|
}
|
|
|
|
.product-information-overview__header,
|
|
.product-information-toolbar,
|
|
.product-information-table-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--sycm-space-md);
|
|
}
|
|
|
|
.product-information-overview__header h2 {
|
|
margin: 0;
|
|
color: var(--sycm-text-strong);
|
|
font-size: var(--sycm-font-size-title);
|
|
font-weight: var(--sycm-font-weight-semibold);
|
|
}
|
|
|
|
.product-information-period,
|
|
.product-information-toolbar__right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--sycm-space-sm);
|
|
color: var(--sycm-text-secondary);
|
|
font-size: var(--sycm-font-size-caption);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.product-information-metrics {
|
|
display: grid;
|
|
grid-template-columns: repeat(6, minmax(120px, 1fr));
|
|
gap: var(--sycm-space-sm);
|
|
margin-top: var(--sycm-space-sm);
|
|
}
|
|
|
|
.product-information-metric {
|
|
min-height: 88px;
|
|
padding: var(--sycm-space-sm);
|
|
border: var(--sycm-line-width-base) solid transparent;
|
|
border-radius: var(--sycm-radius-lg);
|
|
background: var(--sycm-bg-subtle);
|
|
color: var(--sycm-text-secondary);
|
|
text-align: left;
|
|
transition:
|
|
border-color var(--sycm-interaction-duration-fast) ease,
|
|
background var(--sycm-interaction-duration-fast) ease;
|
|
}
|
|
|
|
.product-information-metric:hover {
|
|
border-color: var(--sycm-color-primary-border);
|
|
}
|
|
|
|
.product-information-metric.is-active {
|
|
border-color: var(--sycm-color-primary-border);
|
|
background: var(--sycm-color-primary-soft);
|
|
}
|
|
|
|
.product-information-metric > span,
|
|
.product-information-metric > small {
|
|
display: block;
|
|
font-size: var(--sycm-font-size-caption);
|
|
font-weight: var(--sycm-font-weight-medium);
|
|
}
|
|
|
|
.product-information-metric > strong {
|
|
display: block;
|
|
margin: var(--sycm-space-xs) 0 var(--sycm-space-xxs);
|
|
color: var(--sycm-text-strong);
|
|
font-family: var(--sycm-font-family-number);
|
|
font-size: var(--sycm-font-size-metric);
|
|
font-weight: var(--sycm-font-weight-bold);
|
|
line-height: var(--sycm-line-height-tight);
|
|
}
|
|
|
|
.product-information-metric.is-active > span,
|
|
.product-information-metric.is-active > strong {
|
|
color: var(--sycm-color-primary);
|
|
}
|
|
|
|
.product-information-metric > small {
|
|
color: var(--sycm-text-tertiary);
|
|
}
|
|
|
|
.product-information-chart {
|
|
margin-top: var(--sycm-space-lg);
|
|
}
|
|
|
|
.product-information-chart__title {
|
|
color: var(--sycm-text-strong);
|
|
font-size: var(--sycm-font-size-body);
|
|
font-weight: var(--sycm-font-weight-semibold);
|
|
}
|
|
|
|
.product-information-chart__canvas {
|
|
width: 100%;
|
|
height: 340px !important;
|
|
}
|
|
|
|
.product-information-details {
|
|
min-height: calc(100vh - (var(--sycm-page-padding-y) * 2));
|
|
}
|
|
|
|
.product-information-ranking-tabs .ant-tabs-nav {
|
|
min-height: var(--sycm-module-header-min-height);
|
|
margin: 0 !important;
|
|
padding: 0 var(--sycm-module-padding);
|
|
background: var(--sycm-bg-subtle);
|
|
}
|
|
|
|
.product-information-ranking-tabs .ant-tabs-content-holder {
|
|
display: none;
|
|
}
|
|
|
|
.product-information-toolbar {
|
|
padding: var(--sycm-space-sm) var(--sycm-module-padding);
|
|
}
|
|
|
|
.product-information-toolbar > .ant-input-search {
|
|
width: min(420px, 42%);
|
|
}
|
|
|
|
.product-information-metric-options {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--sycm-space-xs) var(--sycm-space-md);
|
|
padding: 0 var(--sycm-module-padding) var(--sycm-space-sm);
|
|
}
|
|
|
|
.product-information-metric-options .ant-checkbox-wrapper {
|
|
margin-inline-start: 0;
|
|
color: var(--sycm-text-secondary);
|
|
font-size: var(--sycm-font-size-caption);
|
|
}
|
|
|
|
.product-information-table-actions {
|
|
min-height: var(--sycm-module-header-min-height);
|
|
padding: var(--sycm-space-xs) var(--sycm-module-padding);
|
|
border-top: var(--sycm-line-width-base) solid var(--sycm-border-light);
|
|
color: var(--sycm-text-tertiary);
|
|
font-size: var(--sycm-font-size-caption);
|
|
}
|
|
|
|
.product-information-table .ant-table-placeholder .ant-table-cell {
|
|
height: 320px;
|
|
}
|
|
|
|
.product-information-cell {
|
|
display: flex;
|
|
min-width: 0;
|
|
align-items: flex-start;
|
|
gap: var(--sycm-space-sm);
|
|
}
|
|
|
|
.product-information-cell > img,
|
|
.product-information-cell__image {
|
|
display: inline-flex;
|
|
width: 52px;
|
|
height: 52px;
|
|
flex: 0 0 52px;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border: var(--sycm-line-width-base) solid var(--sycm-border-light);
|
|
border-radius: var(--sycm-radius-sm);
|
|
background: var(--sycm-bg-subtle);
|
|
color: var(--sycm-text-tertiary);
|
|
font-size: var(--sycm-font-size-micro);
|
|
object-fit: cover;
|
|
}
|
|
|
|
.product-information-cell > div {
|
|
min-width: 0;
|
|
}
|
|
|
|
.product-information-cell__name {
|
|
display: block;
|
|
max-width: 170px;
|
|
height: auto;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
font-size: var(--sycm-font-size-caption);
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.product-information-cell__id {
|
|
display: block;
|
|
padding: 0;
|
|
border: 0;
|
|
background: transparent;
|
|
color: var(--sycm-text-tertiary);
|
|
font-size: var(--sycm-font-size-caption);
|
|
text-align: left;
|
|
}
|
|
|
|
.product-information-cell__id:hover {
|
|
color: var(--sycm-color-primary);
|
|
}
|
|
|
|
.product-information-filter-form .ant-form-item {
|
|
margin-bottom: var(--sycm-space-sm);
|
|
}
|
|
|
|
.product-information-filter-form .ant-form-item-label {
|
|
width: 84px;
|
|
}
|
|
|
|
.product-information-filter-form .ant-form-item-label > label {
|
|
color: var(--sycm-text-secondary);
|
|
font-size: var(--sycm-font-size-caption);
|
|
font-weight: var(--sycm-font-weight-medium);
|
|
}
|
|
|
|
.product-information-filter-form__actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: var(--sycm-space-sm);
|
|
padding-top: var(--sycm-space-xs);
|
|
}
|
|
|
|
@media (max-width: 1180px) {
|
|
.product-information-metrics {
|
|
grid-template-columns: repeat(4, minmax(120px, 1fr));
|
|
}
|
|
|
|
.product-information-toolbar {
|
|
align-items: flex-start;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.product-information-toolbar > .ant-input-search {
|
|
width: 100%;
|
|
}
|
|
|
|
.product-information-toolbar__right {
|
|
width: 100%;
|
|
overflow-x: auto;
|
|
}
|
|
}
|