From 4f469ced47c6a95e32acd4c0ec005a5bd8f34ec7 Mon Sep 17 00:00:00 2001 From: David Larlet Date: Mon, 12 Feb 2024 20:59:35 -0500 Subject: [PATCH] fix: improve dashboard styles --- umap/static/umap/content.css | 14 ++++++++++---- umap/static/umap/nav.css | 1 + umap/templates/umap/map_table.html | 12 ++++++------ umap/templates/umap/navigation.html | 10 +++++----- 4 files changed, 22 insertions(+), 15 deletions(-) diff --git a/umap/static/umap/content.css b/umap/static/umap/content.css index bade8061..e986c097 100644 --- a/umap/static/umap/content.css +++ b/umap/static/umap/content.css @@ -158,6 +158,7 @@ h2.tabs a { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-skip-ink: none; + text-underline-offset: 7px; margin-right: 2rem; } h2.tabs a:not(.selected) { @@ -439,8 +440,15 @@ ul.umap-autocomplete { width: 100%; } .table-wrapper table a, -.table-wrapper table thead { +.table-wrapper table thead tr th, +.table-wrapper table th[scope="row"] { color: #263B58; + text-align: left; + padding-left: 2px; +} +.table-wrapper table thead tr th { + line-height: 1.2; + padding: 10px 5px; } .table-wrapper table thead th:last-of-type { min-width: 240px; @@ -476,9 +484,6 @@ ul.umap-autocomplete { .table-wrapper table tbody tr:nth-child(odd) { background-color: #f4f4f4; } -.table-wrapper table td { - text-align: center; -} .table-wrapper table thead tr { line-height: 2em; } @@ -515,6 +520,7 @@ dialog::backdrop { display: flex; flex-direction: row; justify-content: space-around; + margin-bottom: 3rem; } .pagination > * { padding: 1rem; diff --git a/umap/static/umap/nav.css b/umap/static/umap/nav.css index 1cb46488..3c754d3f 100644 --- a/umap/static/umap/nav.css +++ b/umap/static/umap/nav.css @@ -66,6 +66,7 @@ footer .i18n_switch { .umap-nav .button:hover { text-decoration: none; min-width: 150px; + margin-left: 1rem; } @media only screen and (min-width: 500px) { diff --git a/umap/templates/umap/map_table.html b/umap/templates/umap/map_table.html index 1a0b87c7..56309a4c 100644 --- a/umap/templates/umap/map_table.html +++ b/umap/templates/umap/map_table.html @@ -16,9 +16,9 @@ {% for map_inst in maps %} {% with unique_id="map_"|addstr:map_inst.pk %} - + {{ map_inst.name }} - + {{ map_inst.preview_settings|json_script:unique_id }}