mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-11-29 21:21:18 -08:00
Add a swaying question mark beside Ask for suggestions and a chevron before Send
AI Assisted
This commit is contained in:
1 parent
54b316cdf3
commit
97b5df61ea
7 files changed
+42
-1
No files matched your search
@@ -483,6 +483,22 @@ input[type="text"].invalid, .md-host.invalid { border-color: var(--warn); }
|
||||
100% { box-shadow: var(--glow), 0 0 0 6px transparent; }
|
||||
}
|
||||
#btn-send.primary:not(:disabled) { animation: send-pulse 2.4s ease-out infinite; }
|
||||
/* A small accent mark that sways toward the button on its right: the chevron
|
||||
before Send once Send is the step, the question mark before a live Ask for
|
||||
suggestions. One sway there and back is 2.8s (NUDGE_CYCLE_MS in ask.js);
|
||||
reduced motion holds it still. */
|
||||
.nudge {
|
||||
flex: none; display: inline-flex; align-items: center; justify-content: center;
|
||||
color: var(--accent); pointer-events: none; user-select: none;
|
||||
animation: nudge-sway 1.4s ease-in-out infinite alternate;
|
||||
}
|
||||
.nudge[hidden] { display: none; }
|
||||
@keyframes nudge-sway {
|
||||
from { transform: translateX(-3px); }
|
||||
to { transform: translateX(3px); }
|
||||
}
|
||||
.suggest-nudge { font-size: 15px; font-weight: 800; line-height: 1; }
|
||||
.send-nudge svg { width: 16px; height: 16px; display: block; }
|
||||
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
|
||||
.btn.ghost:hover { background: var(--panel-2); color: var(--ink); }
|
||||
.btn.danger { border-color: var(--warn); color: var(--warn); }
|
||||
|
||||
@@ -95,6 +95,7 @@
|
||||
still, the working star included. */
|
||||
.help-mood-bot, .help-mood-bot *, .help-mood-bot.is-work .eye { animation: none !important; }
|
||||
#btn-send { animation: none; }
|
||||
.nudge { animation: none; }
|
||||
}
|
||||
|
||||
/* User Preferences: action rows (Cleanup's scan/delete buttons share this
|
||||
|
||||
@@ -441,6 +441,8 @@ h1 {
|
||||
.attach-row { display: flex; align-items: center; margin: -4px 0 6px -13px; }
|
||||
.attach-row.is-under { margin: 6px 0 4px -13px; }
|
||||
.attach-row .suggest-chip { margin: 0 0 0 auto; }
|
||||
.attach-row .suggest-nudge { margin-left: auto; }
|
||||
.attach-row .suggest-nudge + .suggest-chip { margin-left: 9px; }
|
||||
.msg .suggest-tag {
|
||||
display: inline-block; margin-bottom: 4px;
|
||||
background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line);
|
||||
|
||||
Reference in new issue
Block a user