Bento, the office suite that fits in a file
TypeScript mit-licenseofficeoffice-365office-suiteoffice-toolsoffice365open-sourcepowerpointself-hostedsingle-page-appslidesslideshareslideshowslideshow-galleryslideshow-makerslideshows
Slideshow nudge: revert to the coral neon runner (pre-blue)
nyblnete8b757e83705
diff --git a/slides/src/editor/editor.ts b/slides/src/editor/editor.tsindex b36ef892..3a425602 100644--- a/slides/src/editor/editor.ts+++ b/slides/src/editor/editor.ts@@ -297,22 +297,6 @@ export class Editor {pItem(ICONS.window, t('Present in this tab'), t('Fills this tab instead of going fullscreen — handy for testing or sharing a window'), () => this.present(false, false))pItem(ICONS.presenter, t('Open speaker view'), t('Notes, controls and slide thumbnails in a separate window — drag it to a second screen. On macOS, open it before going fullscreen.'), () => this.openSpeakerView())pill.append(showB, caret, pmenu)- // Neon "runner" overlay for the first-run nudge: two SVG strokes (a soft- // glow behind a bright line) that chase the pill's border via animated- // stroke-dashoffset — arc-length based, so the light keeps a CONSTANT speed- // around the straights and rounded caps alike. Always in the DOM; CSS shows- // it only while .ed-hint-pulse is set (removed in present()).- const SVGNS = 'http://www.w3.org/2000/svg'- const runner = document.createElementNS(SVGNS, 'svg')- runner.setAttribute('class', 'ed-hint-runner')- runner.setAttribute('aria-hidden', 'true')- for (const cls of ['ed-hint-runner-glow', 'ed-hint-runner-line']) {- const r = document.createElementNS(SVGNS, 'rect')- r.setAttribute('class', cls)- r.setAttribute('pathLength', '100')- runner.appendChild(r)- }- pill.appendChild(runner)document.addEventListener('pointerdown', (ev) => {if (!pill.contains(ev.target as Node)) pill.classList.remove('open')})diff --git a/slides/src/styles.css b/slides/src/styles.cssindex e54dc022..c4edb561 100644--- a/slides/src/styles.css+++ b/slides/src/styles.css@@ -1531,49 +1531,46 @@ body.ed-col-resizing { cursor: col-resize; user-select: none; }box-shadow: 0 4px 14px rgb(20 30 45 / 0.10);overflow: visible;}-/* first-run nudge: a neon-blue "runner" light chases around the pill's edge to- point out how to start a show. An SVG stroke (built in editor.ts) animates- stroke-dashoffset, which is ARC-LENGTH based — so the light keeps a constant- speed around the straights and the rounded caps alike (a conic gradient would- rush the curves). The neon comes from a tight drop-shadow on the crisp line- (a wide blurred stroke behind just read as a muddy smear). A few laps, then- it fades; retired for good once they present (JS removes .ed-hint-pulse). */+/* first-run nudge: a neon coral "runner" light chases around the pill's edge to+ point out how to start a show. A conic-gradient ring (masked to just the+ border with the padding-box exclude trick) rotates via @property+ --ed-runner-a, so a bright coral comet with a hot tip runs the perimeter; a+ drop-shadow gives it the neon glow. A few laps, then it fades and settles;+ retired for good once they present (JS). */+@property --ed-runner-a {+ syntax: '<angle>';+ inherits: false;+ initial-value: 0deg;+}.ed-present-pill.ed-hint-pulse { position: relative; }-.ed-hint-runner {+.ed-present-pill.ed-hint-pulse::after {+ content: '';position: absolute;- inset: 0;- width: 100%;- height: 100%;- overflow: visible;+ inset: -1px;+ border-radius: inherit;+ padding: 3px;+ background: conic-gradient(from var(--ed-runner-a),+ rgb(255 107 74 / 0) 0deg,+ rgb(255 107 74 / 0) 225deg,+ rgb(255 107 74 / 0.55) 300deg,+ rgb(255 160 130 / 1) 345deg,+ rgb(255 244 238 / 1) 357deg,+ rgb(255 107 74 / 0) 360deg);+ -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);+ -webkit-mask-composite: xor;+ mask-composite: exclude;+ filter: drop-shadow(0 0 2px rgb(255 140 110 / 0.95)) drop-shadow(0 0 7px rgb(255 107 74 / 0.6));pointer-events: none;- display: none;+ animation: ed-runner 1.3s linear 5, ed-runner-fade 6.5s ease-out 1 forwards;}-.ed-present-pill.ed-hint-pulse .ed-hint-runner {- display: block;- animation: ed-runner-fade 11s ease-out 1 forwards;-}-.ed-hint-runner rect {- x: 2.5px;- y: 2.5px;- width: calc(100% - 5px);- height: calc(100% - 5px);- ry: 50%; /* rx follows -> stadium caps that match the pill */- fill: none;- stroke-linecap: round;- animation: ed-runner-dash 2.2s linear 5;-}-.ed-hint-runner-line {- stroke: #7FB0FF;- stroke-width: 2.25;- stroke-dasharray: 15 85; /* one bright segment; pathLength=100 normalizes it */- filter: drop-shadow(0 0 2.5px rgb(91 141 239 / 0.85));-}-.ed-hint-runner-glow { stroke: none; } /* glow now lives in the line's drop-shadow */-@keyframes ed-runner-dash { to { stroke-dashoffset: -100; } }+@keyframes ed-runner { to { --ed-runner-a: 360deg; } }@keyframes ed-runner-fade { 0% { opacity: 0; } 4%, 86% { opacity: 1; } 100% { opacity: 0; } }@media (prefers-reduced-motion: reduce) {- .ed-present-pill.ed-hint-pulse .ed-hint-runner { animation: none; opacity: 1; }- .ed-hint-runner rect { animation: none; stroke-dasharray: none; }+ .ed-present-pill.ed-hint-pulse::after {+ animation: none;+ background: rgb(255 107 74 / 0.85);+ opacity: 1;+ }}.ed-present-pill .ed-pill-main {border-radius: 999px 0 0 999px;