roundabout,
created on Monday, 9 September 2024, 10:49:30 (1725878970),
received on Monday, 9 September 2024, 10:49:32 (1725878972)
Author identity: vlad <vlad.muntoiu@gmail.com>
146781fa58d61f36be92a697375fc37540edd288
static/style.css
@@ -20,9 +20,11 @@ p {
} iconify-icon { /* Material design icons are done in 24px, so we scale them to 1.5 as the default font size is 16px */display: inline-block; width: 1em; height: 1em; font-size: 1.5em;} :is(#shape-selector, #shape-options) > button > iconify-icon {
@@ -369,3 +371,47 @@ dt {
dd { margin-left: 40px; } #mobile-navbar { display: none; } @media screen and (max-width: 576px) { #mobile-navbar { display: flex; } #desktop-navbar { display: none; } } #hamburger > nav { display: flex; flex-direction: column; gap: 1em; padding: var(--padding-card); padding-top: var(--padding-card-top); box-shadow: var(--shadow-card); background: var(--color-card); justify-content: space-between; width: clamp(240px, calc(100vw - 56px), 448px); } #hamburger > nav > ul { display: flex; flex-direction: column; gap: 1em; margin: 0; } #hamburger > nav > ul > li { display: flex; gap: var(--gap-label-checkbox); align-items: center; margin: 0; } #hamburger > nav > ul > li > a { text-decoration: none; color: var(--color-card-text); }
templates/default.html
@@ -5,13 +5,40 @@
<meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="/static/style.css"> <script src="/static/efficient-ui/dialogs.js"></script><script src="/static/efficient-ui/toasts.js"></script><script src="https://cdn.jsdelivr.net/npm/iconify-icon@2.1.0/dist/iconify-icon.min.js"></script> </head> <body> <dialog id="hamburger" class="sheet-left"> <nav> <ul> <li><a href="/">Home</a></li> <li><a href="/object/">Object list</a></li> <li><a href="/query-pictures">Query</a></li> {% if session.username %} <li><a href="/upload">Upload</a></li> {% endif %} </ul> <ul> {% if session.username %} <li><a href="/profile/{{ session.username }}">Profile: {{ session.username }}</a></li> <li><a href="/logout">Log out</a></li> {% else %} <li><a href="/accounts">Accounts</a></li> {% endif %} </ul> </nav> </dialog><header> <nav class="navbar"><nav class="navbar" id="mobile-navbar"> <ul> <li id="hamburger-button"> <button class="button-flat button-neutral" onclick="document.getElementById('hamburger').showModal()"> <iconify-icon icon="ic:baseline-menu">Menu</iconify-icon> </button> </li> </ul> </nav> <nav class="navbar" id="desktop-navbar"><ul> <li><a href="/">Home</a></li> <li><a href="/object/">Object list</a></li>
@@ -65,5 +92,7 @@
{% endfor %} </ol> {% endwith %} <script src="/static/efficient-ui/dialogs.js"></script> <script src="/static/efficient-ui/toasts.js"></script></body> </html>