Skip to content

Commit

Permalink
Switch to prose-style filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
mileswwatkins committed Nov 25, 2023
1 parent 8fd13a2 commit 52d9914
Show file tree
Hide file tree
Showing 5 changed files with 169 additions and 136 deletions.
4 changes: 3 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"private": false,
"dependencies": {
"date-fns": "^2.29.3",
"lodash": "^4.17.21",
"mapbox-gl": "^2.7.1",
"react": "^17.0.2",
"react-datepicker": "^4.10.0",
Expand Down
72 changes: 42 additions & 30 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,18 @@ header {
margin-right: 1rem;
}

.Header-Text {
display: flex;
align-items: baseline;
}

.Header-Title {
margin: 0;
margin-right: 1rem;
font-size: 2rem;
}

.Header-Explainer {
margin: 0;
font-size: 0.75rem;
font-style: italic;
}

.Content {
display: flex;
}

.Content-FilterPane {
flex-basis: 30%;
min-width: 250px;
min-width: 300px;
padding-left: 1.5rem;
padding-right: 1rem;
padding-bottom: 1.5rem;
Expand All @@ -48,38 +36,62 @@ header {
font-size: 0.75rem;
}

.Filters-Header {
display: flex;
justify-content: space-between;
margin-top: 1rem;
margin-bottom: 1rem;
}

.Filters-Header-Label {
.Filters-Reset {
margin: 0;
}

.Filters-Header-Reset {
margin-top: auto;
margin-bottom: auto;
}

form > label {
font-size: 1rem;
display: block;
margin-bottom: 0.25rem;
}

.Filter-Label-Text {
width: 80px;
.Filter-Text {
font-size: 1.25rem;
line-height: 1.65rem;
margin: 1.5rem 0;
}

.Filter-DateText {
width: 100px;
font-size: 1rem;
display: inline !important;
}

.Filter-SelectText {
font-size: 1rem;
margin: 0 0.4rem;
}

.Filter-List {
padding: 0;
margin: 0;
list-style: none;
margin-top: 0.25rem;
padding-left: 1.5rem;
}

.Filter-ListItem {
display: flex;
align-items: center;
}

.react-datepicker-wrapper {
display: inline;
display: inline !important;
}

.react-datepicker__input-container {
display: inline;
display: inline !important;
}

/* Prevent the date picker from pushing the following text to a new line */
.react-datepicker__tab-loop {
position: absolute;
}

.Filter-Checkbox {
transform: scale(1.15);
margin-right: 0.55rem;
}

.Map-Popup {
Expand Down
Loading

0 comments on commit 52d9914

Please sign in to comment.