Реализована фильтрация столбцов и улучшена сортировка в расписании
This commit is contained in:
232
frontend/admin/css/components.css
Normal file → Executable file
232
frontend/admin/css/components.css
Normal file → Executable file
@@ -432,6 +432,230 @@ thead th {
|
||||
border-bottom: 1px solid var(--bg-card-border);
|
||||
}
|
||||
|
||||
/* Sortable columns */
|
||||
thead th.sortable {
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
white-space: nowrap;
|
||||
transition: color 0.2s ease;
|
||||
}
|
||||
|
||||
thead th.sortable:hover {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
thead th.sortable.sort-active {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.sort-arrow {
|
||||
display: inline-block;
|
||||
width: 0;
|
||||
height: 0;
|
||||
margin-left: 5px;
|
||||
vertical-align: middle;
|
||||
border-left: 4px solid transparent;
|
||||
border-right: 4px solid transparent;
|
||||
border-bottom: 5px solid currentColor;
|
||||
opacity: 0.3;
|
||||
transition: transform 0.25s ease, opacity 0.25s ease;
|
||||
}
|
||||
|
||||
thead th.sortable:hover .sort-arrow {
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
thead th.sortable.sort-asc .sort-arrow {
|
||||
opacity: 1;
|
||||
border-bottom: 5px solid var(--accent);
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
|
||||
thead th.sortable.sort-desc .sort-arrow {
|
||||
opacity: 1;
|
||||
border-bottom: 5px solid var(--accent);
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
/* ===== Filter Icon & Popup ===== */
|
||||
thead th.filterable {
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
white-space: nowrap;
|
||||
transition: color 0.2s ease;
|
||||
}
|
||||
|
||||
thead th.filterable:hover {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.filter-icon {
|
||||
display: inline-block;
|
||||
margin-left: 4px;
|
||||
font-size: 0.65rem;
|
||||
opacity: 0.4;
|
||||
cursor: pointer;
|
||||
transition: opacity 0.2s ease, color 0.2s ease;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
thead th.filterable:hover .filter-icon {
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
thead th.filter-active .filter-icon {
|
||||
opacity: 1;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
thead th.filter-active {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.filter-popup {
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
min-width: 220px;
|
||||
max-width: 280px;
|
||||
background: rgba(15, 23, 42, 0.97);
|
||||
backdrop-filter: blur(16px);
|
||||
-webkit-backdrop-filter: blur(16px);
|
||||
border: 1px solid var(--bg-card-border);
|
||||
border-radius: var(--radius-sm);
|
||||
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
|
||||
padding: 0.75rem;
|
||||
z-index: 200;
|
||||
animation: filterPopupIn 0.2s ease-out both;
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
[data-theme="light"] .filter-popup {
|
||||
background: rgba(255, 255, 255, 0.98);
|
||||
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
@keyframes filterPopupIn {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(-6px);
|
||||
}
|
||||
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
.filter-search {
|
||||
width: 100%;
|
||||
padding: 0.5rem 0.7rem;
|
||||
background: var(--bg-input);
|
||||
border: 1px solid var(--bg-card-border);
|
||||
border-radius: 6px;
|
||||
color: var(--text-primary);
|
||||
font-family: inherit;
|
||||
font-size: 0.85rem;
|
||||
outline: none;
|
||||
transition: border-color 0.2s ease, box-shadow 0.2s ease;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.filter-search::placeholder {
|
||||
color: var(--text-placeholder);
|
||||
}
|
||||
|
||||
.filter-search:focus {
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 0 0 3px var(--accent-glow);
|
||||
}
|
||||
|
||||
.filter-btn-row {
|
||||
display: flex;
|
||||
gap: 0.4rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.filter-btn-action {
|
||||
flex: 1;
|
||||
padding: 0.3rem 0.5rem;
|
||||
background: var(--bg-input);
|
||||
border: 1px solid var(--bg-card-border);
|
||||
border-radius: 6px;
|
||||
color: var(--text-secondary);
|
||||
font-family: inherit;
|
||||
font-size: 0.75rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.filter-btn-action:hover {
|
||||
background: var(--bg-hover);
|
||||
color: var(--text-primary);
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
.filter-list {
|
||||
max-height: 180px;
|
||||
overflow-y: auto;
|
||||
margin-bottom: 0.5rem;
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--bg-card-border) transparent;
|
||||
}
|
||||
|
||||
.filter-list::-webkit-scrollbar {
|
||||
width: 4px;
|
||||
}
|
||||
|
||||
.filter-list::-webkit-scrollbar-thumb {
|
||||
background: var(--bg-card-border);
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.filter-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
padding: 0.35rem 0.3rem;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
font-size: 0.85rem;
|
||||
color: var(--text-primary);
|
||||
transition: background 0.15s ease;
|
||||
}
|
||||
|
||||
.filter-item:hover {
|
||||
background: var(--bg-hover);
|
||||
}
|
||||
|
||||
.filter-item input[type="checkbox"] {
|
||||
cursor: pointer;
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
accent-color: var(--accent);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.filter-btn-apply {
|
||||
width: 100%;
|
||||
padding: 0.5rem;
|
||||
background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
color: #fff;
|
||||
font-family: inherit;
|
||||
font-size: 0.82rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
||||
box-shadow: 0 3px 10px var(--accent-glow);
|
||||
}
|
||||
|
||||
.filter-btn-apply:hover {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 5px 15px var(--accent-glow);
|
||||
}
|
||||
|
||||
tbody td {
|
||||
padding: 0.85rem 1rem;
|
||||
font-size: 0.95rem;
|
||||
@@ -610,12 +834,14 @@ tbody tr:hover {
|
||||
display: inline-block;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.btn-checkbox input {
|
||||
position: absolute;
|
||||
opacity: 0;
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
.checkbox-btn {
|
||||
display: inline-block;
|
||||
padding: 0.5rem 1rem;
|
||||
@@ -626,8 +852,10 @@ tbody tr:hover {
|
||||
transition: all var(--transition);
|
||||
user-select: none;
|
||||
}
|
||||
.btn-checkbox input:checked + .checkbox-btn {
|
||||
background: var(--success, #10b981); /* используем success или зелёный */
|
||||
|
||||
.btn-checkbox input:checked+.checkbox-btn {
|
||||
background: var(--success, #10b981);
|
||||
/* используем success или зелёный */
|
||||
border-color: var(--success, #10b981);
|
||||
color: white;
|
||||
}
|
||||
0
frontend/admin/css/layout.css
Normal file → Executable file
0
frontend/admin/css/layout.css
Normal file → Executable file
0
frontend/admin/css/main.css
Normal file → Executable file
0
frontend/admin/css/main.css
Normal file → Executable file
Reference in New Issue
Block a user