CSS now split into a base structure and then theming
[KiwiIRC.git] / client / assets / css / style.css
1 html, body { height:100%; }
2 * { margin:0; padding:0; }
3
4
5
6 /* Few resets for within the kiwi container */
7 #kiwi {
8 overflow:hidden; position:relative;
9 height:100%;
10 }
11 #kiwi * { margin:0px; padding:0px; }
12 #kiwi p { margin:0.5em 0; }
13 #kiwi a { color:#36C; text-decoration:none; cursor:pointer; }
14 #kiwi a img { border:none; }
15
16
17 /**
18 * Main layout blocks
19 */
20 #kiwi #toolbar { position:absolute; top:0px; width:100%; display:none; }
21 #kiwi #panels { position:absolute; left:0px; right:200px; bottom:100px; top:100px; }
22 #kiwi #memberlists { position:absolute; right:0px; width:200px; bottom:100px; top:100px; overflow-y:auto; }
23 #kiwi #controlbox { position: absolute; bottom:0px; width:100%; display:none; }
24 #kiwi #memberlists_resize_handle {
25 position: absolute; width:10px; z-index:1; cursor:w-resize;
26 }
27
28
29 #kiwi #toolbar #tabs { margin-right: 200px; }
30 #kiwi #toolbar .panellist {
31 overflow: hidden;
32 white-space: nowrap;
33 display:block;
34 }
35 #kiwi #toolbar .panellist li {
36 float: left; list-style: inline;
37 display:inline; position:relative;
38 padding:5px; margin:3px;
39 cursor: pointer;
40 }
41
42 #kiwi #toolbar .panellist .active { padding-right:23px; }
43 #kiwi #toolbar .panellist .alert_highlight { font-weight: bold; }
44 #kiwi #toolbar .panellist .alert_activity { font-weight: bold; }
45 #kiwi #toolbar .panellist .alert_action { font-weight: bold; }
46
47 #kiwi #toolbar .panellist li .part { position: absolute; top: 8px; right: 5px; }
48 #kiwi #toolbar .panellist li .part:after { content:"[x]"; }
49 #kiwi #toolbar .panellist li img.icon { left:5px; top:2px; height:auto; width:auto; }
50
51 #kiwi #status_message {
52 background: #FFF;
53 border-bottom: 1px solid;
54 text-align: center;
55 }
56
57
58 #kiwi .panel_container { overflow-y:auto; height:100%; }
59
60
61
62 #kiwi .messages {
63 overflow-x:wrap;
64 border:none; display: none;
65 }
66 #kiwi .messages a {}
67 #kiwi .messages.active { display:block; }
68
69 #kiwi .messages .msg {}
70 #kiwi .messages .msg .time { display:inline; }
71 #kiwi .messages .msg .nick { display:inline; }
72 #kiwi .messages .msg .text { display:inline; }
73
74 #kiwi .messages .msg.action .nick { display:none; }
75 #kiwi .messages .msg.action .text { }
76 #kiwi .messages .msg.action.join { }
77 #kiwi .messages .msg.action.part .text { }
78 #kiwi .messages .msg.action.quit .text { }
79 #kiwi .messages .msg.action.kick .text { }
80 #kiwi .messages .msg.status .nick { display:none; }
81 #kiwi .messages .msg.status .text { }
82 #kiwi .messages .msg.topic .nick { display:none; }
83 #kiwi .messages .msg.topic .text { }
84 #kiwi .messages .msg.motd { }
85 #kiwi .messages .msg.motd .nick { }
86 #kiwi .messages .msg.motd .text { }
87 #kiwi .messages .msg.whois .nick { }
88 #kiwi .messages .msg.whois .text { }
89 #kiwi .messages .msg.error .text { }
90
91 #kiwi .messages .msg.global_nick_highlight { }
92 #kiwi .messages .msg.highlight { }
93
94
95
96 /* A member/nick list per channel */
97 #kiwi #memberlists { border-left: 1px solid #8A8A8A; }
98 #kiwi #memberlists ul { display:none; }
99
100 /* The active channels nicklist */
101 #kiwi #memberlists ul.active { display:block; }
102 #kiwi #memberlists ul li { overflow-y:auto; overflow-x:hidden; cursor:pointer; }
103 #kiwi #memberlists ul li a.nick { }
104
105 /* The userbox shown when clicking a nick */
106 #kiwi #memberlists ul li .userbox { position:relative; }
107 #kiwi #memberlists ul li .userbox a { }
108 #kiwi #memberlists ul li .userbox a i { }
109
110
111
112 /**
113 * Control box
114 */
115 #kiwi #controlbox .input {
116 height:1.7em;
117 }
118
119 /* The nick label */
120 #kiwi #controlbox .input .nick { cursor: pointer; }
121 #kiwi #controlbox .input .nick a { }
122
123 /* Wrapper div around the text area input */
124 #kiwi #controlbox .input .input_wrap { display:inline; }
125
126 /* The textarea input */
127 #kiwi #controlbox .input .inp { }
128
129
130 /* Nick change dialog showed when clicking the nick label */
131 #kiwi #controlbox .nickchange {
132 position: absolute;
133 background: #FFF;
134 }
135 #kiwi #controlbox .nickchange input { }
136 #kiwi #controlbox .nickchange button { }
137
138
139
140 /**
141 * Topic bar
142 */
143 #kiwi #topic { position:relative; height:2em; }
144 #kiwi #topic div {
145 position:absolute;
146 top:0; bottom:0; left:0; right:0;
147 overflow: hidden;
148 }
149
150
151
152
153
154 /**
155 * Server selection dialog
156 */
157 #kiwi .server_select { width:800px; margin:0 auto; overflow:hidden; }
158 #kiwi .server_select .more { display: none; }
159 #kiwi .server_select button { }
160 #kiwi .server_select input { }
161 #kiwi .server_select label { float:left; width:5em; }
162 #kiwi .server_select br { clear:both; }
163 #kiwi .server_select .basic input { }
164 #kiwi .server_select .basic label { }
165 #kiwi .server_select .basic { border-bottom: 1px solid gray; margin-bottom:1em; }
166 #kiwi .server_select .basic .show_more { }
167 #kiwi .server_select.single_server .basic { border:none; }
168 #kiwi .server_select .status { }
169
170 /* When connected to an IRC server, .ok is set on the status div */
171 #kiwi .server_select .status.ok { }
172
173 /* IRC server connection error, .error is set on the status div */
174 #kiwi .server_select .status.error { }
175
176
177
178 /* Logo and title in the server selection dialog */
179 #kiwi .server_select .kiwi_logo { text-align: center; display:block; }
180 #kiwi .server_select .kiwi_logo h1 { }
181 #kiwi .server_select .kiwi_logo img { }
182
183
184
185 /* Icons in the top right corner */
186 #kiwi #toolbar .app_tools { float:right; }
187 #kiwi #toolbar .app_tools ul li {
188 display:inline; cursor:pointer;
189 }
190 #kiwi #toolbar .app_tools img { height:25px; width:25px; margin: 6px 0.7em 0 0; }
191
192
193
194 /* Settings applet */
195 #kiwi .settings {
196 width:900px;
197 margin:1em auto;
198 }
199 #kiwi .settings table td {
200 padding:0.5em 1em;
201 }
202
203
204
205
206 /**
207 * Reusable componants
208 */
209
210 #kiwi .divider-verticle {
211 border-left: 1px solid #CFCFCF;
212 border-right: 1px solid #FFFFFF;
213 position: absolute;
214 top:25px; bottom:25px;
215 right:0;
216 width:0;
217 }
218
219 #kiwi .divider-horizontal {
220 border-top: 1px solid #CFCFCF;
221 border-bottom: 1px solid #FFFFFF;
222 position: absolute;
223 left:25px; right:25px;
224 bottom:0;
225 height:0;
226 }
227
228
229
230
231
232 /**
233 * Themes
234 */
235
236
237 /* Relaxed theme */
238 #kiwi.theme_relaxed {
239 background: url(../img/background-light.png) left top repeat-x #E3E3E3;
240 color: #555555;
241 }
242 #kiwi.theme_relaxed,
243 #kiwi.theme_relaxed input,
244 #kiwi.theme_relaxed button,
245 #kiwi.theme_relaxed textarea {
246 font-family:Arial, Helvetica, sans-serif;
247 font-size:14px; line-height:1.4em;
248 }
249 #kiwi.theme_relaxed input, textarea {
250 box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5),0 1px 0px rgba(255, 255, 255, 0.3);
251 border: none;
252 border-radius: 3px;
253 }
254 #kiwi.theme_relaxed #toolbar {
255 background-color:#1B1B1B; font-size:0.9em;
256 }
257 #kiwi.theme_relaxed #controlbox { background-color:#1B1B1B; }
258 #kiwi.theme_relaxed #memberlists_resize_handle {
259 /*background:url('../img/resize_handle.png') no-repeat; background-position:center;*/
260 }
261 #kiwi.theme_relaxed #toolbar .panellist li {
262 line-height: 1.4em;
263 vertical-align: middle;
264
265 border-radius:5px;
266 -moz-border-radius:5px;
267 -webkit-border-radius:5px;
268 -khtml-border-radius:5px;
269 behavior: url(border-radius.htc);
270
271 background-image: -webkit-gradient(
272 linear,
273 left top,
274 left bottom,
275 color-stop(0.38, rgb(238,238,238)),
276 color-stop(0.68, rgb(209,209,209))
277 );
278 background-image: -moz-linear-gradient(
279 center top,
280 rgb(238,238,238) 38%,
281 rgb(209,209,209) 68%
282 );
283
284 border: 1px solid #333;
285 background-color: #eee;
286 }
287
288 #kiwi.theme_relaxed #toolbar .panellist .alert_highlight { background: #990000; }
289 #kiwi.theme_relaxed #toolbar .panellist .alert_activity { background: #009900; }
290 #kiwi.theme_relaxed #toolbar .panellist .alert_action { }
291
292 #kiwi.theme_relaxed #toolbar .panellist .active { padding-right:23px; }
293 #kiwi.theme_relaxed #toolbar .panellist li .part {
294 background:url('../img/redcross.png'); width:14px; height:14px;
295 }
296 #kiwi.theme_relaxed #toolbar .panellist li .part:after { content:""; }
297
298 #kiwi.theme_relaxed #toolbar .panellist li.server span { background:url(../img/server_tab.png) no-repeat; padding-left:23px; }
299
300 /* Tab texts are within a span */
301 #kiwi.theme_relaxed #toolbar .panellist li span { line-height:20px; vertical-align:middle; display:block; }
302
303 #kiwi.theme_relaxed #status_message {
304 background: #FEEFB3; color: #9F6000;
305 border-bottom: 1px solid;
306 padding: 0.9em;
307 text-align: center; font-size:1.1em;
308 }
309 #kiwi.theme_relaxed #status_message.err { color:#D8000C; background:#FFBABA; }
310
311 #kiwi.theme_relaxed .messages { color: #333333; }
312 #kiwi.theme_relaxed .messages.active { }
313 #kiwi.theme_relaxed .messages a { text-decoration:none; }
314
315 #kiwi.theme_relaxed .messages .msg { border-bottom: 1px solid #DEDEDE; padding: 1px; font-family:arial; font-size:0.9em; }
316 #kiwi.theme_relaxed .messages .msg .time { width:6em; float:left; color:#777; display:none; }
317 #kiwi.theme_relaxed .messages .msg .nick { width:11em; float:left; font-size:12px; font-family:Arial; text-align:left; padding: 5px; }
318 #kiwi.theme_relaxed .messages .msg .text { display:block; margin-left:12em; border-left: 1px solid #DEDEDE; white-space:pre-wrap; word-wrap:break-word; font-family:arial; padding:5px; }
319
320 #kiwi.theme_relaxed .messages .msg.action .nick { }
321 #kiwi.theme_relaxed .messages .msg.action .text { margin-left:9em; color:#009900; border-left:none; font-style:italic; }
322 #kiwi.theme_relaxed .messages .msg.action.join { color:#009900; }
323 #kiwi.theme_relaxed .messages .msg.action.part .text { color:#900; }
324 #kiwi.theme_relaxed .messages .msg.action.quit .text { color:#900; }
325 #kiwi.theme_relaxed .messages .msg.action.kick .text { color:#900; }
326 #kiwi.theme_relaxed .messages .msg.status .nick { }
327 #kiwi.theme_relaxed .messages .msg.status .text { color:#990000; margin-left:9em; border-left:none; font-weight:bold; }
328 #kiwi.theme_relaxed .messages .msg.topic .nick { display:none; }
329 #kiwi.theme_relaxed .messages .msg.topic .text { color:#009900; margin-left:9em; font-style: italic; border-left:none; }
330 #kiwi.theme_relaxed .messages .msg.motd { border:none; }
331 /*#kiwi.theme_relaxed .messages .msg.motd .nick { display:none; }*/
332 #kiwi.theme_relaxed .messages .msg.motd .text { color:#666; }
333 #kiwi.theme_relaxed .messages .msg.whois .nick { font-weight:normal; }
334 #kiwi.theme_relaxed .messages .msg.whois .text { margin-left:18em; padding-left:1em; border-left:1px dashed #999; }
335 #kiwi.theme_relaxed .messages .msg.error .text {
336 border:1px solid #A33F3F; background-color:#D28A8A;
337 padding:0.5em; margin-top:1em; margin-bottom:1em; margin-right:2em;
338 }
339
340 #kiwi.theme_relaxed .messages .msg.global_nick_highlight,
341 #kiwi.theme_relaxed .messages .msg.highlight { background:#D9D9D9; }
342
343
344
345 #kiwi.theme_relaxed #memberlists {
346 background-color: #DADADA;
347 border-left: 1px solid #8A8A8A;
348 }
349 #kiwi.theme_relaxed #memberlists ul { list-style: none; }
350 #kiwi.theme_relaxed #memberlists ul.active { }
351 #kiwi.theme_relaxed #memberlists ul li { padding: 0.2em 1em; }
352 #kiwi.theme_relaxed #memberlists ul li:hover {
353 border-left: 5px solid #88C56A;
354 -webkit-transition: 0.2s ease;
355 -moz-transition: 0.2s ease;
356 -ms-transition: 0.2s ease;
357 -o-transition: 0.2s ease;
358 transition: 0.2s ease;
359 }
360 #kiwi.theme_relaxed #memberlists ul li a.nick { display:block; color:black; }
361
362 #kiwi.theme_relaxed #memberlists ul li .userbox { margin:0 1em 5px 1em; padding-bottom:0.7em; font-size:.9em; }
363 #kiwi.theme_relaxed #memberlists ul li .userbox a { display:block; text-decoration:none; margin-bottom:2px; }
364 #kiwi.theme_relaxed #memberlists ul li .userbox a i { font-size:1.1em; margin-right:5px; }
365
366
367 #kiwi.theme_relaxed #controlbox .input {
368 background:#fff; margin:3px;
369 height:1.7em;
370 border-radius:5px;
371 -moz-border-radius:5px;
372 -webkit-border-radius:5px;
373 -khtml-border-radius:5px;
374 }
375 #kiwi.theme_relaxed #controlbox .input .nick { text-align: right; width:11em; left:0px; position:absolute; padding:2px; }
376 #kiwi.theme_relaxed #controlbox .input .nick a { text-decoration:none; color:black; }
377 #kiwi.theme_relaxed #controlbox .input .input_wrap {
378 position:absolute;
379 right:7px; left: 12.2em;
380 height:1.7em;
381 }
382 #kiwi.theme_relaxed #controlbox .input .inp {
383 line-height:1.7em;
384 border: medium none;
385 box-shadow: none;
386 border-radius: 0;
387 outline:none; resize:none;
388 overflow:hidden;
389 position:relative;
390 height:100%; width:100%;
391 display: block;
392 }
393
394
395 #kiwi.theme_relaxed #controlbox .nickchange {
396 padding:10px; left: 0px;
397 background: #1B1B1B; color:#eeeeee;
398 }
399 #kiwi.theme_relaxed #controlbox .nickchange input { padding:0.3em 0.5em; }
400 #kiwi.theme_relaxed #controlbox .nickchange button { padding:0.5em; }
401
402
403
404 #kiwi.theme_relaxed #topic { background-color:#1B1B1B; height:2em; }
405 #kiwi.theme_relaxed #topic div {
406 top:2; bottom:2px; left:0; width:100%;
407 padding: 0.2em 1em;
408 text-align: center;
409 box-shadow: none;
410 border-radius: 0;
411 background-color:#FFF;
412 height: 1.5em;
413 overflow: hidden;
414 outline: none;
415 }
416
417
418 #kiwi.theme_relaxed #toolbar .app_tools { width:200px; padding-left:10px; color:#D4D4D4; }
419 #kiwi.theme_relaxed #toolbar .app_tools ul li {
420 font-size:26px;
421 -webkit-transition: all .3s ease;
422 -moz-transition: all .3s ease;
423 transition: all .3s ease;
424 margin-left:10px;
425 }
426 #kiwi.theme_relaxed #toolbar .app_tools ul li:hover { color:#88C56A; }
427 #kiwi.theme_relaxed #toolbar .app_tools img { }
428
429
430 /* The server select dialog */
431 #kiwi.theme_relaxed .server_select { width:730px; padding:3em 0 2em 0; margin: 0 auto; }
432 #kiwi.theme_relaxed .server_select .more { display: none; width:270px; margin:0 auto; }
433 #kiwi.theme_relaxed .server_select button { float:right; padding:3px 7px; margin-top:10px; }
434 #kiwi.theme_relaxed .server_select input { float:right; margin-bottom:5px; padding:3px 7px; width:150px; }
435 #kiwi.theme_relaxed .server_select label { float:left; width:5em; padding-top:3px }
436 #kiwi.theme_relaxed .server_select br { clear:both; }
437 #kiwi.theme_relaxed .server_select .basic input, .server_select .basic button { font-size:1em; padding:0.5em 1em; }
438 #kiwi.theme_relaxed .server_select .basic input { width:170px; }
439 #kiwi.theme_relaxed .server_select .basic label { font-size:1.3em; margin-top:4px; }
440 #kiwi.theme_relaxed .server_select .basic { border-bottom: 1px dashed gray; margin-bottom:1em; }
441 #kiwi.theme_relaxed .server_select .basic .show_more { display: block; width:40px; margin:10px 0 0 0; font-size:0.8em; background: url(../img/more.png) no-repeat right 7px; }
442 #kiwi.theme_relaxed .server_select.single_server .basic { border:none; }
443 #kiwi.theme_relaxed .server_select .status { text-align: center; font-weight: bold; padding:1em; }
444 #kiwi.theme_relaxed .server_select .status.ok { }
445 #kiwi.theme_relaxed .server_select .status.error {
446 border:1px solid #A33F3F; background-color:#D28A8A;
447 padding:0.5em; margin-top:1em; margin-bottom:1em; margin-right:2em;
448 }
449
450
451 #kiwi.theme_relaxed .server_select .kiwi_logo { text-align: center; display:block; }
452 #kiwi.theme_relaxed .server_select .kiwi_logo h1 {
453 font-size:20px;
454 line-height:48px; vertical-align: middle;
455 color: #555555;
456 }
457 #kiwi.theme_relaxed .server_select .kiwi_logo img { }
458
459
460
461
462
463 /* CLI theme */
464 #kiwi.theme_cli { background:#222222; color:#6d6d6d; }
465 #kiwi.theme_cli #controlbox { background:#111111; border-top:1px solid #444444; color:#909090; font-size:1.3em; line-height:2em; }
466 #kiwi.theme_cli #controlbox .input_wrap:before { content:"> " }
467 #kiwi.theme_cli #controlbox .input { background:none; border:none; border-radius: none; }
468 #kiwi.theme_cli #controlbox .input .nick { line-height:1.7em; padding:0; }
469 #kiwi.theme_cli #controlbox .input .inp { background:transparent; color:#909090; font-size:1.3em; width:92%; display:inline; }
470 /* #kiwi.theme_cli #controlbox .input .inp:before { content:">"; } */
471
472 #kiwi.theme_cli #topic { background:#111111; border-bottom:1px solid #444444; border-top:1px solid #444444; }
473 #kiwi.theme_cli #topic div { background:transparent; color:#6d6d6d; border:none; outline:none; height:1.5em; }
474
475 #kiwi.theme_cli #memberlists { background:#222222; }
476 #kiwi.theme_cli #memberlists ul li a.nick { color:#6d6d6d; }
477
478 #kiwi.theme_cli .messages .msg > div { color:#6d6d6d; font-family: Inconsolata, Consolas, 'courier new', monospace; }
479 #kiwi.theme_cli .messages .msg { border: none; }
480 #kiwi.theme_cli .messages .msg .time { width:6em; }
481 #kiwi.theme_cli .messages .msg .nick { }
482 #kiwi.theme_cli .messages .msg .text { white-space:pre-wrap; word-wrap:break-word; }
483
484 #kiwi.theme_cli .messages .msg.action .nick { display:none; }
485 #kiwi.theme_cli .messages .msg.action .text { margin-left:9em; color:#009900; border-left:none; font-style:italic; }
486 #kiwi.theme_cli .messages .msg.action.join { color:#009900; }
487 #kiwi.theme_cli .messages .msg.action.part .text { color:#900; }
488 #kiwi.theme_cli .messages .msg.action.quit .text { color:#900; }
489 #kiwi.theme_cli .messages .msg.action.kick .text { color:#900; }
490 #kiwi.theme_cli .messages .msg.status .nick { display:none; }
491 #kiwi.theme_cli .messages .msg.status .text { color:#990000; margin-left:9em; border-left:none; font-weight:bold; }
492 #kiwi.theme_cli .messages .msg.topic .nick { display:none; }
493 #kiwi.theme_cli .messages .msg.topic .text { color:#009900; margin-left:9em; font-style: italic; border-left:none; }
494 /*#kiwi.theme_cli .messages .msg.motd .nick { display:none; }*/
495 #kiwi.theme_cli .messages .msg.motd { border:none; }
496 #kiwi.theme_cli .messages .msg.motd .text { color:#666; }
497 #kiwi.theme_cli .messages .msg.whois .nick { font-weight:normal; }
498 #kiwi.theme_cli .messages .msg.whois .text { margin-left:18em; padding-left:1em; border-left:1px dashed #999; }
499 #kiwi.theme_cli .messages .msg.error .text {
500 border:1px solid #A33F3F; background-color:#D28A8A;
501 padding:0.5em; margin-top:1em; margin-bottom:1em; margin-right:2em;
502 }
503
504 #kiwi.theme_cli .messages .msg.global_nick_highlight { background:#111111; }