feat: number range slider

This commit is contained in:
2025-09-19 21:58:05 +02:00
parent 5cd187e674
commit da80228eb4
4 changed files with 233 additions and 31 deletions

View File

@@ -2244,8 +2244,6 @@ p {
}
.endpoint-form {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 0.5rem 0.75rem;
margin-top: 0.5rem;
}
@@ -3794,6 +3792,77 @@ html {
font-family: 'Courier New', monospace !important;
}
/* Number range slider styles */
.number-range-container {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.range-slider {
width: 100%;
height: 6px;
background: rgba(255, 255, 255, 0.1);
border-radius: 3px;
outline: none;
cursor: pointer;
-webkit-appearance: none;
appearance: none;
}
.range-slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 18px;
height: 18px;
background: var(--accent-primary);
border-radius: 50%;
cursor: pointer;
border: 2px solid var(--bg-secondary);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.range-slider::-moz-range-thumb {
width: 18px;
height: 18px;
background: var(--accent-primary);
border-radius: 50%;
cursor: pointer;
border: 2px solid var(--bg-secondary);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.range-slider::-webkit-slider-track {
background: rgba(255, 255, 255, 0.1);
border-radius: 3px;
height: 6px;
}
.range-slider::-moz-range-track {
background: rgba(255, 255, 255, 0.1);
border-radius: 3px;
height: 6px;
border: none;
}
.range-display {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 0.9rem;
color: var(--text-secondary);
}
.range-value {
font-weight: 600;
color: var(--accent-primary);
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}
.range-max {
opacity: 0.7;
}
.color-rgb-display:focus {
border-color: rgba(139, 92, 246, 0.5) !important;
background: rgba(139, 92, 246, 0.08) !important;