464 lines
14 KiB
CSS
464 lines
14 KiB
CSS
/*
|
|
* EwoooC V3 Page Guard
|
|
* Loaded after page-level CSS to keep migrated Flask/Jinja pages aligned with
|
|
* the production design spec while old page files are cleaned incrementally.
|
|
*/
|
|
|
|
.momo-app:not(.momo-observability-mode) {
|
|
--momo-page-title-size: 1.8rem;
|
|
--momo-page-section-title-size: 1.4rem;
|
|
--momo-page-card-title-size: 1rem;
|
|
--momo-page-kpi-size: 1.85rem;
|
|
}
|
|
|
|
.momo-app:not(.momo-observability-mode) :is(
|
|
.home-hero__title,
|
|
.ai-recommend-title,
|
|
.ar-hero__title h1,
|
|
.monthly-analysis-title,
|
|
.ms-page-head__title,
|
|
.edm-head__title,
|
|
.edm-page .page-head h2,
|
|
.edm-page .campaign-title,
|
|
.sa-page-head__title,
|
|
.daily-hero__title,
|
|
.ga-page-head__h1,
|
|
.vendor-title,
|
|
.page-logs .page-header h4
|
|
) {
|
|
color: var(--momo-text-primary) !important;
|
|
font-family: var(--momo-font-display) !important;
|
|
font-size: var(--momo-page-title-size) !important;
|
|
font-weight: 800 !important;
|
|
line-height: 1.2 !important;
|
|
letter-spacing: 0 !important;
|
|
text-wrap: pretty;
|
|
}
|
|
|
|
.momo-app:not(.momo-observability-mode) :is(
|
|
.fn-card__title,
|
|
.edm-slotpanel__title,
|
|
.ms-chart-card__title,
|
|
.ms-special__title,
|
|
.ms-data-table__title,
|
|
.dashboard-section-label .title,
|
|
.dashboard-table-title,
|
|
.dashboard-focus-title,
|
|
.sa-filter-head__title,
|
|
.sa-filter-group__title,
|
|
.sa-empty__title,
|
|
.sa-panel__title,
|
|
.ga-empty-state h2,
|
|
.ga-chart-card__title,
|
|
.ai-card__title,
|
|
.ai-notice__title,
|
|
.home-manual__title,
|
|
.home-manual__subhead,
|
|
.crawler-title,
|
|
.page-logs .control-section-title,
|
|
.card-title
|
|
) {
|
|
color: var(--momo-text-primary) !important;
|
|
font-family: var(--momo-font-display) !important;
|
|
font-size: var(--momo-page-card-title-size) !important;
|
|
font-weight: 700 !important;
|
|
line-height: 1.4 !important;
|
|
letter-spacing: 0 !important;
|
|
}
|
|
|
|
.momo-app:not(.momo-observability-mode) :is(
|
|
.stat-card h2,
|
|
.stat-number,
|
|
.dashboard-kpi-value,
|
|
.dashboard-focus-number,
|
|
.dashboard-ai-summary-value,
|
|
.kpi-item-value,
|
|
.kpi-value,
|
|
.kpi-card__value,
|
|
.sa-yoy-card__value,
|
|
.sa-insights__value,
|
|
.ga-kpi__value,
|
|
.monthly-analysis-page .kpi-value,
|
|
.vendor-pulse-value,
|
|
.vendor-metric-value,
|
|
.page-logs .stat-value,
|
|
.daily-mobile-day__value
|
|
) {
|
|
font-family: var(--momo-font-mono) !important;
|
|
font-size: var(--momo-page-kpi-size) !important;
|
|
font-weight: 800 !important;
|
|
line-height: 1.1 !important;
|
|
letter-spacing: 0 !important;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.momo-app:not(.momo-observability-mode) :is(
|
|
.home-hero,
|
|
.fn-card,
|
|
.dashboard-kpi-grid,
|
|
.dashboard-focus-card,
|
|
.dashboard-filter-card,
|
|
.dashboard-table-card,
|
|
.ai-recommend-hero,
|
|
.ar-hero,
|
|
.monthly-analysis-hero,
|
|
.ms-page-head,
|
|
.edm-head,
|
|
.edm-promonav,
|
|
.edm-statusbar,
|
|
.edm-slotpanel,
|
|
.edm-page .table-container,
|
|
.edm-page .campaign-hero,
|
|
.edm-page .campaign-kpi-panel,
|
|
.edm-page .campaign-hero-content,
|
|
.sa-page-head,
|
|
.sa-filter-card,
|
|
.sa-panel,
|
|
.sa-kpi,
|
|
.daily-hero,
|
|
.daily-kpi-grid,
|
|
.kpi-card,
|
|
.daily-calendar,
|
|
.ga-page-head,
|
|
.ga-kpi,
|
|
.ga-chart-card,
|
|
.vendor-hero-panel,
|
|
.vendor-card,
|
|
.vendor-table-card,
|
|
.vendor-pulse,
|
|
.crawler-card,
|
|
.home-manual,
|
|
.page-logs .page-header,
|
|
.page-logs .stat-card,
|
|
.page-logs .control-panel,
|
|
.page-logs .log-container-wrapper,
|
|
.momo-app .card
|
|
) {
|
|
border-radius: 8px !important;
|
|
}
|
|
|
|
.momo-app:not(.momo-observability-mode) :is(
|
|
.home-hero,
|
|
.ai-recommend-hero,
|
|
.ar-hero,
|
|
.monthly-analysis-hero,
|
|
.ms-page-head,
|
|
.edm-head,
|
|
.edm-page .campaign-hero,
|
|
.edm-page .campaign-hero-content,
|
|
.sa-page-head,
|
|
.daily-hero,
|
|
.ga-page-head,
|
|
.vendor-hero-panel
|
|
) {
|
|
background-color: var(--momo-bg-surface) !important;
|
|
background-image: none !important;
|
|
border: 1px solid var(--momo-border-strong) !important;
|
|
box-shadow: var(--momo-shadow-soft) !important;
|
|
}
|
|
|
|
.momo-app:not(.momo-observability-mode) :is(
|
|
.monthly-analysis-page .filter-section,
|
|
.sa-filter-card,
|
|
.ms-filter-card,
|
|
.filter-section
|
|
) {
|
|
background-color: var(--momo-bg-paper) !important;
|
|
background-image: none !important;
|
|
color: var(--momo-text-primary) !important;
|
|
}
|
|
|
|
.momo-app:not(.momo-observability-mode) :is(
|
|
.monthly-analysis-page .form-label,
|
|
.filter-section .form-label,
|
|
.sa-filter-group__title,
|
|
.kpi-item-label,
|
|
.kpi-card__label,
|
|
.ga-kpi__label,
|
|
.stat-label,
|
|
.vendor-eyebrow
|
|
) {
|
|
color: var(--momo-text-secondary) !important;
|
|
font-family: var(--momo-font-display) !important;
|
|
font-size: 0.78rem !important;
|
|
font-weight: 700 !important;
|
|
letter-spacing: 0.06em !important;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.momo-app:not(.momo-observability-mode) :is(
|
|
.btn,
|
|
.form-control,
|
|
.form-select,
|
|
.input-group-text,
|
|
.dashboard-search,
|
|
.dashboard-select,
|
|
.dashboard-segmented,
|
|
.dashboard-action-link,
|
|
.dashboard-action-button
|
|
) {
|
|
border-radius: 8px !important;
|
|
font-family: var(--momo-font-family) !important;
|
|
letter-spacing: 0 !important;
|
|
}
|
|
|
|
.momo-app:not(.momo-observability-mode) .page-logs :is(
|
|
.btn-control,
|
|
.btn-filter,
|
|
.btn-font-size,
|
|
.search-box input
|
|
) {
|
|
border-radius: 8px !important;
|
|
font-family: var(--momo-font-family) !important;
|
|
letter-spacing: 0 !important;
|
|
}
|
|
|
|
.momo-app:not(.momo-observability-mode) :is(.btn-primary, .vendor-action.is-primary, .fn-card__cta) {
|
|
background-color: var(--momo-page-accent) !important;
|
|
background-image: none !important;
|
|
border-color: var(--momo-page-accent-dark) !important;
|
|
color: var(--momo-page-inverse) !important;
|
|
}
|
|
|
|
.momo-app:not(.momo-observability-mode) :is(.table thead th, table thead th) {
|
|
background-color: var(--momo-bg-paper) !important;
|
|
color: var(--momo-text-secondary) !important;
|
|
font-family: var(--momo-font-mono) !important;
|
|
font-size: 0.82rem !important;
|
|
font-weight: 700 !important;
|
|
letter-spacing: 0.05em !important;
|
|
}
|
|
|
|
.momo-app:not(.momo-observability-mode) :is(.table-responsive, .table-container) {
|
|
max-width: 100%;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.momo-app:not(.momo-observability-mode) :is(.home-hero__decor, .stat-icon, .kpi-card__icon-bg) {
|
|
opacity: 0.22;
|
|
}
|
|
|
|
.momo-app:not(.momo-observability-mode) .daily-sales-page .kpi-card__body {
|
|
padding: 0.82rem 0.9rem !important;
|
|
}
|
|
|
|
.momo-app:not(.momo-observability-mode) .daily-sales-page .kpi-card__value {
|
|
font-size: clamp(1.35rem, 1.7vw, 1.55rem) !important;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.momo-app:not(.momo-observability-mode) .dashboard-table,
|
|
.momo-app:not(.momo-observability-mode) .edm-page .campaign-table {
|
|
width: 100% !important;
|
|
min-width: 0 !important;
|
|
table-layout: fixed;
|
|
}
|
|
|
|
.momo-app:not(.momo-observability-mode) .dashboard-table th,
|
|
.momo-app:not(.momo-observability-mode) .dashboard-table td,
|
|
.momo-app:not(.momo-observability-mode) .edm-page .campaign-table th,
|
|
.momo-app:not(.momo-observability-mode) .edm-page .campaign-table td {
|
|
min-width: 0;
|
|
overflow-wrap: anywhere;
|
|
white-space: normal;
|
|
}
|
|
|
|
.momo-app:not(.momo-observability-mode) .dashboard-table-wrap,
|
|
.momo-app:not(.momo-observability-mode) .edm-page .campaign-table-wrap {
|
|
overflow-x: visible !important;
|
|
}
|
|
|
|
.momo-app:not(.momo-observability-mode) .dashboard-table th:nth-child(1),
|
|
.momo-app:not(.momo-observability-mode) .dashboard-table td:nth-child(1) {
|
|
width: 7rem;
|
|
}
|
|
|
|
.momo-app:not(.momo-observability-mode) .dashboard-table th:nth-child(2),
|
|
.momo-app:not(.momo-observability-mode) .dashboard-table td:nth-child(2) {
|
|
width: 24%;
|
|
}
|
|
|
|
.momo-app:not(.momo-observability-mode) .edm-page .campaign-table th:nth-child(1),
|
|
.momo-app:not(.momo-observability-mode) .edm-page .campaign-table td:nth-child(1) {
|
|
width: 7rem;
|
|
}
|
|
|
|
.momo-app:not(.momo-observability-mode) .edm-page .campaign-table th:nth-child(2),
|
|
.momo-app:not(.momo-observability-mode) .edm-page .campaign-table td:nth-child(2) {
|
|
width: 36%;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.momo-app:not(.momo-observability-mode) {
|
|
--momo-page-title-size: 1.55rem;
|
|
--momo-page-section-title-size: 1.18rem;
|
|
--momo-page-card-title-size: 0.98rem;
|
|
--momo-page-kpi-size: 1.35rem;
|
|
}
|
|
|
|
.momo-app:not(.momo-observability-mode) :is(
|
|
.home-hero,
|
|
.ai-recommend-hero,
|
|
.ar-hero,
|
|
.monthly-analysis-hero,
|
|
.ms-page-head,
|
|
.edm-head,
|
|
.edm-page .campaign-hero,
|
|
.sa-page-head,
|
|
.daily-hero,
|
|
.ga-page-head,
|
|
.vendor-hero-panel
|
|
) {
|
|
padding: 0.9rem !important;
|
|
}
|
|
|
|
.momo-app:not(.momo-observability-mode) :is(
|
|
.monthly-analysis-hero,
|
|
.ms-page-head,
|
|
.vendor-hero,
|
|
.edm-page .campaign-hero-grid,
|
|
.edm-page .campaign-hero,
|
|
.sa-page-head,
|
|
.ga-page-head
|
|
) {
|
|
grid-template-columns: 1fr !important;
|
|
}
|
|
|
|
.momo-app:not(.momo-observability-mode) :is(
|
|
.home-hero__title,
|
|
.ai-recommend-title,
|
|
.ar-hero__title h1,
|
|
.monthly-analysis-title,
|
|
.ms-page-head__title,
|
|
.edm-head__title,
|
|
.sa-page-head__title,
|
|
.daily-hero__title,
|
|
.ga-page-head__h1,
|
|
.vendor-title,
|
|
.page-logs .page-header h4
|
|
) {
|
|
align-items: flex-start;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.momo-app:not(.momo-observability-mode) .daily-sales-page .kpi-card__value {
|
|
font-size: 1.32rem !important;
|
|
}
|
|
|
|
.momo-app:not(.momo-observability-mode) .edm-page :is(
|
|
.campaign-switcher,
|
|
.campaign-slot-tabs,
|
|
.campaign-filterbar
|
|
) {
|
|
display: grid !important;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
|
|
gap: 8px !important;
|
|
overflow: visible !important;
|
|
}
|
|
|
|
.momo-app:not(.momo-observability-mode) .edm-page :is(
|
|
.campaign-tab,
|
|
.campaign-slot-tab,
|
|
.campaign-filter-chip
|
|
) {
|
|
width: 100% !important;
|
|
min-width: 0 !important;
|
|
justify-content: center !important;
|
|
text-align: center !important;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.momo-app:not(.momo-observability-mode) .dashboard-table-wrap::before,
|
|
.momo-app:not(.momo-observability-mode) .edm-page .campaign-table-wrap::before {
|
|
display: none !important;
|
|
}
|
|
|
|
.momo-app:not(.momo-observability-mode) .dashboard-table,
|
|
.momo-app:not(.momo-observability-mode) .dashboard-table tbody,
|
|
.momo-app:not(.momo-observability-mode) .dashboard-table tr,
|
|
.momo-app:not(.momo-observability-mode) .dashboard-table td,
|
|
.momo-app:not(.momo-observability-mode) .edm-page .campaign-table,
|
|
.momo-app:not(.momo-observability-mode) .edm-page .campaign-table tbody,
|
|
.momo-app:not(.momo-observability-mode) .edm-page .campaign-table tr,
|
|
.momo-app:not(.momo-observability-mode) .edm-page .campaign-table td {
|
|
display: block;
|
|
width: 100% !important;
|
|
}
|
|
|
|
.momo-app:not(.momo-observability-mode) .dashboard-table thead,
|
|
.momo-app:not(.momo-observability-mode) .edm-page .campaign-table thead {
|
|
display: none !important;
|
|
}
|
|
|
|
.momo-app:not(.momo-observability-mode) .dashboard-table tr,
|
|
.momo-app:not(.momo-observability-mode) .edm-page .campaign-table tr {
|
|
margin: 0;
|
|
padding: 0.85rem;
|
|
background: var(--momo-bg-surface);
|
|
border-top: 1px solid var(--momo-border-light);
|
|
}
|
|
|
|
.momo-app:not(.momo-observability-mode) .dashboard-table tr:first-child,
|
|
.momo-app:not(.momo-observability-mode) .edm-page .campaign-table tr:first-child {
|
|
border-top: 0;
|
|
}
|
|
|
|
.momo-app:not(.momo-observability-mode) .dashboard-table td,
|
|
.momo-app:not(.momo-observability-mode) .edm-page .campaign-table td {
|
|
display: grid;
|
|
grid-template-columns: 6.8rem minmax(0, 1fr);
|
|
gap: 0.75rem;
|
|
align-items: start;
|
|
padding: 0.45rem 0 !important;
|
|
border: 0 !important;
|
|
text-align: left !important;
|
|
}
|
|
|
|
.momo-app:not(.momo-observability-mode) .dashboard-table td::before,
|
|
.momo-app:not(.momo-observability-mode) .edm-page .campaign-table td::before {
|
|
color: var(--momo-text-tertiary);
|
|
font-family: var(--momo-font-mono);
|
|
font-size: 0.68rem;
|
|
font-weight: 800;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.momo-app:not(.momo-observability-mode) .dashboard-table td[colspan],
|
|
.momo-app:not(.momo-observability-mode) .edm-page .campaign-table td[colspan] {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.momo-app:not(.momo-observability-mode) .dashboard-table td[colspan]::before,
|
|
.momo-app:not(.momo-observability-mode) .edm-page .campaign-table td[colspan]::before {
|
|
content: none;
|
|
display: none;
|
|
}
|
|
|
|
.momo-app:not(.momo-observability-mode) .dashboard-table td:nth-child(1)::before { content: "分類"; }
|
|
.momo-app:not(.momo-observability-mode) .dashboard-table td:nth-child(2)::before { content: "商品"; }
|
|
.momo-app:not(.momo-observability-mode) .dashboard-table td:nth-child(3)::before { content: "MOMO"; }
|
|
.momo-app:not(.momo-observability-mode) .dashboard-table td:nth-child(4)::before { content: "PChome"; }
|
|
.momo-app:not(.momo-observability-mode) .dashboard-table td:nth-child(5)::before { content: "競價"; }
|
|
.momo-app:not(.momo-observability-mode) .dashboard-table:not(.is-ai-picks) td:nth-child(6)::before { content: "昨日"; }
|
|
.momo-app:not(.momo-observability-mode) .dashboard-table:not(.is-ai-picks) td:nth-child(7)::before { content: "週"; }
|
|
.momo-app:not(.momo-observability-mode) .dashboard-table:not(.is-ai-picks) td:nth-child(8)::before { content: "更新"; }
|
|
.momo-app:not(.momo-observability-mode) .dashboard-table:not(.is-ai-picks) td:nth-child(9)::before { content: "上架"; }
|
|
.momo-app:not(.momo-observability-mode) .dashboard-table.is-ai-picks td:nth-child(6)::before { content: "AI"; }
|
|
.momo-app:not(.momo-observability-mode) .dashboard-table.is-ai-picks td:nth-child(7)::before { content: "昨日"; }
|
|
.momo-app:not(.momo-observability-mode) .dashboard-table.is-ai-picks td:nth-child(8)::before { content: "週"; }
|
|
.momo-app:not(.momo-observability-mode) .dashboard-table.is-ai-picks td:nth-child(9)::before { content: "更新"; }
|
|
.momo-app:not(.momo-observability-mode) .dashboard-table.is-ai-picks td:nth-child(10)::before { content: "上架"; }
|
|
|
|
.momo-app:not(.momo-observability-mode) .edm-page .campaign-table td:nth-child(1)::before { content: "分類"; }
|
|
.momo-app:not(.momo-observability-mode) .edm-page .campaign-table td:nth-child(2)::before { content: "商品"; }
|
|
.momo-app:not(.momo-observability-mode) .edm-page .campaign-table td:nth-child(3)::before { content: "價格"; }
|
|
.momo-app:not(.momo-observability-mode) .edm-page .campaign-table td:nth-child(4)::before { content: "銷售"; }
|
|
.momo-app:not(.momo-observability-mode) .edm-page .campaign-table td:nth-child(5)::before { content: "追蹤"; }
|
|
|
|
.momo-app:not(.momo-observability-mode) .dashboard-table .dashboard-product-cell,
|
|
.momo-app:not(.momo-observability-mode) .edm-page .campaign-table .campaign-product-cell {
|
|
align-items: flex-start;
|
|
}
|
|
}
|