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 { .thumblist-item {
display: inline-block; display: inline-block;
margin: 5px; margin: 5px 5px 10px 10px;
padding: 5px; padding: 15px;
background: #f0f0f0; background: #f0f0f0;
text-decoration: none; text-decoration: none;
} }
@ -331,4 +331,4 @@ aside#overlay > img {
aside#overlay > div.price { aside#overlay > div.price {
padding-top: 30px; padding-top: 30px;
font-size: 2em; font-size: 2em;
} }

View file

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

View file

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