aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/DictationButton.scss
blob: ac8740c0f74a3a011123887ca7f9de1245a54a37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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);
    }
}