Upload files to "kronic-chat/css"

This commit is contained in:
2026-11-25 20:25:05 -06:00
parent 416e5347ee
commit 65232f8b63
5 changed files with 703 additions and 0 deletions
+170
View File
@@ -0,0 +1,170 @@
/* =====================================================
Topbar audio dropdowns
Place after the Music/GIF buttons.
===================================================== */
.topbar-audio-controls {
position: relative;
display: flex;
flex: 0 0 auto;
align-items: center;
/* requested visual gap from Music/GIF */
margin-left: 48px;
gap: 6px;
}
.topbar-audio-menu {
position: relative;
flex: 0 0 auto;
}
.topbar-audio-menu > summary {
list-style: none;
}
.topbar-audio-menu > summary::-webkit-details-marker {
display: none;
}
.topbar-audio-trigger {
width: 40px;
min-width: 40px;
height: 38px;
min-height: 38px;
padding: 0;
}
.topbar-audio-menu[open] > .topbar-audio-trigger {
color: #fff;
background:
var(--background-hover);
}
.topbar-audio-dropdown {
position: absolute;
z-index: 5000;
top: calc(100% + 10px);
right: 0;
width: 310px;
max-height: min(70vh, 620px);
padding: 12px;
overflow-x: hidden;
overflow-y: auto;
background:
var(--background-dark);
border:
1px solid var(--border-color);
border-radius:
var(--radius-medium);
box-shadow:
0 14px 36px rgba(0, 0, 0, 0.5);
}
.topbar-audio-dropdown-title {
margin-bottom: 12px;
color:
var(--text-primary);
font-size: 12px;
font-weight: 800;
letter-spacing: 0.05em;
text-transform: uppercase;
}
/* Reuse the existing audio control styling without sidebar card chrome */
.topbar-audio-dropdown .compact-toggle {
margin-bottom: 12px !important;
}
.topbar-audio-dropdown .audio-control {
margin-top: 12px;
}
.topbar-audio-dropdown .audio-advanced {
margin-top: 10px;
}
.topbar-audio-dropdown .audio-apply-button {
margin-top: 12px;
}
/* Keep the three dropdown buttons visually grouped */
.topbar-audio-controls + .icon-button {
margin-left: 10px;
}
/* =====================================================
Topbar dropdown placement on smaller screens
===================================================== */
@media (max-width: 1000px) {
.topbar-audio-controls {
margin-left: 24px;
gap: 3px;
}
.topbar-audio-trigger {
width: 38px;
min-width: 38px;
}
.topbar-audio-dropdown {
width: min(300px, calc(100vw - 24px));
}
}
@media (max-width: 760px) {
.topbar-audio-controls {
order: 3;
flex: 1 1 100%;
justify-content: flex-end;
width: 100%;
margin-left: 0;
margin-top: 3px;
padding-right: 2px;
}
.topbar-audio-dropdown {
position: fixed;
top: calc(58px + env(safe-area-inset-top, 0px));
right: 8px;
width:
min(330px, calc(100vw - 16px));
max-height:
calc(
100dvh
- 76px
- env(safe-area-inset-top, 0px)
- env(safe-area-inset-bottom, 0px)
);
}
}