migrate/resources/css/categories.css

335 lines
5.6 KiB
CSS

/* Categories page specific styles */
/* Tree View */
.tree-container {
background: white;
border: 1px solid #ddd;
border-radius: 6px;
padding: 20px;
max-height: 600px;
overflow-y: auto;
}
.tree-node {
margin: 5px 0;
}
.tree-node-item {
display: flex;
align-items: center;
padding: 8px 12px;
border-radius: 4px;
cursor: pointer;
user-select: none;
transition: background 0.2s;
}
.tree-node-item:hover {
background: #f0f0f0;
}
.tree-toggle {
width: 20px;
height: 20px;
display: inline-flex;
align-items: center;
justify-content: center;
margin-right: 8px;
font-size: 12px;
color: #666;
cursor: pointer;
}
.tree-toggle.expanded::before {
content: '▼';
}
.tree-toggle.collapsed::before {
content: '▶';
}
.tree-toggle.leaf {
width: 20px;
margin-right: 8px;
}
.tree-label {
flex: 1;
display: flex;
align-items: center;
gap: 10px;
}
.tree-label-text {
font-weight: 500;
color: #333;
}
.tree-badge {
padding: 2px 8px;
border-radius: 12px;
font-size: 0.75em;
font-weight: 600;
}
.tree-badge.active {
background: #d4edda;
color: #155724;
}
.tree-badge.inactive {
background: #f8d7da;
color: #721c24;
}
.tree-children {
margin-left: 28px;
border-left: 2px solid #e0e0e0;
padding-left: 12px;
display: none;
}
.tree-children.expanded {
display: block;
}
.tree-loading {
text-align: center;
padding: 40px;
color: #666;
}
.tree-error {
background: #f8d7da;
color: #721c24;
padding: 15px;
border-radius: 6px;
margin: 10px 0;
}
.tree-migrate-btn {
background: #007bff;
color: white;
border: none;
border-radius: 4px;
padding: 4px 8px;
font-size: 0.75em;
cursor: pointer;
margin-left: 8px;
transition: background 0.2s;
}
.tree-migrate-btn:hover {
background: #0056b3;
}
.tree-migrate-btn:disabled {
background: #ccc;
cursor: not-allowed;
}
.tree-delete-btn {
background: #dc3545;
color: white;
border: none;
border-radius: 4px;
padding: 4px 8px;
font-size: 0.75em;
cursor: pointer;
margin-left: 8px;
transition: background 0.2s;
}
.tree-delete-btn:hover {
background: #c82333;
}
.tree-delete-btn:disabled {
background: #ccc;
cursor: not-allowed;
}
.tree-rename-btn {
background: #28a745;
color: white;
border: none;
border-radius: 4px;
padding: 4px 8px;
font-size: 0.75em;
cursor: pointer;
margin-left: 8px;
transition: background 0.2s;
}
.tree-rename-btn:hover {
background: #218838;
}
.tree-rename-input {
padding: 4px 8px;
border: 2px solid #28a745;
border-radius: 4px;
font-size: 0.9em;
width: 200px;
margin-left: 8px;
}
.tree-rename-input:focus {
outline: none;
border-color: #218838;
}
.tree-rename-actions {
display: inline-flex;
gap: 5px;
margin-left: 8px;
}
.tree-rename-save-btn, .tree-rename-cancel-btn {
padding: 4px 8px;
border: none;
border-radius: 4px;
font-size: 0.75em;
cursor: pointer;
transition: background 0.2s;
}
.tree-rename-save-btn {
background: #28a745;
color: white;
}
.tree-rename-save-btn:hover {
background: #218838;
}
.tree-rename-cancel-btn {
background: #6c757d;
color: white;
}
.tree-rename-cancel-btn:hover {
background: #5a6268;
}
/* Delete Confirmation Popup */
.delete-confirm-popup {
position: fixed;
background: white;
border-radius: 8px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
padding: 20px;
min-width: 320px;
max-width: 400px;
z-index: 10000;
border: 1px solid #e0e0e0;
animation: popupFadeIn 0.2s ease-out;
overflow: visible;
}
.delete-confirm-popup.no-arrow::before,
.delete-confirm-popup.no-arrow::after {
display: none;
}
@keyframes popupFadeIn {
from {
opacity: 0;
transform: translate(-50%, -50%) scale(0.95);
}
to {
opacity: 1;
transform: translate(-50%, -50%) scale(1);
}
}
.delete-confirm-popup::before {
content: '';
position: absolute;
bottom: -8px;
left: 20px;
width: 0;
height: 0;
border-left: 8px solid transparent;
border-right: 8px solid transparent;
border-top: 8px solid white;
}
.delete-confirm-popup::after {
content: '';
position: absolute;
bottom: -9px;
left: 20px;
width: 0;
height: 0;
border-left: 8px solid transparent;
border-right: 8px solid transparent;
border-top: 8px solid #e0e0e0;
}
.delete-confirm-popup h3 {
margin: 0 0 12px 0;
color: #d32f2f;
font-size: 1.1em;
display: flex;
align-items: center;
gap: 8px;
}
.delete-confirm-popup h3::before {
content: '⚠️';
font-size: 1.2em;
}
.delete-confirm-popup p {
margin: 0 0 16px 0;
color: #666;
line-height: 1.5;
font-size: 0.95em;
}
.delete-confirm-popup .popup-buttons {
display: flex;
gap: 10px;
justify-content: flex-end;
}
.delete-confirm-popup .popup-btn {
padding: 8px 16px;
border: none;
border-radius: 4px;
font-size: 0.9em;
cursor: pointer;
transition: all 0.2s;
font-weight: 500;
}
.delete-confirm-popup .popup-btn-cancel {
background: #f5f5f5;
color: #333;
}
.delete-confirm-popup .popup-btn-cancel:hover {
background: #e0e0e0;
}
.delete-confirm-popup .popup-btn-delete {
background: #d32f2f;
color: white;
}
.delete-confirm-popup .popup-btn-delete:hover {
background: #b71c1c;
}
.popup-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.1);
z-index: 9999;
}