Shuo/client/css/style.css

304 lines
4.6 KiB
CSS
Raw Normal View History

2014-03-05 13:46:16 +00:00
html,
body {
2014-03-23 01:48:40 +00:00
font: 13px "Consolas", monospace;
2014-03-05 13:46:16 +00:00
height: 100%;
}
2014-03-17 00:54:58 +00:00
a:focus {
outline: 0;
}
2014-03-05 13:46:16 +00:00
h1,
h2 {
font: inherit;
margin: 0;
}
2014-04-09 20:54:04 +00:00
.nav a[data-toggle]:hover {
2014-03-30 03:12:29 +00:00
background: #f9f9f9;
}
2014-04-09 20:54:04 +00:00
.user {
color: #f00;
cursor: pointer;
2014-04-10 21:34:53 +00:00
}
.user:hover {
color: #999;
2014-04-09 20:54:04 +00:00
}
2014-03-17 00:54:58 +00:00
#wrap,
#viewport {
height: 100%;
width: 100%;
}
#chat .toggle {
display: none;
}
2014-03-05 13:46:16 +00:00
#sidebar {
2014-03-16 19:00:57 +00:00
background: #f7f7f9;
border-right: 1px solid #e1e1e8;
2014-03-05 13:46:16 +00:00
float: left;
height: 100%;
2014-03-14 19:03:25 +00:00
width: 200px;
2014-03-05 13:46:16 +00:00
}
2014-03-16 19:00:57 +00:00
#sidebar .header {
background: #fff;
height: 43px;
position: relative;
}
#sidebar .header .nav {
bottom: 0;
margin: 0;
padding-left: 10px;
position: absolute;
width: 100%;
}
#sidebar .header .nav a {
line-height: 1em;
}
#sidebar .header .nav .active a {
background: #f7f7f9;
}
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-15 15:07:49 +00:00
#sidebar .list-group-item {
padding: 10px 12px;
}
#sidebar .list-group-item .badge {
font-size: 11px;
font-weight: normal;
margin-top: -1px;
}
2014-03-16 20:07:27 +00:00
#sidebar .panel {
margin: 10px;
}
#sidebar .panel label {
display: inline-block;
cursor: pointer;
margin-left: 5px;
padding: 5px 0;
width: 60px;
}
#sidebar .panel label.first {
margin-top: 10px;
}
#sidebar .panel input[type=checkbox] {
float: left;
margin-top: 1px;
margin-right: 10px;
}
2014-03-05 13:46:16 +00:00
#chat {
bottom: 0;
left: 200px;
line-height: 16px;
position: absolute;
right: 0;
top: 0;
}
2014-04-14 00:39:34 +00:00
#chat a {
color: inherit;
}
2014-03-05 13:46:16 +00:00
#chat form {
2014-03-16 19:00:57 +00:00
border-top: 1px solid #ddd;
2014-03-17 00:54:58 +00:00
bottom: 1px;
2014-03-16 19:00:57 +00:00
height: 30px;
2014-03-05 13:46:16 +00:00
left: 0;
position: absolute;
right: 0;
}
#chat form input {
border: 0;
font: inherit;
2014-03-16 19:00:57 +00:00
height: 30px;
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%;
}
2014-03-22 19:23:48 +00:00
#chat .join,
#chat .part,
#chat .nick,
2014-04-08 14:18:06 +00:00
#chat .quit,
#chat .mode,
#chat .kick {
2014-03-22 19:23:48 +00:00
/* Hidden by default */
2014-03-16 20:07:27 +00:00
display: none;
}
2014-03-22 19:23:48 +00:00
#chat.show-join .join,
#chat.show-part .part,
#chat.show-nick .nick,
2014-04-08 14:18:06 +00:00
#chat.show-quit .quit,
#chat.show-mode .mode,
#chat.show-kick .kick {
2014-03-22 19:23:48 +00:00
display: block;
}
2014-03-15 15:51:21 +00:00
#chat .window {
2014-03-05 13:46:16 +00:00
background: #fff;
height: 100%;
position: absolute;
width: 100%;
}
2014-03-19 17:30:06 +00:00
#chat .window.active {
display: block;
}
2014-03-15 15:51:21 +00:00
#chat .network .close,
2014-03-05 13:46:16 +00:00
#chat .network .users {
display: none;
}
2014-03-16 19:00:57 +00:00
#chat .network .title,
2014-03-05 13:46:16 +00:00
#chat .network .messages {
right: 0;
}
2014-03-15 15:51:21 +00:00
#chat .query .users {
display: none;
}
2014-03-16 19:00:57 +00:00
#chat .query .title,
2014-03-15 15:51:21 +00:00
#chat .query .messages {
right: 0;
}
2014-03-05 13:46:16 +00:00
#chat .title {
2014-03-16 19:00:57 +00:00
border-bottom: 1px solid #ddd;
2014-03-14 21:57:54 +00:00
height: 43px;
2014-03-16 19:00:57 +00:00
left: 0;
2014-03-17 00:54:58 +00:00
overflow: hidden;
2014-03-05 13:46:16 +00:00
padding-left: 10px;
position: absolute;
2014-03-16 19:00:57 +00:00
right: 160px;
2014-03-05 13:46:16 +00:00
top: 0;
}
2014-03-14 21:57:54 +00:00
#chat .title h1 {
color: #333;
display: inline-block;
font-size: 18px;
line-height: 43px;
}
#chat .title .btn {
float: right;
margin: 6px 6px 0 0;
}
#chat .title .btn:focus {
outline: none;
}
2014-03-05 13:46:16 +00:00
#chat .users {
2014-03-17 00:54:58 +00:00
background: #fff;
2014-03-16 19:00:57 +00:00
border-left: 1px solid #ddd;
2014-03-17 16:24:32 +00:00
bottom: 30px;
2014-03-23 01:48:40 +00:00
line-height: 1.4em;
2014-03-05 13:46:16 +00:00
overflow-y: auto;
2014-03-12 18:06:08 +00:00
padding: 4px 0;
position: absolute;
2014-03-16 19:00:57 +00:00
right: 0;
top: 0;
2014-03-15 15:07:49 +00:00
width: 160px;
2014-03-05 13:46:16 +00:00
}
2014-04-14 15:18:18 +00:00
#chat .users .count {
color: #bbb;
padding: 0 8px;
}
2014-03-05 13:46:16 +00:00
#chat .users .user {
2014-03-16 19:00:57 +00:00
padding: 0 8px;
2014-03-05 13:46:16 +00:00
}
#chat .messages {
2014-04-09 20:54:04 +00:00
border-left: 8px solid #f7f7f9;
2014-03-16 19:00:57 +00:00
bottom: 30px;
2014-03-05 13:46:16 +00:00
left: 0;
overflow-y: auto;
2014-03-23 01:48:40 +00:00
padding: 4px 0;
2014-03-05 13:46:16 +00:00
position: absolute;
right: 160px;
2014-03-14 21:57:54 +00:00
top: 43px;
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-23 01:48:40 +00:00
#chat .message {
line-height: 1.4em;
2014-04-07 21:19:20 +00:00
padding: 0 8px;
2014-03-23 01:48:40 +00:00
}
2014-04-02 15:24:33 +00:00
#chat .message div {
display: inline;
}
2014-03-13 15:50:33 +00:00
#chat .message .time {
2014-03-05 13:46:16 +00:00
color: #bbb;
}
2014-04-07 21:19:20 +00:00
#chat .message .type,
2014-03-13 15:50:33 +00:00
#chat .message .text {
2014-03-22 20:37:09 +00:00
color: inherit;
2014-03-13 15:50:33 +00:00
}
2014-03-22 20:37:09 +00:00
#chat .message.join,
#chat .message.part,
#chat .message.nick,
#chat .message.quit,
2014-03-22 21:42:02 +00:00
#chat .message.notice,
#chat .message.error {
2014-03-22 20:37:09 +00:00
color: #999;
2014-03-17 00:54:58 +00:00
}
2014-03-31 11:22:34 +00:00
@media screen and (max-device-width: 480px) {
2014-03-17 00:54:58 +00:00
#wrap {
overflow: hidden;
height: 100%;
position: relative;
width: 100%;
}
#viewport {
-webkit-transition: -webkit-transform .2s ease-out;
2014-04-10 21:34:53 +00:00
transition: transform .2s ease-out;
2014-03-17 00:54:58 +00:00
-webkit-transform: translateX(0);
2014-04-10 21:34:53 +00:00
transform: translateX(0);
2014-03-17 00:54:58 +00:00
height: 100%;
margin-left: -200px;
width: 100%;
}
#viewport.left {
-webkit-transform: translateX(200px);
2014-04-10 21:34:53 +00:00
transform: translateX(200px);
2014-03-17 00:54:58 +00:00
}
#viewport.right {
-webkit-transform: translateX(-160px);
2014-04-10 21:34:53 +00:00
transform: translateX(-160px);
2014-03-17 00:54:58 +00:00
}
#chat {
width: 100%;
}
#chat .toggle {
2014-03-19 00:52:09 +00:00
display: block;
2014-03-31 11:22:34 +00:00
font-size: 12px;
2014-03-19 00:52:09 +00:00
position: relative;
2014-03-17 00:54:58 +00:00
}
#chat .toggle a {
color: #000;
height: 42px;
line-height: 46px;
2014-03-31 11:22:34 +00:00
margin: 0 10px;
2014-03-17 00:54:58 +00:00
position: absolute;
text-align: center;
}
#chat .toggle .left {
border-left: 0;
left: 0;
}
#chat .toggle .right {
display: none;
border-right: 0;
right: 0;
}
#chat .channel .title,
#chat .channel .messages {
right: 0;
}
#chat .channel .right {
display: inherit;
}
#chat .title {
2014-03-19 00:52:09 +00:00
padding: 0;
2014-03-17 00:54:58 +00:00
text-align: center;
}
#chat .title .btn {
display: none;
}
#chat .users {
2014-03-17 16:24:32 +00:00
bottom: 0;
2014-03-17 00:54:58 +00:00
right: -160px;
}
#chat .users a {
line-height: 1.8em;
}
2014-04-10 21:34:53 +00:00
}