-
Notifications
You must be signed in to change notification settings - Fork 5
/
chat.css
83 lines (73 loc) · 1.31 KB
/
chat.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
@import url('https://fonts.googleapis.com/css?family={{FontName}}');
:root {
--text-color: {{FontColor}};
--prev-color: none;
}
/*Basic scrolling animation. If the text lingers on screen increase {left:120%;} and {right: 120%;}*/
@keyframes LRMove {
0% {
left: 120%;
}
100% {
left: -550%;
display: none;
}
}
@keyframes RLMove {
0% {
right: 0%;
opacity: 0%;
}
100% {
right: 120%;
opacity: 0%;
display: none;
}
}
* {
box-sizing: border-box;
}
html {
height: 100%;
overflow: hidden;
}
body {
text-shadow: {{TextShadow}};
font-family: {{FontName}};
font-weight: {{FontWeight}};
font-size: {{FontSize}}vh;
line-height: 1.5em;
background-color: var(--prev-color);
color: var(--text-color);
}
.main-container {
display: table;
position: absolute;
bottom: 0;
left: 0;
width: 100%;
table-layout: fixed;
background-color: var(--prev-color);
color: var(--text-color);
}
.message-row {
position: absolute;
flex: 0 0 auto;
width: 100%;
vertical-align: baseline;
margin-bottom: 50px;
}
.message {
text-overflow: ellipsis;
white-space: nowrap;
position: absolute;
word-wrap: word-break;
width: 100%;
opacity: {{Opacity}};
right: 0px;
}
.emote {
height: {{EmoteSize}}vh;
vertical-align: middle;
background-repeat: no-repeat;
}