draw/src/app/dashboard/page.module.css
2025-05-14 10:19:03 +02:00

279 lines
4.8 KiB
CSS

.page {
height: 100vh;
width: 100%;
padding: 2rem;
max-width: 100%;
margin: 0 auto;
font-family: sans-serif;
color: #333;
background-color: #f9f9f9;
transition: background-color 0.3s ease, color 0.3s ease;
box-sizing: border-box;
overflow-y: auto;
position: relative;
display: flex;
flex-direction: column;
}
:global(.dark) .page {
background-color: #121212;
color: #e0e0e0;
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
padding-bottom: 1rem;
border-bottom: 1px solid #e0e0e0;
}
:global(.dark) .header {
border-bottom: 1px solid #333;
}
.headerLeft {
display: flex;
align-items: center;
gap: 1.5rem;
}
.headerSwitchers {
display: flex;
align-items: center;
gap: 0.75rem;
}
.headerRight {
display: flex;
align-items: center;
gap: 0.75rem;
}
.header h1 {
font-size: 2rem;
font-weight: 600;
color: #333;
}
:global(.dark) .header h1 {
color: #f0f0f0;
}
.logoutButton {
display: flex;
align-items: center;
gap: 0.5rem;
background-color: transparent;
border: 1px solid var(--border-color, #e0e0e0);
color: var(--text-secondary, #555);
padding: 0.5rem 1rem;
border-radius: 6px;
font-size: 0.9rem;
font-weight: 500;
cursor: pointer;
transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
:global(.dark) .logoutButton {
--border-color: #444;
--text-secondary: #bbb;
}
.logoutButton:hover {
background-color: var(--hover-bg, #f0f0f0);
border-color: var(--border-color-hover, #ccc);
color: var(--text-primary, #111);
}
:global(.dark) .logoutButton:hover {
--hover-bg: #333;
--border-color-hover: #555;
--text-primary: #fff;
}
.createButton {
display: flex;
align-items: center;
gap: 0.5rem;
background-color: #0070f3;
color: white;
border: none;
padding: 0.75rem 1.5rem;
border-radius: 6px;
font-size: 1rem;
font-weight: 500;
cursor: pointer;
transition: background-color 0.2s ease-in-out, transform 0.1s ease;
}
.createButton:hover {
background-color: #005bb5;
transform: translateY(-2px);
}
.createButton:active {
transform: translateY(0);
}
.errorText {
color: #ff4d4f;
background-color: #fff1f0;
border: 1px solid #ffccc7;
padding: 1rem;
border-radius: 6px;
margin-bottom: 1.5rem;
text-align: center;
}
:global(.dark) .errorText {
color: #ff7875;
background-color: rgba(255, 77, 79, 0.2);
border: 1px solid rgba(255, 77, 79, 0.3);
}
.drawingsGrid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 1.5rem;
}
.drawingCardPlaceholder {
border: 1px solid #ccc;
padding: 1rem;
border-radius: 8px;
background-color: #f9f9f9;
}
:global(.dark) .drawingCardPlaceholder {
border: 1px solid #333;
background-color: #1e1e1e;
}
.drawingCardPlaceholder h2 {
margin-top: 0;
margin-bottom: 0.5rem;
}
.drawingCardPlaceholder p {
font-size: 0.9rem;
color: #555;
margin-bottom: 1rem;
}
:global(.dark) .drawingCardPlaceholder p {
color: #aaa;
}
.drawingCardLink {
display: inline-block;
padding: 0.5rem 1rem;
background-color: #e9e9e9;
color: #333;
text-decoration: none;
border-radius: 4px;
transition: background-color 0.2s ease;
}
:global(.dark) .drawingCardLink {
background-color: #333;
color: #e0e0e0;
}
.drawingCardLink:hover {
background-color: #dcdcdc;
}
:global(.dark) .drawingCardLink:hover {
background-color: #444;
}
.page p {
text-align: center;
font-size: 1.1rem;
color: #555;
padding: 2rem 0;
}
:global(.dark) .page p {
color: #bbb;
}
.inlineCreateForm {
display: flex;
align-items: center;
gap: 0.5rem;
}
.inlineInput {
padding: 0.6rem 0.8rem;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 0.9rem;
flex-grow: 1;
background-color: #fff;
color: #333;
}
:global(.dark) .inlineInput {
background-color: #2a2a2a;
border-color: #444;
color: #e0e0e0;
}
.inlineInput:focus {
outline: none;
border-color: #0070f3;
box-shadow: 0 0 0 2px rgba(0, 112, 243, 0.2);
}
:global(.dark) .inlineInput:focus {
border-color: #0070f3;
box-shadow: 0 0 0 2px rgba(0, 112, 243, 0.3);
}
.actionButton {
padding: 0.6rem 1rem;
border: none;
border-radius: 4px;
font-size: 0.9rem;
font-weight: 500;
cursor: pointer;
transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, transform 0.1s ease;
}
.actionButton:active {
transform: translateY(1px);
}
.confirmButton {
background-color: #28a745;
color: white;
}
.confirmButton:hover {
background-color: #218838;
}
.cancelButton {
background-color: #6c757d;
color: white;
}
.cancelButton:hover {
background-color: #5a6268;
}
.loaderWrapper {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
align-items: center;
justify-content: center;
height: 100%;
width: 100%;
}