File size: 4,663 Bytes
701e0d0
ec8894f
 
 
 
67ba7ec
701e0d0
 
ec8894f
701e0d0
 
ec8894f
1110b36
 
 
701e0d0
 
c9dc71a
 
 
67ba7ec
0260a6c
67ba7ec
9c5c050
1110b36
0260a6c
701e0d0
c9dc71a
701e0d0
 
 
 
 
 
 
0260a6c
ec8894f
 
701e0d0
ec8894f
869769b
c9dc71a
ec8894f
146224f
869769b
146224f
555c9a9
 
 
 
701e0d0
 
ec8894f
 
701e0d0
 
 
 
ec8894f
 
701e0d0
 
 
 
ec8894f
 
701e0d0
 
 
ec8894f
 
701e0d0
ec8894f
555c9a9
ec8894f
 
701e0d0
555c9a9
701e0d0
 
 
ec8894f
701e0d0
 
 
67ba7ec
ec8894f
 
701e0d0
 
c9dc71a
 
555c9a9
 
 
869769b
c9dc71a
 
869769b
c9dc71a
ec8894f
 
701e0d0
 
 
 
ec8894f
 
701e0d0
 
 
ec8894f
 
701e0d0
 
 
 
ec8894f
 
66f6687
 
3a33259
66f6687
 
 
701e0d0
 
 
 
 
 
67ba7ec
ec8894f
 
c9dc71a
701e0d0
 
 
 
ec8894f
 
869769b
701e0d0
ec8894f
 
701e0d0
 
 
c9dc71a
 
 
 
ec8894f
869769b
701e0d0
c9dc71a
 
 
 
869769b
 
 
 
ec8894f
c9dc71a
 
ec8894f
9c5c050
 
 
869769b
 
 
 
 
c9dc71a
869769b
c9dc71a
 
ec8894f
 
 
869769b
ec8894f
67ba7ec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9c5c050
67ba7ec
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100svh;
    font-family: Monospace;
    font-size: 15px;
}
body {
    display: flex;
}
button{
    cursor: pointer;
}
.wrapper {
    background: #34495e;
    margin: 0;
    min-width: 320px;
    width: 100%;
    display: grid;
    grid-template-rows: min-content auto;
    height: 100%;
    padding: 0px 20px;
}

.chat {
    --textarea: 0px;
    border-radius: 5px;
    display: block;
    width: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
    background: rgb(161, 161, 161);
    padding: 10px 0;
    height: max(calc(100svh - 105px - var(--textarea)), calc(50svh - 90px));
}

.chat .message {
    display: flex;
    margin: 5px 20px 5px 10px;
    filter: opacity(0.9);
}
.chat .message.me {
    margin: 5px 10px 5px 20px;
}
.chat .message.comando {
    margin: 5px auto;
    display: table;
}
.chat .message:last-child {
    filter: opacity(1);
}

.chat .message.no-opacity {
    display: flex;
    margin: 10px 0 0 10px;
    filter: opacity(1);
}

.chat .message img {
    margin: 0 10px 0 0;
    height: 30px;
    border-radius: 50%;
}

.chat .message.me img {
    order: 2;
    margin: 0 0 0 3px;
}

.chat .message div {
    flex: 1;
    max-width: 100%;
}

.chat .message div p {
    max-width: calc( 100% - 20px );
    display: inline-block;
    margin: 0;
    padding: 8px 10px 8px 10px;
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    min-width: 40%;
    transition: 0.5s height;
}

.chat .message.me div p {
    float: right;
    background: #b4c2ff;
}
.chat .message.comando div p {
    background: #d0a8ff;
}
.chat .message.warning div p  {
    background: #f0e370;
}
.chat .message.error div p  {
    background: #f09470;
}

.chat .message div p ul {
    list-style: none;
    color: #555;
    padding-right: 10px;
}

.chat .message:last-child div p ul {
    list-style: none;
    color: blue;
}

.chat .message div p ul.ultotal {
    list-style: none;
    color: #34495e;
    font-size: 12px;
}

.chat .message pre {
    overflow-x: scroll;
    border: solid 1px #e5e4e4;
    padding: 10px;
}

.input-box {
    background: #222f3d;
    margin: 10px 0;
    height: 30px;
    display: flex;
    border-radius: 5px;
    max-height: 50svh;
}

.input-box textarea,
.input-box button {
    margin: 0;
    border: none;
    padding: 0 15px;
}

.input-box button:focus, .input-box textarea:focus  {
    outline: none;
}

.input-box .input-text {
    width: 100%;
    border-radius: 5px 0 0 5px;
    resize: none;
    border-top: solid 7px #fff;
    border-bottom: solid 7px #fff;
    
}
.input-box button{
    width: 30px;
    background-size: 20px;
    background-color: #ddd;
    background-repeat: no-repeat;
    background-position: center;
    border-left: solid 1px #555;
}
.input-box .input-send {
    background-image: url(/static/img/send.png);
}
.input-box .input-delete {
    background-image: url(/static/img/delete.png);
}
.input-box .input-menu {
    background-image: url(/static/img/menu.svg);
}
.input-box button:first-child{
    border-left: none;
}
.input-box button:last-child{
    border-radius: 0 5px 5px 0;
}
.input-box button:disabled, .input-box textarea:disabled{
    background-color: #8b8b8b;
    border-color: #8b8b8b;

}

#message-template{
    display: none;
}

.loader-wrap {
    display: flex;
}
.loader {
    margin: auto;
    width: 48px;
    height: 48px;
    border: 3px dotted #476380;
    border-style: solid solid dotted dotted;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    animation: rotation 2s linear infinite;
}
.loader.firststage{
    border: 3px dotted #49b359;
    border-style: solid solid dotted dotted;
    transition:all 1s;
}
.loader::after {
    content: '';  
    box-sizing: border-box;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    border: 3px dotted #445464;
    border-style: solid solid dotted;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    animation: rotationBack 1s linear infinite;
    transform-origin: center center;
}
.loader.firststage::after {
    border: 3px dotted #49b359;
    border-style: solid solid dotted;
    transition:all 1s;
}
      
@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
    } 
    @keyframes rotationBack {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-360deg);
    }
} 
.loader-wrap  ~ div {
    text-align: center;
    margin-top: 10px;
}
dialog{
    margin: auto;
    outline: none;
}