author | sheepluva |
Sat, 29 Oct 2011 16:54:46 +0200 | |
changeset 6231 | 810b9ced2b67 |
parent 6229 | 4c834af76c3b |
child 6235 | bb1a657f751b |
permissions | -rw-r--r-- |
6201
d88e7f6cf499
fix of /saveStyleSheet command, error message on stylesheet import fail
sheepluva
parents:
6197
diff
changeset
|
1 |
|
6185 | 2 |
/****************************************************************************** |
3 |
* |
|
4 |
* CSS-like definition of chat appearance |
|
5 |
* |
|
6 |
****************************************************************************** |
|
7 |
* |
|
6178
affa860f2983
BOOOOooOM <headshot>! removing default stylesheets from c++ code and adding them as text files to the qt resources
sheepluva
parents:
diff
changeset
|
8 |
* see http://doc.qt.nokia.com/4.5/richtext-html-subset.html#css-properties |
6180
0992fc5a4ad9
some changes to the css... display:none; works now (e.g. you can use it for user join/leave messages that are not your friends)
sheepluva
parents:
6178
diff
changeset
|
9 |
* |
0992fc5a4ad9
some changes to the css... display:none; works now (e.g. you can use it for user join/leave messages that are not your friends)
sheepluva
parents:
6178
diff
changeset
|
10 |
* In the QTfrontend of hedgewars also display:none; will work for class names |
6229
4c834af76c3b
* fix highlighting (i just broke it by not negating a boolean expression)
sheepluva
parents:
6222
diff
changeset
|
11 |
* that start with msg_ and .timestamp - as long as they are referenced |
4c834af76c3b
* fix highlighting (i just broke it by not negating a boolean expression)
sheepluva
parents:
6222
diff
changeset
|
12 |
* directly and not within any class hierachy. |
4c834af76c3b
* fix highlighting (i just broke it by not negating a boolean expression)
sheepluva
parents:
6222
diff
changeset
|
13 |
* Note: Will only effect new lines! |
6185 | 14 |
* |
15 |
****************************************************************************** |
|
16 |
* |
|
17 |
* This file can be stored at different locations, but it will be read only |
|
18 |
* once, based on first file found in this order: |
|
19 |
* |
|
20 |
* <userdir>/Data/css/chat.css |
|
21 |
* <datadir>/css/chat.css |
|
22 |
* <internal default style-sheet> |
|
23 |
* |
|
24 |
*****************************************************************************/ |
|
6178
affa860f2983
BOOOOooOM <headshot>! removing default stylesheets from c++ code and adding them as text files to the qt resources
sheepluva
parents:
diff
changeset
|
25 |
|
6180
0992fc5a4ad9
some changes to the css... display:none; works now (e.g. you can use it for user join/leave messages that are not your friends)
sheepluva
parents:
6178
diff
changeset
|
26 |
/* links */ |
6178
affa860f2983
BOOOOooOM <headshot>! removing default stylesheets from c++ code and adding them as text files to the qt resources
sheepluva
parents:
diff
changeset
|
27 |
a { color:#c8c8ff; } |
6180
0992fc5a4ad9
some changes to the css... display:none; works now (e.g. you can use it for user join/leave messages that are not your friends)
sheepluva
parents:
6178
diff
changeset
|
28 |
|
6197 | 29 |
/* appearance of the whole chat */ |
30 |
/* body { color: white; background-color: #000000; } */ |
|
31 |
||
32 |
/* appearance of all elements in chat */ |
|
33 |
/* * { color: white; background-color: #000000; } */ |
|
6182
d56d18802481
some more chat fixes and changes, I think. hum. what was that? um. aaah, I better go catch some sheep ... er sleep.. um..
sheepluva
parents:
6181
diff
changeset
|
34 |
|
6180
0992fc5a4ad9
some changes to the css... display:none; works now (e.g. you can use it for user join/leave messages that are not your friends)
sheepluva
parents:
6178
diff
changeset
|
35 |
/* nick names (they are also sometimes linked) */ |
6178
affa860f2983
BOOOOooOM <headshot>! removing default stylesheets from c++ code and adding them as text files to the qt resources
sheepluva
parents:
diff
changeset
|
36 |
.nick { text-decoration: none; } |
6180
0992fc5a4ad9
some changes to the css... display:none; works now (e.g. you can use it for user join/leave messages that are not your friends)
sheepluva
parents:
6178
diff
changeset
|
37 |
|
0992fc5a4ad9
some changes to the css... display:none; works now (e.g. you can use it for user join/leave messages that are not your friends)
sheepluva
parents:
6178
diff
changeset
|
38 |
/* various chat messages */ |
6182
d56d18802481
some more chat fixes and changes, I think. hum. what was that? um. aaah, I better go catch some sheep ... er sleep.. um..
sheepluva
parents:
6181
diff
changeset
|
39 |
.msg_UserChat { color:#ffcc00; } /* chat of people who aren't your friends */ |
6180
0992fc5a4ad9
some changes to the css... display:none; works now (e.g. you can use it for user join/leave messages that are not your friends)
sheepluva
parents:
6178
diff
changeset
|
40 |
.msg_UserChat .nick { color:#ffec20; } |
6182
d56d18802481
some more chat fixes and changes, I think. hum. what was that? um. aaah, I better go catch some sheep ... er sleep.. um..
sheepluva
parents:
6181
diff
changeset
|
41 |
.msg_FriendChat { color: #b0ff08; } |
d56d18802481
some more chat fixes and changes, I think. hum. what was that? um. aaah, I better go catch some sheep ... er sleep.. um..
sheepluva
parents:
6181
diff
changeset
|
42 |
.msg_FriendChat .nick { color: #30ff30; } |
6180
0992fc5a4ad9
some changes to the css... display:none; works now (e.g. you can use it for user join/leave messages that are not your friends)
sheepluva
parents:
6178
diff
changeset
|
43 |
.msg_UserJoin { color: #c0c0c0; } |
0992fc5a4ad9
some changes to the css... display:none; works now (e.g. you can use it for user join/leave messages that are not your friends)
sheepluva
parents:
6178
diff
changeset
|
44 |
.msg_UserJoin .nick { color: #d0d0d0; } |
6181
c739b503ae31
ugh wth... cleaned FL/IL change notifications up
sheepluva
parents:
6180
diff
changeset
|
45 |
.msg_FriendJoin { font-weight: bold; color: #c0f0c0; } |
6180
0992fc5a4ad9
some changes to the css... display:none; works now (e.g. you can use it for user join/leave messages that are not your friends)
sheepluva
parents:
6178
diff
changeset
|
46 |
.msg_FriendJoin .nick { color: #d8f0d8; } |
0992fc5a4ad9
some changes to the css... display:none; works now (e.g. you can use it for user join/leave messages that are not your friends)
sheepluva
parents:
6178
diff
changeset
|
47 |
.msg_UserAction { color: #ff80ff; } |
0992fc5a4ad9
some changes to the css... display:none; works now (e.g. you can use it for user join/leave messages that are not your friends)
sheepluva
parents:
6178
diff
changeset
|
48 |
.msg_UserAction .nick { color: #ffa0ff;} |
0992fc5a4ad9
some changes to the css... display:none; works now (e.g. you can use it for user join/leave messages that are not your friends)
sheepluva
parents:
6178
diff
changeset
|
49 |
.msg_FriendAction { color: #ff00ff; } |
0992fc5a4ad9
some changes to the css... display:none; works now (e.g. you can use it for user join/leave messages that are not your friends)
sheepluva
parents:
6178
diff
changeset
|
50 |
.msg_FriendAction .nick { color: #ff30ff; } |
6182
d56d18802481
some more chat fixes and changes, I think. hum. what was that? um. aaah, I better go catch some sheep ... er sleep.. um..
sheepluva
parents:
6181
diff
changeset
|
51 |
|
6229
4c834af76c3b
* fix highlighting (i just broke it by not negating a boolean expression)
sheepluva
parents:
6222
diff
changeset
|
52 |
/* uncomment next line to disable join and leave messages of non-friends */ |
4c834af76c3b
* fix highlighting (i just broke it by not negating a boolean expression)
sheepluva
parents:
6222
diff
changeset
|
53 |
/* .msg_UserJoin { display:none; } */ |
4c834af76c3b
* fix highlighting (i just broke it by not negating a boolean expression)
sheepluva
parents:
6222
diff
changeset
|
54 |
|
6197 | 55 |
/* timestamps */ |
56 |
.timestamp { |
|
57 |
color: #e0d8e0; |
|
58 |
font-family: courier; |
|
59 |
font-size: 11px; |
|
60 |
vertical-align: center; |
|
61 |
/* uncomment next line to hide timestamps */ |
|
62 |
/* display: none; */ |
|
63 |
} |
|
64 |
||
6231 | 65 |
/* .timestamp:hours { display: none; } */ |
66 |
.timestamp:seconds { display: none; } |
|
6229
4c834af76c3b
* fix highlighting (i just broke it by not negating a boolean expression)
sheepluva
parents:
6222
diff
changeset
|
67 |
|
6197 | 68 |
/* you can also set timestamp style for different msg types */ |
69 |
.msg_FriendChat .timestamp { color: #ffffff; } |
|
70 |
||
6182
d56d18802481
some more chat fixes and changes, I think. hum. what was that? um. aaah, I better go catch some sheep ... er sleep.. um..
sheepluva
parents:
6181
diff
changeset
|
71 |
/* messages that contain your nickname */ |
d56d18802481
some more chat fixes and changes, I think. hum. what was that? um. aaah, I better go catch some sheep ... er sleep.. um..
sheepluva
parents:
6181
diff
changeset
|
72 |
.highlight { } |
d56d18802481
some more chat fixes and changes, I think. hum. what was that? um. aaah, I better go catch some sheep ... er sleep.. um..
sheepluva
parents:
6181
diff
changeset
|
73 |
.highlight .nick { color: red; } /* nicknames in highlighted messages */ |
d56d18802481
some more chat fixes and changes, I think. hum. what was that? um. aaah, I better go catch some sheep ... er sleep.. um..
sheepluva
parents:
6181
diff
changeset
|
74 |
|
d56d18802481
some more chat fixes and changes, I think. hum. what was that? um. aaah, I better go catch some sheep ... er sleep.. um..
sheepluva
parents:
6181
diff
changeset
|
75 |
/* system messages */ |
6180
0992fc5a4ad9
some changes to the css... display:none; works now (e.g. you can use it for user join/leave messages that are not your friends)
sheepluva
parents:
6178
diff
changeset
|
76 |
.msg_Error { color: #ff0000; } |
0992fc5a4ad9
some changes to the css... display:none; works now (e.g. you can use it for user join/leave messages that are not your friends)
sheepluva
parents:
6178
diff
changeset
|
77 |
.msg_Warning { color: #ff8000; } |
0992fc5a4ad9
some changes to the css... display:none; works now (e.g. you can use it for user join/leave messages that are not your friends)
sheepluva
parents:
6178
diff
changeset
|
78 |
.msg_Notice { color: #fefefe; } |
6222
96d10dcd6d84
+ make names in notice messages and leave messages clickable too
sheepluva
parents:
6201
diff
changeset
|
79 |
.msg_Notice .nick { color: #ffffd0; } |
6182
d56d18802481
some more chat fixes and changes, I think. hum. what was that? um. aaah, I better go catch some sheep ... er sleep.. um..
sheepluva
parents:
6181
diff
changeset
|
80 |