-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from skerbis/main
YForm Geo OSM Update - Verbesserte Standortsuche
- Loading branch information
Showing
6 changed files
with
315 additions
and
57 deletions.
There are no files selected for viewing
This file contains 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,151 @@ | ||
:root { | ||
--rex-geo-background: #fff; | ||
--rex-geo-background-hover: #f8f9fa; | ||
--rex-geo-text: #212529; | ||
--rex-geo-border: #dee2e6; | ||
--rex-geo-input-bg: #fff; | ||
--rex-geo-input-text: #212529; | ||
--rex-geo-input-border: #dee2e6; | ||
--rex-geo-shadow: rgba(0,0,0,0.1); | ||
--rex-geo-primary: #2196F3; | ||
--rex-geo-primary-hover: #1e87db; | ||
--rex-geo-success: #4CAF50; | ||
--rex-geo-success-hover: #45a049; | ||
} | ||
|
||
/* Dark theme colors */ | ||
:root[data-theme="dark"], | ||
.rex-has-theme.rex-theme-dark { | ||
--rex-geo-background: #32373c; | ||
--rex-geo-background-hover: #3c4146; | ||
--rex-geo-text: #fff; | ||
--rex-geo-border: #404448; | ||
--rex-geo-input-bg: #282c30; | ||
--rex-geo-input-text: #fff; | ||
--rex-geo-input-border: #404448; | ||
--rex-geo-shadow: rgba(0,0,0,0.3); | ||
} | ||
|
||
@media (prefers-color-scheme: dark) { | ||
:root { | ||
--rex-geo-background: #32373c; | ||
--rex-geo-background-hover: #3c4146; | ||
--rex-geo-text: #fff; | ||
--rex-geo-border: #404448; | ||
--rex-geo-input-bg: #282c30; | ||
--rex-geo-input-text: #fff; | ||
--rex-geo-input-border: #404448; | ||
--rex-geo-shadow: rgba(0,0,0,0.3); | ||
} | ||
} | ||
.rex-geo-search-modal { | ||
display: none; | ||
position: fixed; | ||
z-index: 1000; | ||
left: 0; | ||
top: 0; | ||
width: 100%; | ||
height: 100%; | ||
background-color: rgba(0,0,0,0.5); | ||
} | ||
|
||
.rex-geo-search-content { | ||
background-color: var(--rex-geo-background); | ||
color: var(--rex-geo-text); | ||
margin: 10% auto; | ||
padding: 30px; | ||
border-radius: 8px; | ||
width: 90%; | ||
max-width: 800px; | ||
position: relative; | ||
box-shadow: 0 4px 6px var(--rex-geo-shadow); | ||
border: 1px solid var(--rex-geo-border); | ||
} | ||
|
||
.rex-geo-search-close { | ||
position: absolute; | ||
right: 15px; | ||
top: 10px; | ||
font-size: 28px; | ||
cursor: pointer; | ||
opacity: 0.7; | ||
color: var(--rex-geo-text); | ||
} | ||
|
||
.rex-geo-search-close:hover { | ||
opacity: 1; | ||
} | ||
|
||
.rex-geo-search-wrapper { | ||
margin: 20px auto; | ||
width: 90%; | ||
} | ||
|
||
.rex-geo-search-input { | ||
width: 100%; | ||
font-size: 24px !important; | ||
padding: 15px !important; | ||
border: 2px solid var(--rex-geo-input-border) !important; | ||
border-radius: 8px !important; | ||
height: auto !important; | ||
background-color: var(--rex-geo-input-bg) !important; | ||
color: var(--rex-geo-input-text) !important; | ||
} | ||
|
||
.rex-geo-search-input:focus { | ||
border-color: var(--rex-geo-primary) !important; | ||
outline: none; | ||
box-shadow: 0 0 0 3px rgba(33,150,243,0.2) !important; | ||
} | ||
|
||
.search-results { | ||
max-height: 400px; | ||
overflow-y: auto; | ||
margin: 15px auto; | ||
width: 90%; | ||
} | ||
|
||
.search-result { | ||
padding: 12px 15px; | ||
cursor: pointer; | ||
border-bottom: 1px solid var(--rex-geo-border); | ||
transition: background-color 0.2s ease; | ||
font-size: 16px; | ||
color: var(--rex-geo-text); | ||
} | ||
|
||
.search-result:hover { | ||
background-color: var(--rex-geo-background-hover); | ||
} | ||
|
||
.btn-group { | ||
margin-bottom: 10px; | ||
} | ||
|
||
.btn-group .btn { | ||
margin-right: 5px; | ||
} | ||
|
||
.btn.browser-location { | ||
background-color: var(--rex-geo-success); | ||
border-color: var(--rex-geo-success); | ||
color: #fff; | ||
} | ||
|
||
.btn.browser-location:hover { | ||
background-color: var(--rex-geo-success-hover); | ||
border-color: var(--rex-geo-success-hover); | ||
} | ||
|
||
.btn.search, | ||
.btn.set { | ||
background-color: var(--rex-geo-primary); | ||
border-color: var(--rex-geo-primary); | ||
color: #fff; | ||
} | ||
|
||
.btn.search:hover, | ||
.btn.set:hover { | ||
background-color: var(--rex-geo-primary-hover); | ||
border-color: var(--rex-geo-primary-hover); | ||
} |
This file contains 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 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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
yform_geo_osm = Geo (OSM) | ||
yform_geo_osm_overview = Geo (OSM) Übersicht | ||
yform_geo_osm_set_data = Geo-Koordinaten anhand von Adressdaten ermitteln | ||
yform_geo_osm_get_coords = Koordinaten von Adresse ermitteln | ||
yform_geo_osm_search_address = Adresse suchen | ||
yform_geo_osm_get_location = Meinen Standort übernehmen | ||
yform_geo_osm_search = Suchen | ||
yform_geo_osm_search_placeholder = Adresse eingeben... |
This file contains 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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
yform_geo_osm = Geo (OSM) | ||
yform_geo_osm_overview = Geo (OSM) Overview | ||
yform_geo_osm_set_data = Get location based on address data | ||
yform_geo_osm_get_coords = Get coordinates from address | ||
yform_geo_osm_search_address = Search address | ||
yform_geo_osm_get_location = Get current location | ||
yform_geo_osm_search = Search | ||
yform_geo_osm_search_placeholder = Enter address... |
This file contains 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
Oops, something went wrong.