feat: improve link sizes for touchscreens

This commit is contained in:
s3lph 2023-12-22 19:57:51 +01:00
parent 1b45a21210
commit 97df130768
Signed by: s3lph
GPG key ID: 0AA29A52FB33CFB5
3 changed files with 11 additions and 8 deletions

View file

@ -13,8 +13,8 @@ nav div {
.thumblist-item {
display: inline-block;
margin: 5px;
padding: 5px;
margin: 5px 5px 10px 10px;
padding: 15px;
background: #f0f0f0;
text-decoration: none;
}

View file

@ -18,12 +18,11 @@
<header>
{% block header %}
{# Always show a link to the home page, either a list of users or of products. #}
<nav class="navbarbutton">
<div class="selected"><a href="/">Home</a></div>
{# Show a link to the settings, if a user logged in via password (authlevel 2). #}
{% if authlevel|default(0) > 1 %}
{% if authuser is defined %}
<a href="/">Home</a>
{# If a user is an admin, call the link "Administration". Otherwise, call it "Settings". #}
{% if authuser.is_admin %}
<a href="/admin">Administration</a>

View file

@ -22,9 +22,13 @@
<br/>
{# Link to the password login #}
<div class="thumblist-item">
<a href="/login">Password login</a>
</div>
{% if signup %}
<div class="thumblist-item">
<a href="/signup">Create account</a>
</div>
{% endif %}
{{ super() }}