fix: improve dashboard styles
This commit is contained in:
parent
148c119c05
commit
4f469ced47
4 changed files with 22 additions and 15 deletions
|
@ -158,6 +158,7 @@ h2.tabs a {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
text-decoration-thickness: 3px;
|
text-decoration-thickness: 3px;
|
||||||
text-decoration-skip-ink: none;
|
text-decoration-skip-ink: none;
|
||||||
|
text-underline-offset: 7px;
|
||||||
margin-right: 2rem;
|
margin-right: 2rem;
|
||||||
}
|
}
|
||||||
h2.tabs a:not(.selected) {
|
h2.tabs a:not(.selected) {
|
||||||
|
@ -439,8 +440,15 @@ ul.umap-autocomplete {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
.table-wrapper table a,
|
.table-wrapper table a,
|
||||||
.table-wrapper table thead {
|
.table-wrapper table thead tr th,
|
||||||
|
.table-wrapper table th[scope="row"] {
|
||||||
color: #263B58;
|
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 {
|
.table-wrapper table thead th:last-of-type {
|
||||||
min-width: 240px;
|
min-width: 240px;
|
||||||
|
@ -476,9 +484,6 @@ ul.umap-autocomplete {
|
||||||
.table-wrapper table tbody tr:nth-child(odd) {
|
.table-wrapper table tbody tr:nth-child(odd) {
|
||||||
background-color: #f4f4f4;
|
background-color: #f4f4f4;
|
||||||
}
|
}
|
||||||
.table-wrapper table td {
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
.table-wrapper table thead tr {
|
.table-wrapper table thead tr {
|
||||||
line-height: 2em;
|
line-height: 2em;
|
||||||
}
|
}
|
||||||
|
@ -515,6 +520,7 @@ dialog::backdrop {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
|
margin-bottom: 3rem;
|
||||||
}
|
}
|
||||||
.pagination > * {
|
.pagination > * {
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
|
|
|
@ -66,6 +66,7 @@ footer .i18n_switch {
|
||||||
.umap-nav .button:hover {
|
.umap-nav .button:hover {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
min-width: 150px;
|
min-width: 150px;
|
||||||
|
margin-left: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (min-width: 500px) {
|
@media only screen and (min-width: 500px) {
|
||||||
|
|
|
@ -16,9 +16,9 @@
|
||||||
{% for map_inst in maps %}
|
{% for map_inst in maps %}
|
||||||
{% with unique_id="map_"|addstr:map_inst.pk %}
|
{% with unique_id="map_"|addstr:map_inst.pk %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<th scope="row">
|
||||||
<a href="{{ map_inst.get_absolute_url }}">{{ map_inst.name }}</a>
|
<a href="{{ map_inst.get_absolute_url }}">{{ map_inst.name }}</a>
|
||||||
</td>
|
</th>
|
||||||
<td>
|
<td>
|
||||||
{{ map_inst.preview_settings|json_script:unique_id }}
|
{{ map_inst.preview_settings|json_script:unique_id }}
|
||||||
<button class="map-icon map-opener" data-map-id="{{ unique_id }}"
|
<button class="map-icon map-opener" data-map-id="{{ unique_id }}"
|
||||||
|
@ -82,8 +82,8 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
{% if maps.has_other_pages %}
|
<div class="pagination">
|
||||||
<div class="pagination">
|
{% if maps.has_other_pages %}
|
||||||
{% if maps.has_previous %}
|
{% if maps.has_previous %}
|
||||||
<a href="?p=1{% if q %}&q={{ q }}{% endif %}">« {% translate "first" %}</a>
|
<a href="?p=1{% if q %}&q={{ q }}{% endif %}">« {% translate "first" %}</a>
|
||||||
<a href="?p={{ maps.previous_page_number }}{% if q %}&q={{ q }}{% endif %}">‹ {% translate "previous" %}</a>
|
<a href="?p={{ maps.previous_page_number }}{% if q %}&q={{ q }}{% endif %}">‹ {% translate "previous" %}</a>
|
||||||
|
@ -119,8 +119,8 @@
|
||||||
{{ count }} maps
|
{{ count }} maps
|
||||||
{% endblocktranslate %}
|
{% endblocktranslate %}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
{% endif %}
|
||||||
{% endif %}
|
</div>
|
||||||
<script>
|
<script>
|
||||||
!(function () {
|
!(function () {
|
||||||
for (const deleteForm of document.querySelectorAll('form.map-delete')) {
|
for (const deleteForm of document.querySelectorAll('form.map-delete')) {
|
||||||
|
|
|
@ -33,11 +33,11 @@
|
||||||
<a href="{% url "logout" %}" class="logout">{% trans "Log out" %}</a>
|
<a href="{% url "logout" %}" class="logout">{% trans "Log out" %}</a>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if not UMAP_READONLY %}
|
||||||
|
<li>
|
||||||
|
<a href="{% url "map_new" %}" class="button button-primary">{% trans "Create a map" %}</a>
|
||||||
|
</li>
|
||||||
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
|
||||||
{% if not UMAP_READONLY %}
|
|
||||||
<a href="{% url "map_new" %}" class="button button-primary">{% trans "Create a map" %}</a>
|
|
||||||
{% endif %}
|
|
||||||
</section>
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|
Loading…
Reference in a new issue