source: Klonkt/src/views/partials/topnav.ejs@ 43dbf9c

main
Last change on this file since 43dbf9c was 0908b8f, checked in by roboburr <roboburr@…>, 3 months ago

Circles: Circle nav link (desktop + mobile) when tenancy=circle

Without a menu entry /cirkel was unreachable in the UI — now a 'Circle' link
next to Archive (desktop) + in the bottom tab (mobile), only in circle mode.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@…>

  • Property mode set to 100644
File size: 21.1 KB
Line 
1<%
2// Top nav — RESPONSIVE.
3//
4// Mobile (<768px):
5// - Brand centered, small theme-toggle right.
6// - All other actions live in the bottom-tab nav.
7// - Sticky top, blur background, safe-area-top respected.
8//
9// Desktop (≥768px):
10// - Full v9 masthead: brand left, action row right
11// (Archief / Search / Install / Theme / Prutter / User-menu).
12// - bottom-tab is hidden via CSS, so all nav must live here.
13
14const _siteUrlBase = (typeof siteUrlBase !== 'undefined' && siteUrlBase) ? siteUrlBase : '';
15const _isAdmin = typeof bodyClass !== 'undefined' && bodyClass.indexOf('on-admin') >= 0;
16const _hasSearch = !site || site.show_search === undefined || site.show_search;
17const _hasPrutter = user && site && site.enable_prutter && (typeof tenancy !== 'undefined' && tenancy === 'hub');
18const _canPost = user && (typeof canMutate === 'undefined' || canMutate)
19 && permissions && permissions.canCreatePost && permissions.canCreatePost(user, site);
20%>
21
22<header class="masthead">
23 <div class="container masthead-inner">
24
25 <!-- Brand block (always visible) -->
26 <div class="masthead-brand">
27 <% if (_isAdmin) { %>
28 <a href="<%= _siteUrlBase %>/" class="nav-link nav-link-admin">← Terug naar site</a>
29 <% } else if (typeof tenancy !== 'undefined' && tenancy === 'hub') { %>
30 <%# Hub: de brand is de hub-naam en gaat naar de hub-home (volledige nav, geen
31 HTMX, zodat de headerloze overview correct rendert). Eigen class want
32 .site-title is overal display:none. %>
33 <a class="nav-hub-home" href="/" aria-label="Home" title="Home">
34 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/><polyline points="9 22 9 12 15 12 15 22"/></svg>
35 </a>
36 <% } else if (site) { %>
37 <a class="site-title" href="<%= _siteUrlBase %>/"
38 hx-get="<%= _siteUrlBase %>/?partial=1" hx-target="#pcms-main" hx-swap="innerHTML"
39 hx-push-url="<%= _siteUrlBase %>/" hx-indicator="#pcms-loading"><%= site.title %></a>
40 <% } else { %>
41 <a class="site-title" href="/">Klonkt</a>
42 <% } %>
43 </div>
44
45 <!-- Mobile: theme toggle ONLY for logged-out users.
46 Logged-in users get the toggle inside the profile sheet
47 (bottom-tab → Profiel → Thema). All other actions in bottom-tab. -->
48 <% if (!user) { %>
49 <div class="top-nav-mobile">
50 <button type="button" class="nav-btn" id="theme-toggle-mobile" aria-label="Thema wisselen" title="Thema wisselen">
51 <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="4"/><path d="M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41"/></svg>
52 </button>
53 </div>
54 <% } %>
55
56 <!-- Desktop-only: full action row -->
57 <nav class="top-nav top-nav-desktop" aria-label="Hoofdnavigatie">
58
59 <% if (!_isAdmin) { %>
60 <a class="nav-link" href="<%= _siteUrlBase %>/archive"
61 hx-get="<%= _siteUrlBase %>/archive?partial=1" hx-target="#pcms-main"
62 hx-swap="innerHTML" hx-push-url="<%= _siteUrlBase %>/archive"
63 hx-indicator="#pcms-loading">
64 <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 8v13H3V8"/><rect x="1" y="3" width="22" height="5" rx="1"/><line x1="10" y1="12" x2="14" y2="12"/></svg>
65 <span class="nav-label">Archief</span>
66 </a>
67 <% } %>
68
69 <% if (typeof tenancy !== 'undefined' && tenancy === 'circle') { %>
70 <a class="nav-link" href="<%= _siteUrlBase %>/cirkel"
71 hx-get="<%= _siteUrlBase %>/cirkel?partial=1" hx-target="#pcms-main"
72 hx-swap="innerHTML" hx-push-url="<%= _siteUrlBase %>/cirkel"
73 hx-indicator="#pcms-loading">
74 <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="8" cy="9" r="3.2"/><circle cx="16.5" cy="15" r="3.2"/><path d="M10.6 10.9l3.3 2.4"/></svg>
75 <span class="nav-label">Cirkel</span>
76 </a>
77 <% } %>
78
79 <% if (_hasSearch) { %>
80 <button type="button" class="nav-btn" id="search-toggle" aria-label="Zoeken" title="Zoeken">
81 <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="11" cy="11" r="7"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>
82 </button>
83 <% } %>
84
85 <button type="button" class="nav-btn" id="pwa-install-btn" hidden aria-label="App installeren" title="App installeren">
86 <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>
87 </button>
88
89 <button type="button" class="nav-btn" id="theme-toggle" aria-label="Thema wisselen" title="Thema wisselen">
90 <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="4"/><path d="M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41"/></svg>
91 </button>
92
93 <% if (_hasPrutter) { %>
94 <a class="nav-btn" href="<%= _siteUrlBase %>/prutter" aria-label="Prutter (DMs)" title="Prutter">
95 <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>
96 </a>
97 <% } %>
98
99 <% if (user) { %>
100 <details class="user-menu">
101 <summary class="nav-btn user-toggle" aria-label="Gebruikersmenu">
102 <% if (user.avatar_url) { %>
103 <img class="user-avatar user-avatar-img" src="<%= user.avatar_url %>" alt="">
104 <% } else { %>
105 <span class="user-avatar"><%= user.username.charAt(0).toUpperCase() %></span>
106 <% } %>
107 </summary>
108 <div class="user-dropdown" role="menu">
109 <div class="user-dropdown-header">
110 <% if (user.avatar_url) { %>
111 <img class="udh-avatar" src="<%= user.avatar_url %>" alt="">
112 <% } else { %>
113 <span class="udh-avatar udh-avatar-fallback"><%= user.username.charAt(0).toUpperCase() %></span>
114 <% } %>
115 <div class="udh-meta">
116 <span class="udh-name"><%= user.username %></span>
117 <% if (user.role === 'god') { %>
118 <span class="udh-role">Admin</span>
119 <% } else if (user.role === 'admin' || user.role === 'moderator') { %>
120 <span class="udh-role"><%= user.role.charAt(0).toUpperCase() + user.role.slice(1) %></span>
121 <% } %>
122 </div>
123 </div>
124 <div class="user-dropdown-list">
125 <a href="/account" role="menuitem" class="udi">
126 <svg class="udi-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>
127 <span>Account</span>
128 </a>
129 <% if (typeof canSeeBeheer !== 'undefined' && canSeeBeheer) { %>
130 <a href="/admin" role="menuitem" class="udi">
131 <svg class="udi-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 3h7v7H3z"/><path d="M14 3h7v7h-7z"/><path d="M14 14h7v7h-7z"/><path d="M3 14h7v7H3z"/></svg>
132 <span>Beheer</span>
133 </a>
134 <% } %>
135 <% if (_canPost) { %>
136 <a href="<%= _siteUrlBase %>/posts/new" role="menuitem" class="udi"
137 hx-get="<%= _siteUrlBase %>/posts/new?partial=1" hx-target="#pcms-main" hx-swap="innerHTML"
138 hx-push-url="<%= _siteUrlBase %>/posts/new" hx-indicator="#pcms-loading">
139 <svg class="udi-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 20h9"/><path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4 12.5-12.5z"/></svg>
140 <span>Nieuwe post</span>
141 </a>
142 <% } %>
143 </div>
144 <div class="user-dropdown-divider" aria-hidden="true"></div>
145 <div class="user-dropdown-list">
146 <a href="/auth/logout" role="menuitem" class="udi udi-danger">
147 <svg class="udi-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"/><polyline points="16 17 21 12 16 7"/><line x1="21" y1="12" x2="9" y2="12"/></svg>
148 <span>Uitloggen</span>
149 </a>
150 </div>
151 </div>
152 </details>
153 <% } else { %>
154 <a class="nav-link" href="/auth/login">
155 <span class="nav-label">Inloggen</span>
156 </a>
157 <% } %>
158
159 </nav>
160 </div>
161</header>
162
163<!-- Search overlay (shared by mobile bottom-tab + desktop top-nav) -->
164<div id="search-overlay" class="search-overlay" hidden>
165 <div class="container">
166 <form class="search-overlay-form" method="get" action="<%= _siteUrlBase %>/search">
167 <input type="search" name="q" placeholder="Zoeken in posts…" autocomplete="off">
168 <button type="submit" class="nav-btn" aria-label="Zoeken">
169 <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="11" cy="11" r="7"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>
170 </button>
171 <button type="button" class="nav-btn" id="search-close" aria-label="Sluiten">
172 <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>
173 </button>
174 </form>
175 </div>
176</div>
177
178<script>
179(function() {
180 // Theme toggle (works for both mobile + desktop buttons)
181 function toggleTheme() {
182 const cur = document.documentElement.getAttribute('data-theme') || 'dark';
183 const next = cur === 'dark' ? 'light' : 'dark';
184 document.documentElement.setAttribute('data-theme', next);
185 try { localStorage.setItem('pcms-theme', next); } catch (e) {}
186 }
187 // Theme toggle — event delegation so it works for ANY button with the
188 // matching ids, even ones rendered later in the page (footer is below
189 // topnav in source order, so getElementById would have returned null
190 // when this IIFE ran).
191 document.body.addEventListener('click', function(e) {
192 const btn = e.target.closest(
193 '#theme-toggle, #theme-toggle-mobile, #theme-toggle-footer'
194 );
195 if (btn) toggleTheme();
196 });
197
198 // Search overlay
199 const overlay = document.getElementById('search-overlay');
200 document.getElementById('search-toggle')?.addEventListener('click', function() {
201 if (overlay) {
202 overlay.hidden = false;
203 const inp = overlay.querySelector('input');
204 if (inp) inp.focus();
205 }
206 });
207 document.getElementById('search-close')?.addEventListener('click', function() {
208 if (overlay) overlay.hidden = true;
209 });
210 document.addEventListener('keydown', function(e) {
211 if (e.key === 'Escape' && overlay && !overlay.hidden) overlay.hidden = true;
212 });
213
214 // Close user dropdown on outside click
215 document.addEventListener('click', function(e) {
216 const open = document.querySelector('.user-menu[open]');
217 if (open && !open.contains(e.target)) open.removeAttribute('open');
218 });
219})();
220</script>
221
222<style>
223/* ============================================================
224 TOP-NAV — responsive
225 Mobile: brand centered, small theme btn right, NOTHING else.
226 Desktop (≥768px): full v9 layout — brand left, action row right.
227 ============================================================ */
228
229.masthead-inner {
230 /* Override v9's flex-end → space-between so brand is on the left */
231 justify-content: space-between !important;
232 gap: 1rem;
233}
234.masthead-brand .site-title,
235.masthead-brand .nav-link-admin {
236 display: inline-block;
237 vertical-align: middle;
238}
239
240/* Site title is suppressed everywhere — the profile-header carries the brand
241 on content pages, and admin pages have their own "← Terug naar site" link
242 (a different selector, .nav-link-admin, which stays visible). The masthead
243 becomes a thin utility strip with just theme-toggle / search / etc. */
244.masthead-brand .site-title {
245 display: none;
246}
247
248/* Hub-home brand is WÉL zichtbaar — de thuisknop op artiest-/hub-pagina's. */
249.masthead-brand .nav-hub-home {
250 display: inline-flex; align-items: center; justify-content: center;
251 width: 40px; height: 40px;
252 color: var(--ink); text-decoration: none;
253 border-radius: 8px;
254 transition: color 120ms, background 120ms;
255}
256.masthead-brand .nav-hub-home:hover { color: var(--accent); background: var(--paper-2); }
257.masthead-brand .nav-hub-home svg { width: 22px; height: 22px; }
258
259/* On mobile, hide the entire masthead except for admin pages. The brand
260 appears in the profile-header on content pages, and the bottom-tab
261 provides all navigation. Admin keeps it because the "← Terug naar site"
262 link is the only way back to the public site from /admin/*. */
263@media (max-width: 767px) {
264 body:not(.on-admin) .masthead { display: none; }
265}
266
267/* On mobile, center the brand in the masthead */
268@media (max-width: 767px) {
269 .masthead-inner {
270 justify-content: center !important;
271 position: relative;
272 }
273 .masthead-brand {
274 text-align: center;
275 }
276 /* Lone theme button for logged-out users — minimal, icon-only,
277 no border/background to avoid the iOS sticky-hover look. */
278 .top-nav-mobile {
279 position: absolute;
280 right: 0;
281 top: 50%;
282 transform: translateY(-50%);
283 }
284 .top-nav-mobile .nav-btn {
285 width: 44px;
286 height: 44px;
287 padding: 0;
288 background: transparent !important;
289 border-color: transparent !important;
290 color: var(--ink-soft);
291 display: inline-flex;
292 align-items: center;
293 justify-content: center;
294 }
295 .top-nav-mobile .nav-btn:active {
296 transform: scale(0.92);
297 color: var(--ink);
298 }
299 /* Suppress sticky hover on touch — only show feedback for real hover devices */
300 @media (hover: none) {
301 .top-nav-mobile .nav-btn:hover {
302 background: transparent !important;
303 border-color: transparent !important;
304 color: var(--ink-soft);
305 }
306 }
307 .top-nav-desktop {
308 display: none !important;
309 }
310}
311
312/* On desktop, hide the mobile-only theme button */
313@media (min-width: 768px) {
314 .top-nav-mobile { display: none; }
315}
316
317/* ── Admin "back" link styling (inherited from v9 patterns) ── */
318.nav-link-admin {
319 background: var(--accent);
320 color: #fff !important;
321 padding: .5rem .85rem;
322 border-radius: 6px;
323 text-decoration: none;
324 font-family: var(--font-ui);
325 font-size: .875rem;
326 font-weight: 500;
327}
328.nav-link-admin:hover { opacity: .9; color: #fff !important; }
329
330/* ── Tap-target enforcement for all nav buttons on touch ── */
331@media (hover: none) {
332 .nav-btn, .nav-link {
333 min-height: 44px;
334 min-width: 44px;
335 }
336 .nav-btn:active {
337 transform: scale(0.95);
338 background: var(--paper-2);
339 }
340}
341
342/* ── User dropdown (desktop only — mobile uses bottom-tab → /account) ── */
343.user-menu { position: relative; list-style: none; }
344.user-menu > summary {
345 list-style: none; cursor: pointer;
346 padding: .25rem; border-radius: 6px;
347 display: inline-flex; align-items: center;
348 border: 1px solid transparent;
349 transition: all var(--transition);
350}
351.user-menu > summary::-webkit-details-marker { display: none; }
352.user-menu > summary::marker { content: ''; }
353.user-menu > summary:hover { background: var(--paper-2); border-color: var(--rule); }
354.user-avatar {
355 display: inline-flex; align-items: center; justify-content: center;
356 width: 28px; height: 28px; border-radius: 50%;
357 background: var(--paper-2); /* neutral so transparent avatars blend */
358 color: var(--accent); /* fallback initial color */
359 font-family: var(--font-ui); font-weight: 600; font-size: .8rem;
360 pointer-events: none;
361 overflow: hidden;
362}
363.user-avatar-img {
364 /* When the pill renders as <img> instead of <span>, fill it edge-to-edge. */
365 object-fit: cover;
366}
367.user-dropdown {
368 position: absolute; top: calc(100% + .55rem); right: 0;
369 min-width: 220px;
370 padding: .35rem;
371 background: color-mix(in srgb, var(--paper) 92%, transparent);
372 backdrop-filter: blur(14px) saturate(180%);
373 -webkit-backdrop-filter: blur(14px) saturate(180%);
374 border: 1px solid var(--rule);
375 border-radius: 12px;
376 box-shadow:
377 0 1px 2px color-mix(in srgb, var(--ink) 8%, transparent),
378 0 8px 24px color-mix(in srgb, var(--ink) 14%, transparent),
379 0 16px 48px color-mix(in srgb, var(--ink) 10%, transparent);
380 z-index: 200;
381 font-family: var(--font-ui);
382 transform-origin: top right;
383}
384/* Open animation — only fires when <details open> matches, so closing the
385 dropdown doesn't replay the entry animation. */
386.user-menu[open] > .user-dropdown {
387 animation: ud-fade-in .14s cubic-bezier(.2, .8, .25, 1);
388}
389@keyframes ud-fade-in {
390 from { opacity: 0; transform: translateY(-6px) scale(.98); }
391 to { opacity: 1; transform: translateY(0) scale(1); }
392}
393
394/* Identity header — small avatar + username/role badge */
395.user-dropdown-header {
396 display: flex; align-items: center; gap: .65rem;
397 padding: .55rem .65rem .65rem;
398 border-bottom: 1px solid color-mix(in srgb, var(--rule) 65%, transparent);
399 margin-bottom: .35rem;
400}
401.udh-avatar {
402 width: 36px; height: 36px; border-radius: 50%;
403 object-fit: cover;
404 background: var(--paper-2);
405 display: inline-flex; align-items: center; justify-content: center;
406 flex-shrink: 0;
407}
408.udh-avatar-fallback {
409 color: var(--accent); font-weight: 700; font-size: .95rem;
410}
411.udh-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
412.udh-name {
413 font-weight: 600; font-size: .92rem; color: var(--ink);
414 white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px;
415}
416.udh-role {
417 font-size: .68rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
418 color: var(--accent); opacity: .85; margin-top: .12rem;
419}
420
421/* Item list group */
422.user-dropdown-list { display: flex; flex-direction: column; gap: 1px; }
423.user-dropdown-divider {
424 height: 1px;
425 margin: .35rem .25rem;
426 background: color-mix(in srgb, var(--rule) 60%, transparent);
427}
428
429/* Items — icon + label, rounded inner highlight on hover (macOS feel) */
430.user-dropdown .udi {
431 display: flex; align-items: center; gap: .65rem;
432 padding: .5rem .65rem;
433 color: var(--ink); text-decoration: none;
434 font-size: .88rem; font-weight: 500;
435 border-radius: 7px;
436 transition: background var(--transition), color var(--transition), transform var(--transition);
437}
438.user-dropdown .udi:hover,
439.user-dropdown .udi:focus-visible {
440 background: color-mix(in srgb, var(--accent) 10%, var(--paper-2));
441 color: var(--accent);
442 outline: none;
443}
444.user-dropdown .udi:active { transform: scale(.98); }
445.user-dropdown .udi-icon {
446 width: 16px; height: 16px;
447 opacity: .7;
448 flex-shrink: 0;
449 transition: opacity var(--transition);
450}
451.user-dropdown .udi:hover .udi-icon,
452.user-dropdown .udi:focus-visible .udi-icon { opacity: 1; }
453
454/* Logout: subtle danger tint on hover, never on rest. Uses a fixed red so
455 it always reads as a destructive action even if the user's accent is red. */
456.user-dropdown .udi-danger:hover,
457.user-dropdown .udi-danger:focus-visible {
458 background: color-mix(in srgb, #dc2626 14%, var(--paper-2));
459 color: #dc2626;
460}
461
462/* ── Search overlay ── */
463.search-overlay {
464 position: fixed; top: 0; left: 0; right: 0;
465 background: color-mix(in srgb, var(--paper) 96%, transparent);
466 backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
467 border-bottom: 1px solid var(--rule);
468 padding: 1rem 0; z-index: 200;
469 padding-top: calc(1rem + env(safe-area-inset-top, 0));
470 box-shadow: 0 8px 24px color-mix(in srgb, var(--ink) 8%, transparent);
471}
472.search-overlay-form { display: flex; gap: .5rem; align-items: center; }
473.search-overlay-form input {
474 flex: 1; padding: .85rem 1rem;
475 min-height: 44px;
476 border: 1px solid var(--rule); border-radius: 8px;
477 font-family: var(--font-ui); font-size: 1rem;
478 background: var(--paper); color: var(--ink);
479}
480.search-overlay-form input:focus {
481 outline: 2px solid var(--accent); outline-offset: 0;
482}
483.search-overlay-form .nav-btn {
484 width: 44px; height: 44px;
485 display: inline-flex; align-items: center; justify-content: center;
486}
487</style>
Note: See TracBrowser for help on using the repository browser.