From 80e62f3046d1387ebaf29886ab1945f99d0b62c8 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Thu, 10 Aug 2023 10:10:00 +0200 Subject: [PATCH] Better CSS for facet search --- umap/static/umap/map.css | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/umap/static/umap/map.css b/umap/static/umap/map.css index ceacc7e9..4abeb02c 100644 --- a/umap/static/umap/map.css +++ b/umap/static/umap/map.css @@ -800,6 +800,7 @@ a.add-datalayer:hover, /* Features browser panel */ /* ********************************* */ +.umap-facet-search .formbox, .umap-browse-features > div { border: 1px solid #d3d3d3; margin-bottom: 14px; @@ -809,8 +810,6 @@ a.add-datalayer:hover, margin-bottom: 0; overflow: hidden; padding-left: 5px; -} -.umap-browse-features h5 { height: 30px; line-height: 30px; background-color: #eeeee0; @@ -819,14 +818,13 @@ a.add-datalayer:hover, .umap-browse-features h5 span { margin-left: 10px; } -.umap-browse-features li { - padding: 2px 0; -} .umap-browse-features li, .umap-facet-search li { + padding: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } +.umap-facet-search li:nth-child(even), .umap-browse-features li:nth-child(even) { background-color: #f8f8f3; }