-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchatbox.css
More file actions
133 lines (113 loc) · 2.89 KB
/
Copy pathchatbox.css
File metadata and controls
133 lines (113 loc) · 2.89 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c&display=swap');
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+1p&display=swap');
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+1&display=swap');
html {
--font-size: {font_size};
--text-color: {text_color};
--message-hide-delay: {message_hide_delay};
--username-color-saturation: {username_color_saturation}%;
--username-color-lightness: {username_color_lightness}%;
--text-shadow-color: rgb(0, 0, 0);
}
* {
box-sizing: border-box;
}
html,
body {
height: 100%;
overflow: hidden;
}
body {
font-family: "M PLUS 1", "M PLUS 1p", "M PLUS Rounded 1c";
font-size: var(--font-size);
color: var(--text-color);
}
@keyframes fadeiInBottom {
from {
transform: translateY(100%);
}
to {
transform: translateY(0);
}
}
#log>div {
animation: fadeiInBottom .1s ease forwards, fadeOut 0.5s ease var(--message-hide-delay) forwards;
-webkit-animation: fadeiInBottom .1s ease forwards, fadeOut 0.5s ease var(--message-hide-delay) forwards;
}
#log {
position: absolute;
bottom: 0;
left: 0;
padding: 0 10px 10px;
width: 100%;
}
#log>div.column {
display: flex;
flex-direction: column;
align-items: flex-start;
}
#log>div.row {
flex-direction: row;
}
#log>div.deleted {
visibility: hidden;
}
#log .emote {
background-repeat: no-repeat;
background-position: center;
background-size: contain;
padding: 0.4em 0.2em;
position: relative;
}
#log .emote img {
display: inline-block;
height: 1em;
opacity: 0;
}
#log>div>.meta {
width: 100%;
white-space: nowrap;
overflow: hidden;
}
#log>div.column>.meta {
display: flex;
align-items: center;
}
#log .message {
word-wrap: break-word;
text-shadow:
var(--text-shadow-color) 1px 1px 1px,
var(--text-shadow-color) 1px 1px 1px,
var(--text-shadow-color) 1px 1px 1px,
var(--text-shadow-color) 1px 1px 1px,
var(--text-shadow-color) 1px 1px 1px,
var(--text-shadow-color) 1px 1px 1px,
var(--text-shadow-color) 0px 0px 1px,
var(--text-shadow-color) 0px 0px 1px,
var(--text-shadow-color) 0px 0px 1px,
var(--text-shadow-color) 0px 0px 1px,
var(--text-shadow-color) 0px 0px 1px,
var(--text-shadow-color) 0px 0px 1px;
}
.badge {
display: inline-block;
margin-right: 0.2em;
position: relative;
height: 1em;
vertical-align: middle;
}
.name {
white-space: break-spaces;
word-wrap: break-word;
text-shadow:
var(--text-shadow-color) 1px 1px 1px,
var(--text-shadow-color) 1px 1px 1px,
var(--text-shadow-color) 0px 0px 1px,
var(--text-shadow-color) 0px 0px 1px;
}
div.column>.meta>.name::after {
content: attr(data-name);
}
div.row>.meta>.name::after {
content: attr(data-name) ':';
}