-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyles.css
92 lines (79 loc) · 1.5 KB
/
styles.css
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
* {
padding: 0;
margin: 0;
}
body {
background: #666666;
font-family: 'Mr De Haviland', cursive;
text-align: center;
}
h1 {
color: white;
font-size: 100px;
margin-top: 6%;
}
button {
background: #77CCA4;
outline: 0;
border-radius: 100%;
font-size: 50px;
padding: 45px 58px;
border: 0;
color: #F0F0D8;
margin-top: 50px;
cursor: pointer;
transition: all 0.3s ease-in;
}
button:hover,
button:focus {
transform: scale(1.1);
}
button.animate {
animation: voice_detected 2s infinite;
}
@keyframes voice_detected {
0%, 80% {
box-shadow: 0px 0px 0px 0px #b4debe;
}
20%, 60% {
box-shadow: 0px 0px 0px 34px #b4debe;
}
40% {
box-shadow: 0px 0px 0px 10px #B4DEBE;
}
}
.messages {
font-size: 40px;
text-align: left;
display: flex;
flex-direction: column;
margin-left: 30%;
margin-top: 6%;
color: #F0F0D8;
}
@media only screen and (max-width: 768px) {
h1 {
font-size: 45px;
margin-top: 7%;
}
button {
font-size: 40px;
padding: 37px 48px;
transform: translateX(-50%) translateY(-50%);
position: absolute;
left: 50%;
top: 50%;
margin: 0;
}
button:hover,
button:focus {
transform: translateX(-50%) translateY(-50%) scale(1.1);
}
.messages {
position: absolute;
bottom: 7%;
font-size: 27px;
margin-left: 12%;
margin-top: 29%;
}
}