Files
papercrate/frontend/src/styles/workspace/workspace-cards.css
T
2025-11-10 11:30:16 +01:00

123 lines
2.5 KiB
CSS

/* Workspace cards, thumbnails, and hover controls */
.desk-item__shadow {
display: none;
}
.desk-item__card {
position: relative;
border-radius: 0;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
box-shadow: 0 12px 32px var(--shadow-medium);
overflow: hidden;
}
.desk-item__card img {
width: 100%;
height: 100%;
object-fit: contain;
display: block;
pointer-events: none;
user-select: none;
-webkit-user-drag: none;
}
.desk-item__card--empty {
box-shadow: 0 12px 32px var(--shadow-medium);
background:
radial-gradient(circle at 42% 38%, color-mix(in oklch, var(--surface-subtle) 75%, var(--selection) 25%), color-mix(in oklch, var(--surface-subtle) 85%, var(--selection) 15%) 70%),
linear-gradient(135deg, color-mix(in oklch, var(--surface-subtle) 88%, var(--selection-soft) 12%) 0%, color-mix(in oklch, var(--surface-subtle) 65%, var(--shadow-faint) 35%) 100%);
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 0.5rem;
}
.desk-item__placeholder {
font-size: 0.95rem;
font-weight: 500;
letter-spacing: normal;
color: var(--muted);
}
.desk-item__empty {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
gap: 0.5rem;
padding: 1rem;
text-align: center;
}
.desk-item__title {
font-size: 0.95rem;
font-weight: 500;
color: var(--fg);
max-width: 90%;
overflow: hidden;
overflow-wrap: anywhere;
word-break: break-word;
white-space: normal;
}
.desk-card__nav {
position: absolute;
bottom: 1.8rem;
left: 50%;
transform: translateX(-50%);
transform-origin: center;
display: flex;
gap: 1.5rem;
opacity: 0;
pointer-events: none;
transition: opacity 0.2s ease;
}
.desk-item__card:hover .desk-card__nav {
opacity: 1;
pointer-events: auto;
}
.desk-card__nav-button {
display: inline-flex;
align-items: center;
justify-content: center;
width: 2.4em;
height: 2.4em;
padding: 0.25em;
border-radius: 50%;
border: none;
background: var(--preview-nav-bg);
color: var(--preview-nav-fg);
cursor: pointer;
transition: background 0.15s ease, opacity 0.15s ease;
}
.desk-card__nav-button:hover:not([disabled]) {
background: var(--preview-nav-bg-hover);
}
.desk-card__nav-button:disabled {
opacity: 0.4;
cursor: default;
}
.desk-card__nav-button:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.desk-card__nav-button svg {
width: 100%;
height: 100%;
}