477 lines
10 KiB
CSS
477 lines
10 KiB
CSS
.project-settings-page {
|
|
max-width: 900px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.project-settings-header {
|
|
margin-bottom: 32px;
|
|
}
|
|
|
|
.project-settings-header h1 {
|
|
font-size: 1.75rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin-bottom: 8px;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
.project-settings-subtitle {
|
|
color: var(--text-tertiary);
|
|
font-size: 0.9375rem;
|
|
}
|
|
|
|
.project-settings-loading {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 12px;
|
|
padding: 64px 24px;
|
|
color: var(--text-tertiary);
|
|
font-size: 0.9375rem;
|
|
}
|
|
|
|
.project-settings-spinner {
|
|
width: 20px;
|
|
height: 20px;
|
|
border: 2px solid var(--border-secondary);
|
|
border-top-color: var(--accent-primary);
|
|
border-radius: 50%;
|
|
animation: project-settings-spin 0.6s linear infinite;
|
|
}
|
|
|
|
@keyframes project-settings-spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
.project-settings-error {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
background: var(--error-bg);
|
|
border: 1px solid rgba(239, 68, 68, 0.2);
|
|
color: var(--error);
|
|
padding: 12px 16px;
|
|
border-radius: var(--radius-md);
|
|
margin-bottom: 24px;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.project-settings-success {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
background: var(--success-bg);
|
|
border: 1px solid rgba(34, 197, 94, 0.2);
|
|
color: var(--success);
|
|
padding: 12px 16px;
|
|
border-radius: var(--radius-md);
|
|
margin-bottom: 24px;
|
|
font-size: 0.875rem;
|
|
animation: project-settings-fade-in 0.2s ease;
|
|
}
|
|
|
|
@keyframes project-settings-fade-in {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-8px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.project-settings-section {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-primary);
|
|
border-radius: var(--radius-lg);
|
|
padding: 24px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.project-settings-section h2 {
|
|
font-size: 1.125rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin-bottom: 20px;
|
|
padding-bottom: 16px;
|
|
border-bottom: 1px solid var(--border-primary);
|
|
}
|
|
|
|
.project-settings-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.project-settings-form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.project-settings-form-group label {
|
|
font-size: 0.8125rem;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.project-settings-form-group textarea,
|
|
.project-settings-form-group input[type="text"] {
|
|
padding: 12px 14px;
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border-primary);
|
|
border-radius: var(--radius-md);
|
|
font-size: 0.875rem;
|
|
color: var(--text-primary);
|
|
transition: all var(--transition-fast);
|
|
font-family: inherit;
|
|
resize: vertical;
|
|
}
|
|
|
|
.project-settings-form-group textarea {
|
|
min-height: 100px;
|
|
}
|
|
|
|
.project-settings-form-group textarea::placeholder,
|
|
.project-settings-form-group input::placeholder {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.project-settings-form-group textarea:hover:not(:disabled),
|
|
.project-settings-form-group input:hover:not(:disabled) {
|
|
border-color: var(--border-secondary);
|
|
background: var(--bg-elevated);
|
|
}
|
|
|
|
.project-settings-form-group textarea:focus,
|
|
.project-settings-form-group input:focus {
|
|
outline: none;
|
|
border-color: var(--accent-primary);
|
|
box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
|
|
background: var(--bg-elevated);
|
|
}
|
|
|
|
.project-settings-form-group textarea:disabled,
|
|
.project-settings-form-group input:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.project-settings-checkbox-group {
|
|
flex-direction: row;
|
|
align-items: center;
|
|
}
|
|
|
|
.project-settings-checkbox-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
cursor: pointer;
|
|
font-size: 0.875rem;
|
|
font-weight: 400;
|
|
color: var(--text-secondary);
|
|
user-select: none;
|
|
}
|
|
|
|
.project-settings-checkbox-label input[type="checkbox"] {
|
|
position: absolute;
|
|
opacity: 0;
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
|
|
.project-settings-checkbox-custom {
|
|
width: 18px;
|
|
height: 18px;
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border-secondary);
|
|
border-radius: var(--radius-sm);
|
|
transition: all var(--transition-fast);
|
|
position: relative;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.project-settings-checkbox-label input[type="checkbox"]:checked + .project-settings-checkbox-custom {
|
|
background: var(--accent-primary);
|
|
border-color: var(--accent-primary);
|
|
}
|
|
|
|
.project-settings-checkbox-label input[type="checkbox"]:checked + .project-settings-checkbox-custom::after {
|
|
content: '';
|
|
position: absolute;
|
|
left: 5px;
|
|
top: 2px;
|
|
width: 5px;
|
|
height: 9px;
|
|
border: solid white;
|
|
border-width: 0 2px 2px 0;
|
|
transform: rotate(45deg);
|
|
}
|
|
|
|
.project-settings-checkbox-label input[type="checkbox"]:focus + .project-settings-checkbox-custom {
|
|
box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
|
|
}
|
|
|
|
.project-settings-checkbox-label:hover .project-settings-checkbox-custom {
|
|
border-color: var(--accent-primary);
|
|
}
|
|
|
|
.project-settings-form-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 12px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.project-settings-save-button {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
padding: 10px 18px;
|
|
background: var(--accent-gradient);
|
|
border: none;
|
|
border-radius: var(--radius-md);
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
color: white;
|
|
cursor: pointer;
|
|
transition: all var(--transition-fast);
|
|
min-width: 120px;
|
|
}
|
|
|
|
.project-settings-save-button:hover:not(:disabled) {
|
|
transform: translateY(-1px);
|
|
box-shadow: var(--shadow-sm), 0 0 20px rgba(16, 185, 129, 0.2);
|
|
}
|
|
|
|
.project-settings-save-button:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
transform: none;
|
|
}
|
|
|
|
.project-settings-button-spinner {
|
|
width: 14px;
|
|
height: 14px;
|
|
border: 2px solid rgba(255, 255, 255, 0.3);
|
|
border-top-color: white;
|
|
border-radius: 50%;
|
|
animation: project-settings-spin 0.6s linear infinite;
|
|
}
|
|
|
|
/* Danger Zone */
|
|
.project-settings-danger-zone {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid rgba(239, 68, 68, 0.3);
|
|
border-radius: var(--radius-lg);
|
|
padding: 24px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.project-settings-danger-zone h2 {
|
|
font-size: 1.125rem;
|
|
font-weight: 600;
|
|
color: var(--error);
|
|
margin-bottom: 20px;
|
|
padding-bottom: 16px;
|
|
border-bottom: 1px solid rgba(239, 68, 68, 0.2);
|
|
}
|
|
|
|
.project-settings-danger-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
gap: 24px;
|
|
}
|
|
|
|
.project-settings-danger-info h3 {
|
|
font-size: 0.9375rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.project-settings-danger-info p {
|
|
color: var(--text-tertiary);
|
|
font-size: 0.8125rem;
|
|
max-width: 400px;
|
|
}
|
|
|
|
.project-settings-delete-button {
|
|
padding: 10px 18px;
|
|
background: transparent;
|
|
border: 1px solid rgba(239, 68, 68, 0.3);
|
|
border-radius: var(--radius-md);
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
color: var(--error);
|
|
cursor: pointer;
|
|
transition: all var(--transition-fast);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.project-settings-delete-button:hover:not(:disabled) {
|
|
background: var(--error-bg);
|
|
border-color: rgba(239, 68, 68, 0.5);
|
|
}
|
|
|
|
.project-settings-delete-button:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* Delete Confirmation */
|
|
.project-settings-delete-confirm {
|
|
margin-top: 20px;
|
|
padding-top: 20px;
|
|
border-top: 1px solid rgba(239, 68, 68, 0.2);
|
|
animation: project-settings-fade-in 0.2s ease;
|
|
}
|
|
|
|
.project-settings-delete-confirm p {
|
|
color: var(--text-secondary);
|
|
font-size: 0.875rem;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.project-settings-delete-confirm strong {
|
|
color: var(--text-primary);
|
|
font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Monaco, monospace;
|
|
background: var(--bg-tertiary);
|
|
padding: 2px 6px;
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.project-settings-delete-confirm-input {
|
|
width: 100%;
|
|
padding: 12px 14px;
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border-primary);
|
|
border-radius: var(--radius-md);
|
|
font-size: 0.875rem;
|
|
color: var(--text-primary);
|
|
transition: all var(--transition-fast);
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.project-settings-delete-confirm-input:focus {
|
|
outline: none;
|
|
border-color: var(--error);
|
|
box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
|
|
}
|
|
|
|
.project-settings-delete-confirm-input::placeholder {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.project-settings-delete-confirm-actions {
|
|
display: flex;
|
|
gap: 12px;
|
|
}
|
|
|
|
.project-settings-confirm-delete-button {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
padding: 10px 18px;
|
|
background: var(--error);
|
|
border: none;
|
|
border-radius: var(--radius-md);
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
color: white;
|
|
cursor: pointer;
|
|
transition: all var(--transition-fast);
|
|
min-width: 120px;
|
|
}
|
|
|
|
.project-settings-confirm-delete-button:hover:not(:disabled) {
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.project-settings-confirm-delete-button:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.project-settings-cancel-button {
|
|
padding: 10px 18px;
|
|
background: transparent;
|
|
border: 1px solid var(--border-primary);
|
|
border-radius: var(--radius-md);
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.project-settings-cancel-button:hover:not(:disabled) {
|
|
background: var(--bg-hover);
|
|
border-color: var(--border-secondary);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.project-settings-cancel-button:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.project-settings-delete-spinner {
|
|
width: 14px;
|
|
height: 14px;
|
|
border: 2px solid rgba(255, 255, 255, 0.3);
|
|
border-top-color: white;
|
|
border-radius: 50%;
|
|
animation: project-settings-spin 0.6s linear infinite;
|
|
}
|
|
|
|
/* Access denied */
|
|
.project-settings-access-denied {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 80px 24px;
|
|
text-align: center;
|
|
}
|
|
|
|
.project-settings-access-denied h2 {
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.project-settings-access-denied p {
|
|
color: var(--text-tertiary);
|
|
font-size: 0.9375rem;
|
|
max-width: 400px;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.project-settings-danger-item {
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.project-settings-delete-button {
|
|
align-self: flex-start;
|
|
}
|
|
|
|
.project-settings-delete-confirm-actions {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.project-settings-confirm-delete-button,
|
|
.project-settings-cancel-button {
|
|
width: 100%;
|
|
}
|
|
}
|