Shuo/client/css/style.css

247 lines
4.6 KiB
CSS

/* http://www.google.com/fonts/specimen/Lato */
@import url(http://fonts.googleapis.com/css?family=Lato:400,700);
* {
box-sizing: border-box;
}
html,
body {
height: 100%;
font: 14px Lato, sans-serif;
margin: 0;
}
a {
color: inherit;
text-decoration: none;
}
h1,
h2 {
font: inherit;
line-height: inherit;
margin: 0;
}
ul,
li {
list-style: none;
margin: 0;
padding: 0;
}
#sidebar {
background: #262c36;
bottom: 0;
left: 0;
line-height: 2em;
padding: 50px;
position: absolute;
top: 0;
width: 240px;
}
#sidebar a {
color: #7c838d;
display: block;
font: 14px Lato;
transition: all .1s;
padding: 5px 0;
position: relative;
}
#sidebar a:hover,
#sidebar a.active {
color: #fff;
}
#sidebar a:hover .badge {
opacity: 0;
}
#sidebar a:hover .close {
opacity: .4;
}
#sidebar h1,
#sidebar h2 {
color: #fff;
font: bold 15px Lato;
}
#sidebar h2 {
color: #84d1ff;
margin-bottom: 6px;
text-transform: capitalize;
}
#sidebar .close {
background: no-repeat url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+DQogPGc+DQogIDx0aXRsZT5MYXllciAxPC90aXRsZT4NCiAgPHBhdGggZmlsbD0iI2ZmZmZmZiIgaWQ9InN2Z18xIiBkPSJtMTIuODcyLDEuNTYyYzAuMTk1MDAxLDAuMTk0IDAuMTk1MDAxLDAuNTEzIDAsMC43MDdsLTMuODg5LDMuODkxYy0wLjE5MywwLjE5NCAtMC4xOTMsMC41MTMgMCwwLjcwOGwzLjg4NywzLjg5MmMwLjE5NSwwLjE5NCAwLjE5NSwwLjUxMyAwLDAuNzA3bC0xLjQxNTk5OSwxLjQxM2MtMC4xOTMwMDEsMC4xOTQgLTAuNTEyLDAuMTk0IC0wLjcwNzAwMSwwbC0zLjg4NSwtMy44OTJjLTAuMTk0LC0wLjE5NCAtMC41MTMsLTAuMTk0IC0wLjcwNywwbC0zLjg4OSwzLjg4OWMtMC4xOTQsMC4xOTUgLTAuNTEzLDAuMTk1IC0wLjcwNywwbC0xLjQxNCwtMS40MTU5OTljLTAuMTk0LC0wLjE5MzAwMSAtMC4xOTQsLTAuNTEyIDAsLTAuNzA3MDAxbDMuODksLTMuODg5YzAuMTk0LC0wLjE5NCAwLjE5NCwtMC41MTMgMCwtMC43MDhsLTMuODg3LC0zLjg5MWMtMC4xOTQsLTAuMTk1IC0wLjE5NCwtMC41MTMgMCwtMC43MDdsMS40MTUsLTEuNDE0YzAuMTk0LC0wLjE5NCAwLjUxMywtMC4xOTQgMC43MDcsMGwzLjg4NSwzLjg5MWMwLjE5NCwwLjE5NSAwLjUxMywwLjE5NSAwLjcwNywwLjAwMWwzLjg4OCwtMy44OWMwLjE5NSwtMC4xOTMgMC41MTQsLTAuMTkzIDAuNzA3LDBsMS40MTUsMS40MTV6Ii8+DQogPC9nPg0KPC9zdmc+);
background-size: 50%;
background-position: 5px 6px;
border-radius: 3px;
height: 18px;
margin-top: 1px;
opacity: 0;
position: absolute;
right: 0;
transition: all .1s;
width: 18px;
}
#sidebar .close:hover {
background-color: rgba(0, 0, 0, .2);
opacity: .8 !important;
}
#sidebar .badge {
background: rgba(255, 255, 255, .1);
border-radius: 3px;
color: #afb6c0;
float: right;
font-size: 10px;
margin-top: 1px;
padding: 3px 6px;
transition: all .1s;
}
#sidebar .badge.highlight {
background: #fff;
color: #49505a;
}
#sidebar .badge:empty {
display: none;
}
#sidebar .network {
margin-top: 30px;
}
#main {
background: #f00;
bottom: 0;
left: 240px;
position: absolute;
right: 0;
top: 0;
}
#main .window {
background: #fff;
bottom: 0;
left: 0;
overflow: hidden;
position: absolute;
right: 0;
top: 0;
}
#chat {
font: 13px "Consolas", monospace;
line-height: 1.5em;
}
#chat a {
color: #33b0f7;
word-break: normal;
}
#chat a:hover {
opacity: .6;
}
#chat .chat {
bottom: 35px;
box-shadow: inset 160px 0 #f9f9f9;
left: 0;
padding: 10px 10px 2px;
position: absolute;
right: 180px;
top: 0;
}
#chat .messages {
width: 100%;
}
#chat .messages td {
padding-top: 2px;
padding-bottom: 2px;
vertical-align: top;
word-break: break-word;
word-wrap: break-word;
}
#chat td:hover .time {
color: #aaa;
}
#chat .from {
padding-right: 10px;
text-align: right;
width: 150px;
}
#chat .text {
padding-left: 10px;
}
#chat .text a {
word-break: break-all;
}
#chat .type {
color: #bbb;
}
#chat .action .type,
#chat .highlight .type,
#chat .motd .type,
#chat .normal .type,
#chat .notice .type {
display: none;
}
#chat .action,
#chat .action .user {
color: #f39c12;
}
#chat .action .user:before {
content: '* ';
}
#chat .highlight,
#chat .highlight .from a {
color: #f00;
}
#chat .time {
color: #ddd;
text-align: center;
width: 50px;
}
#chat .meta {
border: 1px solid #eee;
border-width: 0 0 1px 1px;
color: #ccc;
height: 80px;
padding: 21px 0 0 21px;
right: 0;
position: absolute;
width: 180px;
}
#chat .meta h1 {
color: #222;
font-size: 15px;
}
#chat .meta .type {
text-transform: capitalize;
}
#chat .users {
border-left: 1px solid #eee;
bottom: 0;
line-height: 1.6em;
overflow-y: auto;
padding: 15px 20px;
position: absolute;
right: 0;
top: 80px;
width: 180px;
}
#chat .users li {
display: table-row;
}
#chat .users li a {
display: table-cell;
}
#chat .form {
border-top: 1px solid #eee;
bottom: 0;
height: 35px;
left: 0;
position: absolute;
right: 180px;
}
#chat .form .hint {
color: #bbb;
}
#chat .form .input {
border: none;
height: 35px;
outline: 0;
padding: 0 10px;
width: 100%;
}
#chat .form .submit {
margin-left: -999px;
position: absolute;
}