humainflow-web/src/app/shared/title-toolbar/title-toolbar.css

205 lines
3.6 KiB
CSS

.title-toolbar-shell {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 8px 16px;
background: #ffffff;
border-bottom: 1px solid #e5e7eb;
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.title-toolbar-main {
display: flex;
align-items: center;
gap: 8px;
flex: 1;
min-width: 0;
}
.title-toolbar-title-wrap {
flex: 1;
min-width: 0;
}
.title-toolbar-title-row {
display: flex;
align-items: center;
gap: 2px;
min-width: 0;
width: fit-content;
max-width: min(100%, 32rem);
}
.title-toolbar-field {
width: min(100%, 32rem);
margin-bottom: -1.25em;
}
.title-toolbar-title-display {
flex: 0 1 auto;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 1.1rem;
font-weight: 700;
color: #0f172a;
}
.title-toolbar-edit-button {
display: inline-flex !important;
align-items: center;
justify-content: center;
flex-shrink: 0;
width: 30px !important;
height: 30px !important;
padding: 0 !important;
margin-left: 5px;
border-radius: 8px !important;
color: #1d4ed8 !important;
background: rgba(219, 234, 254, 0.95) !important;
border: 1px solid rgba(96, 165, 250, 0.55);
}
.title-toolbar-edit-button:hover {
background: rgba(191, 219, 254, 0.98) !important;
}
.title-toolbar-edit-button .mat-icon {
width: 18px;
height: 18px;
font-size: 18px;
}
.title-toolbar-pill {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 6px 12px;
border: 1px solid;
border-radius: 999px;
font-size: 12px;
font-weight: 500;
}
.title-toolbar-pill-warning {
border-color: #eab308;
color: #ca8a04;
}
.title-toolbar-pill-info {
border-color: #3b82f6;
color: #2563eb;
}
.title-toolbar-execute {
border-color: #10b981 !important;
background: #ecfdf5 !important;
color: #047857 !important;
border-radius: 999px !important;
}
.title-toolbar-actions {
display: flex;
align-items: center;
gap: 8px;
flex-shrink: 0;
}
.title-toolbar-flags {
display: flex;
align-items: center;
gap: 14px;
padding: 6px 12px;
border: 1px solid #e2e8f0;
border-radius: 16px;
background: #f8fbff;
}
.title-toolbar-flags .mat-mdc-slide-toggle {
margin-right: 2px;
}
.title-toolbar-spinner {
width: 12px;
height: 12px;
border-radius: 999px;
border: 2px solid rgba(5, 150, 105, 0.2);
border-top-color: #059669;
animation: title-toolbar-spin 0.75s linear infinite;
}
.title-toolbar-spinner--blue {
border-color: rgba(37, 99, 235, 0.2);
border-top-color: #2563eb;
}
@keyframes title-toolbar-spin {
to {
transform: rotate(360deg);
}
}
.save-snackbar {
position: fixed;
right: 24px;
bottom: 24px;
z-index: 2000;
padding: 10px 14px;
border-radius: 8px;
background: #15803d;
color: #ffffff;
font-size: 13px;
font-weight: 500;
box-shadow: 0 10px 20px rgba(15, 23, 42, 0.22);
}
.save-snackbar-error {
background: #b91c1c;
}
.title-toolbar-meta {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 4px 16px;
padding: 8px 16px;
background: #ffffff;
border-bottom: 1px solid #e5e7eb;
font-size: 12px;
color: #475569;
}
.title-toolbar-meta-label {
color: #94a3b8;
}
.title-toolbar-description {
max-width: 420px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
@media (max-width: 1180px) {
.title-toolbar-shell {
flex-direction: column;
align-items: stretch;
}
.title-toolbar-main,
.title-toolbar-actions {
width: 100%;
}
.title-toolbar-actions {
justify-content: space-between;
flex-wrap: wrap;
}
.title-toolbar-flags {
flex-wrap: wrap;
}
}