Only pypi and generic are currently supported. Other types now show "(coming soon)" in both the dropdown and the sources table.
378 lines
5.9 KiB
CSS
378 lines
5.9 KiB
CSS
.admin-cache-page {
|
|
padding: 2rem;
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.admin-cache-page h1 {
|
|
margin-bottom: 2rem;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.admin-cache-page h2 {
|
|
margin-bottom: 1rem;
|
|
color: var(--text-primary);
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
/* Success/Error Messages */
|
|
.success-message {
|
|
padding: 0.75rem 1rem;
|
|
background-color: #d4edda;
|
|
border: 1px solid #c3e6cb;
|
|
border-radius: 4px;
|
|
color: #155724;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.error-message {
|
|
padding: 0.75rem 1rem;
|
|
background-color: #f8d7da;
|
|
border: 1px solid #f5c6cb;
|
|
border-radius: 4px;
|
|
color: #721c24;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
/* Sources Section */
|
|
.sources-section {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.section-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.section-header h2 {
|
|
margin: 0;
|
|
}
|
|
|
|
/* Sources Table */
|
|
.sources-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
background: var(--bg-primary);
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.sources-table th,
|
|
.sources-table td {
|
|
padding: 0.75rem 1rem;
|
|
text-align: center;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.sources-table th {
|
|
background: var(--bg-tertiary);
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
font-size: 0.85rem;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.sources-table tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.sources-table tr.disabled-row {
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.source-name {
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Name column should be left-aligned */
|
|
.sources-table td:first-child {
|
|
text-align: left;
|
|
}
|
|
|
|
.url-cell {
|
|
font-family: monospace;
|
|
font-size: 0.9rem;
|
|
max-width: 300px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
text-align: left;
|
|
}
|
|
|
|
/* Badges */
|
|
.env-badge,
|
|
.status-badge {
|
|
display: inline-block;
|
|
padding: 0.2rem 0.5rem;
|
|
border-radius: 4px;
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
margin-left: 0.5rem;
|
|
}
|
|
|
|
.env-badge {
|
|
background-color: #fff3e0;
|
|
color: #e65100;
|
|
}
|
|
|
|
.status-badge.enabled {
|
|
background-color: #e8f5e9;
|
|
color: #2e7d32;
|
|
}
|
|
|
|
.status-badge.disabled {
|
|
background-color: #ffebee;
|
|
color: #c62828;
|
|
}
|
|
|
|
.coming-soon-badge {
|
|
color: #9e9e9e;
|
|
font-style: italic;
|
|
font-size: 0.85em;
|
|
}
|
|
|
|
/* Actions */
|
|
.actions-cell {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.actions-cell .btn {
|
|
margin-right: 0.5rem;
|
|
}
|
|
|
|
.actions-cell .btn:last-child {
|
|
margin-right: 0;
|
|
}
|
|
|
|
.test-cell {
|
|
text-align: center;
|
|
width: 2rem;
|
|
}
|
|
|
|
.test-dot {
|
|
font-size: 1rem;
|
|
cursor: default;
|
|
}
|
|
|
|
.test-dot.success {
|
|
color: #2e7d32;
|
|
}
|
|
|
|
.test-dot.failure {
|
|
color: #c62828;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.test-dot.failure:hover {
|
|
color: #b71c1c;
|
|
}
|
|
|
|
.test-dot.testing {
|
|
color: #1976d2;
|
|
animation: pulse 1s infinite;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.4; }
|
|
}
|
|
|
|
/* Error Modal */
|
|
.error-modal-content {
|
|
background: var(--bg-primary);
|
|
border-radius: 8px;
|
|
padding: 2rem;
|
|
width: 100%;
|
|
max-width: 500px;
|
|
}
|
|
|
|
.error-modal-content h3 {
|
|
margin-top: 0;
|
|
color: #c62828;
|
|
}
|
|
|
|
.error-modal-content .error-details {
|
|
background: var(--bg-tertiary);
|
|
padding: 1rem;
|
|
border-radius: 4px;
|
|
font-family: monospace;
|
|
font-size: 0.9rem;
|
|
word-break: break-word;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.error-modal-content .modal-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
/* Buttons */
|
|
.btn {
|
|
padding: 0.5rem 1rem;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 4px;
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
cursor: pointer;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.btn:hover {
|
|
background: var(--bg-tertiary);
|
|
}
|
|
|
|
.btn:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.btn-primary {
|
|
background-color: var(--color-primary);
|
|
border-color: var(--color-primary);
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background-color: var(--color-primary-hover);
|
|
}
|
|
|
|
.btn-danger {
|
|
background-color: #dc3545;
|
|
border-color: #dc3545;
|
|
color: white;
|
|
}
|
|
|
|
.btn-danger:hover {
|
|
background-color: #c82333;
|
|
}
|
|
|
|
.btn-sm {
|
|
padding: 0.25rem 0.75rem;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.btn-secondary {
|
|
background-color: var(--bg-tertiary);
|
|
border-color: var(--border-color);
|
|
color: var(--text-primary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background-color: var(--bg-secondary);
|
|
border-color: var(--text-secondary);
|
|
}
|
|
|
|
.empty-message {
|
|
color: var(--text-secondary);
|
|
font-style: italic;
|
|
padding: 2rem;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Modal */
|
|
.modal-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.modal-content {
|
|
background: var(--bg-primary);
|
|
border-radius: 8px;
|
|
padding: 2rem;
|
|
width: 100%;
|
|
max-width: 600px;
|
|
max-height: 90vh;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.modal-content h2 {
|
|
margin-top: 0;
|
|
}
|
|
|
|
/* Form */
|
|
.form-group {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
margin-bottom: 0.5rem;
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.form-group input,
|
|
.form-group select {
|
|
width: 100%;
|
|
padding: 0.5rem;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 4px;
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.form-group input:focus,
|
|
.form-group select:focus {
|
|
outline: none;
|
|
border-color: var(--color-primary);
|
|
}
|
|
|
|
.form-row {
|
|
display: flex;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.form-row .form-group {
|
|
flex: 1;
|
|
}
|
|
|
|
.checkbox-group label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.checkbox-group input[type="checkbox"] {
|
|
width: auto;
|
|
}
|
|
|
|
.help-text {
|
|
display: block;
|
|
font-size: 0.8rem;
|
|
color: var(--text-secondary);
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
.form-actions {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-top: 1.5rem;
|
|
padding-top: 1rem;
|
|
border-top: 1px solid var(--border-color);
|
|
}
|
|
|
|
.form-actions-right {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|