diff --git a/UI/BigComponents/FilterView.ts b/UI/BigComponents/FilterView.ts index ab38de98f..17318a610 100644 --- a/UI/BigComponents/FilterView.ts +++ b/UI/BigComponents/FilterView.ts @@ -65,12 +65,12 @@ export default class FilterView extends VariableUiElement { Translations.t.general.layerSelection.zoomInToSeeThisLayer.Clone() .SetClass("alert") .SetStyle("display: block ruby;width:min-content;"), - State.state.locationControl.map(location =>location.zoom > filteredLayer.layerDef.minzoom ) + State.state.locationControl.map(location =>location.zoom >= filteredLayer.layerDef.minzoom ) ) const style = - "display:flex;align-items:center;color:#007759;padding:0.5rem 0;"; + "display:flex;align-items:center;padding:0.5rem 0;"; const layerChecked = new Combine([icon, styledNameChecked, zoomStatus]) .SetStyle(style) .onClick(() => filteredLayer.isDisplayed.setData(false)); diff --git a/assets/layers/trail/trail.json b/assets/layers/trail/trail.json index be8c35dee..4638de35e 100644 --- a/assets/layers/trail/trail.json +++ b/assets/layers/trail/trail.json @@ -38,7 +38,8 @@ "nl": "Deze wandeling is {_length:km} kilometer lang" } }, - {"#": "Name", + { + "#": "Name", "question": { "nl": "Wat is de naam van deze wandeling?" }, @@ -147,8 +148,8 @@ } ] }, - { "#": "pushchair access", - + { + "#": "pushchair access", "question": { "nl": "Is deze wandeltocht toegankelijk met de buggy?" }, diff --git a/assets/themes/natuurpunt/natuurpunt.css b/assets/themes/natuurpunt/natuurpunt.css new file mode 100644 index 000000000..e64cd75be --- /dev/null +++ b/assets/themes/natuurpunt/natuurpunt.css @@ -0,0 +1,17 @@ +:root { + --subtle-detail-color: #007759; + --subtle-detail-color-contrast: #ffffff; + --subtle-detail-color-light-contrast: lightgrey; + + --catch-detail-color: #0fff00; + --catch-detail-color-contrast: #ffffff; + --alert-color: #fee4d1; + --background-color: white; + --foreground-color: #007759; + --popup-border: white; + --shadow-color: #00000066; + --variable-title-height: 0px; /* Set by javascript */ + --return-to-the-map-height: 2em; + + --image-carousel-height: 350px; +} \ No newline at end of file diff --git a/assets/themes/natuurpunt/natuurpunt.json b/assets/themes/natuurpunt/natuurpunt.json index 52e4addeb..4d66fada5 100644 --- a/assets/themes/natuurpunt/natuurpunt.json +++ b/assets/themes/natuurpunt/natuurpunt.json @@ -1,5 +1,6 @@ { "id": "natuurpunt", + "customCss": "./assets/themes/natuurpunt/natuurpunt.css", "title": { "nl": "Natuurgebieden", "en": "Nature Reserves" @@ -253,4 +254,4 @@ } ], "roamingRenderings": [] -} +} \ No newline at end of file diff --git a/index.css b/index.css index 832035848..804f0774f 100644 --- a/index.css +++ b/index.css @@ -94,13 +94,25 @@ svg, img { } .mapcontrol svg path{ - fill: var(--subtle-detail-color-contrast); + fill: var(--subtle-detail-color-contrast) !important; } a { color: var(--foreground-color); } +btn { + margin-top: 0.25rem; + margin-right: 0.25rem; + font-size: 0.875rem; + line-height: 1.25rem; + font-weight: 500; + --tw-text-opacity: 1; + color: var(--catch-detail-color-contrast); + --tw-bg-opacity: 1; + background-color: var(--catch-detail-color); +} + .h-min { height: min-content; }