Files
listify/listify-client/src/app/workspace-page.scss
Bastian Wagner 93a91c7bf6 ui
2026-06-10 14:15:16 +02:00

205 lines
3.5 KiB
SCSS

.workspace-page {
width: min(100%, 1120px);
max-width: 100%;
min-height: calc(100dvh - 56px);
margin: 0 auto;
padding: 1rem;
overflow-x: hidden;
}
.page-header {
display: flex;
align-items: stretch;
flex-direction: column;
gap: 1rem;
margin-bottom: 1.25rem;
padding: 0.75rem 0;
min-width: 0;
}
.page-header h1 {
overflow-wrap: anywhere;
margin: 0;
font-size: 1.55rem;
font-weight: 600;
}
.page-header p {
margin: 0.35rem 0 0;
color: var(--mat-sys-on-surface-variant);
}
.state-card,
.empty-state {
overflow: hidden;
border: 1px solid color-mix(in srgb, var(--mat-sys-outline-variant) 72%, transparent);
border-radius: 8px;
background: var(--mat-sys-surface);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.state-card mat-card-content,
.empty-state mat-card-content {
display: grid;
justify-items: center;
gap: 0.65rem;
padding: 2rem 1rem;
text-align: center;
}
.state-card mat-icon,
.empty-state mat-icon {
width: 48px;
height: 48px;
color: var(--mat-sys-primary);
font-size: 48px;
}
.state-card h2,
.empty-state h2 {
margin: 0;
font-size: 1.25rem;
font-weight: 500;
}
.state-card p,
.empty-state p {
max-width: 460px;
margin: 0;
color: var(--mat-sys-on-surface-variant);
}
.error-state mat-icon {
color: var(--mat-sys-error);
}
.template-grid {
display: grid;
gap: 0.75rem;
min-width: 0;
}
.template-card {
min-width: 0;
max-width: 100%;
overflow: hidden;
border: 1px solid color-mix(in srgb, var(--mat-sys-outline-variant) 72%, transparent);
border-radius: 8px;
background: var(--mat-sys-surface);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
transition:
box-shadow 0.2s ease,
transform 0.2s ease;
}
.template-card:hover {
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
transform: translateY(-1px);
}
.template-card mat-card-header {
min-width: 0;
padding-bottom: 0.25rem;
}
.template-card mat-card-title,
.template-card mat-card-subtitle {
overflow-wrap: anywhere;
}
.template-description {
margin: 0.5rem 0 0;
color: var(--mat-sys-on-surface-variant);
overflow-wrap: anywhere;
line-height: 1.45;
}
.template-meta {
display: flex;
flex-wrap: wrap;
gap: 0.5rem 0.85rem;
margin-top: 0.9rem;
color: var(--mat-sys-on-surface-variant);
font-size: 0.85rem;
}
.template-meta span {
display: inline-flex;
align-items: center;
gap: 0.3rem;
min-width: 0;
}
.template-meta mat-icon {
width: 18px;
height: 18px;
font-size: 18px;
}
.template-items {
display: grid;
gap: 0.45rem;
margin: 1rem 0 0;
padding: 0;
list-style: none;
}
.template-items li {
display: flex;
align-items: center;
gap: 0.5rem;
min-width: 0;
color: var(--mat-sys-on-surface);
}
.template-items li mat-icon {
flex: 0 0 auto;
width: 18px;
height: 18px;
color: var(--mat-sys-primary);
font-size: 18px;
}
.template-items li span {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
@media (min-width: 701px) {
.workspace-page {
min-height: calc(100dvh - 64px);
padding: 2rem;
}
.page-header {
align-items: center;
flex-direction: row;
justify-content: space-between;
margin-bottom: 1.75rem;
}
.page-header h1 {
font-size: 2rem;
}
.state-card mat-card-content,
.empty-state mat-card-content {
padding: 3rem 1.5rem;
}
mat-card-content {
flex: 1 1 auto;
}
.template-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 1rem;
}
}
@media (min-width: 1040px) {
.template-grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
}