#ecbi-float-host { 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; max-height: min(640px, calc(100vh - 24px)); overflow: hidden; display: flex; flex-direction: column; border-radius: var(--ecbi-radius-lg); border: 1px solid var(--ecbi-border-secondary); background: var(--ecbi-bg); color: var(--ecbi-text); box-shadow: 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: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif; font-size: 13px; line-height: 1.5714; } .ecbi-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; 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: 14px; font-weight: 600; } .ecbi-header p { margin: 2px 0 0; font-size: 12px; opacity: 0.85; } .ecbi-header-actions { display: flex; gap: 4px; } .ecbi-icon-btn { border: 0; background: transparent; color: #fff; width: 28px; height: 28px; border-radius: var(--ecbi-radius-sm); cursor: pointer; } .ecbi-icon-btn:hover { background: rgb(255 255 255 / 0.16); } .ecbi-body { padding: 14px; overflow: auto; display: flex; flex-direction: column; gap: 12px; } .ecbi-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .ecbi-label { color: var(--ecbi-text-secondary); flex-shrink: 0; } .ecbi-input, .ecbi-select { width: 100%; border: 1px solid var(--ecbi-border); border-radius: var(--ecbi-radius); padding: 6px 11px; font-size: 13px; outline: none; 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: var(--ecbi-primary); box-shadow: 0 0 0 2px rgb(22 119 255 / 0.2); } .ecbi-field { display: flex; flex-direction: column; gap: 6px; } .ecbi-actions { display: flex; gap: 8px; } .ecbi-btn { flex: 1; 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: 400; line-height: 1.5714; cursor: pointer; transition: color 0.2s, border-color 0.2s, background 0.2s; } .ecbi-btn:disabled { opacity: 0.45; cursor: not-allowed; } .ecbi-btn-primary { border-color: var(--ecbi-primary); background: var(--ecbi-primary); color: #fff; } .ecbi-btn-primary:hover:not(:disabled) { 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) { color: var(--ecbi-primary); border-color: var(--ecbi-primary); } .ecbi-card { 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: 12px; font-weight: 600; color: var(--ecbi-text-secondary); } .ecbi-fee { font-weight: 600; color: var(--ecbi-error); } .ecbi-list { margin: 8px 0 0; padding: 0; list-style: none; max-height: 120px; overflow: auto; } .ecbi-list li { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ecbi-text-secondary); padding: 3px 0; } .ecbi-muted { color: var(--ecbi-text-tertiary); font-size: 12px; } .ecbi-error { color: var(--ecbi-error); font-size: 12px; margin: 0; } .ecbi-ok { color: var(--ecbi-success); font-size: 12px; margin: 0; } .ecbi-link { border: 0; background: transparent; color: var(--ecbi-primary); font-size: 12px; cursor: pointer; padding: 0; } .ecbi-link:hover { color: var(--ecbi-primary-hover); } /* —— 读取日历(贡献图,蓝色阶) —— */ .ecbi-heat { display: flex; flex-direction: column; gap: 6px; } .ecbi-heat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; } .ecbi-heat-title { font-size: 12px; font-weight: 600; color: var(--ecbi-text-secondary); } .ecbi-heat-body { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 2px; } .ecbi-heat-dows { display: flex; flex-direction: column; gap: 3px; flex-shrink: 0; } .ecbi-heat-month-spacer { height: 14px; } .ecbi-heat-dow { height: 11px; width: 14px; font-size: 9px; line-height: 11px; color: var(--ecbi-text-tertiary); text-align: right; } .ecbi-heat-weeks { display: flex; gap: 3px; } .ecbi-heat-week { display: flex; flex-direction: column; gap: 3px; width: 11px; } .ecbi-heat-month { height: 14px; font-size: 9px; line-height: 14px; color: var(--ecbi-text-tertiary); white-space: nowrap; width: max-content; max-width: none; position: relative; z-index: 1; pointer-events: none; } .ecbi-heat-cell { width: 11px; height: 11px; border-radius: 3px; border: 0; padding: 0; display: block; box-sizing: border-box; background: #ebedf0; cursor: default; } button.ecbi-heat-cell:not(:disabled) { cursor: pointer; } button.ecbi-heat-cell:disabled { opacity: 1; } .ecbi-heat-l0 { background: #ebedf0; } .ecbi-heat-l1 { background: #bae0ff; } .ecbi-heat-l2 { background: #69b1ff; } .ecbi-heat-l3 { background: #1677ff; } .ecbi-heat-l4 { background: #0958d9; } .ecbi-heat-out { opacity: 0.35; } .ecbi-heat-page { outline: 1px dashed var(--ecbi-primary); outline-offset: 0; } .ecbi-heat-today:not(.ecbi-heat-selected) { box-shadow: inset 0 0 0 1px var(--ecbi-text-secondary); } .ecbi-heat-selected { outline: 2px solid var(--ecbi-text); outline-offset: 0; } .ecbi-heat-legend { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; } .ecbi-heat-gap { width: 8px; } .ecbi-heat-filter { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }