mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 07:09:20 +08:00
feat: 增加贡献图直观展示数据读取情况
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
.ecbi-panel {
|
||||
position: fixed;
|
||||
z-index: 2147483646;
|
||||
width: 360px;
|
||||
max-height: min(560px, calc(100vh - 24px));
|
||||
width: 380px;
|
||||
max-height: min(640px, calc(100vh - 24px));
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -220,3 +220,154 @@
|
||||
.ecbi-link:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* —— 读取日历(贡献图) —— */
|
||||
.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: 11px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.04em;
|
||||
text-transform: uppercase;
|
||||
color: #64748b;
|
||||
}
|
||||
|
||||
.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: #94a3b8;
|
||||
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: #94a3b8;
|
||||
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: 2px;
|
||||
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: #bbf7d0;
|
||||
}
|
||||
|
||||
.ecbi-heat-l2 {
|
||||
background: #86efac;
|
||||
}
|
||||
|
||||
.ecbi-heat-l3 {
|
||||
background: #22c55e;
|
||||
}
|
||||
|
||||
.ecbi-heat-l4 {
|
||||
background: #15803d;
|
||||
}
|
||||
|
||||
.ecbi-heat-out {
|
||||
opacity: 0.35;
|
||||
}
|
||||
|
||||
.ecbi-heat-page {
|
||||
outline: 1px dashed #0369a1;
|
||||
outline-offset: 0;
|
||||
}
|
||||
|
||||
.ecbi-heat-today:not(.ecbi-heat-selected) {
|
||||
box-shadow: inset 0 0 0 1px #64748b;
|
||||
}
|
||||
|
||||
.ecbi-heat-selected {
|
||||
outline: 2px solid #0f172a;
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user