mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 08:29:19 +08:00
feat: 增加自动选最大页码功能
This commit is contained in:
@@ -2,7 +2,25 @@
|
||||
all: initial;
|
||||
}
|
||||
|
||||
/* Ant Design 风格 token(不引入组件库,仅对齐色板与圆角) */
|
||||
.ecbi-panel {
|
||||
--ecbi-primary: #1677ff;
|
||||
--ecbi-primary-hover: #4096ff;
|
||||
--ecbi-primary-active: #0958d9;
|
||||
--ecbi-primary-bg: #e6f4ff;
|
||||
--ecbi-text: rgba(0, 0, 0, 0.88);
|
||||
--ecbi-text-secondary: rgba(0, 0, 0, 0.45);
|
||||
--ecbi-text-tertiary: rgba(0, 0, 0, 0.25);
|
||||
--ecbi-border: #d9d9d9;
|
||||
--ecbi-border-secondary: #f0f0f0;
|
||||
--ecbi-fill: #f5f5f5;
|
||||
--ecbi-bg: #ffffff;
|
||||
--ecbi-success: #52c41a;
|
||||
--ecbi-error: #ff4d4f;
|
||||
--ecbi-radius: 8px;
|
||||
--ecbi-radius-lg: 12px;
|
||||
--ecbi-radius-sm: 6px;
|
||||
|
||||
position: fixed;
|
||||
z-index: 2147483646;
|
||||
width: 380px;
|
||||
@@ -10,17 +28,17 @@
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
border-radius: 12px;
|
||||
border: 1px solid #e2e8f0;
|
||||
background: #ffffff;
|
||||
color: #0f172a;
|
||||
border-radius: var(--ecbi-radius-lg);
|
||||
border: 1px solid var(--ecbi-border-secondary);
|
||||
background: var(--ecbi-bg);
|
||||
color: var(--ecbi-text);
|
||||
box-shadow:
|
||||
0 10px 15px -3px rgb(15 23 42 / 0.12),
|
||||
0 4px 6px -4px rgb(15 23 42 / 0.08);
|
||||
0 6px 16px 0 rgb(0 0 0 / 0.08),
|
||||
0 3px 6px -4px rgb(0 0 0 / 0.12),
|
||||
0 9px 28px 8px rgb(0 0 0 / 0.05);
|
||||
font-family:
|
||||
ui-sans-serif,
|
||||
system-ui,
|
||||
-apple-system,
|
||||
BlinkMacSystemFont,
|
||||
'Segoe UI',
|
||||
Roboto,
|
||||
'Helvetica Neue',
|
||||
@@ -28,7 +46,7 @@
|
||||
'Noto Sans',
|
||||
sans-serif;
|
||||
font-size: 13px;
|
||||
line-height: 1.4;
|
||||
line-height: 1.5714;
|
||||
}
|
||||
|
||||
.ecbi-header {
|
||||
@@ -36,23 +54,24 @@
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
padding: 10px 12px;
|
||||
background: #0f172a;
|
||||
color: #f8fafc;
|
||||
padding: 12px 14px;
|
||||
background: var(--ecbi-primary);
|
||||
color: #fff;
|
||||
cursor: move;
|
||||
user-select: none;
|
||||
border-radius: var(--ecbi-radius-lg) var(--ecbi-radius-lg) 0 0;
|
||||
}
|
||||
|
||||
.ecbi-header h1 {
|
||||
margin: 0;
|
||||
font-size: 13px;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.ecbi-header p {
|
||||
margin: 2px 0 0;
|
||||
font-size: 11px;
|
||||
opacity: 0.75;
|
||||
font-size: 12px;
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.ecbi-header-actions {
|
||||
@@ -63,23 +82,23 @@
|
||||
.ecbi-icon-btn {
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: #e2e8f0;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
border-radius: 6px;
|
||||
color: #fff;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
border-radius: var(--ecbi-radius-sm);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.ecbi-icon-btn:hover {
|
||||
background: rgb(255 255 255 / 0.12);
|
||||
background: rgb(255 255 255 / 0.16);
|
||||
}
|
||||
|
||||
.ecbi-body {
|
||||
padding: 12px;
|
||||
padding: 14px;
|
||||
overflow: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.ecbi-row {
|
||||
@@ -90,32 +109,36 @@
|
||||
}
|
||||
|
||||
.ecbi-label {
|
||||
color: #64748b;
|
||||
color: var(--ecbi-text-secondary);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.ecbi-input,
|
||||
.ecbi-select {
|
||||
width: 100%;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 8px;
|
||||
padding: 6px 8px;
|
||||
border: 1px solid var(--ecbi-border);
|
||||
border-radius: var(--ecbi-radius);
|
||||
padding: 6px 11px;
|
||||
font-size: 13px;
|
||||
outline: none;
|
||||
background: #fff;
|
||||
color: #0f172a;
|
||||
background: var(--ecbi-bg);
|
||||
color: var(--ecbi-text);
|
||||
box-sizing: border-box;
|
||||
transition:
|
||||
border-color 0.2s,
|
||||
box-shadow 0.2s;
|
||||
}
|
||||
|
||||
.ecbi-input:focus,
|
||||
.ecbi-select:focus {
|
||||
border-color: #94a3b8;
|
||||
border-color: var(--ecbi-primary);
|
||||
box-shadow: 0 0 0 2px rgb(22 119 255 / 0.2);
|
||||
}
|
||||
|
||||
.ecbi-field {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.ecbi-actions {
|
||||
@@ -125,53 +148,64 @@
|
||||
|
||||
.ecbi-btn {
|
||||
flex: 1;
|
||||
border-radius: 8px;
|
||||
border: 1px solid #cbd5e1;
|
||||
background: #fff;
|
||||
padding: 8px 10px;
|
||||
border-radius: var(--ecbi-radius);
|
||||
border: 1px solid var(--ecbi-border);
|
||||
background: var(--ecbi-bg);
|
||||
color: var(--ecbi-text);
|
||||
padding: 6px 12px;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
font-weight: 400;
|
||||
line-height: 1.5714;
|
||||
cursor: pointer;
|
||||
transition:
|
||||
color 0.2s,
|
||||
border-color 0.2s,
|
||||
background 0.2s;
|
||||
}
|
||||
|
||||
.ecbi-btn:disabled {
|
||||
opacity: 0.5;
|
||||
opacity: 0.45;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.ecbi-btn-primary {
|
||||
border-color: #059669;
|
||||
background: #059669;
|
||||
border-color: var(--ecbi-primary);
|
||||
background: var(--ecbi-primary);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.ecbi-btn-primary:hover:not(:disabled) {
|
||||
background: #047857;
|
||||
border-color: var(--ecbi-primary-hover);
|
||||
background: var(--ecbi-primary-hover);
|
||||
}
|
||||
|
||||
.ecbi-btn-primary:active:not(:disabled) {
|
||||
border-color: var(--ecbi-primary-active);
|
||||
background: var(--ecbi-primary-active);
|
||||
}
|
||||
|
||||
.ecbi-btn-ghost:hover:not(:disabled) {
|
||||
background: #f8fafc;
|
||||
color: var(--ecbi-primary);
|
||||
border-color: var(--ecbi-primary);
|
||||
}
|
||||
|
||||
.ecbi-card {
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 8px;
|
||||
padding: 10px;
|
||||
background: #f8fafc;
|
||||
border: 1px solid var(--ecbi-border-secondary);
|
||||
border-radius: var(--ecbi-radius-lg);
|
||||
padding: 12px;
|
||||
background: var(--ecbi-fill);
|
||||
}
|
||||
|
||||
.ecbi-card h2 {
|
||||
margin: 0 0 8px;
|
||||
font-size: 11px;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.04em;
|
||||
text-transform: uppercase;
|
||||
color: #64748b;
|
||||
color: var(--ecbi-text-secondary);
|
||||
}
|
||||
|
||||
.ecbi-fee {
|
||||
font-weight: 700;
|
||||
color: #e11d48;
|
||||
font-weight: 600;
|
||||
color: var(--ecbi-error);
|
||||
}
|
||||
|
||||
.ecbi-list {
|
||||
@@ -187,23 +221,23 @@
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
font-size: 12px;
|
||||
color: #475569;
|
||||
padding: 2px 0;
|
||||
color: var(--ecbi-text-secondary);
|
||||
padding: 3px 0;
|
||||
}
|
||||
|
||||
.ecbi-muted {
|
||||
color: #94a3b8;
|
||||
color: var(--ecbi-text-tertiary);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.ecbi-error {
|
||||
color: #e11d48;
|
||||
color: var(--ecbi-error);
|
||||
font-size: 12px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.ecbi-ok {
|
||||
color: #047857;
|
||||
color: var(--ecbi-success);
|
||||
font-size: 12px;
|
||||
margin: 0;
|
||||
}
|
||||
@@ -211,17 +245,17 @@
|
||||
.ecbi-link {
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: #0369a1;
|
||||
color: var(--ecbi-primary);
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.ecbi-link:hover {
|
||||
text-decoration: underline;
|
||||
color: var(--ecbi-primary-hover);
|
||||
}
|
||||
|
||||
/* —— 读取日历(贡献图) —— */
|
||||
/* —— 读取日历(贡献图,蓝色阶) —— */
|
||||
.ecbi-heat {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -236,11 +270,9 @@
|
||||
}
|
||||
|
||||
.ecbi-heat-title {
|
||||
font-size: 11px;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.04em;
|
||||
text-transform: uppercase;
|
||||
color: #64748b;
|
||||
color: var(--ecbi-text-secondary);
|
||||
}
|
||||
|
||||
.ecbi-heat-body {
|
||||
@@ -266,7 +298,7 @@
|
||||
width: 14px;
|
||||
font-size: 9px;
|
||||
line-height: 11px;
|
||||
color: #94a3b8;
|
||||
color: var(--ecbi-text-tertiary);
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
@@ -286,7 +318,7 @@
|
||||
height: 14px;
|
||||
font-size: 9px;
|
||||
line-height: 14px;
|
||||
color: #94a3b8;
|
||||
color: var(--ecbi-text-tertiary);
|
||||
white-space: nowrap;
|
||||
width: max-content;
|
||||
max-width: none;
|
||||
@@ -298,7 +330,7 @@
|
||||
.ecbi-heat-cell {
|
||||
width: 11px;
|
||||
height: 11px;
|
||||
border-radius: 2px;
|
||||
border-radius: 3px;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
display: block;
|
||||
@@ -320,19 +352,19 @@ button.ecbi-heat-cell:disabled {
|
||||
}
|
||||
|
||||
.ecbi-heat-l1 {
|
||||
background: #bbf7d0;
|
||||
background: #bae0ff;
|
||||
}
|
||||
|
||||
.ecbi-heat-l2 {
|
||||
background: #86efac;
|
||||
background: #69b1ff;
|
||||
}
|
||||
|
||||
.ecbi-heat-l3 {
|
||||
background: #22c55e;
|
||||
background: #1677ff;
|
||||
}
|
||||
|
||||
.ecbi-heat-l4 {
|
||||
background: #15803d;
|
||||
background: #0958d9;
|
||||
}
|
||||
|
||||
.ecbi-heat-out {
|
||||
@@ -340,16 +372,16 @@ button.ecbi-heat-cell:disabled {
|
||||
}
|
||||
|
||||
.ecbi-heat-page {
|
||||
outline: 1px dashed #0369a1;
|
||||
outline: 1px dashed var(--ecbi-primary);
|
||||
outline-offset: 0;
|
||||
}
|
||||
|
||||
.ecbi-heat-today:not(.ecbi-heat-selected) {
|
||||
box-shadow: inset 0 0 0 1px #64748b;
|
||||
box-shadow: inset 0 0 0 1px var(--ecbi-text-secondary);
|
||||
}
|
||||
|
||||
.ecbi-heat-selected {
|
||||
outline: 2px solid #0f172a;
|
||||
outline: 2px solid var(--ecbi-text);
|
||||
outline-offset: 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user