Shuo/client/css/style.css

310 lines
6.0 KiB
CSS
Raw Normal View History

2014-04-22 17:57:16 +00:00
* {
box-sizing: border-box;
}
html,
body {
height: 100%;
2014-05-02 17:46:18 +00:00
font: 14px sans-serif;
2014-04-22 17:57:16 +00:00
margin: 0;
}
2014-05-02 17:46:18 +00:00
h1,
h2 {
margin: 0;
}
2014-05-04 00:33:05 +00:00
ul,
li {
list-style: none;
margin: 0;
padding: 0;
}
2014-05-02 17:46:18 +00:00
a {
2014-05-02 21:54:31 +00:00
color: #1abc9c;
2014-05-02 17:46:18 +00:00
text-decoration: none;
2014-04-30 15:14:22 +00:00
transition: all .25s;
2014-05-02 23:35:51 +00:00
word-break: break-all;
2014-04-30 15:14:22 +00:00
}
2014-05-02 21:54:31 +00:00
a:hover {
text-decoration: underline;
2014-04-30 15:14:22 +00:00
}
2014-04-22 17:57:16 +00:00
a:focus,
2014-05-02 17:46:18 +00:00
button:focus,
input {
2014-04-22 17:57:16 +00:00
outline: 0;
}
2014-04-30 15:14:22 +00:00
button {
2014-04-22 17:57:16 +00:00
background: none;
border: 0;
2014-04-30 15:14:22 +00:00
color: inherit;
2014-05-02 23:35:51 +00:00
cursor: pointer;
2014-04-22 17:57:16 +00:00
font: inherit;
margin: 0;
padding: 0;
}
2014-04-30 15:14:22 +00:00
button::-moz-focus-inner {
padding: 0;
border: 0;
}
.btn {
border: 2px solid #bdc3c7;
border-radius: 3px;
color: #aeb6bf;
padding: 8px 12px;
text-decoration: none;
transition: all .25s;
}
.btn:hover {
border-color: #7f8c8d;
color: #7f8c8d;
2014-05-02 23:35:51 +00:00
text-decoration: none;
2014-04-30 15:14:22 +00:00
}
2014-05-02 17:46:18 +00:00
#wrap {
2014-04-22 17:57:16 +00:00
height: 100%;
2014-05-02 17:46:18 +00:00
min-width: 640px;
2014-04-22 17:57:16 +00:00
width: 100%;
}
#sidebar {
2014-04-30 15:14:22 +00:00
border-right: 4px solid #bdc3c7;
2014-05-02 17:46:18 +00:00
position: absolute;
2014-05-08 22:12:16 +00:00
overflow-y: auto;
2014-04-22 17:57:16 +00:00
height: 100%;
2014-05-02 23:35:51 +00:00
width: 220px;
2014-04-30 15:14:22 +00:00
}
2014-05-02 17:46:18 +00:00
#sidebar h2 {
2014-04-30 15:14:22 +00:00
color: #aeb6bf;
2014-05-02 17:46:18 +00:00
font: bold 13px sans-serif;
2014-04-30 15:14:22 +00:00
padding: 6px 12px;
text-transform: uppercase;
2014-04-22 17:57:16 +00:00
}
2014-05-08 22:12:16 +00:00
#networks {
margin: 20px;
}
2014-05-24 21:56:28 +00:00
#networks .network + .network {
border-top: 2px solid #ebedef;
margin-top: 14px;
padding-top: 14px;
}
#networks .channel {
2014-05-08 22:12:16 +00:00
border-radius: 3px;
2014-05-02 21:54:31 +00:00
color: #1abc9c;
display: block;
2014-04-30 15:14:22 +00:00
font-size: 15px;
font-weight: bold;
2014-05-02 17:46:18 +00:00
line-height: 21px;
margin-bottom: 3px;
padding: 6px 13px;
2014-04-30 15:14:22 +00:00
text-align: left;
transition: all .25s;
2014-05-02 17:46:18 +00:00
white-space: nowrap;
2014-04-30 15:14:22 +00:00
width: 100%;
}
2014-05-08 22:12:16 +00:00
#networks button.active {
2014-04-30 15:14:22 +00:00
background-color: #ebedef;
color: #526476;
2014-04-22 17:57:16 +00:00
}
2014-05-24 21:56:28 +00:00
#networks button:hover {
background-color: #f1f2f3;
}
#networks button:hover .badge {
opacity: 0;
}
#networks button:hover .close {
opacity: .2;
}
#networks .close {
background: no-repeat url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxNi4wLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dH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43MDcsMC4wMDFsMy44ODgtMy44OWMwLjE5NS0wLjE5MywwLjUxNC0wLjE5MywwLjcwNywwTDEyLjg3MiwxLjU2MnoiLz4NCjwvc3ZnPg0K);
background-size: 50%;
background-position: 6px 6px;
border-radius: 2px;
height: 19px;
margin-top: 1px;
opacity: 0;
position: absolute;
right: 28px;
transition: all .25s;
width: 20px;
}
#networks .close:hover {
background-color: rgba(0, 0, 0, .1);
opacity: .6 !important;
2014-05-02 17:46:18 +00:00
}
#networks .badge {
2014-05-04 11:05:06 +00:00
background: #f7f9fa;
border-radius: 4px;
color: #aeb6bf;
2014-05-02 17:46:18 +00:00
float: right;
2014-05-04 11:05:06 +00:00
font: 12px sans-serif;
line-height: 21px;
padding: 0 6px;
2014-05-24 21:56:28 +00:00
position: absolute;
right: 28px;
transition: all .25s;
2014-05-04 11:05:06 +00:00
}
#networks .badge.highlight {
2014-05-14 01:36:51 +00:00
background: #f8e2e2;
2014-05-04 11:05:06 +00:00
color: #e74c3c;
}
#networks .badge:empty {
display: none;
2014-05-02 17:46:18 +00:00
}
#main {
position: absolute;
height: 100%;
2014-05-02 23:35:51 +00:00
left: 220px;
2014-04-22 17:57:16 +00:00
right: 0;
}
2014-05-02 17:46:18 +00:00
#main .window {
2014-04-22 17:57:16 +00:00
background: #fff;
height: 100%;
position: absolute;
width: 100%;
}
2014-05-02 17:46:18 +00:00
#chat {
font: 13px "Consolas", monospace;
height: 100%;
}
2014-05-04 00:33:05 +00:00
#chat form {
bottom: 0;
height: 35px;
position: absolute;
right: 0;
left: 0;
}
#chat form .input {
border: 0;
border-top: 1px solid #bdc3c7;
height: 35px;
padding: 0 10px;
width: 100%;
}
2014-05-13 22:47:35 +00:00
#chat form .hint {
color: #bdc3c7;
}
2014-05-02 17:46:18 +00:00
#chat .lobby .messages,
#chat .query .messages {
right: 0;
}
#chat .lobby .users,
#chat .query .users {
display: none;
}
#chat .messages,
#chat .users {
bottom: 35px;
overflow: hidden;
2014-05-02 21:54:31 +00:00
overflow-y: scroll;
2014-04-22 17:57:16 +00:00
position: absolute;
2014-04-30 15:14:22 +00:00
top: 0;
2014-05-02 17:46:18 +00:00
}
#chat .messages {
2014-05-02 23:35:51 +00:00
box-shadow: inset 140px 0 #f3f5f5;
2014-05-02 17:46:18 +00:00
left: 0px;
2014-05-02 23:35:51 +00:00
padding: 4px 0;
2014-05-02 17:46:18 +00:00
right: 160px;
2014-04-22 17:57:16 +00:00
}
2014-05-02 21:54:31 +00:00
#chat .messages .user {
color: #95a5a6;
}
2014-05-02 23:35:51 +00:00
#chat .user,
#chat .highlight .user,
#chat .normal .user,
#chat .topic .user {
color: #e74c3c;
2014-05-22 23:14:01 +00:00
transition: all .1s;
}
#chat .user:hover {
color: #000;
2014-05-02 21:54:31 +00:00
}
2014-05-03 19:22:14 +00:00
#chat .action,
#chat .action .user {
color: #f39c12;
}
#chat .action .user:before {
content: '* ';
}
2014-04-26 15:26:30 +00:00
#chat .show-more {
display: none;
2014-05-24 21:56:28 +00:00
margin: 4px 8px 4px 148px;
2014-04-26 19:56:04 +00:00
}
2014-04-30 15:14:22 +00:00
#chat .show-more .btn {
2014-04-26 19:56:04 +00:00
width: 100%;
2014-04-26 15:26:30 +00:00
}
2014-04-24 18:03:30 +00:00
#chat .msg {
2014-05-02 23:35:51 +00:00
display: table-row;
2014-05-02 17:46:18 +00:00
line-height: 1.4;
2014-05-02 21:54:31 +00:00
}
2014-05-02 23:35:51 +00:00
#chat .msg span {
display: table-cell;
2014-05-02 21:54:31 +00:00
}
2014-05-02 23:35:51 +00:00
#chat .from {
background: #f3f5f5;
max-width: 140px;
min-width: 140px;
overflow: hidden;
padding: 2px 8px;
text-align: right;
white-space: nowrap;
2014-05-02 21:54:31 +00:00
}
#chat .type {
2014-05-02 23:35:51 +00:00
color: #bdc3c7;
display: none;
}
2014-05-02 21:54:31 +00:00
#chat .join .type,
#chat .kick .type,
#chat .mode .type,
#chat .nick .type,
#chat .part .type,
#chat .topic .type,
#chat .quit .type {
2014-05-02 23:35:51 +00:00
display: inline;
}
#chat .text {
padding: 2px 8px;
width: 100%;
}
2014-05-02 21:54:31 +00:00
#chat .nick .text {
color: #95a5a6;
}
2014-05-02 23:35:51 +00:00
#chat .highlight {
background: #fcf8e3;
color: #8a6d3b;
}
#chat .highlight .from {
background: #faebcc;
}
#chat .highlight .time {
color: #d3c2a5;
}
#chat .time {
color: #dee0e2;
2014-05-08 22:12:16 +00:00
padding: 2px 10px;
2014-05-02 23:35:51 +00:00
}
2014-04-22 17:57:16 +00:00
#chat .users {
2014-05-02 17:46:18 +00:00
background: #fff;
2014-04-30 15:14:22 +00:00
border-left: 4px solid #bdc3c7;
padding-bottom: 6px;
2014-04-22 17:57:16 +00:00
right: 0;
width: 160px;
}
2014-05-04 00:33:05 +00:00
#chat .users li {
display: table-row;
text-align: left;
}
2014-04-22 17:57:16 +00:00
#chat .users .user {
2014-04-30 15:14:22 +00:00
padding: 4px 12px;
2014-05-04 00:33:05 +00:00
text-align: left;
width: 160px;
2014-04-30 15:14:22 +00:00
}
2014-05-02 17:46:18 +00:00
#chat .count {
background: #ecf0f1;
color: #aeb6bf;
margin-bottom: 4px;
}
2014-05-04 00:33:05 +00:00
#chat .count span {
display: block;
padding: 10px 12px;
2014-04-30 15:14:22 +00:00
}
2014-05-04 00:33:05 +00:00
#chat .count + li .user {
padding-top: 8px
2014-04-22 17:57:16 +00:00
}