Files
blood-brain-barrier/frontend/src/App.css
Mikhail Kilin 1f25b9c104
All checks were successful
ci/woodpecker/push/build Pipeline was successful
Add confirmation modal for project deletion
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 15:44:38 +03:00

242 lines
3.6 KiB
CSS

.app {
max-width: 800px;
margin: 0 auto;
padding: 2rem;
font-family: system-ui, -apple-system, sans-serif;
}
h1 {
margin-bottom: 1.5rem;
}
h2 {
margin-bottom: 1rem;
}
.create-section {
display: flex;
gap: 0.5rem;
margin-bottom: 2rem;
}
.create-section input {
flex: 1;
padding: 0.5rem 0.75rem;
font-size: 1rem;
border: 1px solid #ccc;
border-radius: 4px;
}
.create-section button {
padding: 0.5rem 1.5rem;
font-size: 1rem;
cursor: pointer;
background: #333;
color: white;
border: none;
border-radius: 4px;
}
.create-section button:hover {
background: #555;
}
.projects-list {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.project-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.75rem 1rem;
border: 1px solid #ddd;
border-radius: 4px;
cursor: pointer;
}
.project-item:hover {
background: #f5f5f5;
}
.project-name {
font-weight: 500;
}
.project-date {
color: #888;
font-size: 0.85rem;
}
.project-delete {
background: #c0392b;
color: white;
border: none;
border-radius: 4px;
padding: 0.2rem 0.5rem;
font-size: 0.8rem;
cursor: pointer;
margin-left: 0.5rem;
flex-shrink: 0;
}
.project-delete:hover {
background: #e74c3c;
}
.back-btn {
padding: 0.4rem 1rem;
font-size: 0.9rem;
cursor: pointer;
border: 1px solid #ccc;
border-radius: 4px;
background: white;
margin-bottom: 1rem;
}
.back-btn:hover {
background: #f0f0f0;
}
.field-group {
margin-bottom: 1rem;
}
.field-group label {
display: block;
margin-bottom: 0.25rem;
font-weight: 500;
font-size: 0.9rem;
}
.field-group input[type="text"] {
width: 100%;
padding: 0.5rem 0.75rem;
font-size: 1rem;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
.field-group textarea {
width: 100%;
padding: 0.75rem;
font-size: 1rem;
border: 1px solid #ccc;
border-radius: 4px;
resize: vertical;
font-family: inherit;
box-sizing: border-box;
}
.field-group input[type="file"] {
font-size: 0.9rem;
}
.file-info {
display: block;
margin-top: 0.25rem;
color: #666;
font-size: 0.85rem;
}
.actions {
display: flex;
gap: 0.5rem;
margin-top: 1.5rem;
flex-wrap: wrap;
}
.actions button {
padding: 0.5rem 1.25rem;
font-size: 1rem;
cursor: pointer;
border: 1px solid #ccc;
border-radius: 4px;
background: #333;
color: white;
}
.actions button:hover {
background: #555;
}
.actions button:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.actions button.danger {
background: #c0392b;
}
.actions button.danger:hover {
background: #e74c3c;
}
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
display: flex;
justify-content: center;
align-items: center;
z-index: 100;
}
.modal {
background: white;
border-radius: 8px;
padding: 1.5rem 2rem;
min-width: 300px;
text-align: center;
}
.modal p {
font-size: 1.1rem;
margin-bottom: 1.5rem;
}
.modal-actions {
display: flex;
gap: 0.75rem;
justify-content: center;
}
.modal-actions button {
padding: 0.5rem 1.25rem;
font-size: 1rem;
cursor: pointer;
border: 1px solid #ccc;
border-radius: 4px;
background: #333;
color: white;
}
.modal-actions button:hover {
background: #555;
}
.modal-actions button.danger {
background: #c0392b;
}
.modal-actions button.danger:hover {
background: #e74c3c;
}
.vpn-block {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
font-size: 2rem;
font-family: system-ui, -apple-system, sans-serif;
color: #333;
}