Add admin menu drawer and poll cloning, drop participant screen tools
- Remove fullscreen and wake lock buttons from the participant view. - Turn the admin sidebar into a drawer below 900px, opened from a header menu button next to the theme switch (progressive enhancement). - Add "Umfrage kopieren": clone a poll with all slides, options and images but without responses, with its own join code and admin link. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0f91377de3
commit
bd57f23be6
15 files changed
+374
-138
No files matched your search
@@ -140,6 +140,32 @@ h3 { font-size: 1.05rem; margin-top: 1.6em; }
|
||||
.grid--sidebar { grid-template-columns: 1fr; }
|
||||
}
|
||||
|
||||
/* Sidebar as menu drawer (JS adds .sidebar--drawer; without JS the sidebar stays below the slides). */
|
||||
.menu-toggle { display: none; }
|
||||
.sidebar__bar { display: none; }
|
||||
.drawer-backdrop { display: none; }
|
||||
@media (max-width: 900px) {
|
||||
.menu-toggle:not([hidden]) { display: inline-flex; }
|
||||
.sidebar--drawer {
|
||||
position: fixed; top: 0; right: 0; bottom: 0; z-index: 40;
|
||||
width: min(92vw, 400px); padding: 0 16px 24px; overflow-y: auto; overscroll-behavior: contain;
|
||||
background: var(--bg); box-shadow: -8px 0 32px rgba(20, 22, 50, .25);
|
||||
visibility: hidden; transform: translateX(100%);
|
||||
transition: transform .2s ease, visibility 0s linear .2s;
|
||||
}
|
||||
.drawer-open .sidebar--drawer { visibility: visible; transform: none; transition: transform .2s ease; }
|
||||
.sidebar--drawer .sidebar__bar {
|
||||
position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between;
|
||||
margin: 0 -16px 16px; padding: 12px 16px; background: var(--bg); border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.sidebar--drawer .sidebar__close { position: static; }
|
||||
.drawer-open .drawer-backdrop { display: block; position: fixed; inset: 0; z-index: 39; background: rgba(20, 22, 50, .45); }
|
||||
.drawer-open { overflow: hidden; }
|
||||
}
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.sidebar--drawer { transition: none; }
|
||||
}
|
||||
|
||||
/* ---------------------------------------------------------------- components */
|
||||
.card {
|
||||
background: var(--surface);
|
||||
|
||||
Reference in new issue
Block a user