forge/arma/ui/apps/portal/components/modalLayer.css
2026-03-07 13:20:43 -06:00

132 lines
2.5 KiB
CSS

.org-modal-backdrop {
position: fixed;
inset: 0;
background: rgb(15 23 42 / 0.38);
display: flex;
align-items: center;
justify-content: center;
padding: 1.5rem;
z-index: 20;
}
.org-modal-card {
width: min(100%, 30rem);
margin-bottom: 0;
text-align: left;
}
.org-modal-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 1rem;
margin-bottom: 1rem;
}
.org-modal-close {
width: 2.25rem;
height: 2.25rem;
padding: 0;
background: var(--bg-surface);
color: var(--text-main);
border: 1px solid var(--border);
box-shadow: none;
transform: none;
&:hover {
background: var(--bg-surface-hover);
color: var(--text-main);
box-shadow: none;
transform: none;
}
}
.org-modal-form {
display: flex;
flex-direction: column;
gap: 1rem;
label {
display: block;
margin-bottom: 0.5rem;
color: var(--text-muted);
font-weight: 500;
font-size: 0.9rem;
}
input,
select {
width: 100%;
padding: 0.75rem;
border-radius: var(--radius);
border: 1px solid var(--border);
background: var(--bg-app);
color: var(--text-main);
font-family: inherit;
font-size: 1rem;
box-sizing: border-box;
transition:
border-color 0.2s,
box-shadow 0.2s;
&:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 2px rgb(71 85 105 / 0.12);
}
&:disabled {
background: #f1f5f9;
color: var(--text-muted);
cursor: not-allowed;
}
}
}
.org-modal-actions {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
gap: 0.75rem;
margin-top: 0.5rem;
button + button {
margin-left: 0;
}
}
.org-danger-confirm {
display: flex;
flex-direction: column;
justify-content: space-between;
gap: 1rem;
padding: 1rem;
border: 1px solid #fecaca;
border-radius: var(--radius);
background: #fff1f2;
align-items: flex-start;
p {
margin: 0;
color: var(--text-main);
}
}
.org-danger-actions {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
button + button {
margin-left: 0;
}
}
@media (max-width: 960px) {
.org-modal-head,
.org-danger-confirm {
flex-direction: column;
align-items: flex-start;
}
}