Skip to content

Commit

Permalink
Change button style when active
Browse files Browse the repository at this point in the history
  • Loading branch information
ruthmoog committed Jul 17, 2023
1 parent ba5d6a8 commit 18c9dc9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion static/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
function extractWeather(weatherResponse, currentDate) {
const index = currentDate.getHours() - 1;

const temperature = weatherResponse.hourly.temperature_2m[index];
const temperature = Math.round(weatherResponse.hourly.temperature_2m[index]);
const cloudCover = weatherResponse.hourly.cloudcover[index];
const windSpeed = weatherResponse.hourly.windspeed_10m[index];

Expand Down
6 changes: 6 additions & 0 deletions static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ button, #species {
line-height: 1rem;
}

button:active {
color: var(--border-color);
box-shadow: 7px 7px 0 1px var(--border-color);

}

.selectSection {
background-color: var(--field-color);
display: inline;
Expand Down

0 comments on commit 18c9dc9

Please sign in to comment.