-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
116 lines (100 loc) · 1.87 KB
/
style.css
File metadata and controls
116 lines (100 loc) · 1.87 KB
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
body {
font-family: 'Open Sans';
font-size: 1em;
margin: 0;
overflow-x: hidden;
}
#bottom {
width: 100%;
height: 48px;
position: fixed;
bottom: 0;
background-color: #888;
}
#buttons {
position: absolute;
height: 100%;
left: 50%;
transform: translateX(-50%);
-webkit-transform: translateX(-50%);
}
#talkButton, #infoButton {
display: inline-block;
position: absolute;
top: 4px;
width: 40px;
height: 40px;
border-radius: 40px;
cursor: pointer;
transition: background-color 0.5s;
-webkit-transition: background-color 0.5s;
}
#talkButton {
right: 0;
margin-right: 4px;
background-image: url('microphone.svg');
background-repeat: no-repeat;
background-position: center;
background-size: 70%;
}
#infoButton {
left: 0;
margin-left: 4px;
text-align: center;
font-size: 28px;
}
#talkButton.waiting, #infoButton {
background-color: #777;
}
#talkButton.waiting:hover, #infoButton:hover {
background-color: #666;
}
#talkButton.inProgress {
background-color: red;
}
#talkButton.speaking {
background-color: green;
cursor: not-allowed;
}
#bubbles {
position: absolute;
padding: 10px;
margin: 0 0 48px;
width: 100%;
overflow-y: auto;
}
.bubble {
border-radius: 10px;
width: calc(100% - 50px);
width: -webkit-calc(100% - 50px);
min-height: 1em;
padding: 5px;
position: relative;
margin: 5px 10px;
}
.bubble::after {
content: '';
position: absolute;
display: block;
width: 0;
border-style: solid;
top: 50%;
transform: translateY(-50%);
-webkit-transform: translateY(-50%);
}
.bubble.piggy {
background-color: lightsalmon;
}
.bubble.piggy::after {
border-color: transparent lightsalmon;
border-width: 5px 10px 5px 0;
left: -10px;
}
.bubble.info {
background-color: aquamarine;
}
.bubble.info::after {
border-color: transparent aquamarine;
border-width: 5px 0 5px 10px;
right: -10px;
}