Files
event-audio-recorder/config/style.css
T
2026-10-07 05:41:13 +02:00

1132 lines
19 KiB
CSS

/* Shared Event Audio stylesheet.
* Common visual rules intentionally follow recorder.py as the reference.
* Theme variables are injected by the Flask applications before this file.
*
* Core theme roles:
* background page background and dynamic content
* surface tables and cards
* surface-alt table headers and secondary surfaces
* text primary text
* text-secondary subtitles, metadata and footer text
* border separators and default button background
* live-surface active/live recording surfaces
* recording recording status and recording borders
*/
* {
box-sizing: border-box;
}
.site-header {
display: flex;
align-items: center;
gap: 18px;
margin-bottom: 24px;
}
.site-logo {
max-width: 140px;
max-height: 48px;
object-fit: contain;
display: block;
flex: 0 0 auto;
}
.site-header-text {
min-width: 0;
}
.site-header h1, .header h1 {
margin: 0 0 4px 0;
font-size: 24px;
}
.site-header .subtitle {
color: var(--color-text-secondary);
margin-bottom: 0;
}
body {
margin: 0;
padding: 24px;
background: var(--color-background);
color: var(--color-text);
font-family: Arial, Helvetica, sans-serif;
}
.dynamic-content {
background: var(--color-background);
}
.status {
display: inline-block;
padding: 8px 14px;
border-radius: 6px;
margin-bottom: 24px;
font-weight: bold;
}
.status.recording {
background: var(--color-recording);
color:var(--color-white);
}
.status.idle {
background: var(--color-surface);
color: var(--color-text-secondary);
}
.status.error {
background: var(--color-warning);
color:var(--color-white);
}
.recording {
border: 1px solid var(--color-recording);
background: var(--color-live-surface);
border-radius: 8px;
padding: 16px;
margin-bottom: 24px;
}
.recording-title {
font-size: 20px;
font-weight: bold;
margin-bottom: 8px;
}
.recording-info {
color: var(--color-text-secondary);
margin-bottom: 12px;
}
.live-panel {
display: flex;
gap: 16px;
border: 1px solid var(--color-recording);
background: var(--color-live-surface);
border-radius: 8px;
padding: 16px;
margin-bottom: 24px;
}
.live-item {
flex: 1;
min-width: 0;
}
.live-item + .live-item {
border-left: 1px solid var(--color-border);
padding-left: 16px;
}
.live-title {
font-size: 19px;
font-weight: bold;
margin-bottom: 6px;
}
.live-info {
color: var(--color-text-secondary);
font-size: 14px;
margin-bottom: 10px;
}
.filter-bar {
display: grid;
grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) minmax(120px, 1fr) minmax(220px, 1.8fr);
gap: 10px;
margin-bottom: 14px;
}
.filter-bar label {
color: var(--color-text-secondary);
font-size: 13px;
}
.filter-bar input, .filter-bar select {
width: 100%;
margin-top: 5px;
padding: 9px;
background: var(--color-background);
color: var(--color-text);
border: 1px solid var(--color-border);
border-radius: 5px;
font-size: 15px;
}
.filter-bar .search {
grid-column: auto;
}
.filter-info {
color: var(--color-text-secondary);
font-size: 13px;
margin-bottom: 10px;
}
table {
width: 100%;
border-collapse: separate;
background: var(--color-surface);
border-radius: 8px;
overflow: hidden;
border-spacing: 0px;
}
th {
text-align: left;
background: var(--color-surface-alt);
padding: 12px;
color: contrast-color(var(--color-surface-alt));
}
td {
padding: 12px;
color: var(--color-text);
border-top: 1px solid var(--color-border);
vertical-align: middle;
}
audio {
width: 500px;
max-width: 100%;
height: 35px;
vertical-align: center;
}
/* Die Positionsleiste der nativen Audio-Steuerung besser bedienbar machen.
Chromium/WebKit erlaubt zusätzlich eine direkte Vergrößerung der Timeline. */
audio::-webkit-media-controls-timeline {
height: 8px;
}
audio::-webkit-media-controls-current-time-display, audio::-webkit-media-controls-time-remaining-display {
font-size: 13px;
}
a.button {
display: inline-block;
padding: 8px 12px;
margin-left: 0px;
background: var(--color-border);
color: var(--color-white);
text-decoration: none;
border-radius: 5px;
}
a.button:hover {
background: filter: brightness(85%);
}
.empty {
padding: 30px;
text-align: center;
color: var(--color-text-secondary);
}
.footer-links {
display:flex;
justify-content:center;
align-items:center;
gap:16px;
margin-top:8px;
}
.footer-links a {
color:var(--color-text-secondary);
text-decoration:none;
}
.footer-links a:hover {
color:var(--color-text);
text-decoration:underline;
}
.git-icon {
display:inline-block;
margin-right:4px;
font-size:16px;
line-height:1;
}
.footer {
margin-top: 24px;
color: var(--color-text-secondary);
font-size: 13px;
}
@media (max-width: 900px) {
.filter-bar {
grid-template-columns: 1fr 1fr;
}
.filter-bar .search {
grid-column: auto;
}
}
@media (max-width:800px) {
body {
padding:12px;
}
.finished-table, .finished-table tbody, .finished-table tr, .finished-table td {
display:block;
}
.finished-table {
background:transparent;
border:0;
overflow:visible;
}
.finished-table thead {
display:none;
}
.finished-table tbody {
display:grid;
gap:18px;
}
.finished-table tr {
display:grid;
padding:16px;
grid-template-columns:1fr auto;
grid-template-areas:"event date" "title title" "speaker duration" "audio audio" "actions actions";
gap:0 12px;
margin:0;
background:var(--color-surface);
border:1px solid var(--color-border);
border-radius:20px;
box-shadow:0 8px 24px var(--color-shadow);
}
.finished-table td {
display:block;
border:0;
padding:0;
min-width:0;
}
.finished-table td:nth-child(4) {
grid-area:event;
justify-self:start;
align-self:start;
padding:6px 10px;
background:var(--color-primary);
border-radius:999px;
font-size:12px;
font-weight:700;
line-height:1.2;
}
.finished-table td:nth-child(1) {
grid-area:date;
justify-self:end;
align-self:center;
color:var(--color-text-secondary);
font-size:12px;
white-space:nowrap;
}
.finished-table td:nth-child(3) {
grid-area:title;
margin-top:16px;
color:var(--color-text);
font-size:20px;
font-weight:750;
line-height:1.25;
}
.finished-table td:nth-child(2) {
grid-area:speaker;
margin-top:6px;
color:var(--color-text-secondary);
font-size:14px;
font-weight:600;
}
.finished-table td:nth-child(5) {
grid-area:duration;
margin-top:6px;
color:var(--color-text-secondary);
font-size:13px;
}
.finished-table td:nth-child(5)::before {
content:"⏱ ";
font-size:14px;
}
.finished-table td:nth-child(6) {
grid-area:audio;
margin-top:8px;
}
.finished-table td:nth-child(7) {
grid-area:actions;
display:flex;
align-items:center;
gap:8px;
flex-wrap:wrap;
margin-top:8px;
padding-top:8px;
position:relative;
border-top:0;
}
.finished-table td:nth-child(7)::before {
content:"";
position:absolute;
top:0;
left:0;
right:0;
height:1px;
background:var(--color-border);
}
.finished-table audio {
width:100%;
height:42px;
margin:0;
}
.finished-table a.button {
display:inline-flex;
align-items:center;
justify-content:center;
min-height:44px;
padding:0 16px;
margin:0;
border-radius:12px;
}
.live-panel {
display:block;
}
.live-item + .live-item {
border-left:0;
border-top:1px solid var(--color-border);
padding-left:0;
padding-top:16px;
margin-top:16px;
}
a.button {
margin-left:0;
margin-right:8px;
}
}
/* ==========================================================================
Editor-specific styles
========================================================================== */
.edit-logo {
width:80px !important;
height:28px !important;
max-width:80px !important;
max-height:28px !important;
min-width:80px;
min-height:28px;
object-fit:contain !important;
display:block !important;
margin:0 0 10px 0;
}
.editor {
background:var(--color-surface);
border:1px solid var(--color-border);
border-radius:10px;
padding:20px;
}
.wave-wrap {
position:relative;
width:100%;
height:240px;
background:var(--color-surface-dark);
border-radius:6px;
overflow:hidden;
user-select:none;
touch-action:none;
}
.wave-image {
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
object-fit:fill;
display:block;
opacity:.9;
pointer-events:none;
}
.selection {
position:absolute;
top:0;
bottom:0;
background:var(--color-selection);
border-left:2px solid #ffffff;
border-right:2px solid #ffffff;
pointer-events:none;
}
.playhead {
position:absolute;
top:0;
bottom:0;
width:2px;
margin-left:-1px;
background:var(--color-primary);
box-shadow:0 0 5px #000, 0 0 10px var(--color-primary);
z-index:4;
pointer-events:none;
}
.handle {
position:absolute;
top:0;
bottom:0;
width:18px;
margin-left:-9px;
cursor:ew-resize;
z-index:3;
touch-action:none;
}
.handle::after {
content:"";
position:absolute;
left:7px;
top:0;
bottom:0;
width:4px;
background:var(--color-white);
border-radius:2px;
box-shadow:0 0 5px var(--color-shadow);
}
.view-scroll {
position:relative;
width:100%;
height:14px;
margin-top:5px;
background:var(--color-border);
border-radius:7px;
overflow:hidden;
touch-action:none;
cursor:grab;
}
.view-scroll-thumb {
position:absolute;
top:2px;
bottom:2px;
left:0;
min-width:14px;
background:var(--color-text-secondary);
border-radius:5px;
cursor:grab;
touch-action:none;
}
.view-scroll-thumb:hover {
background:var(--color-text-secondary);
}
.view-scroll-thumb.dragging {
background:var(--color-text-secondary);
cursor:grabbing;
}
.time-row {
display:flex;
justify-content:space-between;
margin-top:8px;
color:var(--color-text-secondary);
font-size:14px;
}
.controls {
display:flex;
flex-wrap:wrap;
gap:8px;
align-items:center;
margin-top:18px;
}
button, a.button {
border:0;
border-radius:5px;
padding:8px 12px;
background:var(--color-border);
color:var(--color-white);
cursor:pointer;
text-decoration:none;
font:inherit;
}
button:hover, a.button:hover {
filter: brightness(85%);
}
button.primary {
background:var(--color-primary);
color:var(--color-primary-text);
}
button.primary:hover {
filter: brightness(85%);
}
.button.danger:hover {
filter: brightness(85%);
}
button.danger {
background:var(--color-danger);
color:var(--color-white);
}
button:disabled {
opacity:.45;
cursor:not-allowed;
}
.position {
margin-left:auto;
color:var(--color-text-secondary);
font-variant-numeric:tabular-nums;
}
.zoom {
color:var(--color-text-secondary);
font-variant-numeric:tabular-nums;
}
.values {
display:grid;
grid-template-columns:repeat(3,1fr);
gap:12px;
margin-top:20px;
}
.value {
background:var(--color-surface-alt);
border-radius:6px;
padding:12px;
}
.value span {
display:block;
color:var(--color-text-secondary);
font-size:13px;
margin-bottom:5px;
}
.value strong {
font-size:20px;
font-variant-numeric:tabular-nums;
}
.actions {
display:flex;
gap:10px;
flex-wrap:wrap;
}
.info {
margin-top:16px;
color:var(--color-text-secondary);
font-size:14px;
}
.message {
margin-top:15px;
padding:10px 12px;
border-radius:6px;
display:none;
}
.message.ok {
display:block;
background:var(--color-success);
color:var(--color-success-text);
}
.message.error {
display:block;
background:var(--color-error);
color:var(--color-error-text);
}
.meta-dialog {
position:fixed;
inset:0;
background:var(--color-overlay);
display:none;
align-items:center;
justify-content:center;
z-index:900;
padding:20px;
}
.meta-dialog.active {
display:flex;
}
.meta-card {
width:min(560px,100%);
background:var(--color-surface);
border:1px solid var(--color-border);
border-radius:10px;
padding:22px;
box-shadow:0 10px 40px var(--color-shadow);
}
.meta-card h2 {
margin-top:0;
}
.meta-card label {
display:block;
margin:14px 0;
color:var(--color-text-secondary);
}
.meta-card input {
display:block;
width:100%;
margin-top:6px;
padding:10px;
background:var(--color-background);
color:var(--color-text);
border:1px solid var(--color-border);
border-radius:5px;
font-size:16px;
}
.meta-actions {
display:flex;
gap:10px;
justify-content:flex-end;
margin-top:20px;
}
.meta-actions button {
margin:0;
}
.progress-box {
display:none;
margin-top:16px;
}
.progress-box.active {
display:block;
}
.progress-track {
height:18px;
background:var(--color-border);
border-radius:9px;
overflow:hidden;
}
.progress-bar {
height:100%;
width:0;
background:var(--color-primary);
transition:width .2s ease;
}
.progress-info {
display:flex;
justify-content:space-between;
margin-top:7px;
color:var(--color-text-secondary);
font-size:14px;
font-variant-numeric:tabular-nums;
}
.back {
display:inline-block;
margin-bottom:18px;
color:var(--color-text-secondary);
text-decoration:none;
}
.loading-overlay {
position:fixed;
inset:0;
background:var(--color-overlay);
display:none;
align-items:center;
justify-content:center;
z-index:1000;
}
.loading-overlay.active {
display:flex;
}
.spinner {
width:54px;
height:54px;
border:5px solid var(--color-primary);
border-top-color:var(--color-white);
border-radius:50%;
animation:spin .8s linear infinite;
}
@keyframes spin {
to {
transform:rotate(360deg);
}
}
/* Editor overview / upload page */
.settings-page .section {
background:var(--color-surface);
color:var(--color-text);
border:1px solid var(--color-border);
border-radius:8px;
padding:18px;
margin-bottom:18px;
box-shadow:none;
}
.upload-bar {
display:flex;
align-items:center;
gap:10px;
flex-wrap:wrap;
margin-bottom:16px;
}
.upload-info {
color:var(--color-text-secondary);
font-size:13px;
}
.upload-progress {
display:none;
flex:1 1 240px;
min-width:180px;
height:18px;
background:var(--color-border);
border-radius:9px;
overflow:hidden;
}
.upload-progress.active {
display:block;
}
.upload-progress-bar {
width:0;
height:100%;
background:var(--color-primary);
transition:width .15s ease;
}
.finished-table .actions {
display:flex;
gap:6px;
flex-wrap:wrap;
align-items:center;
margin-top:0;
}
.finished-table .actions > button.button {
margin:0;
}
/* Settings page */
.settings-container {
max-width:1100px;
margin:0 auto;
}
a {
color:var(--color-text-secondary);
}
.header {
display:flex;
align-items:center;
gap:14px;
margin-bottom:24px;
flex-wrap:wrap;
}
.header h1 {
margin:0;
flex:1;
}
.logo {
max-width:140px;
max-height:48px;
object-fit:contain;
}
.back {
text-decoration:none;
}
.grid {
display:grid;
grid-template-columns:repeat(2,minmax(0,1fr));
gap:14px 18px;
}
.field label {
display:block;
color:var(--color-text-secondary);
font-size:13px;
margin-bottom:5px;
}
.field input {
width:100%;
padding:9px 10px;
background:var(--color-surface);
color:var(--color-text);
border:1px solid var(--color-border);
border-radius:5px;
font-size:15px;
}
.field.full {
grid-column:1/-1;
}
.color-grid {
display:grid;
grid-template-columns:repeat(3,minmax(0,1fr));
gap:16px 18px;
}
.color-field {
padding:12px;
background:var(--color-surface-alt);
border:1px solid var(--color-border);
border-radius:7px;
}
.color-field label {
display:block;
min-height:2.4em;
margin-bottom:7px;
color:var(--color-text-secondary);
font-size:13px;
line-height:1.25;
}
.color-input-row {
display:grid;
grid-template-columns:minmax(0,1fr) 48px;
gap:8px;
align-items:center;
}
.color-field input:not([type=color]) {
width:100%;
min-width:0;
height:40px;
padding:8px 10px;
background:var(--color-surface);
color:var(--color-text);
border:1px solid var(--color-border);
border-radius:5px;
font-size:14px;
font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
}
.color-field input[type=color] {
width:48px;
height:40px;
padding:3px;
background:var(--color-surface);
border:1px solid var(--color-border);
border-radius:5px;
cursor:pointer;
}
.theme-intro {
margin:-4px 0 16px;
color:var(--color-text-secondary);
font-size:14px;
line-height:1.45;
}
.note {
color:var(--color-text-secondary);
font-size:13px;
margin-top:8px;
}
@media (min-width:801px) and (max-width:1200px) {
.finished-table td:last-child {
display:flex;
align-items:center;
column-gap:8px;
row-gap:8px;
flex-wrap:wrap;
}
}
@media(max-width:900px) {
.color-grid {
grid-template-columns:repeat(2,minmax(0,1fr));
}
}
@media(max-width:800px) {
.recordings-table, .recordings-table tbody, .recordings-table tr, .recordings-table td {
display:block;
}
.recordings-table {
background:transparent;
border:0;
overflow:visible;
}
.recordings-table thead {
display:none;
}
.recordings-table tbody {
display:grid;
gap:14px;
}
.recordings-table tr {
display:grid;
grid-template-columns:1fr auto;
grid-template-areas: "filename filename" "size duration" "actions actions";
gap:0 12px;
margin:0;
padding:16px;
background:var(--color-surface);
border:1px solid var(--color-border);
border-radius:12px;
box-shadow:0 4px 14px var(--color-shadow);
}
.recordings-table td {
border:0;
padding:0;
min-width:0;
}
.recordings-table td:nth-child(1) {
grid-area:filename;
color:var(--color-text);
font-weight:600;
line-height:1.35;
overflow-wrap:anywhere;
}
.recordings-table td:nth-child(2) {
grid-area:size;
margin-top:10px;
color:var(--color-text-secondary);
font-size:13px;
}
.recordings-table td:nth-child(2)::before {
content:"Größe: ";
color:var(--color-text-secondary);
}
.recordings-table td:nth-child(3) {
grid-area:duration;
margin-top:10px;
color:var(--color-text-secondary);
font-size:13px;
text-align:right;
}
.recordings-table td:nth-child(3)::before {
content:"Dauer: ";
color:var(--color-text-secondary);
}
.recordings-table td:nth-child(4) {
grid-area:actions;
display:flex;
gap:8px;
flex-wrap:wrap;
margin-top:14px;
padding-top:14px;
position:relative;
border-top:0;
}
.recordings-table td:nth-child(4)::before {
content:"";
position:absolute;
top:0;
left:0;
right:0;
height:1px;
background:var(--color-border);
pointer-events:none;
}
.recordings-table td:nth-child(4) .button {
margin:0;
}
}
@media(max-width:700px) {
.editor {
padding:12px;
}
.wave-wrap {
height:180px;
}
.view-scroll {
height:18px;
}
.view-scroll-thumb {
min-width:28px;
}
.zoom {
width:100%;
margin-left:0;
}
.values {
grid-template-columns:1fr;
}
.position {
width:100%;
margin-left:0;
}
button, a.button {
flex:1 1 auto;
}
.grid,.color-grid {
grid-template-columns:1fr;
}
.field.full {
grid-column:auto;
}
}