57 lines
1.1 KiB
CSS
57 lines
1.1 KiB
CSS
.spectrum-container {
|
|
width: 100%;
|
|
height: 40px;
|
|
opacity: 1;
|
|
transition: opacity 0.3s ease;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.spectrum-container.hidden {
|
|
opacity: 0;
|
|
}
|
|
|
|
.spectrum-bars {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-end;
|
|
height: 100%;
|
|
gap: 2px;
|
|
padding: 0 4px;
|
|
}
|
|
|
|
.spectrum-bar {
|
|
flex: 1;
|
|
margin: 0 auto;
|
|
max-width: 8px;
|
|
min-width: 4px;
|
|
height: var(--bar-height, 2%);
|
|
min-height: 2px;
|
|
background-image: linear-gradient(to top,
|
|
#2ECC71 0%, #2ECC71 55%,
|
|
#F4C430 62%, #F4C430 82%,
|
|
#FF6B35 88%, #FF6B35 100%
|
|
);
|
|
background-size: 100% 40px;
|
|
background-position: bottom;
|
|
background-repeat: no-repeat;
|
|
border-radius: 2px 2px 0 0;
|
|
transition: height 0.05s ease-out;
|
|
}
|
|
|
|
/* Responsive adjustments */
|
|
@media (max-width: 768px) {
|
|
.spectrum-container {
|
|
height: 32px;
|
|
}
|
|
|
|
.spectrum-bars {
|
|
gap: 1px;
|
|
}
|
|
|
|
.spectrum-bar {
|
|
max-width: 8px;
|
|
min-width: 3px;
|
|
background-size: 100% 32px;
|
|
}
|
|
}
|