-
Notifications
You must be signed in to change notification settings - Fork 17
/
design.css
executable file
·511 lines (421 loc) · 10.7 KB
/
design.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
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
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
/* Inline media */
@import "inlineMedia.css";
/* Basic Body Structure - Solarized Dark 2.0, based on Solarized Dark 1.0, based on Sapientia 1.3 */
* {
margin: 0;
padding: 0;
font-size: 100%;
word-wrap: break-word;
word-break: break-word;
}
body {
color: #586e75;
height: 100%;
z-index: 100;
font-size: 15pt;
overflow: hidden;
background-color: #002b36;
font-family: "HelveticaNeue";
}
#body {
left: 0;
right: 0;
bottom: 0;
width: 100%;
max-height: 100%;
/* overflow: none is added here, even though it is already
declared by body {} because on OS X Mavericks, there is a
weird quirk that causes the horizontal slider to appear
even though we only ask for the vertical one. */
overflow: none;
overflow-y: auto;
z-index: 100;
position: absolute;
opacity: 0; /* Set by JavaScript */
-webkit-transition: opacity 0.8s linear;
}
/* Only factor in height of topic bar when selected == true
because that is only time the topic is displayed according
to the logic defined by baseLayout.css */
body[data-selected="true"][data-view-type="channel"] #body {
max-height: calc(100% - 2.2em); /* height minus topic */
}
div.line {
margin-top: -1px;
clear: both;
}
body[dir="rtl"] .sender {
display: inline-block;
}
/* Scrolling */
body[data-custom-scroller="true"]::-webkit-scrollbar {
width: 17px;
}
body[data-custom-scroller="true"]::-webkit-scrollbar:horizontal {
height: 0;
}
body[data-custom-scroller="true"]::-webkit-scrollbar-track {
background: #393939;
box-shadow: inset 1px 0px 0px 0px #4b4b4b;
}
body[data-custom-scroller="true"]::-webkit-scrollbar-thumb {
background-color: #7c7c7c;
border: 4px solid transparent;
border-left: 5px solid transparent;
border-radius: 20px;
background-clip: content-box;
}
body[data-custom-scroller="true"]::-webkit-scrollbar-thumb:hover {
background-color: #b0b0b0;
}
/* Loading Screen */
#loadingScreen {
position: absolute;
top: 45%;
left: calc(50% - (320px / 2)); /* half of width + padding */
width: 300px;
font-size: 18px;
background: #002b36;
border: 1px solid #073642;
border-radius: 5px;
padding: 5px 10px;
opacity: 1; /* Set by JavaScript */
-webkit-transition: opacity 0.8s linear;
}
/* Time */
body[dir="ltr"] .time {
color: #586e75;
white-space: nowrap;
}
body[dir="rtl"] .time {
color: #586e75;
white-space: nowrap;
padding-left: 0.4em;
display: inline-block;
}
/* Encryption Lock */
.encryptionLock img {
float: right;
margin: 0;
padding: 0;
height: 11px;
margin-top: 2px;
padding-left: 10px;
}
/* Links */
a {
color: #268bd2;
border-color: #268bd2;
text-decoration: none;
border-bottom: dotted 1px;
}
a:hover {
color: #2da2ea;
border-color: #2da2ea;
}
/* Topic Bar */
#topicBar {
top: 0;
left: 0;
right: 0;
color: #586e75;
z-index: 400;
opacity: 0; /* Set by JavaScript */
line-height: 145%;
position: fixed;
background: #073642;
padding: 2px 0.5em 3px;
border-bottom: 1px solid #000a0c;
-webkit-box-shadow: 0 1px 5px #000a0c;
-webkit-transition: opacity 0.8s linear;
-webkit-font-smoothing: subpixel-antialiased;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
/* Topic bar hover additions contributed with permission from the project:
<https://github.com/hbang/Simplified-Light-Modifications> */
#topicBar:hover {
overflow: visible;
white-space: normal;
}
#topicBar a {
color: #839496;
border-color: #839496;
}
#topicBar a:hover {
color: #93a1a1;
border-color: #93a1a1;
}
/* Remember Line */
#mark {
clear: both;
position: relative;
z-index: 295;
margin-top: -1px;
border-bottom: 1px dashed;
border-color: rgba(88,110,117,0.5);
-webkit-transition: 0.2s linear;
}
/* Message buffer loading animation */
.message_buffer_loading_indicator {
text-align: center;
height: 42px;
}
.message_buffer_loading_indicator span {
font-family: Optima !important;
font-size: 35px;
font-weight: 600;
letter-spacing: 5px;
line-height: 43px;
color: #797979;
-webkit-animation: ellipsis-period 1.5s infinite;
animation: ellipsis-period 1.5s infinite;
}
.message_buffer_loading_indicator span:nth-child(1) {
-webkit-animation-delay: 0.0s;
animation-delay: 0.0s;
}
.message_buffer_loading_indicator span:nth-child(2) {
-webkit-animation-delay: 0.1s;
animation-delay: 0.1s;
}
.message_buffer_loading_indicator span:nth-child(3) {
-webkit-animation-delay: 0.2s;
animation-delay: 0.2s;
}
@keyframes ellipsis-period {
0% { opacity: 0.2; }
20% { opacity: 1.0; }
100% { opacity: 0.2; }
}
/* Message buffer session indicator */
.message_buffer_session_indicator {
display: flex;
display: -webkit-flex;
padding: 0.5em 0;
}
.message_buffer_session_indicator > hr {
background: #444;
border: 0;
height: 1px;
margin-top: 0.6em;
flex: 1;
-webkit-flex: 1;
}
.message_buffer_session_indicator > span {
font-style: oblique;
margin: 0 1em;
color: #919191;
}
.message_buffer_session_indicator + #mark {
display: none;
}
/* NOTICE/CTCP/WALLOPS */
div.line[data-line-type="ctcp"],
div.line[data-line-type="notice"],
div.line[data-line-type="wallops"] {
color: #dc322f;
z-index: 191;
background: rgba(203,75,22,.2);
position: relative;
padding: 2px 5px 2px 5px;
border-top: 1px solid rgba(203,75,22,.3);
border-bottom: 1px solid rgba(203,75,22,.3);
}
div.line[data-line-type="ctcp"] a,
div.line[data-line-type="notice"] a,
div.line[data-line-type="wallops"] a {
color: #dc322f;
border-color: #dc322f;
}
div.line[data-line-type="ctcp"] a:hover,
div.line[data-line-type="notice"] a:hover,
div.line[data-line-type="wallops"] a:hover {
color: #cb4b16;
border-color: #cb4b16;
}
div.line[data-line-type="notice"] .sender {
color: #cb4b16;
font-weight: 700;
}
/* Selected User Messages */
.sender {
cursor: pointer;
}
div.line[data-line-type="privmsg"]:not(.selectedUser),
div.line[data-line-type="action"]:not(.selectedUser) {
transition-property: border-top, border-bottom, background-color;
transition-duration: 0.5s, 0.5s, 0.5s;
}
div.line[data-line-type="privmsg"] .time:not(.selectedUser),
div.line[data-line-type="action"] .time:not(.selectedUser) {
transition: color 0.5s;
}
div.line.selectedUser[data-highlight="false"] .time {
transition: color 0.5s ease-in;
/* color: #000;*/
}
div.line.selectedUser[data-highlight="false"] {
transition-property: border-top, border-bottom, background-color;
transition-duration: 0.5s, 0.5s, 0.5s;
z-index: 190;
position: relative;
border-top: 1px solid #2AA198 !important;
border-bottom: 1px solid #2AA198 !important;
background-color: #0D3330 !important;
}
/* PRIVMSG */
div.line[data-line-type="privmsg"][data-highlight="false"] {
padding: 2px 5px 2px 5px;
border-top: 1px solid transparent;
border-bottom: 1px solid transparent;
/* background-color: none;*/
}
div.line[data-line-type="privmsg"][data-highlight="true"],
div.line[data-line-type="action"][data-highlight="true"] {
z-index: 191;
position: relative;
font-weight: normal;
padding: 2px 5px 2px 5px;
border-top: 1px solid #994C00;
border-bottom: 1px solid #994C00;
background-color: #2d1e10 !important;
}
div.line[data-line-type="privmsg"] .message {
color: #aaa;
}
div.line[data-line-type="privmsg"][data-member-type="myself"] .message {
color: #839496;
}
div.line[data-line-type="privmsg"] .sender {
font-weight: 700;
}
/* ACTION */
div.line[data-line-type="action"] {
padding: 3px 5px 3px 5px;
}
div.line[data-line-type="action"] .message {
color: #aaa;
}
div.line[data-line-type="action"] .sender {
font-weight: 700;
}
div.line[data-line-type="action"][data-member-type="myself"] .sender,
div.line[data-line-type="action"][data-member-type="myself"] .message {
color: #839496;
}
body[dir="ltr"] div.line[data-line-type="action"] .sender:before {
content: "\2022";
margin-right: 0.4em;
}
body[dir="ltr"] div.line[data-line-type="action"] .sender:after {
content: "";
/* margin-right: 0.4em; */
}
body[dir="rtl"] div.line[data-line-type="action"] .sender:before {
content: "\2022";
margin-left: 0.4em;
}
body[dir="rtl"] div.line[data-line-type="action"] .sender:after {
content: "";
/* margin-left: 0.4em; */
}
/* DEBUG/INVITE */
div.line[data-line-type="invite"],
div.line[data-line-type="debug"],
div.line[data-line-type="dcc-file-transfer"],
div.line[data-line-type="off-the-record-encryption-status"] {
color: #586e75;
z-index: 190;
background: #073642;
position: relative;
padding: 2px 5px 2px 5px;
border-top: 1px solid #002b36;
border-bottom: 1px solid #002b36;
}
/* off-the-record-encryption-status Message Event */
div.line[data-line-type="off-the-record-encryption-status"] .message {
/* color: #ff0000; */
font-weight: 700;
}
/* Message of the Day (MOTD) */
/* 720, 721, 722 are used by ShadowIRCd for Oper MOTD. */
/* 372, 375, 376 are normal MOTD shared by several IRCds. */
div.line[data-command="372"],
div.line[data-command="721"] {
border: none;
padding-top: 3px;
padding-bottom: 3px;
}
div.line[data-command="375"],
div.line[data-command="720"] { /* Start. */
border-bottom: none;
padding-top: 2px;
padding-bottom: 3px;
}
div.line[data-command="376"],
div.line[data-command="722"] { /* End. */
border-top: none;
padding-top: 3px;
padding-bottom: 3px;
}
div.line[data-command="372"] .message,
div.line[data-command="375"] .message,
div.line[data-command="376"] .message
div.line[data-command="720"] .message,
div.line[data-command="721"] .message,
div.line[data-command="722"] .message {
font-family: "Menlo" !important;
}
/* GENERAL EVENT */
div.line[data-line-type="join"],
div.line[data-line-type="part"],
div.line[data-line-type="kick"],
div.line[data-line-type="quit"],
div.line[data-line-type="kill"],
div.line[data-line-type="nick"],
div.line[data-line-type="mode"],
div.line[data-line-type="topic"],
div.line[data-line-type="website"] {
padding: 3px 5px 3px 5px;
color: #586e75;
}
body[dir="ltr"] div.line[data-line-type="join"] .message:before {
content: "→";
color: #859900;
/* margin-right: 0.4em; */
}
body[dir="ltr"] div.line[data-line-type="kick"] .message:before,
body[dir="ltr"] div.line[data-line-type="part"] .message:before,
body[dir="ltr"] div.line[data-line-type="quit"] .message:before {
content: "←";
color: #dc322f;
/* margin-right: 0.4em; */
}
body[dir="ltr"] div.line[data-line-type="nick"] .message:before {
content: "•";
color: #859900;
/* margin-right: 0.4em; */
}
body[dir="rtl"] div.line[data-line-type="join"] .message:before {
content: "→";
color: #859900;
/* margin-right: 0.4em; */
}
body[dir="rtl"] div.line[data-line-type="kick"] .message:before,
body[dir="rtl"] div.line[data-line-type="part"] .message:before,
body[dir="rtl"] div.line[data-line-type="quit"] .message:before {
content: "←";
color: #dc322f;
/* margin-left: 0.4em; */
}
body[dir="rtl"] div.line[data-line-type="nick"] .message:before {
content: "•";
color: #859900;
/* margin-left: 0.4em; */
}
/* Nickname Colors */
.inlineSender {
font-weight: 700;
}