-
Notifications
You must be signed in to change notification settings - Fork 1
Date filter #178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Date filter #178
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
aeee7af
add calender
a7899cc
fix assignment warning
0c82f09
update initial times
a5e3a86
add calender
b92caf8
fix assignment warning
c3d3c62
update initial times
6b233e1
update range slider
222a12f
Merge branch 'cwbi-dev' into date-filter
oskarhurst 2b8e729
Merge branch 'cwbi-dev' into date-filter
oskarhurst 1d5b05c
Apply suggestions from code review
oskarhurst 95030bb
Merge branches 'date-filter' and 'date-filter' of https://github.com/…
oskarhurst 36852ee
clean code
oskarhurst 851d877
add max date const
oskarhurst File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,114 @@ | ||
| /* src/DatePickerOverrides.css */ | ||
|
|
||
| .calendar-only .react-date-picker__inputGroup:hover { | ||
| color: #0078d4; | ||
| } | ||
| .calendar-only .react-date-picker__calendar-button:hover { | ||
| color: #0078d4; | ||
| } | ||
|
|
||
| .calendar-only .react-date-picker__clear-button { | ||
| display: none; | ||
| } | ||
| .calendar-only .react-date-picker__wrapper--with-border { | ||
| border: 1px solid #b3b3b3; | ||
| border-radius: 5px; | ||
| padding: 0; | ||
| margin: 3px; | ||
| } | ||
|
|
||
| .calendar-only .react-date-picker__wrapper{ | ||
| border: none; | ||
| padding: 0; | ||
| } | ||
|
|
||
| .my-picker-wrapper .react-calendar { | ||
| border: none; | ||
| border-radius: 8px; | ||
| box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); | ||
| overflow: hidden; | ||
| font-family: 'Segoe UI', Roboto, sans-serif; | ||
| background-color: #ffffff; | ||
| } | ||
|
|
||
| .my-picker-wrapper .react-calendar__navigation { | ||
| display: flex; | ||
| justify-content: space-between; | ||
| align-items: center; | ||
| background-color: #f5f5f5; | ||
| padding: 10px; | ||
| border-bottom: 1px solid #e0e0e0; | ||
| margin-bottom: 0; /* Ensure no gap between navigation and weekdays */ | ||
| } | ||
|
|
||
| .my-picker-wrapper .react-calendar__navigation button { | ||
| background: none; | ||
| border: none; | ||
| color: #333; | ||
| font-size: 16px; | ||
| cursor: pointer; | ||
| padding: 5px 10px; | ||
| border-radius: 4px; | ||
| transition: background-color 0.2s ease; | ||
| } | ||
|
|
||
| .my-picker-wrapper .react-calendar__navigation button:hover { | ||
| background-color: #e0e0e0; | ||
| color: #0078d4; | ||
| outline: 2px solid #0078d4; | ||
| outline-offset: -2px; | ||
| fill: #0078d4; | ||
| } | ||
|
|
||
| .my-picker-wrapper .react-calendar__month-view__weekdays { | ||
| text-align: center; | ||
| font-weight: bold; | ||
| color: #666; | ||
| background-color: #f9f9f9; | ||
| padding: 10px 0; | ||
| border-bottom: 1px solid #e0e0e0; | ||
| text-underline-offset: 100px; | ||
| } | ||
|
|
||
| .my-picker-wrapper .react-calendar__tile { | ||
| text-align: center; | ||
| padding: 10px; | ||
| background: none; | ||
| border: none; | ||
| font-size: 14px; | ||
| color: #333; | ||
| border-radius: 4px; | ||
| transition: background-color 0.2s ease, color 0.2s ease; | ||
| } | ||
|
|
||
| .my-picker-wrapper .react-calendar__tile:hover { | ||
| background-color: #e0e0e0; | ||
| color: #0078d4; | ||
| outline: 2px solid #0078d4; | ||
| outline-offset: -3px; | ||
| } | ||
|
|
||
| .my-picker-wrapper .react-calendar__tile--active { | ||
| background-color: #e0e0e0; | ||
| color: #0078d4; | ||
| outline: 2px solid #0078d4; | ||
| outline-offset: -3px; | ||
| font-weight: bold; | ||
| } | ||
|
|
||
| .my-picker-wrapper .react-calendar__tile--now { | ||
| background-color: #f0f8ff; | ||
| color: #0078d4; | ||
| font-weight: bold; | ||
| } | ||
|
|
||
| .my-picker-wrapper .react-calendar__tile--now:hover { | ||
| background-color: #d0e8ff; | ||
| color: #005a9e; | ||
| } | ||
|
|
||
| .my-picker-wrapper .react-calendar__tile--disabled { | ||
| color: #ccc; | ||
| background-color: #f9f9f9; | ||
| cursor: not-allowed; | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: define a shared invalid_date (or whatever jan 1, 3000 means)
invalid_date = new Date('01-Jan-3000')
and use everywhere instead of magic date.