Files
Oxicloud/static/css/layout/content.css
T

114 lines
2.4 KiB
CSS
Raw Normal View History

/* ── Scrollbar ── */
::-webkit-scrollbar {
width: 6px;
}
::-webkit-scrollbar-track {
background: var(--color-bg-surface);
}
::-webkit-scrollbar-thumb {
background: var(--color-accent);
border-radius: 3px;
}
* {
scrollbar-width: thin;
scrollbar-color: var(--color-accent) var(--color-bg-surface);
}
/* Content area */
.content-area {
2026-04-07 22:48:59 +02:00
flex-grow: 1;
padding: var(--space-5) var(--gutter);
2026-04-07 22:48:59 +02:00
overflow-y: scroll;
scrollbar-gutter: stable;
}
/* Phones: tighten the shared gutter and let the actions bar wrap. */
@media (max-width: 640px) {
:root {
--gutter: var(--space-4);
}
/* Mobile uses overlay scrollbars — don't reserve a phantom gutter. */
.content-area {
scrollbar-gutter: auto;
}
.actions-bar {
flex-wrap: wrap;
height: auto;
gap: var(--space-2);
}
}
.page-title {
font-size: var(--text-2xl);
font-weight: var(--weight-bold);
margin-bottom: var(--space-5);
color: var(--color-text);
}
2026-04-08 10:38:36 +02:00
.page-sticky-header {
position: sticky;
margin: 0px;
padding: var(--space-2-5) 0px;
2026-04-08 10:38:36 +02:00
top: -20px; /* due to padding top of content-area */
background-color: var(--color-bg-page);
z-index: 100; /* ensure header is above image preview */
}
.actions-bar {
2026-04-07 22:48:59 +02:00
display: flex;
justify-content: space-between;
margin: 0 0 var(--space-3);
2026-04-07 22:48:59 +02:00
height: 60px;
padding: var(--space-2-5);
}
.action-buttons {
2026-04-07 22:48:59 +02:00
display: flex;
flex: auto;
gap: var(--space-3);
}
.empty-state {
2026-04-07 22:48:59 +02:00
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: var(--space-2);
padding: var(--space-12) var(--space-6);
2026-04-07 22:48:59 +02:00
text-align: center;
color: var(--color-text-muted);
2026-04-07 22:48:59 +02:00
width: 100%;
min-height: 320px;
2026-04-07 22:48:59 +02:00
grid-column: 1 / -1;
}
2026-03-25 18:49:38 +01:00
.empty-state p {
margin: 0;
max-width: 42ch;
color: var(--color-text-muted);
}
/* First paragraph acts as the title. */
.empty-state p:first-of-type {
font-size: var(--text-lg);
font-weight: var(--weight-semibold);
color: var(--color-text-heading);
}
/* Call-to-action button spacing. */
.empty-state .btn {
margin-top: var(--space-4);
}
2026-03-25 18:49:38 +01:00
/* invisible element, permits building of drag element without altering display */
.drag-preview {
2026-04-07 22:48:59 +02:00
position: absolute;
top: -9999px;
left: -9999px;
pointer-events: none;
width: 360px;
2026-03-25 18:49:38 +01:00
}