Skip to content

Commit

Permalink
Fix map ui being unreadable on dark mode farmOS#642
Browse files Browse the repository at this point in the history
  • Loading branch information
wotnak committed Feb 20, 2023
1 parent 18599f8 commit b304bff
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed

- [Convert geometry values to WKT in GeofieldWidget #640](https://github.com/farmOS/farmOS/pull/640)
- [Fix map ui being unreadable on dark mode #642](https://github.com/farmOS/farmOS/pull/642)

## [2.0.1] 2023-02-08

Expand Down
12 changes: 12 additions & 0 deletions modules/core/ui/theme/css/map.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,15 @@ buttons from covering up the :focus box-shadow. A position is required. */
box-shadow: 0 0 0 2px var(--colorGinLayerBackground), 0 0 0 4px var(--colorGinFocus);
-webkit-box-shadow: 0 0 0 2px var(--colorGinLayerBackground), 0 0 0 4px var(--colorGinFocus);
}

/* Adjust map ui elements background colors for the Gin theme dark mode. */
.gin--dark-mode .farm-map .ol-control,
.gin--dark-mode .farm-map .ol-scale-line {
background-color: rgba(var(--gin-bg-app-rgb), .25);
}
.gin--dark-mode .farm-map .ol-control:hover {
background-color: rgba(var(--gin-bg-app-rgb), .6);
}
.gin--dark-mode .farm-map .ol-control button {
background-color: rgba(var(--gin-bg-app-rgb), .8);
}

0 comments on commit b304bff

Please sign in to comment.