mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 01:09:19 +08:00
refactor: 调整页面组件位置
This commit is contained in:
@@ -0,0 +1,113 @@
|
||||
/* 概览页头部 Select:与工作台 workbench-header-select 样式、配色一致 */
|
||||
.overview-header-select {
|
||||
min-width: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.overview-header-select .ant-select-selector {
|
||||
border-radius: 0.75rem !important;
|
||||
border: none !important;
|
||||
font-weight: 700;
|
||||
font-size: 0.875rem !important;
|
||||
line-height: 1.25rem !important;
|
||||
min-height: 2.125rem !important;
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
padding-inline: 10px 28px !important;
|
||||
background-color: rgb(255 255 255 / 0.92) !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
.overview-header-select.ant-select-single
|
||||
.ant-select-selector
|
||||
.ant-select-selection-item,
|
||||
.overview-header-select.ant-select-single
|
||||
.ant-select-selector
|
||||
.ant-select-selection-placeholder {
|
||||
line-height: 1.25rem !important;
|
||||
color: rgb(15 23 42) !important;
|
||||
}
|
||||
|
||||
.overview-header-select .ant-select-selection-wrap {
|
||||
position: relative !important;
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
flex: 1 1 auto !important;
|
||||
min-width: 0 !important;
|
||||
min-height: 1.25rem;
|
||||
align-self: center !important;
|
||||
}
|
||||
|
||||
.overview-header-select .ant-select-selection-search {
|
||||
position: absolute !important;
|
||||
inset-inline-start: 10px !important;
|
||||
inset-inline-end: 28px !important;
|
||||
top: 50% !important;
|
||||
bottom: auto !important;
|
||||
transform: translateY(-50%) !important;
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
height: 1.25rem !important;
|
||||
margin-inline-start: 0 !important;
|
||||
}
|
||||
|
||||
.overview-header-select .ant-select-selection-search-input {
|
||||
height: 1.25rem !important;
|
||||
line-height: 1.25rem !important;
|
||||
padding: 0 !important;
|
||||
margin: 0 !important;
|
||||
vertical-align: middle !important;
|
||||
color: rgb(15 23 42) !important;
|
||||
}
|
||||
|
||||
.overview-header-select.overview-shop-select .ant-select-selector,
|
||||
.overview-header-select.overview-product-select .ant-select-selector {
|
||||
height: auto !important;
|
||||
min-height: 2.125rem !important;
|
||||
align-items: center !important;
|
||||
padding-block: 6px !important;
|
||||
padding-inline: 10px 28px !important;
|
||||
}
|
||||
|
||||
.overview-header-select.overview-shop-select .ant-select-arrow,
|
||||
.overview-header-select.overview-product-select .ant-select-arrow {
|
||||
top: 50% !important;
|
||||
margin-top: 0 !important;
|
||||
transform: translateY(-50%) !important;
|
||||
color: rgb(100 116 139) !important;
|
||||
}
|
||||
|
||||
.overview-header-select.overview-shop-select.ant-select-single
|
||||
.ant-select-selector
|
||||
.ant-select-selection-item,
|
||||
.overview-header-select.overview-shop-select.ant-select-single
|
||||
.ant-select-selector
|
||||
.ant-select-selection-placeholder,
|
||||
.overview-header-select.overview-product-select.ant-select-single
|
||||
.ant-select-selector
|
||||
.ant-select-selection-item,
|
||||
.overview-header-select.overview-product-select.ant-select-single
|
||||
.ant-select-selector
|
||||
.ant-select-selection-placeholder {
|
||||
white-space: normal !important;
|
||||
word-break: break-word !important;
|
||||
overflow: visible !important;
|
||||
text-overflow: clip !important;
|
||||
line-height: 1.35 !important;
|
||||
align-self: center !important;
|
||||
}
|
||||
|
||||
html.dark .overview-header-select .ant-select-selector {
|
||||
background-color: hsl(240deg 3.7% 18%) !important;
|
||||
}
|
||||
|
||||
html.dark .overview-header-select.ant-select-single .ant-select-selector .ant-select-selection-item,
|
||||
html.dark .overview-header-select.ant-select-single .ant-select-selector .ant-select-selection-placeholder,
|
||||
html.dark .overview-header-select .ant-select-selection-search-input {
|
||||
color: hsl(0deg 0% 95%) !important;
|
||||
}
|
||||
|
||||
html.dark .overview-header-select .ant-select-arrow,
|
||||
html.dark .overview-header-select .ant-select-clear {
|
||||
color: hsl(240deg 5% 64.9%) !important;
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
/** 概览页顶部工具栏(与工作台 #extra 一致) */
|
||||
export const overviewToolbarShellClass =
|
||||
'flex w-full flex-col gap-2 rounded-2xl border border-slate-200 bg-slate-200/50 p-1.5 sm:w-auto sm:flex-row sm:items-center sm:gap-2 dark:border-[hsl(240deg_3.7%_22%)] dark:bg-[hsl(240deg_3.7%_15.9%/30%)]';
|
||||
|
||||
export const overviewToolbarPanelClass =
|
||||
'overview-toolbar-panel rounded-xl bg-white dark:bg-[hsl(222.34deg_10.43%_14%)]';
|
||||
|
||||
export const overviewToolbarLabelClass =
|
||||
'text-xs font-bold text-slate-700 dark:text-slate-300';
|
||||
|
||||
export const overviewTimeRangeBtnClass =
|
||||
'inline-flex min-w-0 cursor-pointer items-center justify-center rounded-xl border-0 px-3 py-2 text-sm font-bold transition-colors sm:px-5';
|
||||
|
||||
export function overviewTimeRangeBtnState(active: boolean) {
|
||||
return active
|
||||
? 'bg-slate-100 text-blue-600 shadow-sm dark:bg-blue-900/30 dark:text-blue-400'
|
||||
: 'bg-transparent text-slate-800 hover:bg-slate-100 dark:text-slate-200 dark:hover:bg-[hsl(240deg_3.7%_22%)]';
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
/* 概览页头部工具栏:税率、日期选择器等(与工作台 workbench-header-extra 一致) */
|
||||
.overview-header-extra .tax-rate-input.ant-input-number {
|
||||
background: transparent !important;
|
||||
border: none !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
.overview-header-extra .tax-rate-input .ant-input-number-input {
|
||||
height: 32px;
|
||||
line-height: 32px;
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
color: rgb(15 23 42);
|
||||
background: transparent !important;
|
||||
}
|
||||
|
||||
.overview-header-extra .tax-rate-input:hover .ant-input-number-input {
|
||||
background-color: rgb(241 245 249) !important;
|
||||
}
|
||||
|
||||
.overview-header-extra .overview-header-range-picker .ant-picker-input > input {
|
||||
color: rgb(15 23 42) !important;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.overview-header-extra .overview-header-range-picker .ant-picker-separator,
|
||||
.overview-header-extra .overview-header-range-picker .ant-picker-suffix {
|
||||
color: rgb(71 85 105);
|
||||
}
|
||||
|
||||
.overview-toolbar-panel .overview-header-select .ant-select-selector {
|
||||
min-height: 2rem !important;
|
||||
padding-inline: 8px 28px !important;
|
||||
background-color: transparent !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
.overview-toolbar-panel .overview-header-select:hover .ant-select-selector {
|
||||
background-color: rgb(241 245 249) !important;
|
||||
}
|
||||
|
||||
html.dark .overview-header-extra .tax-rate-input .ant-input-number-input,
|
||||
html.dark .overview-header-extra .overview-header-range-picker .ant-picker-input > input {
|
||||
color: hsl(0deg 0% 95%) !important;
|
||||
}
|
||||
|
||||
html.dark .overview-header-extra .overview-header-range-picker .ant-picker-separator,
|
||||
html.dark .overview-header-extra .overview-header-range-picker .ant-picker-suffix {
|
||||
color: hsl(240deg 5% 75%);
|
||||
}
|
||||
|
||||
html.dark .overview-header-extra .tax-rate-input:hover .ant-input-number-input {
|
||||
background-color: hsl(240deg 3.7% 22%) !important;
|
||||
}
|
||||
|
||||
html.dark .overview-toolbar-panel .overview-header-select .ant-select-selector {
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
html.dark .overview-toolbar-panel .overview-header-select:hover .ant-select-selector {
|
||||
background-color: hsl(240deg 3.7% 22%) !important;
|
||||
}
|
||||
Reference in New Issue
Block a user