diff --git a/custom.css b/custom.css index 75861b4..12e1963 100644 --- a/custom.css +++ b/custom.css @@ -107,3 +107,11 @@ button:hover, .button:hover, input[type="submit"]:hover { color: #9b9478; opacity: 1; } + +/* A `type: location` field with no map behind it (no MAPBOX_TOKEN on the + instance) is an empty box and a label: portal v0.10.3 draws neither the + map nor the two number inputs its docs promise. The field is optional + here, so without a map it is simply not there. */ +.field:has(> .map-wrap:empty) { + display: none; +}