Shuo/client/css/style.css

129 lines
1.8 KiB
CSS
Raw Normal View History

2014-03-05 13:46:16 +00:00
html,
body {
font: 12px Consolas, monospace;
height: 100%;
}
a {
color: inherit;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
ul,
li {
list-style: none;
margin: 0;
padding: 0;
}
h1,
h2 {
font: inherit;
margin: 0;
}
#sidebar {
border-right: 1px solid #ccc;
float: left;
height: 100%;
2014-03-14 19:03:25 +00:00
width: 200px;
2014-03-05 13:46:16 +00:00
}
2014-03-14 19:03:25 +00:00
#sidebar .list-group {
margin: 10px 0;
padding: 0 10px;
2014-03-05 13:46:16 +00:00
}
2014-03-14 19:03:25 +00:00
#sidebar .list-group-item:hover {
color: #000;
2014-03-07 21:24:02 +00:00
}
2014-03-14 19:03:25 +00:00
#sidebar .list-group-item:first-child {
background: #f5f5f5;
2014-03-07 03:18:53 +00:00
}
2014-03-05 13:46:16 +00:00
#chat {
bottom: 0;
left: 200px;
line-height: 16px;
min-width: 400px;
overflow: hidden;
position: absolute;
right: 0;
top: 0;
}
#chat form {
border-top: 1px solid #ccc;
bottom: 0;
2014-03-14 19:03:25 +00:00
height: 32px;
2014-03-05 13:46:16 +00:00
left: 0;
position: absolute;
right: 0;
}
#chat form input {
border: 0;
font: inherit;
2014-03-14 19:03:25 +00:00
height: 32px;
2014-03-05 13:46:16 +00:00
margin: 0;
outline: none;
2014-03-14 19:03:25 +00:00
padding: 0 10px;
2014-03-05 13:46:16 +00:00
width: 100%;
}
#chat .channel,
#chat .network {
background: #fff;
height: 100%;
position: absolute;
width: 100%;
}
#chat .network .users {
display: none;
}
#chat .network .messages {
right: 0;
}
#chat .title {
2014-03-14 19:03:25 +00:00
border-bottom: 1px solid #ccc;
2014-03-05 13:46:16 +00:00
color: #333;
font-size: 18px;
2014-03-14 19:03:25 +00:00
height: 42px;
line-height: 42px;
2014-03-05 13:46:16 +00:00
padding-left: 10px;
position: absolute;
top: 0;
width: 100%;
}
#chat .users {
border-left: 1px solid #ccc;
2014-03-14 19:03:25 +00:00
bottom: 32px;
2014-03-05 13:46:16 +00:00
overflow-y: auto;
2014-03-12 18:06:08 +00:00
padding: 4px 0;
position: absolute;
right: 0px;
2014-03-14 19:03:25 +00:00
top: 42px;
2014-03-05 13:46:16 +00:00
width: 159px;
}
#chat .users .user {
clear: both;
color: #f00;
float: left;
padding: 0px 8px;
}
#chat .messages {
2014-03-14 19:03:25 +00:00
bottom: 32px;
2014-03-05 13:46:16 +00:00
left: 0;
overflow-y: auto;
2014-03-13 15:50:33 +00:00
padding: 4px 8px;
2014-03-05 13:46:16 +00:00
position: absolute;
right: 160px;
2014-03-14 19:03:25 +00:00
top: 42px;
2014-03-06 18:53:02 +00:00
word-wrap: break-word;
2014-03-05 13:46:16 +00:00
z-index: 0;
}
2014-03-13 15:50:33 +00:00
#chat .message .time {
2014-03-05 13:46:16 +00:00
color: #bbb;
}
2014-03-13 15:50:33 +00:00
#chat .message .user {
2014-03-05 13:46:16 +00:00
color: #f00;
}
2014-03-13 15:50:33 +00:00
#chat .message .text {
color: #999;
}
#chat .message.normal .text {
color: #000;
}