hardlounge/client/css/style.css

404 lines
8.5 KiB
CSS
Raw Normal View History

2014-05-28 20:57:39 +00:00
/* http://www.google.com/fonts/specimen/Lato */
@import url(http://fonts.googleapis.com/css?family=Lato:400,700);
2014-04-22 17:57:16 +00:00
* {
box-sizing: border-box;
}
html,
body {
2014-05-30 00:23:23 +00:00
color: #222;
2014-04-22 17:57:16 +00:00
height: 100%;
2014-05-28 20:57:39 +00:00
font: 14px Lato, sans-serif;
2014-04-22 17:57:16 +00:00
margin: 0;
}
2014-05-30 00:23:23 +00:00
body {
overflow-x: hidden;
position: relative;
}
2014-05-28 20:57:39 +00:00
a {
color: inherit;
text-decoration: none;
}
2014-05-02 17:46:18 +00:00
h1,
h2 {
2014-05-28 20:57:39 +00:00
font: inherit;
line-height: inherit;
2014-05-02 17:46:18 +00:00
margin: 0;
}
2014-05-04 00:33:05 +00:00
ul,
li {
list-style: none;
margin: 0;
padding: 0;
}
2014-05-30 00:23:23 +00:00
button {
border: none;
background: none;
margin: 0;
outline: none;
padding: 0;
}
#wrap {
height: 100%;
position: relative;
overflow: hidden;
width: 100%;
}
#viewport {
height: 100%;
position: relative;
width: 100%;
2014-05-30 21:31:47 +00:00
transition: all .5s;
-webkit-transform: translateZ(0);
transform: translateZ(0);
-webkit-perspective: 1000;
perspective: 1000;
2014-05-30 00:23:23 +00:00
}
2014-04-22 17:57:16 +00:00
#sidebar {
2014-05-28 20:57:39 +00:00
background: #262c36;
bottom: 0;
left: 0;
line-height: 2em;
2014-05-30 00:23:23 +00:00
overflow-y: auto;
2014-05-30 21:31:47 +00:00
-webkit-overflow-scrolling: touch;
2014-06-03 00:27:03 +00:00
padding: 40px;
2014-05-02 17:46:18 +00:00
position: absolute;
2014-05-28 20:57:39 +00:00
top: 0;
2014-06-03 00:27:03 +00:00
width: 220px;
2014-05-24 21:56:28 +00:00
}
2014-05-28 20:57:39 +00:00
#sidebar a {
color: #7c838d;
display: block;
2014-05-28 20:57:39 +00:00
font: 14px Lato;
transition: all .1s;
padding: 5px 0;
position: relative;
2014-04-22 17:57:16 +00:00
}
2014-05-28 20:57:39 +00:00
#sidebar a:hover,
#sidebar a.active {
color: #fff;
2014-05-24 21:56:28 +00:00
}
2014-05-28 20:57:39 +00:00
#sidebar a:hover .badge {
2014-05-24 21:56:28 +00:00
opacity: 0;
}
2014-05-28 20:57:39 +00:00
#sidebar a:hover .close {
opacity: .4;
}
#sidebar h1,
#sidebar h2 {
color: #fff;
font: bold 15px Lato;
2014-05-24 21:56:28 +00:00
}
2014-05-28 20:57:39 +00:00
#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+);
2014-05-24 21:56:28 +00:00
background-size: 50%;
2014-05-28 20:57:39 +00:00
background-position: 5px 6px;
border-radius: 3px;
height: 18px;
2014-05-24 21:56:28 +00:00
margin-top: 1px;
opacity: 0;
position: absolute;
2014-05-28 20:57:39 +00:00
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;
2014-05-02 17:46:18 +00:00
float: right;
2014-05-28 20:57:39 +00:00
font-size: 10px;
margin-top: 1px;
padding: 3px 6px;
transition: all .1s;
2014-05-04 11:05:06 +00:00
}
2014-05-28 20:57:39 +00:00
#sidebar .badge.highlight {
background: #fff;
color: #49505a;
2014-05-04 11:05:06 +00:00
}
2014-05-28 20:57:39 +00:00
#sidebar .badge:empty {
2014-05-04 11:05:06 +00:00
display: none;
2014-05-02 17:46:18 +00:00
}
2014-05-28 20:57:39 +00:00
#sidebar .network {
margin-top: 30px;
}
2014-05-02 17:46:18 +00:00
#main {
2014-05-28 20:57:39 +00:00
bottom: 0;
2014-06-03 00:27:03 +00:00
left: 220px;
2014-05-02 17:46:18 +00:00
position: absolute;
2014-04-22 17:57:16 +00:00
right: 0;
2014-05-28 20:57:39 +00:00
top: 0;
2014-04-22 17:57:16 +00:00
}
2014-05-02 17:46:18 +00:00
#main .window {
2014-04-22 17:57:16 +00:00
background: #fff;
2014-05-04 00:33:05 +00:00
bottom: 0;
2014-05-28 20:57:39 +00:00
left: 0;
2014-05-04 00:33:05 +00:00
position: absolute;
right: 0;
2014-05-28 20:57:39 +00:00
top: 0;
2014-05-04 00:33:05 +00:00
}
2014-05-28 20:57:39 +00:00
#chat {
font: 13px "Consolas", monospace;
2014-05-30 00:23:23 +00:00
line-height: 1.3em;
2014-05-13 22:47:35 +00:00
}
2014-05-28 20:57:39 +00:00
#chat a {
color: #33b0f7;
word-break: normal;
2014-05-02 17:46:18 +00:00
}
2014-05-28 20:57:39 +00:00
#chat a:hover {
opacity: .6;
2014-05-02 17:46:18 +00:00
}
2014-05-30 00:23:23 +00:00
#chat .header {
background: #fff;
border-bottom: 1px solid #eee;
color: #ccc;
display: none;
font-size: 13px;
height: 40px;
line-height: 40px;
position: relative;
text-align: center;
}
#chat .header h1 {
color: #222;
display: inline;
font-size: 15px;
}
#chat .header button {
background: no-repeat url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxNi4wLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB3aWR0aD0iMTZweCIgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSIwIDAgMTYgMTYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDE2IDE2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnPg0KCTxnPg0KCQk8cGF0aCBkPSJNMTUuNDk5LDAuMDFIMC41MDFjLTAuMjc1LDAtMC41LDAuMjQtMC41LDAuNTM0djEuOTQ4YzAsMC4yODIsMC4yMjUsMC41MTMsMC41LDAuNTEzaDE0Ljk5OGMwLjI3NSwwLDAuNS0wLjIzLDAuNS0wLjUxMw0KCQkJVjAuNTQ0QzE1Ljk5OSwwLjI1LDE1Ljc3NCwwLjAxLDE1LjQ5OSwwLjAxeiBNMTUuNDk5LDUuMDFIMC41MDFjLTAuMjc1LDAtMC41LDAuMjQtMC41LDAuNTM1djEuOTQ3DQoJCQljMCwwLjI4MywwLjIyNSwwLjUxMywwLjUsMC41MTNoMTQuOTk4YzAuMjc1LDAsMC41LTAuMjMsMC41LTAuNTEzVjUuNTQ0QzE1Ljk5OSw1LjI1LDE1Ljc3NCw1LjAxLDE1LjQ5OSw1LjAxeiBNMTUuNDk5LDEwLjAxDQoJCQlIMC41MDFjLTAuMjc1LDAtMC41LDAuMjQtMC41LDAuNTM1djEuOTQ3YzAsMC4yODEsMC4yMjUsMC41MTIsMC41LDAuNTEyaDE0Ljk5OGMwLjI3NSwwLDAuNS0wLjIzLDAuNS0wLjUxMnYtMS45NDcNCgkJCUMxNS45OTksMTAuMjUsMTUuNzc0LDEwLjAxLDE1LjQ5OSwxMC4wMXoiLz4NCgk8L2c+DQo8L2c+DQo8L3N2Zz4NCg==);
background-position: 8px 10px;
height: 32px;
opacity: .2;
transition: all .1s;
width: 32px;
}
#chat .header button:hover {
opacity: .5;
}
#chat .header .lt {
left: 4px;
position: absolute;
top: 4px;
}
#chat .header .rt {
position: absolute;
right: 4px;
top: 4px;
}
#chat .header .type {
text-transform: capitalize;
}
2014-05-28 20:57:39 +00:00
#chat .chat {
2014-05-30 00:23:23 +00:00
background: #fff;
border-bottom: 1px solid #eee;
2014-05-25 20:46:54 +00:00
bottom: 35px;
2014-05-28 20:57:39 +00:00
box-shadow: inset 160px 0 #f9f9f9;
left: 0;
2014-05-30 21:31:47 +00:00
overflow-y: auto;
-webkit-overflow-scrolling: touch;
2014-05-25 20:46:54 +00:00
position: absolute;
2014-06-09 19:45:38 +00:00
right: 180px;
2014-05-25 20:46:54 +00:00
top: 0;
}
2014-06-02 21:08:03 +00:00
#chat .show-more {
2014-06-09 19:39:19 +00:00
background: #fff;
2014-06-02 21:08:03 +00:00
border-bottom: 1px solid #eee;
color: #bec5d0;
font: 12px Lato, sans-serif;
2014-06-09 19:39:19 +00:00
line-height: 40px;
height: 40px;
2014-06-02 21:08:03 +00:00
text-align: center;
text-transform: uppercase;
width: 100%;
word-spacing: 2px;
}
#chat .show-more:hover {
color: #33b0f7;
}
#chat .show-more:disabled {
2014-06-06 20:05:47 +00:00
display: none;
2014-06-02 21:08:03 +00:00
}
2014-05-28 20:57:39 +00:00
#chat .messages {
2014-05-30 00:23:23 +00:00
display: table;
width: 100%;
2014-05-25 20:46:54 +00:00
}
2014-05-30 00:23:23 +00:00
#chat .row {
display: table-row;
2014-05-28 20:57:39 +00:00
word-break: break-word;
word-wrap: break-word;
2014-05-02 17:46:18 +00:00
}
2014-05-30 00:23:23 +00:00
#chat .row span {
display: table-cell;
padding-top: 2px;
2014-05-30 01:01:20 +00:00
padding-bottom: 2px;
}
#chat .row:first-child span {
padding-top: 6px;
}
#chat .row:last-child span {
padding-bottom: 6px;
2014-05-30 00:23:23 +00:00
}
#chat .row:hover .time {
2014-05-28 20:57:39 +00:00
color: #aaa;
2014-04-22 17:57:16 +00:00
}
2014-05-28 20:57:39 +00:00
#chat .from {
padding-right: 10px;
text-align: right;
2014-05-30 00:23:23 +00:00
width: 160px;
2014-05-02 21:54:31 +00:00
}
2014-05-28 20:57:39 +00:00
#chat .text {
padding-left: 10px;
}
#chat .text a {
word-break: break-all;
2014-05-22 23:14:01 +00:00
}
2014-05-28 20:57:39 +00:00
#chat .type {
color: #bbb;
}
#chat .action .type,
#chat .highlight .type,
#chat .motd .type,
#chat .normal .type,
#chat .notice .type {
display: none;
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-05-28 20:57:39 +00:00
#chat .highlight,
#chat .highlight .from a {
color: #f00;
2014-05-02 23:35:51 +00:00
}
2014-05-28 20:57:39 +00:00
#chat .time {
color: #ddd;
text-align: center;
width: 50px;
}
2014-05-30 00:23:23 +00:00
#chat .sidebar {
bottom: 0;
2014-05-30 21:31:47 +00:00
display: none;
2014-05-30 00:23:23 +00:00
position: absolute;
right: 0;
2014-06-09 19:45:38 +00:00
width: 180px;
2014-05-30 00:23:23 +00:00
top: 0;
}
2014-05-30 21:31:47 +00:00
#chat .active .sidebar {
display: block;
}
2014-06-09 19:39:19 +00:00
#chat .sidebar .meta {
2014-05-28 20:57:39 +00:00
border: 1px solid #eee;
border-width: 0 0 1px 1px;
color: #ccc;
height: 80px;
2014-05-30 00:23:23 +00:00
padding: 25px 0 0 21px;
width: 100%;
2014-05-02 23:35:51 +00:00
}
2014-06-09 19:39:19 +00:00
#chat .sidebar .meta h1 {
2014-05-28 20:57:39 +00:00
color: #222;
font-size: 15px;
2014-05-02 21:54:31 +00:00
}
2014-06-09 19:39:19 +00:00
#chat .sidebar .meta .type {
2014-05-28 20:57:39 +00:00
text-transform: capitalize;
2014-05-02 23:35:51 +00:00
}
2014-05-28 20:57:39 +00:00
#chat .users {
border-left: 1px solid #eee;
bottom: 0;
line-height: 1.6em;
overflow-y: auto;
2014-05-30 21:31:47 +00:00
-webkit-overflow-scrolling: touch;
2014-05-28 20:57:39 +00:00
padding: 15px 20px;
position: absolute;
top: 80px;
2014-05-30 00:23:23 +00:00
width: 100%;
2014-05-02 23:35:51 +00:00
}
2014-05-28 20:57:39 +00:00
#chat .users li {
display: table-row;
2014-05-02 23:35:51 +00:00
}
2014-05-28 20:57:39 +00:00
#chat .users li a {
display: table-cell;
2014-05-02 23:35:51 +00:00
}
2014-05-28 20:57:39 +00:00
#chat .form {
bottom: 0;
height: 35px;
left: 0;
position: absolute;
2014-06-09 19:45:38 +00:00
right: 180px;
2014-04-22 17:57:16 +00:00
}
2014-05-28 20:57:39 +00:00
#chat .form .hint {
color: #bbb;
2014-05-25 20:46:54 +00:00
}
2014-05-28 20:57:39 +00:00
#chat .form .input {
border: none;
height: 35px;
outline: 0;
padding: 0 10px;
width: 100%;
2014-04-30 15:14:22 +00:00
}
2014-05-28 20:57:39 +00:00
#chat .form .submit {
margin-left: -999px;
position: absolute;
2014-04-22 17:57:16 +00:00
}
2014-05-30 00:23:23 +00:00
@media (max-width: 768px) {
#viewport.lt {
2014-06-09 19:39:19 +00:00
-webkit-transform: translate3d(220px, 0, 0);
transform: translate3d(220px, 0, 0);
2014-05-30 00:23:23 +00:00
}
#viewport.rt {
2014-06-09 19:45:38 +00:00
-webkit-transform: translate3d(-180px, 0, 0);
transform: translate3d(-180px, 0, 0);
2014-05-30 00:23:23 +00:00
}
#sidebar {
2014-06-09 19:39:19 +00:00
margin-left: -220px;
2014-05-30 00:23:23 +00:00
}
#main {
left: 0;
}
#chat .lobby .rt,
#chat .query .rt {
display: none;
}
#chat .header {
display: block;
}
#chat .chat {
box-shadow: none;
top: 40px;
}
#chat .chat,
#chat .form {
right: 0;
}
#chat .sidebar {
2014-06-09 19:45:38 +00:00
margin-right: -180px;
2014-05-30 00:23:23 +00:00
}
#chat .messages {
display: block;
2014-05-30 21:31:47 +00:00
padding: 4px 10px;
2014-05-30 00:23:23 +00:00
}
#chat .row {
display: block;
padding: 2px 0;
}
#chat .row span {
display: inline;
padding: 0;
}
#chat .row .time {
display: none;
}
}