diff --git a/internal/gui/assets/app.css b/internal/gui/assets/app.css index 2158d2ebd..0c2b5edb9 100644 --- a/internal/gui/assets/app.css +++ b/internal/gui/assets/app.css @@ -298,7 +298,7 @@ body.panel .seg { display: none; } color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 .5px color-mix(in srgb, var(--accent) 35%, transparent); transition: background .15s, color .15s, transform .12s var(--ease), opacity .15s; - animation: update-in .45s var(--ease); + animation: update-in .3s var(--ease-out); } .update[hidden] { display: none; } .update:hover { background: var(--accent); color: var(--accent-fg); } @@ -479,7 +479,7 @@ body.side-nav :is(#nav button[data-view], #prefs, .side-gw):active:not(.on) { ba /* the selection: one shape, sliding from row to row, setting off as the row is pressed (app.js navSubGlide) and most of the way there in a tenth of a second, so it is under the finger, not catching up with it */ -.nav-hl { position: absolute; z-index: 0; top: 0; left: 8px; right: 0; height: 26px; border-radius: 6px; background: color-mix(in srgb, var(--fg) 6.5%, transparent); pointer-events: none; will-change: transform; transition: transform .3s cubic-bezier(.25, .9, .3, 1), height .3s cubic-bezier(.25, .9, .3, 1); } +.nav-hl { position: absolute; z-index: 0; top: 0; left: 8px; right: 0; height: 26px; border-radius: 6px; background: color-mix(in srgb, var(--fg) 6.5%, transparent); pointer-events: none; will-change: transform; transition: transform .24s var(--ease-out), height .24s var(--ease-out); } .nav-hl.still { transition: none; } @media (prefers-reduced-motion: reduce) { .nav-hl { transition: none; } } /* beside the sidebar a page whose head holds only its tools has them in the @@ -527,7 +527,7 @@ body.side-nav :is(#usageTab, #view-library .lib-tabs, #view-plugins .lib-tabs, # /* the sidebar's button (app.js toggleSideNav), in the title bar where a Mac app has it: the drawing's left pane filled while the sidebar shows */ .side-toggle { flex: none; } -.side-toggle .st-pane { fill: currentColor; opacity: .32; transition: opacity .3s var(--ease); } +.side-toggle .st-pane { fill: currentColor; opacity: .32; transition: opacity .2s var(--ease); } body:not(.side-nav) .side-toggle .st-pane { opacity: 0; } @media (prefers-reduced-motion: reduce) { .side-toggle .st-pane { transition: none; } } /* the two layouts trade places as one motion (app.js navMorph): the sidebar @@ -540,7 +540,7 @@ body:not(.side-nav) .side-toggle .st-pane { opacity: 0; } the spring the lists open on it left at speed, a twelfth of the way gone in the first frame, and a dropped one there (WebView2's, most) read as a jerk, then crept for a quarter second more (wangye1644294 on X) */ -:root { --morph-t: .32s; --morph-ease: cubic-bezier(.42, 0, .58, 1); } +:root { --morph-t: .32s; --morph-ease: cubic-bezier(.77, 0, .175, 1); } .nav-morph #side { view-transition-name: side; } .nav-morph .brand { view-transition-name: brand; } .nav-morph #sideToggle { view-transition-name: side-toggle; } @@ -654,18 +654,18 @@ body.window .row .ic { width: 22px; height: 22px; } .agent-more { display: flex; align-items: center; justify-content: center; gap: 5px; width: 100%; border: 0; border-top: 1px solid var(--line-2); background: none; font: inherit; font-size: 12px; color: var(--muted); padding: 9px; cursor: pointer; transition: color .2s, background-color .2s; } .agent-more:hover { color: var(--fg); background: var(--card-2); } .agent-more span { display: inline-flex; } -.agent-more .chev { transition: transform .5s cubic-bezier(.22, 1, .36, 1); } +.agent-more .chev { transition: transform .26s var(--ease-out); } .agent-more[aria-expanded="true"] .chev { transform: rotate(180deg); } /* the folded agents unroll like a scroll: the height opens on a long ease-out, each row settles in a beat after the one above, and the unrolling edge is soft while it moves. Rolling up is quicker, bottom row first. */ -.agent-fold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .42s cubic-bezier(.4, 0, .2, 1); } -.agent-fold.open { grid-template-rows: 1fr; transition-duration: .62s; transition-timing-function: cubic-bezier(.22, 1, .36, 1); } +.agent-fold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .26s var(--ease-out); } +.agent-fold.open { grid-template-rows: 1fr; transition-duration: .34s; } .agent-fold-inner { min-height: 0; overflow: hidden; } .agent-fold-inner > .row:first-child { border-top: 1px solid var(--line-2); } .agent-fold.moving .agent-fold-inner { -webkit-mask-image: linear-gradient(#000 calc(100% - 32px), transparent); mask-image: linear-gradient(#000 calc(100% - 32px), transparent); } -.agent-fold .row { opacity: 0; transform: translateY(-10px) scale(.985); transform-origin: 50% 0; transition: opacity .22s ease, transform .32s cubic-bezier(.4, 0, .2, 1); transition-delay: calc((var(--n) - 1 - var(--i)) * 22ms); } -.agent-fold.open .row { opacity: 1; transform: none; transition: opacity .42s ease, transform .56s cubic-bezier(.22, 1, .36, 1); transition-delay: calc(70ms + var(--i) * 48ms); } +.agent-fold .row { opacity: 0; transform: translateY(-10px) scale(.985); transform-origin: 50% 0; transition: opacity .14s ease, transform .2s var(--ease-out); transition-delay: calc((var(--n) - 1 - var(--i)) * 22ms); } +.agent-fold.open .row { opacity: 1; transform: none; transition: opacity .24s ease, transform .32s var(--ease-out); transition-delay: calc(30ms + var(--i) * 24ms); } /* the logo is the row's handle: drag it to move the row, and a click opens the row's menu (Move up, Move down, Hide). It stays the logo under the @@ -773,7 +773,7 @@ body.window .row.agent .who .ag-cli { flex: 0 1 auto; overflow: hidden; } .ag-install-head { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; font: inherit; font-size: 12.5px; color: var(--muted); padding: 4px 2px; cursor: pointer; transition: color .2s; } .ag-install-head:hover { color: var(--fg); } .ag-install-head span { display: inline-flex; } -.ag-install-head .chev { transition: transform .3s cubic-bezier(.22, 1, .36, 1); } +.ag-install-head .chev { transition: transform .22s var(--ease-out); } .ag-install-head[aria-expanded="true"] .chev { transform: rotate(180deg); } .ag-install-head:focus-visible { outline: 1.5px solid var(--fg-2); outline-offset: 1px; border-radius: 4px; } .ag-install-note { margin: 4px 2px 8px; font-size: 12px; line-height: 1.5; color: var(--muted); } @@ -818,17 +818,17 @@ body.panel .ag-fix.ag-restart:hover { filter: none; background: color-mix(in srg body.window .agent-fold-cap { padding: 10px 14px 3px; } .agent-fold-cap + .row { border-top: 0; } .agent-fold .agent-fold-cap { opacity: 0; transition: opacity .22s ease; } -.agent-fold.open .agent-fold-cap { opacity: 1; transition: opacity .42s ease; transition-delay: calc(70ms + var(--i) * 48ms); } +.agent-fold.open .agent-fold-cap { opacity: 1; transition: opacity .24s ease; transition-delay: calc(30ms + var(--i) * 24ms); } /* the ones hidden by hand, last, behind a disclosure of their own that is shut until opened (a Finder sidebar section's): put away reads as put away, not as pinned under the agents in use */ .agent-hid-line { display: flex; align-items: center; gap: 4px; width: 100%; margin: 0; padding-bottom: 8px; border-left: 0; border-right: 0; border-bottom: 0; background: none; font-family: inherit; text-align: start; cursor: pointer; } .agent-hid-line:hover { color: var(--fg-2); } .agent-hid-line:focus-visible { outline: 1.5px solid var(--fg-2); outline-offset: -2px; } -.agent-hid-line .chev { display: inline-flex; transform: rotate(-90deg); transition: transform .3s cubic-bezier(.22, 1, .36, 1); } +.agent-hid-line .chev { display: inline-flex; transform: rotate(-90deg); transition: transform .22s var(--ease-out); } .agent-hid-line[aria-expanded="true"] .chev { transform: none; } -.agent-hid-fold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .42s cubic-bezier(.4, 0, .2, 1); } -.agent-hid-fold.open { grid-template-rows: 1fr; transition-duration: .62s; transition-timing-function: cubic-bezier(.22, 1, .36, 1); } +.agent-hid-fold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .26s var(--ease-out); } +.agent-hid-fold.open { grid-template-rows: 1fr; transition-duration: .34s; } .agent-hid-inner { min-height: 0; overflow: hidden; } /* while a row is dragged the others slide out of its way */ #agents.sorting { user-select: none; -webkit-user-select: none; } @@ -1868,7 +1868,7 @@ body.panel .row.agent .ag-handle { width: 20px; height: 20px; margin: 0; } body.panel .row.agent .ic { width: 18px; height: 18px; } body.panel .row.agent .who { display: flex; align-items: center; gap: 6px; min-width: 0; } body.panel .row.agent > .ag-sum { justify-self: end; } -body.panel .row.agent { transition: background-color .3s ease; } +body.panel .row.agent { transition: background-color .16s ease; } body.panel .row.agent.open { background: var(--card-2); } .ag-sum { display: grid; grid-template-columns: auto 12px 10px; align-items: center; gap: 10px; min-width: 0; max-width: 100%; font-size: 12px; color: var(--muted); } .ag-sum .v { display: flex; align-items: center; justify-content: flex-end; min-width: 0; } @@ -1878,18 +1878,18 @@ body.panel .row.agent.open { background: var(--card-2); } frame by frame), the words easing aside on the row's spring; the logo sits against them, fading and growing in a beat behind, and goes first on the way out. The clip is padded past the discs' rings. */ -.ag-sum .mi { display: flex; justify-content: flex-end; align-items: center; flex: none; width: 0; padding: 2px; margin: -2px -2px -2px -2px; overflow: hidden; transition: width .36s var(--row-spring), margin-right .36s var(--row-spring); } +.ag-sum .mi { display: flex; justify-content: flex-end; align-items: center; flex: none; width: 0; padding: 2px; margin: -2px -2px -2px -2px; overflow: hidden; transition: width .22s var(--row-spring), margin-right .22s var(--row-spring); } .ag-sum .mi-in { display: flex; align-items: center; flex: none; width: max-content; opacity: 0; transform: scale(.6); transform-origin: 100% 50%; transition: opacity .14s ease, transform .3s var(--row-spring); } .row.agent .ag-sum .mi .ic { width: 14px; height: 14px; } .row.agent .ag-sum .mi .ic-stack .disc { width: 16px; height: 16px; } .row.agent .ag-sum .mi .ic-stack .disc > .ic { width: 10px !important; height: 10px !important; } -.row.agent:hover .ag-sum .mi { width: calc(var(--w, 16px) + 4px); margin-right: 4px; transition: width .46s var(--row-spring), margin-right .46s var(--row-spring); } -.row.agent:hover .ag-sum .mi-in { opacity: 1; transform: none; transition: opacity .28s ease .08s, transform .52s var(--row-spring) .04s; } +.row.agent:hover .ag-sum .mi { width: calc(var(--w, 16px) + 4px); margin-right: 4px; transition: width .26s var(--row-spring), margin-right .26s var(--row-spring); } +.row.agent:hover .ag-sum .mi-in { opacity: 1; transform: none; transition: opacity .18s ease .04s, transform .28s var(--row-spring) .02s; } @media (prefers-reduced-motion: reduce) { .ag-sum .mi, .ag-sum .mi-in, .row.agent:hover .ag-sum .mi, .row.agent:hover .ag-sum .mi-in { transition: none; } } #addSheet { scroll-margin-top: 12px; } .ag-sum .v.empty { color: var(--muted); } -.ag-sum .chev { display: inline-flex; width: 10px; color: var(--faint); transform: rotate(-90deg); transition: transform .4s var(--row-spring); } -.row.agent.open .ag-sum .chev { transition-duration: .48s; } +.ag-sum .chev { display: inline-flex; width: 10px; color: var(--faint); transform: rotate(-90deg); transition: transform .26s var(--row-spring); } +.row.agent.open .ag-sum .chev { transition-duration: .32s; } .row.agent.open .ag-sum .chev { transform: none; } .eff { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 10px; } .eff i { width: 2.5px; border-radius: 1px; background: var(--faint); opacity: .45; } @@ -1902,10 +1902,10 @@ body.panel .row.agent.open { background: var(--card-2); } inside comes down a few px into place as it clears; closing, it lifts and is gone before the height is, so nothing is left to smear */ body.panel { --row-spring: cubic-bezier(.25, .3, .1, 1); } -.ag-open { grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .4s var(--row-spring), visibility 0s .4s; } -.row.agent.open .ag-open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .48s var(--row-spring); } -.ag-body { opacity: 0; transform: translateY(-6px); transition: opacity .16s ease, transform .4s var(--row-spring); } -.row.agent.open .ag-body { opacity: 1; transform: none; transition: opacity .3s ease .06s, transform .48s var(--row-spring); } +.ag-open { grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .26s var(--row-spring), visibility 0s .26s; } +.row.agent.open .ag-open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .32s var(--row-spring); } +.ag-body { opacity: 0; transform: translateY(-6px); transition: opacity .12s ease, transform .26s var(--row-spring); } +.row.agent.open .ag-body { opacity: 1; transform: none; transition: opacity .2s ease .04s, transform .32s var(--row-spring); } .ag-in { min-height: 0; overflow: hidden; } /* the room over the lines is inside what opens: a shut row is 36px, no more */ .ag-body { display: flex; flex-direction: column; gap: 8px; padding: 9px 0 12px 30px; transform-origin: 50% 0; } @@ -1954,7 +1954,7 @@ body.panel .profiles.open { background: var(--pop-bg); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow); transform-origin: 24px bottom; --pop-dy: 6px; - animation: pop-fade .18s ease-out, pop-in .42s cubic-bezier(.16, 1, .3, 1); + animation: pop-fade .14s ease-out, pop-in .24s var(--ease-out); } @media (prefers-reduced-motion: reduce) { body.panel .profiles.open { animation: pop-fade .12s ease-out; } } body.panel .profiles > .label { display: block; flex: 1 1 100%; padding: 0 2px; } @@ -2166,12 +2166,12 @@ body.panel .foot { min-height: 0; padding: 5px 8px 7px 14px; border-top: 1px sol .text.primary:hover { filter: brightness(1.08); } .text.danger:hover { color: var(--red); background: var(--red-soft); } /* a partner listed since the add sheet last showed them (markNewPartners) */ -#addProvider.has-new::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 0 5px; border-radius: 50%; background: var(--accent); vertical-align: 6px; box-shadow: 0 0 0 0 var(--accent); animation: new-dot-in .4s cubic-bezier(.3, 1.6, .5, 1), new-dot-ring 2.4s ease-out .4s 2; } -@keyframes new-dot-in { from { transform: scale(0); } } +#addProvider.has-new::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 0 5px; border-radius: 50%; background: var(--accent); vertical-align: 6px; box-shadow: 0 0 0 0 var(--accent); animation: new-dot-in .3s cubic-bezier(.3, 1.6, .5, 1), new-dot-ring 2.4s ease-out .3s 2; } +@keyframes new-dot-in { from { opacity: 0; transform: scale(.5); } } @keyframes new-dot-ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 5px transparent; } } /* and on the tile of each partner new when the sheet showed it, until it is opened (partnerTile) */ .tile .new-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); } -.tile .new-dot.in { animation: new-dot-in .4s cubic-bezier(.3, 1.6, .5, 1), new-dot-ring 2.4s ease-out .4s 1; } +.tile .new-dot.in { animation: new-dot-in .3s cubic-bezier(.3, 1.6, .5, 1), new-dot-ring 2.4s ease-out .3s 1; } @media (prefers-reduced-motion: reduce) { #addProvider.has-new::after, .tile .new-dot.in { animation: none; } } .chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 6px; min-height: 12px; } .chip { @@ -2242,7 +2242,7 @@ body.window .foot .status:not(:empty):not(.lift) { position: fixed; left: 50%; b on the row under it (the Plugins page's Install at the window's foot) lands on the row. An error or warning stays selectable, to be copied. */ body.window .foot .status:not(.err):not(.warn) { pointer-events: none; } -.status { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .3s; } +.status { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .2s; } .status.ok { color: var(--green); } .status.err { color: var(--red); } .status.warn { color: var(--amber); } @@ -2280,13 +2280,13 @@ body .foot .status.lift { white-space: normal; overflow-wrap: anywhere; text-ove answer and a long soft settle with no bounce, the way iOS's menus come; it shows at once and fades out ahead of its motion on the way out */ transform-origin: var(--ox, 24px) top; - animation: pop-fade .18s ease-out, pop-in .42s cubic-bezier(.16, 1, .3, 1); + animation: pop-fade .14s ease-out, pop-in .24s var(--ease-out); } .pop.up { transform-origin: var(--ox, 24px) bottom; --pop-dy: 6px; } @keyframes pop-fade { from { opacity: 0; } } @keyframes pop-in { from { transform: translateY(var(--pop-dy, -6px)) scale(.94); } } /* a closed picker's likeness going: it sinks back toward the button */ -.pop.leaving { pointer-events: none; animation: pop-out .22s cubic-bezier(.4, 0, .7, .2) forwards; } +.pop.leaving { pointer-events: none; animation: pop-out .15s var(--ease-out) forwards; } @keyframes pop-out { to { opacity: 0; transform: translateY(calc(var(--pop-dy, -6px) * .6)) scale(.96); } } @media (prefers-reduced-motion: reduce) { .pop { animation: pop-fade .12s ease-out; } .pop.leaving { animation: none; } } .pop .search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid var(--line-2); color: var(--faint); } @@ -2297,7 +2297,7 @@ body .foot .status.lift { white-space: normal; overflow-wrap: anywhere; text-ove #pickerRail { position: relative; width: 43px; padding: 6px 5px; border-right: 1px solid var(--line-2); display: flex; flex-direction: column; align-items: center; gap: 3px; flex: none; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; } /* it draws its own thumb (.rail-thumb) */ #pickerRail::-webkit-scrollbar { width: 0; height: 0; } -.rail-thumb { position: absolute; z-index: 0; top: 0; left: 5px; width: 31px; height: 31px; border-radius: 8px; opacity: 0; background: var(--sel); box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 2px rgba(0, 0, 0, .06); pointer-events: none; transition: transform 260ms cubic-bezier(.22, 1, .36, 1), opacity 100ms ease-out; will-change: transform; } +.rail-thumb { position: absolute; z-index: 0; top: 0; left: 5px; width: 31px; height: 31px; border-radius: 8px; opacity: 0; background: var(--sel); box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 2px rgba(0, 0, 0, .06); pointer-events: none; transition: transform 220ms var(--ease-out), opacity 100ms ease-out; will-change: transform; } .rail-item { position: relative; z-index: 1; width: 31px; height: 31px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); flex: none; transition: color 150ms ease-out, transform 150ms cubic-bezier(.25, 1, .5, 1); } .rail-item:hover { color: var(--fg); background: color-mix(in srgb, var(--pill) 68%, transparent); } .rail-item:active { transform: scale(.94); } @@ -2558,7 +2558,7 @@ body.window .ag-sk-icon { width: 22px; height: 22px; border-radius: 6px; } /* Change key (#1869) looks like the copy button beside it, but isn't one */ .copy, .key-edit { width: 22px; height: 22px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); flex: none; transition: background .12s, color .12s; } .copy:hover, .key-edit:hover { background: var(--pill-hover); color: var(--fg); } -.copy.done { color: var(--green); background: var(--green-soft); animation: copy-pop .36s var(--ease); } +.copy.done { color: var(--green); background: var(--green-soft); animation: copy-pop .26s var(--ease-out); } @keyframes copy-pop { 0% { transform: scale(.55); } 55% { transform: scale(1.16); } 100% { transform: scale(1); } } /* the snippet's language, and beside it the shell it is for (#1514); a narrow window puts the shell on a row of its own */ @@ -2781,8 +2781,8 @@ body.window .ag-sk-icon { width: 22px; height: 22px; border-radius: 6px; } /* an account signed out (#1363) shows its Remove without a hover: it is one of the two ways out of that state, beside Sign in again */ .acc.signed-out .text.quiet { opacity: 1; } -.acc.new { animation: sub-in .5s cubic-bezier(.2, .8, .2, 1); } -.acc.new .dot { animation: copy-pop .45s cubic-bezier(.2, .8, .2, 1); } +.acc.new { animation: sub-in .3s var(--ease-out); } +.acc.new .dot { animation: copy-pop .3s var(--ease-out); } @keyframes sub-in { from { opacity: 0; transform: translateY(-4px); background: var(--pill-hover); } } .acc.add { width: 100%; color: var(--fg-2); background: none; border: 0 solid var(--line-2); cursor: default; } .acc + .acc.add { border-top-width: 1px; } @@ -3431,7 +3431,7 @@ body.window .ag-sk-icon { width: 22px; height: 22px; border-radius: 6px; } starts where the fields do (--ed-at), no padding before it. */ .editor .more summary { font-size: 12px; line-height: 18px; color: var(--fg-2); list-style: none; display: inline-flex; align-items: center; gap: 5px; padding: 3px 0; margin-left: var(--ed-at, 86px); border-radius: 4px; cursor: pointer; transition: color .12s; } .editor .more summary::-webkit-details-marker { display: none; } -.editor .more summary::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--muted); transition: transform .42s cubic-bezier(.32, .72, 0, 1), background-color .12s; +.editor .more summary::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--muted); transition: transform .24s var(--ease-out), background-color .12s; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M3.6 1.6 7 5 3.6 8.4' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M3.6 1.6 7 5 3.6 8.4' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; } .editor .more[open]:not(.closing) summary::before { transform: rotate(90deg); } @@ -4044,7 +4044,7 @@ input.words.search-key, input.words.search-url { flex: 1 1 120px; width: auto; m One easing everywhere (iOS-ish: quick start, soft landing), short durations, small distances. Pressing gives a little, pages settle in, dialogs lift. */ -:root { --ease: cubic-bezier(.2, .8, .2, 1); } +:root { --ease: cubic-bezier(.2, .8, .2, 1); --ease-out: cubic-bezier(.23, 1, .32, 1); } .text, .icon, .tile, .achip, .mchip, .use, .link { transition-property: background, background-color, color, border-color, box-shadow, filter, opacity, transform; transition-duration: .16s; transition-timing-function: var(--ease); @@ -4060,7 +4060,7 @@ input.words.search-key, input.words.search-url { flex: 1 1 120px; width: auto; m /* the theme crossfades instead of snapping */ html.theming, html.theming *, html.theming *::before, html.theming *::after { - transition: background-color .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease) !important; + transition: background-color .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease) !important; } /* Confirmation uses the top layer so an open editor remains intact underneath. */ @@ -4426,7 +4426,7 @@ body.panel .modal { padding: 16px 12px; } .sess-indexing:not(.known) .si-pct { display: none; } .si-line { margin-top: 4px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .si-tip { font-size: 11.5px; color: var(--faint, var(--muted)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } -.si-tip.in { animation: si-tip .6s ease-out; } +.si-tip.in { animation: si-tip .3s var(--ease-out); } @keyframes si-tip { from { opacity: 0; transform: translateY(3px); } } .si-field { position: relative; align-self: stretch; min-width: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 94%, transparent); diff --git a/internal/gui/assets/app.js b/internal/gui/assets/app.js index f48cc3dc5..861496a02 100644 --- a/internal/gui/assets/app.js +++ b/internal/gui/assets/app.js @@ -1513,8 +1513,8 @@ function sheet(box, open, done) { const none = { height: "0px", paddingTop: "0px", paddingBottom: "0px", marginTop: "0px", marginBottom: "0px", borderTopWidth: "0px", opacity: 0 }; const ease = "cubic-bezier(.32, .72, 0, 1)"; box.style.overflow = "hidden"; - const run = box.animate(open ? [none, full] : [full, none], { duration: open ? 460 : 340, easing: ease, fill: open ? "none" : "forwards" }); - for (const c of box.children) c.animate(open ? [{ opacity: 0, transform: "translateY(-6px)" }, { opacity: 1, transform: "none" }] : [{ opacity: 1 }, { opacity: 0 }], { duration: open ? 420 : 200, delay: open ? 60 : 0, easing: open ? ease : "ease-out", fill: "backwards" }); + const run = box.animate(open ? [none, full] : [full, none], { duration: open ? 320 : 220, easing: ease, fill: open ? "none" : "forwards" }); + for (const c of box.children) c.animate(open ? [{ opacity: 0, transform: "translateY(-6px)" }, { opacity: 1, transform: "none" }] : [{ opacity: 1 }, { opacity: 0 }], { duration: open ? 280 : 150, delay: open ? 40 : 0, easing: open ? ease : "ease-out", fill: "backwards" }); run.onfinish = () => { if (open) box.style.overflow = ""; done?.(); }; run.oncancel = run.onfinish; } @@ -4221,14 +4221,14 @@ const levelUnset = (a) => ompAgent(a) ? t("the session's thinking level") : t("t // The tray panel has no scrollbars to speak of, so it grows to fit instead. // The agents' scroll unrolls and rolls up on these, in app.css as in the // panel's own height. -const UNROLL = { ms: 620, ease: ".22,1,.36,1" }; +const UNROLL = { ms: 340, ease: ".23,1,.32,1" }; // A row opens and closes on a critically damped spring, as iOS moves things: // it sets off gently, not at a jump, and settles without a long tail. The // curve is that spring fitted to a cubic-bezier, which the panel's edge can // take too; app.css has the same (--row-spring). -const ROW_OPEN = { ms: 480, ease: ".25,.3,.1,1" }; -const ROW_CLOSE = { ms: 400, ease: ".25,.3,.1,1" }; -const ROLLUP = { ms: 420, ease: ".4,0,.2,1" }; +const ROW_OPEN = { ms: 320, ease: ".25,.3,.1,1" }; +const ROW_CLOSE = { ms: 260, ease: ".25,.3,.1,1" }; +const ROLLUP = { ms: 260, ease: ".23,1,.32,1" }; // tintPanel hands the colour the panel's page shows to the system, to paint // under the page, which then leaves its own background clear: the page is @@ -7953,7 +7953,7 @@ document.addEventListener("click", (e) => { d.open = true; d.classList.toggle("closing", closing); inner.style.overflow = "hidden"; - const shape = closing ? { duration: 420, easing: IOS_EASE } : { duration: 570, easing: SPRING }; + const shape = closing ? { duration: 280, easing: IOS_EASE } : { duration: 460, easing: SPRING }; const pad = getComputedStyle(inner).paddingTop; const grow = inner.animate([ { height: from + "px", paddingTop: from ? pad : "0px" }, @@ -7970,7 +7970,7 @@ document.addEventListener("click", (e) => { for (const row of inner.children) { if (row.style.display === "none" || row.hidden) continue; anims.push(row.animate([{ opacity: 0, transform: "translateY(-6px)" }, { opacity: 1, transform: "none" }], - { duration: 420, delay: 40 + Math.min(i++, 12) * 16, easing: IOS_EASE, fill: "backwards" })); + { duration: 300, delay: 30 + Math.min(i++, 12) * 14, easing: IOS_EASE, fill: "backwards" })); } } const move = { anims, closing }; @@ -8564,7 +8564,7 @@ function iconPicker(ed) { // spring, and closing folds it back into that (still there, re-rendered or // not); with nothing pressed it rises from a little below. const SPRING = CSS.supports?.("animation-timing-function", "linear(0, 1)") - // a damped spring (response .42 s, damping .8): 1.5% over, settled at 570 ms + // a damped spring (damping .8): 1.5% over, settled by the end of the duration it runs for (460 ms) ? "linear(0, 0.0203, 0.0723, 0.1448, 0.2292, 0.3188, 0.4086, 0.4951, 0.576, 0.6498, 0.7157, 0.7735, 0.8232, 0.8654, 0.9005, 0.9293, 0.9525, 0.9708, 0.9849, 0.9956, 1.0033, 1.0087, 1.0122, 1.0142, 1.015, 1.0151, 1.0146, 1.0136, 1.0124, 1.0111, 1.0097, 1.0084, 1.0071, 1.0059, 1.0049, 1.0039, 1.0031, 1.0024, 1.0018, 1.0013, 1)" : "cubic-bezier(.2, .9, .25, 1.02)"; const IOS_EASE = "cubic-bezier(.32, .72, 0, 1)"; @@ -8689,7 +8689,7 @@ async function skelBird() { } finally { release(); // nothing left to stand on: it flies off, up and away - if (quiet) await b.animate([{ opacity: 1 }, { opacity: 0, transform: b.style.transform + " scale(.6)" }], { duration: 160, easing: "ease-in", fill: "forwards" }).finished; + if (quiet) await b.animate([{ opacity: 1 }, { opacity: 0, transform: b.style.transform + " scale(.6)" }], { duration: 150, easing: "cubic-bezier(.23, 1, .32, 1)", fill: "forwards" }).finished; b.dataset.flap = ""; const from = { x, y }; if (!quiet) await tween(480, (e) => put({ x: from.x + (innerWidth + 60 - from.x) * e, y: from.y - (from.y + 80) * e, f: 1, r: -14, sx: 1, sy: 1 }), easeIn); @@ -8960,7 +8960,7 @@ function openModal(content, quiet) { m.animate([{ ...VEIL_OFF, offset: 0 }], { duration: 280, easing: "ease-out" }); if (calm()) { d.animate([{ opacity: 0 }, { opacity: 1 }], { duration: 160 }); return; } const to = d.getBoundingClientRect(), from = originRect(modalOrigin); - const grow = d.animate(from ? [morphFrom(from, to), { transform: "none", clipPath: MORPH_REST }] : [{ transform: "translateY(24px) scale(.94)" }, { transform: "none" }], { duration: 570, easing: SPRING }); + const grow = d.animate(from ? [morphFrom(from, to), { transform: "none", clipPath: MORPH_REST }] : [{ transform: "translateY(24px) scale(.94)" }, { transform: "none" }], { duration: 440, easing: SPRING }); d.animate([{ opacity: 0 }, { opacity: 1 }], { duration: from ? 140 : 240, easing: "ease-out" }); if (!from) return; // an editor can settle its size after it was measured (a provider's grew @@ -9009,7 +9009,7 @@ function closeModal() { const to = d.getBoundingClientRect(), from = calm() ? null : originRect(modalOrigin); d.style.transform = was; const clip = d.style.clipPath || MORPH_REST; - const shape = { duration: from ? 380 : 260, easing: IOS_EASE, fill: "forwards" }; + const shape = { duration: from ? 300 : 200, easing: IOS_EASE, fill: "forwards" }; const moves = [ m.animate([VEIL_OFF], { ...shape, easing: "ease-out" }), calm() ? d.animate([{ opacity: 0 }], { duration: 140, fill: "forwards" }) @@ -15671,7 +15671,7 @@ function unrollSheet(view, sheet, e) { ], { duration: ROW_OPEN.ms + 60, easing: `cubic-bezier(${ROW_OPEN.ease})` }); for (const c of sheet.children) { c.animate([{ opacity: 0, transform: "translateY(-6px)" }, { opacity: 1, transform: "none" }], - { duration: 340, delay: 60, easing: "cubic-bezier(.22, 1, .36, 1)", fill: "backwards" }); + { duration: 260, delay: 40, easing: "cubic-bezier(.23, 1, .32, 1)", fill: "backwards" }); } // what the view is at once the sheet starts at no height: a page that // was scrolled to its end is clamped shorter (WebKit), not moved by the reader @@ -23935,12 +23935,12 @@ function navSubEnter(box) { const cs = getComputedStyle(box); const to = { height: box.offsetHeight + "px", marginTop: cs.marginTop, marginBottom: cs.marginBottom, opacity: 1 }; box.classList.add("moving"); - box.animate([{ height: "0px", marginTop: "0px", marginBottom: "0px", opacity: 0 }, to], { duration: 460, easing: NAV_EASE }) + box.animate([{ height: "0px", marginTop: "0px", marginBottom: "0px", opacity: 0 }, to], { duration: 300, easing: NAV_EASE }) .finished.then(() => box.classList.remove("moving"), () => {}); [...box.querySelectorAll(".nav-s")].forEach((s, i) => s.animate( [{ opacity: 0, transform: "translateY(-6px)" }, { opacity: 1, transform: "none" }], - { duration: 380, delay: 60 + i * 28, easing: NAV_EASE, fill: "backwards" })); - box.querySelector(".nav-hl").animate([{ opacity: 0 }, { opacity: 1 }], { duration: 300, delay: 120, fill: "backwards" }); + { duration: 260, delay: 40 + Math.min(i, 12) * 20, easing: NAV_EASE, fill: "backwards" })); + box.querySelector(".nav-hl").animate([{ opacity: 0 }, { opacity: 1 }], { duration: 200, delay: 80, fill: "backwards" }); } // a folding list is out of the way at once: not a tab, not reachable, not // found by what looks for the sidebar's rows @@ -23953,7 +23953,7 @@ function navSubLeave(box) { const cs = getComputedStyle(box); box.classList.add("moving"); box.animate([{ height: box.offsetHeight + "px", marginTop: cs.marginTop, marginBottom: cs.marginBottom, opacity: 1 }, - { height: "0px", marginTop: "0px", marginBottom: "0px", opacity: 0 }], { duration: 380, easing: NAV_EASE, fill: "forwards" }) + { height: "0px", marginTop: "0px", marginBottom: "0px", opacity: 0 }], { duration: 240, easing: NAV_EASE, fill: "forwards" }) .finished.then(() => box.remove(), () => box.remove()); } // the header beside the sidebar: the group, the page, and its tab diff --git a/internal/gui/assets/context.css b/internal/gui/assets/context.css index 03b13ce9c..43db65640 100644 --- a/internal/gui/assets/context.css +++ b/internal/gui/assets/context.css @@ -384,7 +384,7 @@ i.dot.free { background: var(--k-free); box-shadow: inset 0 0 0 1px color-mix(in padding: 7px 9px; border-radius: 7px; cursor: pointer; background: color-mix(in srgb, var(--k) 11%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--k) 24%, transparent); - transition: left .62s var(--t-ease), top .62s var(--t-ease), width .62s var(--t-ease), height .62s var(--t-ease), + transition: left .4s var(--t-ease), top .4s var(--t-ease), width .4s var(--t-ease), height .4s var(--t-ease), background-color .22s ease, box-shadow .22s ease, opacity .24s ease; } .ctx-tile .n { font-size: 11.5px; font-weight: 550; line-height: 1.25; color: color-mix(in srgb, var(--k) 72%, var(--fg)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } @@ -425,7 +425,7 @@ i.dot.free { background: var(--k-free); box-shadow: inset 0 0 0 1px color-mix(in .ctx-look-b.on { background: var(--card); color: var(--fg); box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 0 0 .5px color-mix(in srgb, var(--fg) 10%, transparent); } /* an image the request carried, in its text */ -.ctx-pic { display: block; width: fit-content; max-width: 100%; margin: 4px 0 2px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: color-mix(in srgb, var(--fg) 4%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--fg) 9%, transparent); cursor: zoom-in; transform-origin: top left; opacity: 0; transition: opacity .4s ease; } +.ctx-pic { display: block; width: fit-content; max-width: 100%; margin: 4px 0 2px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: color-mix(in srgb, var(--fg) 4%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--fg) 9%, transparent); cursor: zoom-in; transform-origin: top left; opacity: 0; transition: opacity .25s ease; } .ctx-pic.in { opacity: 1; } .ctx-pic img { display: block; max-width: min(100%, 420px); max-height: 240px; width: auto; height: auto; object-fit: contain; } .ctx-pic.open { cursor: zoom-out; } diff --git a/internal/gui/assets/context.js b/internal/gui/assets/context.js index bc3c9bff1..bcf647244 100644 --- a/internal/gui/assets/context.js +++ b/internal/gui/assets/context.js @@ -613,14 +613,14 @@ n.style.height = `max(0px, calc(${pc(tl.h, H)}% - 3px))`; if (quiet || !n.animate || !(fresh || enter)) return; n.animate([{ opacity: 0, transform: "scale(.94)", filter: "blur(4px)" }, { opacity: 1, transform: "none", filter: "none" }], - { duration: 560, easing: IOS_EASE, delay: enter ? 40 + Math.min(i, 16) * 32 : 0, fill: "backwards" }); + { duration: 380, easing: IOS_EASE, delay: enter ? 30 + Math.min(i, 16) * 20 : 0, fill: "backwards" }); }); for (const [k, n] of tiles) { if (seen.has(k)) continue; tiles.delete(k); n.classList.add("gone"); if (quiet || !n.animate) { n.remove(); continue; } - n.animate([{ opacity: 1 }, { opacity: 0, transform: "scale(.96)" }], { duration: 260, easing: IOS_EASE, fill: "forwards" }) + n.animate([{ opacity: 1 }, { opacity: 0, transform: "scale(.96)" }], { duration: 180, easing: IOS_EASE, fill: "forwards" }) .finished.then(() => n.remove(), () => n.remove()); } }; @@ -653,7 +653,7 @@ const h1 = viz.offsetHeight; if (h0 !== h1) { viz.style.overflow = "hidden"; - viz.animate([{ height: h0 + "px" }, { height: h1 + "px" }], { duration: 520, easing: IOS_EASE }) + viz.animate([{ height: h0 + "px" }, { height: h1 + "px" }], { duration: 340, easing: IOS_EASE }) .finished.finally(() => { viz.style.overflow = ""; }).catch(() => {}); } }; diff --git a/internal/gui/assets/plugins.css b/internal/gui/assets/plugins.css index aac43ff66..a6da0db10 100644 --- a/internal/gui/assets/plugins.css +++ b/internal/gui/assets/plugins.css @@ -173,7 +173,7 @@ button.pm-chip:disabled { cursor: default; opacity: .6; } @keyframes pm-pulse { 50% { opacity: .5; } } @keyframes pm-sheen { from { background-position: 100% 0; } to { background-position: 0 0; } } /* the GitHub section looking: three dots breathing in turn, and the word */ -.pm-sechead .pm-ghlook { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; font-size: 11px; color: var(--faint); animation: pm-fade .4s var(--ease) both .15s; } +.pm-sechead .pm-ghlook { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; font-size: 11px; color: var(--faint); animation: pm-fade .26s var(--ease) both .08s; } .pm-ghlook .dots { display: inline-flex; gap: 3px; } .pm-ghlook .dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); opacity: .25; animation: pm-breathe 1.2s ease-in-out infinite; } .pm-ghlook .dots i:nth-child(2) { animation-delay: .16s; } @@ -181,7 +181,7 @@ button.pm-chip:disabled { cursor: default; opacity: .6; } @keyframes pm-breathe { 0%, 70%, 100% { opacity: .25; transform: none; } 35% { opacity: .9; transform: translateY(-1.5px); } } @keyframes pm-fade { from { opacity: 0; } } /* its cards when they come: in where the ghosts were, one after another */ -.pm-arrive .pm-card { animation: pm-arrive .42s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 40ms); } +.pm-arrive .pm-card { animation: pm-arrive .3s cubic-bezier(.23, 1, .32, 1) both; animation-delay: calc(min(var(--i, 0), 12) * 28ms); } @keyframes pm-arrive { from { opacity: 0; transform: translateY(4px); } } .pm-note { margin: 0; padding: 4px 2px; font-size: 12px; color: var(--muted); } diff --git a/internal/gui/assets/plugins.js b/internal/gui/assets/plugins.js index 201e08c7f..2f0127cba 100644 --- a/internal/gui/assets/plugins.js +++ b/internal/gui/assets/plugins.js @@ -1785,8 +1785,8 @@ wait.leave(); } holdModal(); - d.animate([{ height: h + "px", top: y, overflow: "hidden" }, { height: d.offsetHeight + "px", top: d.style.top, overflow: "hidden" }], { duration: 570, easing: SPRING }); - n.animate([{ opacity: 0 }, { opacity: 1 }], { duration: 300, easing: "ease-out" }); + d.animate([{ height: h + "px", top: y, overflow: "hidden" }, { height: d.offsetHeight + "px", top: d.style.top, overflow: "hidden" }], { duration: 460, easing: SPRING }); + n.animate([{ opacity: 0 }, { opacity: 1 }], { duration: 240, easing: "ease-out" }); }; try { const p = await api("plugins/page?name=" + encodeURIComponent(l.package));