diff --git a/css/clean-switch.css b/css/clean-switch.css new file mode 100644 index 00000000..4f2dd2ad --- /dev/null +++ b/css/clean-switch.css @@ -0,0 +1,82 @@ +#toggles { + margin-bottom: 10px; +} +.toggle { + display: flex; + justify-content: space-between; + max-width: 100%; + padding-right: 12px; +} + +/* +https://miladd3.github.io/clean-switch/ +MIT License +*/ +.cl-switch input[type="checkbox"] { + display: none; + visibility: hidden; +} +.switcher { + display: inline-block; + border-radius: 100px; + width: 35px; + height: 15px; + background-color: #ccc; + position: relative; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + vertical-align: middle; +} +.switcher { + cursor: pointer; +} +.switcher:before { + content: ""; + display: block; + width: 20px; + height: 20px; + background-color: #fff; + border-radius: 50%; + margin-top: -2.5px; + position: absolute; + top: 0; + left: 0; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + margin-right: 0; + -webkit-transition: all 0.2s; + -moz-transition: all 0.2s; + -ms-transition: all 0.2s; + -o-transition: all 0.2s; + transition: all 0.2s; +} +.switcher:active:before { + transition: all, 0.1s; +} +.toggle-label { + font-family: sans-serif; + font-size: 16px; + vertical-align: middle; +} +.cl-switch input[type="checkbox"]:checked + .switcher { + background-color: #8591d5; +} +.cl-switch input[type="checkbox"]:checked + .switcher:before { + left: 100%; + margin-left: -20px; + background-color: #3f51b5; +} +.cl-switch [disabled]:not([disabled="false"]) + .switcher { + background: #ccc !important; +} +.cl-switch [disabled]:not([disabled="false"]) + .switcher:before { + background-color: #e2e2e2 !important; +} +.cl-switch.cl-switch-black input[type="checkbox"]:checked + .switcher { + background-color: #676767; +} +.cl-switch.cl-switch-black input[type="checkbox"]:checked + .switcher:before { + background-color: #343434; +} diff --git a/css/event.css b/css/event.css index 19f506bc..db36c030 100644 --- a/css/event.css +++ b/css/event.css @@ -10,6 +10,7 @@ transform: translateX(-50%); background-color: #e1e1e1; padding: 5px 10px; + border: 1px solid #000; border-radius: 5px; } diff --git a/css/filter.css b/css/filter.css index 1bd6f5a1..91907f32 100644 --- a/css/filter.css +++ b/css/filter.css @@ -1,49 +1,160 @@ -#filter { - min-width: 100px; +#filters { + display: none; position: fixed; - flex-direction: column; - background-color: #e1e1e1; - border-radius: 5px; - border: 1px solid #000; - padding: 10px; top: 10px; right: 10px; z-index: 1; + width: 300px; + max-height: 65vh; + padding: 10px; + background-color: #e1e1e1; + border-radius: 5px; + border: 1px solid #000; } -#filter-header { +#filters-header { display: flex; + flex-direction: row; justify-content: space-between; align-items: center; + max-height: 5vh; +} + +#filters-title { + font-weight: bold; } -#filter-button { +#filters-content { + width: 100%; +} + +#filter-menu-handler { cursor: pointer; + width: 20px; + height: 20px; } #close-filter { display: none; } -#filter-content { +#filters-body { display: none; flex-direction: column; + align-items: center; margin-top: 10px; + overflow-y: auto; + max-height: 60vh; + padding-right: 5px; } -#filters { +#filters-body::-webkit-scrollbar { + width: 7px; +} + +#filters-body::-webkit-scrollbar-track { + background: #e1e1e1; + border-radius: 5px; +} + +#filters-body::-webkit-scrollbar-thumb { + background: #afafaf; + border-radius: 5px; +} + +#filters-body::-webkit-scrollbar-thumb:hover { + background: #858585; +} + +#invert-filters-section { + font-style: italic; display: flex; - flex-direction: column; - padding: 10px 0; + flex-direction: row; +} + +#filters-buttons { + margin-top: 10px; + width: fit-content; } .filter-action { + font-weight: 500; padding: 5px; + margin: 0 5px; border-radius: 5px; - font-weight: 500; border: 1px solid #000; } .filter-action:hover { background-color: #c5c5c5; } + +.filter-collection-title { + font-weight: bold; + text-align: center; + margin: 5px 0; +} + +.filter-collection-subtitle { + font-weight: 500; +} + +.range-input { + width: 45px; + margin: 0 5px; + padding: 4px; + border-radius: 3px; + border: 1px solid #000; + text-align: center; +} + +.range-input:focus-visible { + outline: none; +} + +.filter-collection-container { + width: 100%; + display: flex; + flex-direction: column; + margin-bottom: 10px; +} + +.range-filter { + margin: 4px 0; + display: grid; + align-items: center; + grid-template-columns: 1fr 140px 40px; +} + +.range-inputs { + display: flex; + flex-direction: row; + justify-content: space-between; +} + +.range-unit { + text-align: right; +} + +.filter-sub-container { + padding: 5px 0; +} + +.filter-checkbox-container { + display: flex; + flex-direction: row; + flex-wrap: wrap; +} + +.checkbox-title-container { + display: flex; + flex-direction: row; + padding: 2px; + background-color: #c5c5c5; + border-radius: 5px; + margin: 2px; +} + +.filter-checkbox { + margin: 2px; +} diff --git a/css/main.css b/css/main.css index 74d505a4..5d2b30d4 100644 --- a/css/main.css +++ b/css/main.css @@ -6,10 +6,6 @@ body { font-size: 16px; } -.manipulation-tool { - display: none; -} - input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; @@ -30,3 +26,7 @@ button { background: none; padding: 0; } + +#input-file { + cursor: pointer; +} diff --git a/css/toggle.css b/css/toggle.css deleted file mode 100644 index d877a96c..00000000 --- a/css/toggle.css +++ /dev/null @@ -1,73 +0,0 @@ -#toggle { - position: fixed; - flex-direction: row; - justify-content: center; - align-items: center; - top: 10px; - left: 10px; - z-index: 1; -} - -.toggle-label { - margin-right: 10px; - margin-left: 10px; -} - -.switch { - position: relative; - display: inline-block; - width: 60px; - height: 34px; -} - -.switch input { - opacity: 0; - width: 0; - height: 0; -} - -.slider { - position: absolute; - cursor: pointer; - top: 0; - left: 0; - right: 0; - bottom: 0; - background-color: #e1e1e1; - -webkit-transition: 0.4s; - transition: 0.4s; -} - -.slider:before { - position: absolute; - content: ""; - height: 26px; - width: 26px; - left: 4px; - bottom: 4px; - background-color: white; - -webkit-transition: 0.4s; - transition: 0.4s; -} - -input:checked + .slider { - background-color: #2196f3; -} - -input:focus + .slider { - box-shadow: 0 0 1px #2196f3; -} - -input:checked + .slider:before { - -webkit-transform: translateX(26px); - -ms-transform: translateX(26px); - transform: translateX(26px); -} - -.slider.round { - border-radius: 34px; -} - -.slider.round:before { - border-radius: 50%; -} diff --git a/css/views.css b/css/views.css index 8c9cc7f7..42fe5bb8 100644 --- a/css/views.css +++ b/css/views.css @@ -19,17 +19,17 @@ height: fit-content; } -#views { +#left-menu { display: none; flex-direction: column; position: fixed; - top: 25%; + top: 10px; left: 10px; - width: fit-content; + width: 260px; height: fit-content; - max-height: 50%; + max-height: 63vh; background-color: #e1e1e1; - padding: 15px; + padding: 15px 0px 15px 10px; border: 1px solid #000; border-radius: 5px; } @@ -41,10 +41,14 @@ align-items: center; } -#open-views { +#close-views { display: none; } +.views-handler { + margin-right: 12px; +} + #views-menu-handler { cursor: pointer; margin-left: 10px; @@ -52,7 +56,7 @@ #view-selector { margin-top: 10px; - display: flex; + display: none; flex-direction: column; justify-content: flex-start; overflow-y: auto; diff --git a/img/close-left.svg b/img/close-left.svg deleted file mode 100644 index 8fd678d1..00000000 --- a/img/close-left.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/img/open.svg b/img/open.svg deleted file mode 100644 index 12924cad..00000000 --- a/img/open.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/index.html b/index.html index a2d762c0..b05efb9b 100644 --- a/index.html +++ b/index.html @@ -11,7 +11,6 @@ - @@ -20,6 +19,7 @@ +
@@ -68,26 +68,22 @@ -