CinePlex/css/custom-filters.css

104 lines
2.0 KiB
CSS
Raw Normal View History

2025-08-02 09:57:03 +02:00
.filter-popover-wrapper {
position: relative;
display: inline-block;
}
.filter-popover {
display: none;
position: absolute;
background-color: var(--secondary);
min-width: 280px;
box-shadow: var(--shadow);
padding: 1rem;
z-index: 100;
border-radius: var(--border-radius-md);
border: 1px solid var(--glass-border);
margin-top: 0.5rem; /* Add some space between button and popover */
}
.range-slider-container {
position: relative;
height: 20px;
display: flex;
align-items: center;
}
.slider-track, .slider-fill {
position: absolute;
width: 100%;
height: 6px;
border-radius: 3px;
left: 0;
}
.slider-track {
background-color: var(--glass);
z-index: 1;
}
.slider-fill {
background-color: var(--accent);
z-index: 2;
}
.filter-popover .range-values {
display: flex;
justify-content: space-between;
margin-top: 0.75rem;
font-size: 0.9rem;
color: var(--text-secondary);
}
.form-range {
-webkit-appearance: none;
appearance: none;
width: 100%;
background: transparent;
position: absolute;
left: 0;
margin: 0;
pointer-events: none;
}
input[id$="-max"].form-range {
z-index: 3;
}
input[id$="-min"].form-range {
z-index: 4;
}
.form-range::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 20px;
height: 20px;
background: var(--accent-dark);
background-clip: padding-box;
cursor: pointer;
border-radius: 50%;
border: 3px solid var(--secondary);
pointer-events: auto;
transition: background-color 0.2s;
}
.form-range::-webkit-slider-thumb:hover {
background-color: var(--accent);
}
.form-range::-moz-range-thumb {
width: 20px;
height: 20px;
background: var(--accent-dark);
background-clip: padding-box;
cursor: pointer;
border-radius: 50%;
border: 3px solid var(--secondary);
pointer-events: auto;
transition: background-color 0.2s;
}
.form-range::-moz-range-thumb:hover {
background-color: var(--accent);
}