Files
OpenLesson/public/style.css

247 lines
5.1 KiB
CSS

* {
box-sizing: border-box;
font-family: system-ui, 'Segoe UI', Roboto, sans-serif;
}
body {
margin: 0;
background: #f5f7fb;
color: #1e293b;
}
header {
background: white;
padding: 1rem 2rem;
box-shadow: 0 2px 6px rgba(0,0,0,0.05);
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
}
h1 { margin: 0; font-size: 1.5rem; }
.lessons-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 1.5rem;
padding: 2rem;
}
.lesson-card {
background: white;
border-radius: 1rem;
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
padding: 1.2rem;
transition: transform 0.1s ease;
cursor: pointer;
border: 1px solid #e2e8f0;
}
.lesson-card:hover {
transform: translateY(-4px);
border-color: #cbd5e1;
}
.lesson-card.disabled {
opacity: 0.6;
cursor: not-allowed;
background: #f1f5f9;
}
.lesson-card h3 { margin-top: 0; color: #0f172a; }
.lesson-card p { margin: 0.5rem 0; color: #334155; }
.slots {
font-weight: bold;
margin-top: 0.8rem;
color: #2d6a4f;
}
.slots.full { color: #b91c1c; }
.filters {
margin: 1rem 2rem;
display: flex;
gap: 0.8rem;
flex-wrap: wrap;
}
.filters input, .filters button {
padding: 0.5rem 1rem;
border-radius: 2rem;
border: 1px solid #cbd5e1;
background: white;
}
button {
background: #1e3a8a;
color: white;
border: none;
padding: 0.5rem 1.2rem;
border-radius: 2rem;
cursor: pointer;
font-weight: 500;
transition: background 0.2s;
}
button:hover { background: #1e40af; }
.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.5);
justify-content: center;
align-items: center;
}
.modal-content {
background: white;
padding: 2rem;
border-radius: 1.5rem;
width: 90%;
max-width: 500px;
position: relative;
}
.modal-content.large { max-width: 800px; }
.close {
position: absolute;
right: 1.5rem;
top: 1rem;
font-size: 1.8rem;
cursor: pointer;
color: #64748b;
}
form label {
display: block;
margin: 1rem 0 0.3rem;
font-weight: 500;
}
form input, form textarea {
width: 100%;
padding: 0.6rem;
border: 1px solid #cbd5e1;
border-radius: 0.8rem;
}
.lessons-list .lesson-item {
background: white;
margin: 1rem 2rem;
padding: 1rem;
border-radius: 1rem;
display: flex;
justify-content: space-between;
flex-wrap: wrap;
align-items: center;
gap: 1rem;
}
.lesson-actions button {
margin-left: 0.5rem;
background: #475569;
}
.lesson-actions button.danger { background: #b91c1c; }
.import-section {
background: #f9fafb;
padding: 1rem;
border-radius: 1rem;
margin: 1rem 2rem;
}
#importPreview table {
width: 100%;
border-collapse: collapse;
background: white;
}
#importPreview th, #importPreview td {
padding: 8px;
border: 1px solid #ddd;
}
@media (max-width: 640px) {
.lessons-grid { padding: 1rem; }
.filters { margin: 1rem; }
}
.filters {
display: flex;
align-items: center;
gap: 0.8rem;
flex-wrap: wrap;
}
#availableCount {
margin-left: auto;
white-space: nowrap;
}
/* Группа фильтров */
.filters {
display: flex;
align-items: flex-end;
gap: 1rem;
flex-wrap: wrap;
background: white;
padding: 1rem 1.5rem;
border-radius: 1.5rem;
margin: 1rem 2rem;
box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.filter-group {
display: flex;
flex-direction: column;
gap: 0.3rem;
min-width: 150px;
max-width: 450px;
}
.filter-group label {
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
color: #475569;
}
.filter-group select,
.filter-group input {
padding: 0.5rem 1rem;
border-radius: 2rem;
border: 1px solid #cbd5e1;
background-color: white;
font-size: 0.9rem;
cursor: pointer;
transition: 0.2s;
}
.filter-group select:hover,
.filter-group input:hover {
border-color: #94a3b8;
}
.filter-group select:focus,
.filter-group input:focus {
outline: none;
border-color: #1e3a8a;
box-shadow: 0 0 0 2px rgba(30,58,138,0.2);
}
.reset-btn {
background: #f1f5f9;
color: #1e293b;
border: 1px solid #cbd5e1;
}
.reset-btn:hover {
background: #e2e8f0;
border-color: #94a3b8;
}
.lessons-count {
background: #e2e8f0;
padding: 0.4rem 1rem;
border-radius: 2rem;
font-weight: bold;
font-size: 0.9rem;
margin-left: auto;
white-space: nowrap;
}
/* Адаптивность */
@media (max-width: 640px) {
.filters {
flex-direction: column;
align-items: stretch;
margin: 1rem;
}
.filter-group {
min-width: auto;
}
.lessons-count {
margin-left: 0;
text-align: center;
}
}