diff options
| author | Joanne <zehan_ding@brown.edu> | 2025-06-17 13:02:50 -0400 |
|---|---|---|
| committer | Joanne <zehan_ding@brown.edu> | 2025-06-17 13:02:50 -0400 |
| commit | 2aa2c26b95a539d220e46b20cdfbef6ae39d6c43 (patch) | |
| tree | 344a6f798f692fdd4921ab5a6762e907f5ad7b06 /src/client/views/DictationButton.scss | |
| parent | 430db63077868fa54829721d6530a810aa4d4588 (diff) | |
| parent | ccfdf905400cd4b81d8cde0f16bb0e15cd65621b (diff) | |
Merge branch 'agent-paper-main' of https://github.com/brown-dash/Dash-Web into joanne-tutorialagent
Diffstat (limited to 'src/client/views/DictationButton.scss')
| -rw-r--r-- | src/client/views/DictationButton.scss | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/src/client/views/DictationButton.scss b/src/client/views/DictationButton.scss new file mode 100644 index 000000000..ac8740c0f --- /dev/null +++ b/src/client/views/DictationButton.scss @@ -0,0 +1,73 @@ +.dictation-button { + display: flex; + align-items: center; + justify-content: center; + width: 48px; + height: 48px; + min-width: 48px; + border-radius: 50%; + border: none; + background-color: #487af0; + color: white; + cursor: pointer; + transition: all 0.2s ease; + box-shadow: 0 2px 8px rgba(72, 122, 240, 0.3); + padding: 0; + margin-left: 5px; + position: relative; + overflow: hidden; + + &::before { + content: ''; + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.3)); + opacity: 0; + transition: opacity 0.25s ease; + } + + &:hover { + background-color: #3b6cd7; /* Slightly darker blue */ + box-shadow: 0 3px 10px rgba(72, 122, 240, 0.4); + + &::before { + opacity: 1; + } + + svg { + transform: scale(1.1); + } + } + + &:active { + background-color: #3463cc; /* Even darker for active state */ + box-shadow: 0 2px 6px rgba(72, 122, 240, 0.3); + } + + &.recording { + background-color: #ef4444; + color: white; + animation: pulse 1.5s infinite; + } + + svg { + width: 22px; + height: 22px; + transition: transform 0.2s ease; + } +} + +@keyframes pulse { + 0% { + box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); + } + 70% { + box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); + } + 100% { + box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); + } +} |
