QTfrontend/res/css/chat.css
author sheepluva
Sat, 22 Oct 2011 18:24:36 +0200
changeset 6185 a6aa2d44f390
parent 6182 d56d18802481
child 6197 4ce7c29799b9
permissions -rw-r--r--
document css files better
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6185
a6aa2d44f390 document css files better
sheepluva
parents: 6182
diff changeset
     1
/******************************************************************************
a6aa2d44f390 document css files better
sheepluva
parents: 6182
diff changeset
     2
 *
a6aa2d44f390 document css files better
sheepluva
parents: 6182
diff changeset
     3
 * CSS-like definition of chat appearance
a6aa2d44f390 document css files better
sheepluva
parents: 6182
diff changeset
     4
 *
a6aa2d44f390 document css files better
sheepluva
parents: 6182
diff changeset
     5
 ******************************************************************************
a6aa2d44f390 document css files better
sheepluva
parents: 6182
diff changeset
     6
 *
6178
affa860f2983 BOOOOooOM <headshot>! removing default stylesheets from c++ code and adding them as text files to the qt resources
sheepluva
parents:
diff changeset
     7
 * 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
     8
 *
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
 * In the QTfrontend of hedgewars also display:none; will work for class names
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
    10
 * that start with msg_   -   as long as they are referenced directly and not
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
    11
 * within any hierachy.
6185
a6aa2d44f390 document css files better
sheepluva
parents: 6182
diff changeset
    12
 *
a6aa2d44f390 document css files better
sheepluva
parents: 6182
diff changeset
    13
 ******************************************************************************
a6aa2d44f390 document css files better
sheepluva
parents: 6182
diff changeset
    14
 *
a6aa2d44f390 document css files better
sheepluva
parents: 6182
diff changeset
    15
 * This file can be stored at different locations, but it will be read only
a6aa2d44f390 document css files better
sheepluva
parents: 6182
diff changeset
    16
 * once, based on first file found in this order:
a6aa2d44f390 document css files better
sheepluva
parents: 6182
diff changeset
    17
 *
a6aa2d44f390 document css files better
sheepluva
parents: 6182
diff changeset
    18
 *     <userdir>/Data/css/chat.css
a6aa2d44f390 document css files better
sheepluva
parents: 6182
diff changeset
    19
 *     <datadir>/css/chat.css
a6aa2d44f390 document css files better
sheepluva
parents: 6182
diff changeset
    20
 *     <internal default style-sheet>
a6aa2d44f390 document css files better
sheepluva
parents: 6182
diff changeset
    21
 *
a6aa2d44f390 document css files better
sheepluva
parents: 6182
diff changeset
    22
 *****************************************************************************/
6178
affa860f2983 BOOOOooOM <headshot>! removing default stylesheets from c++ code and adding them as text files to the qt resources
sheepluva
parents:
diff changeset
    23
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
    24
/* 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
    25
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
    26
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
    27
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
/* 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
    29
.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
    30
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
    31
/* 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
    32
.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
    33
.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
    34
.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
    35
.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
    36
.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
    37
.msg_UserJoin .nick { color: #d0d0d0; }
6181
c739b503ae31 ugh wth... cleaned FL/IL change notifications up
sheepluva
parents: 6180
diff changeset
    38
.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
    39
.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
    40
.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
    41
.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
    42
.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
    43
.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
    44
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
    45
/* 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
    46
.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
    47
.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
    48
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
    49
/* uncomment next line to disable join and leave messages of non-friends */
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_UserJoin { display:none; } */
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
    51
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
    52
/* 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
    53
.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
    54
.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
    55
.msg_Notice { color: #fefefe; }
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
    56