дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-29 05:52:23 +02:00
Notification balloons reserve space for Dismiss in the title row. The body and action rows extend underneath it, giving paths and action labels more room to wrap in narrow windows. The cards use the standard UI text size and spacing.
242 рядки
4.7 KiB
CSS
242 рядки
4.7 KiB
CSS
.progress {
|
|
position: relative;
|
|
height: 4px;
|
|
min-width: 40px;
|
|
overflow: hidden;
|
|
border-radius: 2px;
|
|
background: color-mix(in srgb, var(--fg) 12%, transparent);
|
|
}
|
|
.bar {
|
|
position: absolute;
|
|
inset: 0;
|
|
border-radius: inherit;
|
|
background: var(--bg-button-primary);
|
|
transform-origin: left center;
|
|
transition: transform var(--dur) var(--ease);
|
|
}
|
|
.indeterminate .bar {
|
|
width: 40%;
|
|
transform: none;
|
|
animation: slide 1.1s var(--ease) infinite;
|
|
}
|
|
@keyframes slide {
|
|
from {
|
|
left: -40%;
|
|
}
|
|
to {
|
|
left: 100%;
|
|
}
|
|
}
|
|
|
|
.badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: 16px;
|
|
height: 14px;
|
|
padding: 0 4px;
|
|
border-radius: 7px;
|
|
font-family: var(--font-mono);
|
|
font-size: var(--fs-tiny);
|
|
line-height: 1;
|
|
background: var(--bg-active);
|
|
color: var(--fg-emphasis);
|
|
}
|
|
.dot {
|
|
display: inline-block;
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
background: var(--fg-muted);
|
|
}
|
|
.tone-accent {
|
|
background: var(--accent);
|
|
color: var(--fg-on-accent);
|
|
--icon-color: currentColor;
|
|
}
|
|
.tone-danger {
|
|
background: var(--danger);
|
|
color: var(--fg-on-accent);
|
|
--icon-color: currentColor;
|
|
}
|
|
.tone-warning {
|
|
background: var(--warning);
|
|
color: var(--fg-on-accent);
|
|
--icon-color: currentColor;
|
|
}
|
|
.tone-success {
|
|
background: var(--success);
|
|
color: var(--fg-on-accent);
|
|
--icon-color: currentColor;
|
|
}
|
|
|
|
.empty {
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
padding: 24px;
|
|
text-align: center;
|
|
color: var(--fg-subtle);
|
|
/* Centred, but scrolls instead of spilling over the header when the panel is short. */
|
|
overflow: auto;
|
|
}
|
|
.empty::before,
|
|
.empty::after {
|
|
content: "";
|
|
flex: 1 0 0;
|
|
}
|
|
.emptyTitle {
|
|
color: var(--fg-muted);
|
|
}
|
|
.emptyBody {
|
|
max-width: 320px;
|
|
color: var(--fg-muted);
|
|
}
|
|
.emptyActions {
|
|
display: flex;
|
|
gap: var(--space-2);
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.toast {
|
|
display: grid;
|
|
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
align-items: start;
|
|
column-gap: var(--space-2);
|
|
row-gap: var(--space-1);
|
|
width: 360px;
|
|
max-width: 100%;
|
|
/* Never grow past the window: the close button must stay reachable. */
|
|
max-height: calc(100vh - 48px);
|
|
padding: var(--space-2) var(--space-3);
|
|
background: var(--bg-popup);
|
|
border: 1px solid var(--border-popup);
|
|
border-radius: var(--radius-popup-large, 10px);
|
|
box-shadow: var(--shadow-balloon);
|
|
color: var(--fg);
|
|
font-size: var(--fs-ui);
|
|
}
|
|
.toastIcon {
|
|
grid-area: 1 / 1;
|
|
margin-top: var(--space-0-5);
|
|
}
|
|
.level-info {
|
|
color: var(--info);
|
|
}
|
|
.level-warning {
|
|
color: var(--warning);
|
|
}
|
|
.level-error {
|
|
color: var(--danger);
|
|
}
|
|
.level-success {
|
|
color: var(--success);
|
|
}
|
|
.toastHead {
|
|
grid-area: 1 / 2;
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: var(--space-2);
|
|
min-height: 20px;
|
|
}
|
|
.toastTitle {
|
|
flex: 1;
|
|
min-width: 0;
|
|
color: var(--fg-strong);
|
|
font-weight: 600;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.toastMeta {
|
|
flex: none;
|
|
color: var(--fg-subtle);
|
|
font-size: var(--fs-small);
|
|
}
|
|
.toastBody,
|
|
.toastActions {
|
|
grid-column: 2 / -1;
|
|
}
|
|
.toastBody {
|
|
color: var(--fg-secondary);
|
|
overflow-wrap: anywhere;
|
|
/* Bodies list one item per line (compile errors, failed paths). */
|
|
white-space: pre-line;
|
|
/* A huge message (stack trace, build output) scrolls inside the balloon instead
|
|
of growing past the window and pushing the close button off-screen. */
|
|
max-height: 40vh;
|
|
overflow: auto;
|
|
-webkit-user-select: text;
|
|
user-select: text;
|
|
}
|
|
.toastActions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--space-1) var(--space-3);
|
|
margin-top: var(--space-1);
|
|
}
|
|
.link {
|
|
color: var(--link);
|
|
cursor: pointer;
|
|
min-width: 0;
|
|
overflow-wrap: anywhere;
|
|
text-align: start;
|
|
}
|
|
.link:hover {
|
|
color: var(--link-hover);
|
|
}
|
|
.toastClose {
|
|
grid-area: 1 / 3;
|
|
}
|
|
|
|
.toastHistory {
|
|
container: toast-history / inline-size;
|
|
width: 100%;
|
|
max-height: none;
|
|
padding: var(--space-2);
|
|
border: 0;
|
|
border-radius: var(--radius-selection);
|
|
background: transparent;
|
|
box-shadow: none;
|
|
}
|
|
.toastHistory:hover,
|
|
.toastHistory:focus-within {
|
|
background: var(--bg-tree-hover);
|
|
}
|
|
.toastHistory .toastMeta {
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
.toastHistory .toastBody {
|
|
max-height: none;
|
|
overflow: visible;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
@container toast-history (max-width: 220px) {
|
|
.toastHistory .toastHead {
|
|
display: contents;
|
|
}
|
|
.toastHistory .toastTitle {
|
|
grid-area: 1 / 2 / 2 / -1;
|
|
}
|
|
.toastHistory .toastMeta {
|
|
grid-area: 2 / 2;
|
|
place-self: center end;
|
|
}
|
|
.toastHistory .toastClose {
|
|
grid-area: 2 / 3;
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.bar {
|
|
transition: none;
|
|
}
|
|
/* Indeterminate progress: a static, partially filled bar instead of the sweep. */
|
|
.indeterminate .bar {
|
|
animation: none;
|
|
left: 0;
|
|
opacity: 0.6;
|
|
}
|
|
}
|