Spaces:
Running
Running
File size: 2,248 Bytes
4633f70 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | .stepper {
position: relative;
padding: 22px 8px 6px;
}
.stepper__track {
position: absolute;
top: 34px;
left: 5%;
right: 5%;
height: 3px;
border-radius: 3px;
background: var(--hairline);
overflow: hidden;
}
.stepper__track-fill {
height: 100%;
border-radius: 3px;
background: var(--accent-gradient-h);
box-shadow: 0 0 14px rgba(79, 124, 255, 0.5);
transition: width var(--dur) var(--ease);
}
.stepper__nodes {
position: relative;
display: flex;
justify-content: space-between;
margin: 0;
padding: 0;
list-style: none;
}
.stepper__node {
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
flex: 1;
min-width: 0;
}
.stepper__dot {
width: 26px;
height: 26px;
border-radius: 50%;
display: grid;
place-items: center;
border: 2px solid var(--hairline-strong);
background: var(--panel);
color: var(--text-muted);
font-size: 12px;
font-weight: 700;
font-family: var(--font-mono);
transition:
transform var(--dur-fast) var(--ease),
border-color var(--dur) var(--ease),
background var(--dur) var(--ease),
box-shadow var(--dur) var(--ease);
}
.stepper__dot.is-reached {
border-color: var(--accent-a);
color: #fff;
background: var(--accent-gradient);
}
.stepper__dot.is-stop.is-reached {
background: var(--success);
border-color: var(--success);
}
.stepper__dot.is-active {
transform: scale(1.12);
box-shadow: var(--glow-accent);
animation: nodePulse 1.8s var(--ease) infinite;
}
.stepper__dot.is-stop.is-active {
box-shadow: var(--glow-success);
}
@keyframes nodePulse {
0%,
100% {
box-shadow: 0 0 0 0 rgba(79, 124, 255, 0.5);
}
50% {
box-shadow: 0 0 0 7px rgba(79, 124, 255, 0);
}
}
.stepper__dot:hover {
border-color: var(--accent-a);
}
.stepper__label {
font-size: 11.5px;
font-weight: 600;
color: var(--text-dim);
text-align: center;
white-space: nowrap;
}
.stepper__cum {
font-size: 13px;
font-weight: 700;
color: var(--text);
font-variant-numeric: tabular-nums;
}
.stepper__delta {
font-size: 10.5px;
font-weight: 600;
color: var(--success);
}
@media (max-width: 520px) {
.stepper__label {
font-size: 10px;
}
.stepper__dot {
width: 22px;
height: 22px;
}
}
|