blob: 6c6218dee22a21a590001e975a2c3b4bf207bbb7 (
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
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
|
.UI {
background-color: blue;
}
#chatwindow {
display: flex;
flex-flow: column;
overflow-y: scroll;
overflow-x: clip;
word-break: break-word;
scroll-snap-align: end;
flex-basis: 100vh;
flex-grow: 1;
}
.message:hover {
background-color: #DDD;
}
.message {
display: flex;
flex-basis: 1.6em;
padding-left: 2px;
padding-right: 2px;
flex-shrink: 0;
}
.message:hover > :last-child > :first-child {
display: flex;
}
.messagetext {
white-space: pre-wrap;
flex-grow: 1;
}
.messagedate {
font-size: 12px;
align-self: start;
margin-top: 4px;
word-break: keep-all;
}
.message:not(.deleted) > .messagedate {
color: #666;
}
.message_buttons_anchor {
position: relative;
}
.message_buttons {
display: none;
position: absolute;
/* calc (((button height + anchor padding) / 2) * -1) */
top: calc(((1.6em + 4px) / 2) * -1);
/* calc ((buttons amount(button size + button padding) + anchor padding) * -1) */
left: calc((3(1.6em + 4px) + 4px) * -1);
right: 0;
bottom: 0;
margin-right: 8px;
padding: 2px;
height: min-content;
background-color: white;
border: 1px solid black;
border-radius: 2px;
}
.message_buttons > button {
height: 1.6em;
width: 1.6em;
padding: 2px;
margin: 2px;
}
#navbar {
border-bottom: 2px solid black;
width: 100%;
display: inline-block;
flex-grow: 0;
}
#inputbox {
border-top: 2px solid black;
display: flex;
}
#inputbox > button {
/* padding: 0 10px 0 10px; */
width: 4em;
}
#input {
resize: none;
flex-grow: 1;
font-size: 16px;
}
* {
margin: 0;
padding: 0;
border: 0;
}
body {
display: flex;
flex-direction: column;
max-height: 100vh;
}
.date {
text-align: center;
font-weight: bold;
border-bottom: 1px solid black;
}
.deleted {
color: #999;
}
.new_messages {
display: none;
text-align: center;
background-color: red;
color: white;
}
|