forked from MapComplete/MapComplete
Custom styling for natuurpunt
This commit is contained in:
parent
09279f6e97
commit
7e8694004c
5 changed files with 38 additions and 7 deletions
|
@ -65,12 +65,12 @@ export default class FilterView extends VariableUiElement {
|
||||||
Translations.t.general.layerSelection.zoomInToSeeThisLayer.Clone()
|
Translations.t.general.layerSelection.zoomInToSeeThisLayer.Clone()
|
||||||
.SetClass("alert")
|
.SetClass("alert")
|
||||||
.SetStyle("display: block ruby;width:min-content;"),
|
.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 =
|
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])
|
const layerChecked = new Combine([icon, styledNameChecked, zoomStatus])
|
||||||
.SetStyle(style)
|
.SetStyle(style)
|
||||||
.onClick(() => filteredLayer.isDisplayed.setData(false));
|
.onClick(() => filteredLayer.isDisplayed.setData(false));
|
||||||
|
|
|
@ -38,7 +38,8 @@
|
||||||
"nl": "Deze wandeling is {_length:km} kilometer lang"
|
"nl": "Deze wandeling is {_length:km} kilometer lang"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{"#": "Name",
|
{
|
||||||
|
"#": "Name",
|
||||||
"question": {
|
"question": {
|
||||||
"nl": "Wat is de naam van deze wandeling?"
|
"nl": "Wat is de naam van deze wandeling?"
|
||||||
},
|
},
|
||||||
|
@ -147,8 +148,8 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{ "#": "pushchair access",
|
{
|
||||||
|
"#": "pushchair access",
|
||||||
"question": {
|
"question": {
|
||||||
"nl": "Is deze wandeltocht toegankelijk met de buggy?"
|
"nl": "Is deze wandeltocht toegankelijk met de buggy?"
|
||||||
},
|
},
|
||||||
|
|
17
assets/themes/natuurpunt/natuurpunt.css
Normal file
17
assets/themes/natuurpunt/natuurpunt.css
Normal file
|
@ -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;
|
||||||
|
}
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
"id": "natuurpunt",
|
"id": "natuurpunt",
|
||||||
|
"customCss": "./assets/themes/natuurpunt/natuurpunt.css",
|
||||||
"title": {
|
"title": {
|
||||||
"nl": "Natuurgebieden",
|
"nl": "Natuurgebieden",
|
||||||
"en": "Nature Reserves"
|
"en": "Nature Reserves"
|
||||||
|
@ -253,4 +254,4 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"roamingRenderings": []
|
"roamingRenderings": []
|
||||||
}
|
}
|
14
index.css
14
index.css
|
@ -94,13 +94,25 @@ svg, img {
|
||||||
}
|
}
|
||||||
|
|
||||||
.mapcontrol svg path{
|
.mapcontrol svg path{
|
||||||
fill: var(--subtle-detail-color-contrast);
|
fill: var(--subtle-detail-color-contrast) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: var(--foreground-color);
|
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 {
|
.h-min {
|
||||||
height: min-content;
|
height: min-content;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue