diff --git a/src/frontend/app/ui/gallery/filter/filter.gallery.component.css b/src/frontend/app/ui/gallery/filter/filter.gallery.component.css index 3a7b1495..6c34951d 100644 --- a/src/frontend/app/ui/gallery/filter/filter.gallery.component.css +++ b/src/frontend/app/ui/gallery/filter/filter.gallery.component.css @@ -1,3 +1,10 @@ +@media (min-width: 768px) { + .col-md-1-half { + flex: 0 0 12.5%; + max-width: 12.5%; + } +} + .filter-column { max-height: 12em; overflow-y: auto; @@ -48,3 +55,106 @@ color: #6c757d; background-color: #fff; } + +.date-filter-wrapper { + padding: 0; +} + +.date-filter-wrapper { + position: relative; + height: 7px; + margin: 1.3em 0 1.3em 0; +} + +.date-filter-wrapper > div { + position: absolute; + left: 10px; + right: 8px; + height: 7px; +} + +.date-filter-wrapper > div > .inverse-left { + position: absolute; + left: 0; + height: 7px; + border-radius: 10px; + background-color: #CCC; + margin: 0 7px; +} + +.date-filter-wrapper > div > .inverse-right { + position: absolute; + right: 0; + height: 7px; + border-radius: 10px; + background-color: #CCC; + margin: 0 7px; +} + + +.date-filter-wrapper > div > .range { + position: absolute; + left: 0; + height: 7px; + border-radius: 14px !important; + background-color: #007bff; +} + +.date-filter-wrapper > div > .thumb { + position: absolute; + top: -6px; + z-index: 2; + height: 20px; + width: 20px; + text-align: left; + margin-left: -11px; + cursor: pointer; + box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4); + background-color: #007bff; + border-radius: 50% !important; + outline: none; +} + +.date-filter-wrapper > input[type=range] { + position: absolute; + pointer-events: none; + z-index: 3; + height: 14px; + top: -3px; + width: 100%; + opacity: 0; +} + +div.date-filter-wrapper > input[type=range]:focus::-webkit-slider-runnable-track { + background: transparent; + border: transparent; +} + +div.date-filter-wrapper > input[type=range]:focus { + outline: none; +} + +div.date-filter-wrapper > input[type=range]::-webkit-slider-thumb { + pointer-events: all; + width: 28px; + height: 28px; + border-radius: 0 !important; + border: 0 none; + background: #007bff; + -webkit-appearance: none; +} + +div.date-filter-wrapper > input[type=range]::-ms-fill-lower { + background: transparent; + border: 0 none; +} + +div.date-filter-wrapper > input[type=range]::-ms-fill-upper { + background: transparent; + border: 0 none; +} + +div.date-filter-wrapper > input[type=range]::-ms-tooltip { + display: none; +} + diff --git a/src/frontend/app/ui/gallery/filter/filter.gallery.component.html b/src/frontend/app/ui/gallery/filter/filter.gallery.component.html index 82d1d4fe..a2dc3884 100644 --- a/src/frontend/app/ui/gallery/filter/filter.gallery.component.html +++ b/src/frontend/app/ui/gallery/filter/filter.gallery.component.html @@ -1,36 +1,84 @@