diff --git a/umap/static/umap/base.css b/umap/static/umap/base.css
index 7c62ce5d..413dac70 100644
--- a/umap/static/umap/base.css
+++ b/umap/static/umap/base.css
@@ -147,7 +147,13 @@ dt {
margin-right: auto;
float: none;
}
-
+.grid-container {
+ display: grid;
+ grid-template-columns: repeat(3, minmax(0, 1fr));
+}
+.grid-container > * {
+ text-align: center;
+}
/* *********** */
/* forms */
@@ -794,37 +800,6 @@ input[type=hidden].blur + [type="button"] {
}
-/* *********** */
-/* Importers */
-/* *********** */
-#importers button {
- background: none;
- font-size: 1.2rem;
- border: none;
-}
-#importers button:before {
- background-image: url(./img/importers/random.svg);
- background-repeat: no-repeat;
- background-position: center;
- content: '';
- width: 100%;
- height: 50px;
- display: block;
-}
-#importers .geodatamine:before {
- background-image: url(./img/importers/geodatamine.svg);
-}
-#importers .communesfr:before {
- background-image: url(./img/importers/communesfr.svg);
-}
-#importers .overpass:before {
- background-image: url(./img/importers/overpass.svg);
-}
-#importers .datasets:before {
- background-image: url(./img/importers/datasets.svg);
-}
-
-
/* *********** */
/* Various */
/* *********** */
diff --git a/umap/static/umap/css/importers.css b/umap/static/umap/css/importers.css
new file mode 100644
index 00000000..cfebfc3c
--- /dev/null
+++ b/umap/static/umap/css/importers.css
@@ -0,0 +1,44 @@
+.importers ul [type=button] {
+ background: none;
+ font-size: 1rem;
+ border: none;
+ width: initial;
+ display: inline-block;
+}
+.importer h3:before {
+ background-image: url(../img/importers/random.svg);
+ background-repeat: no-repeat;
+ background-position: center;
+ content: '';
+ width: 36px;
+ height: 36px;
+ display: inline-block;
+ margin-right: 10px;
+ background-size: 100%;
+ vertical-align: -10px;
+}
+.importers ul [type=button]:before {
+ background-image: url(../img/importers/random.svg);
+ background-repeat: no-repeat;
+ background-position: center;
+ content: '';
+ width: 100%;
+ height: 50px;
+ display: block;
+}
+.importer.geodatamine h3:before,
+.importers ul .geodatamine:before {
+ background-image: url(../img/importers/geodatamine.svg);
+}
+.importer.communesfr h3:before,
+.importers ul .communesfr:before {
+ background-image: url(../img/importers/communesfr.svg);
+}
+.importer.overpass h3:before,
+.importers ul .overpass:before {
+ background-image: url(../img/importers/overpass.svg);
+}
+.importer.datasets h3:before,
+.importers ul .datasets:before {
+ background-image: url(../img/importers/datasets.svg);
+}
diff --git a/umap/static/umap/js/modules/importer.js b/umap/static/umap/js/modules/importer.js
index 53dd896c..a9f05f2a 100644
--- a/umap/static/umap/js/modules/importer.js
+++ b/umap/static/umap/js/modules/importer.js
@@ -14,8 +14,8 @@ const TEMPLATE = `
${translate('Import helpers:')}
-
-
+