diff --git a/umap/static/umap/base.css b/umap/static/umap/base.css index c2612053..8327057f 100644 --- a/umap/static/umap/base.css +++ b/umap/static/umap/base.css @@ -389,6 +389,9 @@ fieldset legend { border-radius: 50%; content: attr(data-badge); } +[hidden] { + display: none; +} /* Switch */ input.switch:empty { diff --git a/umap/static/umap/css/panel.css b/umap/static/umap/css/panel.css index f4ea420d..52312c56 100644 --- a/umap/static/umap/css/panel.css +++ b/umap/static/umap/css/panel.css @@ -14,6 +14,7 @@ border: 1px solid var(--color-lightGray); bottom: calc(var(--current-footer-height) + var(--panel-bottom)); box-sizing: border-box; + counter-reset: step; } .panel.dark { border: 1px solid #222; @@ -44,6 +45,15 @@ .panel h3 { line-height: 120%; } +.panel .counter::before { + counter-increment: step; + content: counter(step) ". "; +} +.panel .counter { + display: block; + margin-top: var(--panel-gutter); + font-weight: bold; +} @media all and (orientation:landscape) { .panel { top: var(--current-header-height); diff --git a/umap/static/umap/js/modules/importer.js b/umap/static/umap/js/modules/importer.js index b0127ace..48c28a65 100644 --- a/umap/static/umap/js/modules/importer.js +++ b/umap/static/umap/js/modules/importer.js @@ -2,28 +2,26 @@ import { DomUtil, DomEvent } from '../../vendors/leaflet/leaflet-src.esm.js' import { translate } from './i18n.js' import { uMapAlert as Alert } from '../components/alerts/alert.js' import Dialog from './ui/dialog.js' +import { SCHEMA } from './schema.js' const TEMPLATE = ` -

${translate('Import data')}

+

${translate('Add data')}

+
- - - + + +
-

${translate('Import from:')}

+
${translate('Import helpers:')}
-