Skip to content

Commit ac92fb4

Browse files
author
Vincent van der Wal
committed
add bit of styles to time-slider
1 parent 9cfe6b2 commit ac92fb4

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

src/components/TimeSlider.ts renamed to src/components/time-slider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ export function createTimeSlider({ container, initialDate, onChange }: TimeSlide
4444
<input
4545
type="date"
4646
id="date_picker"
47+
class="date-time-selection"
4748
value="${formatDateInputValue(currentDate)}"
48-
style="margin-top: 0.5em;"
4949
/>
5050
`;
5151

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { getValueFromLatLong } from './om-protocol';
66
import { pad } from './utils/pad';
77
import { domains, domainGroups } from './utils/domains';
88
import { variables } from './utils/variables';
9-
import { createTimeSlider } from './components/TimeSlider';
9+
import { createTimeSlider } from './components/time-slider';
1010

1111
import './style.css';
1212

src/style.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,22 @@ body {
9393
margin-top: 5px;
9494
margin-bottom: 5px;
9595
}
96+
97+
#time_slider_container button {
98+
background-color: white;
99+
color: black;
100+
padding: 5px;
101+
border-radius: 5px;
102+
font-size: 15px;
103+
padding: 0.5rem 0.75rem;
104+
font-weight: bold;
105+
}
106+
107+
#slider_time_label {
108+
margin: 0 0.3rem;
109+
}
110+
111+
.date-time-selection {
112+
margin-top: 0.5rem;
113+
border-width: 1px;
114+
}

0 commit comments

Comments
 (0)