hardlounge/client/css/style.css

614 lines
11 KiB
CSS
Raw Normal View History

2014-06-26 16:14:45 +00:00
@import url(
2014-07-07 12:42:46 +00:00
http://fonts.googleapis.com/css?family=Lato:400,700
2014-06-26 16:14:45 +00:00
);
@font-face {
font-family: "Octicons";
2014-07-08 20:50:41 +00:00
src: url("fonts/octicons.svg") format("svg"), url("fonts/octicons.woff") format("woff");
2014-06-26 16:14:45 +00:00
}
html,
body {
height: 100%;
}
body {
2014-07-04 23:32:40 +00:00
background: #fff;
2014-06-26 16:14:45 +00:00
color: #222;
font: 16px Lato, sans-serif;
margin: 0;
}
a {
transition: opacity .2s;
}
a:hover {
text-decoration: none;
opacity: .8;
}
h1,
h2 {
font: inherit;
line-height: inherit;
margin: 0;
}
2014-07-08 20:50:41 +00:00
input {
outline: 0;
}
2014-06-26 16:14:45 +00:00
button {
border: none;
2014-07-08 20:50:41 +00:00
background: none;
margin: 0;
outline: none;
2014-06-26 16:14:45 +00:00
padding: 0;
}
2014-07-08 20:50:41 +00:00
.btn {
border: 2px solid #95a5a6;
border: 2px solid #84d1ff;
border-radius: 5px;
color: #95a5a6;
color: #84d1ff;
display: inline-block;
font: bold 12px Lato, sans-serif;
letter-spacing: 1px;
margin-bottom: 10px;
padding: 9px 17px;
text-transform: uppercase;
transition: background .2s, border-color .2s, color .2s;
word-spacing: 3px;
}
.btn:disabled,
.btn:hover {
background: #95a5a6;
background: #84d1ff;
color: #fff;
}
.btn:active {
box-shadow: none;
opacity: .8;
}
.btn:disabled {
opacity: .6;
}
2014-07-07 00:44:31 +00:00
.container {
margin: 10% auto;
2014-07-08 20:50:41 +00:00
max-width: 420px;
2014-07-07 00:44:31 +00:00
overflow: hidden;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
padding: 0 30px;
}
2014-07-08 20:50:41 +00:00
::-moz-placeholder {
color: rgba(0, 0, 0, .5);
opacity: 1;
}
::-webkit-input-placeholder {
color: rgba(0, 0, 0, .5);
}
:-ms-input-placeholder {
color: rgba(0, 0, 0, .5) !important;
}
2014-07-07 21:44:49 +00:00
#wrap {
height: 100%;
overflow: hidden;
}
#viewport {
height: 100%;
transition: all .4s;
-webkit-transform: translateZ(0);
transform: translateZ(0);
-webkit-perspective: 1000;
perspective: 1000;
}
2014-06-26 16:14:45 +00:00
#sidebar {
background: #262c36;
2014-06-27 00:47:36 +00:00
bottom: 0;
2014-07-08 20:50:41 +00:00
color: #fff;
2014-06-26 16:14:45 +00:00
left: 0;
2014-07-07 00:44:31 +00:00
overflow: hidden;
overflow-y: auto;
2014-07-06 15:22:43 +00:00
-webkit-overflow-scrolling: touch;
2014-06-26 16:14:45 +00:00
position: absolute;
top: 0;
width: 220px;
z-index: 2;
}
#sidebar button {
border: 1px solid transparent;
border-radius: 2px;
color: #7c838d;
font-size: 14px;
}
#sidebar button:hover,
#sidebar .active {
background: #2a303a;
border-color: rgba(255, 255, 255, .025);
}
#sidebar button.active {
background: #323841;
color: #fff;
}
2014-07-07 12:42:46 +00:00
#sidebar .networks {
2014-06-27 00:47:36 +00:00
min-height: 100%;
2014-07-08 20:50:41 +00:00
padding: 25px 40px 80px;
2014-06-26 16:14:45 +00:00
}
2014-07-07 12:42:46 +00:00
#sidebar .network + .network {
2014-06-26 16:14:45 +00:00
margin-top: 30px;
}
2014-07-08 20:50:41 +00:00
#sidebar .empty {
color: #7c838d;
line-height: 1.6;
font-size: 12px;
text-align: center;
width: 140px;
}
#sidebar .empty:before {
content: "\f085";
display: block;
margin-top: 20px;
font: 64px Octicons;
opacity: .4;
margin-bottom: 24px;
text-align: center;
}
2014-07-07 12:42:46 +00:00
#sidebar .chan {
2014-06-26 16:14:45 +00:00
display: block;
margin: 1px -10px;
padding: 6px 10px 8px;
position: relative;
text-align: left;
2014-06-29 19:41:02 +00:00
transition: all .2s;
2014-06-26 16:14:45 +00:00
width: 160px;
}
2014-07-07 12:42:46 +00:00
#sidebar .chan:first-child {
2014-06-26 16:14:45 +00:00
color: #84d1ff;
font-size: 15px;
font-weight: bold;
}
2014-07-09 17:11:07 +00:00
#sidebar .chan:hover .badge {
opacity: 0;
}
#sidebar .chan:hover .close {
opacity: .2;
}
2014-07-07 12:42:46 +00:00
#sidebar .badge {
2014-06-26 16:14:45 +00:00
background: rgba(255, 255, 255, .06);
border-radius: 3px;
color: #afb6c0;
font-size: 10px;
margin-top: 1px;
padding: 3px 6px;
position: absolute;
right: 10px;
2014-07-09 17:11:07 +00:00
transition: all .2s;
2014-06-26 16:14:45 +00:00
}
2014-07-07 23:13:12 +00:00
#sidebar .badge.highlight {
background: #fff;
color: #49505a;
}
2014-07-07 12:42:46 +00:00
#sidebar .badge:empty {
2014-06-30 01:20:54 +00:00
display: none;
}
2014-07-09 17:11:07 +00:00
#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;
margin-right: 10px;
opacity: 0;
position: absolute;
right: 0;
transition: all .2s;
width: 18px;
}
#sidebar .close:hover {
background-color: rgba(0, 0, 0, .2);
opacity: .7 !important;
}
2014-06-26 16:14:45 +00:00
#footer {
height: 80px;
line-height: 80px;
2014-06-27 00:47:36 +00:00
margin-top: -80px;
2014-06-26 16:14:45 +00:00
text-align: center;
2014-06-27 00:47:36 +00:00
width: 220px;
2014-06-26 16:14:45 +00:00
}
#footer button {
font: 18px Octicons;
2014-07-08 20:50:41 +00:00
line-height: 34px;
padding: 0px 12px;
2014-06-26 16:14:45 +00:00
}
2014-07-08 20:50:41 +00:00
#footer .connect:before {
2014-06-26 16:14:45 +00:00
content: "\f085";
}
2014-07-08 20:50:41 +00:00
#footer .settings:before {
2014-06-26 16:14:45 +00:00
content: "\f02f";
}
#main {
bottom: 0;
left: 220px;
position: absolute;
right: 0;
top: 0;
}
#header {
border-bottom: 1px solid #e9ecef;
display: none;
height: 40px;
position: absolute;
top: 0;
width: 100%;
}
#header h1 {
color: #222;
font-size: 15px;
line-height: 40px;
text-align: center;
}
#header button {
2014-07-07 21:44:49 +00:00
color: #666;
font: 16px Octicons;
2014-06-26 16:14:45 +00:00
height: 32px;
opacity: .5;
position: absolute;
top: 4px;
transition: opacity .2s;
2014-07-08 20:50:41 +00:00
padding: 0 10px;
width: 64px;
2014-06-26 16:14:45 +00:00
}
2014-07-07 21:44:49 +00:00
#header button:hover {
opacity: 1;
}
#header #lt {
2014-06-26 16:14:45 +00:00
left: 4px;
2014-07-08 20:50:41 +00:00
text-align: left;
2014-06-26 16:14:45 +00:00
}
#header #rt {
2014-07-08 20:50:41 +00:00
display: none;
2014-06-26 16:14:45 +00:00
right: 4px;
2014-07-08 20:50:41 +00:00
text-align: right;
2014-06-26 16:14:45 +00:00
}
2014-07-07 21:44:49 +00:00
#header #lt:before {
2014-06-26 16:14:45 +00:00
content: "\f05e";
}
2014-07-07 21:44:49 +00:00
#header #rt:before {
content: "\f037";
}
2014-06-26 16:14:45 +00:00
#windows {
2014-07-07 00:44:31 +00:00
bottom: 40px;
2014-06-26 16:14:45 +00:00
position: absolute;
top: 0px;
width: 100%;
}
2014-07-09 22:40:51 +00:00
#windows .input {
border: 2px solid #e9ecef;
border-radius: 4px;
color: #222;
font-size: 14px;
margin: 2px 0;
outline: 0;
padding: 8px 10px;
transition: border-color .2s;
-webkit-appearance: none;
width: 100%;
}
#windows .input:hover,
#windows .input:focus {
border-color: #bdc3c7;
}
2014-07-08 20:50:41 +00:00
#windows .chan,
#windows .window {
2014-07-07 12:42:46 +00:00
background: #fff;
bottom: 0;
2014-07-08 20:50:41 +00:00
display: none;
2014-07-07 12:42:46 +00:00
left: 0;
position: absolute;
right: 0;
top: 0;
2014-07-07 00:44:31 +00:00
}
2014-07-08 20:50:41 +00:00
#windows .window {
overflow-y: auto;
}
#windows .window h1 {
font: 36px Lato;
}
2014-07-07 23:13:12 +00:00
#windows .active {
display: block;
}
2014-06-26 16:14:45 +00:00
#chat {
2014-07-08 20:50:41 +00:00
bottom: 0;
2014-06-26 16:14:45 +00:00
font: 13px Consolas, monospace;
2014-07-08 20:50:41 +00:00
left: 0;
position: absolute;
right: 0;
top: 0;
2014-06-26 16:14:45 +00:00
}
#chat button:hover {
opacity: .6;
}
2014-07-07 12:42:46 +00:00
#chat .chat {
2014-07-07 00:44:31 +00:00
bottom: 0;
2014-06-26 16:14:45 +00:00
left: 0;
2014-07-06 15:22:43 +00:00
overflow: auto;
-webkit-overflow-scrolling: touch;
2014-06-26 16:14:45 +00:00
position: absolute;
right: 180px;
top: 0;
}
#chat .sidebar {
background: #fff;
border-left: 1px solid #e9ecef;
bottom: 0;
position: absolute;
right: 0;
top: 0;
width: 180px;
}
2014-07-08 20:50:41 +00:00
#chat .sidebar button {
color: #33b0f7;
}
2014-07-07 12:42:46 +00:00
#chat .messages {
2014-06-26 16:14:45 +00:00
display: table;
height: 100%;
width: 100%;
}
2014-07-07 12:42:46 +00:00
#chat .msg {
2014-06-26 16:14:45 +00:00
display: table-row;
word-wrap: break-word;
}
2014-07-07 12:42:46 +00:00
#chat .msg:last-child {
2014-06-26 16:14:45 +00:00
height: 100%;
}
2014-07-07 12:42:46 +00:00
#chat .msg:last-child .text {
2014-06-26 16:14:45 +00:00
padding-bottom: 5px;
}
2014-07-07 21:44:49 +00:00
#chat .msg .type {
color: #ccc;
display: none;
}
2014-07-07 12:42:46 +00:00
#chat .time,
#chat .from,
#chat .text {
2014-06-26 16:14:45 +00:00
display: table-cell;
padding: 5px 0 0;
}
2014-07-07 12:42:46 +00:00
#chat .time {
2014-06-26 16:14:45 +00:00
background: #f9f9f9;
color: #ddd;
text-align: right;
width: 46px;
}
2014-07-07 12:42:46 +00:00
#chat .from {
2014-06-26 16:14:45 +00:00
background: #f9f9f9;
2014-07-02 22:00:11 +00:00
border-right: 1px solid #f4f4f4;
2014-06-30 01:20:54 +00:00
color: #ddd;
2014-06-26 16:14:45 +00:00
padding-right: 10px;
text-align: right;
width: 134px;
}
2014-07-07 12:42:46 +00:00
#chat a,
#chat .from button {
2014-06-30 01:20:54 +00:00
color: #33b0f7;
}
2014-07-07 12:42:46 +00:00
#chat .text {
2014-06-26 16:14:45 +00:00
padding-left: 10px;
padding-right: 6px;
}
2014-07-07 12:42:46 +00:00
#chat .text a {
2014-07-05 00:31:20 +00:00
word-break: break-all;
}
2014-07-07 12:42:46 +00:00
#chat .join .type,
#chat .part .type,
#chat .mode .type,
#chat .nick .type,
#chat .kick .type,
#chat .quit .type,
#chat .quit .type,
#chat .topic .type {
2014-06-30 01:20:54 +00:00
display: inline;
2014-06-26 16:14:45 +00:00
}
2014-07-07 23:13:12 +00:00
#chat .error,
2014-07-09 22:40:51 +00:00
#chat .error .from,
2014-07-07 23:13:12 +00:00
#chat .highlight,
2014-07-09 22:40:51 +00:00
#chat .highlight .from {
2014-07-07 23:13:12 +00:00
color: #f00;
}
2014-07-09 22:40:51 +00:00
#chat.hide-join .join,
#chat.hide-nick .nick,
#chat.hide-part .nick,
#chat.hide-mode .mode,
#chat.hide-quit .quit {
display: none !important;
}
#chat .notice .type {
display: none;
}
2014-07-07 12:42:46 +00:00
#chat .meta {
2014-06-26 16:14:45 +00:00
height: 80px;
padding: 25px 0 0 20px;
}
2014-07-07 12:42:46 +00:00
#chat .meta h1 {
2014-06-26 16:14:45 +00:00
color: #222;
font-size: 15px;
}
2014-07-07 12:42:46 +00:00
#chat .meta .type {
2014-07-04 23:32:40 +00:00
color: #ccc;
2014-06-30 01:20:54 +00:00
text-transform: capitalize;
}
2014-07-07 12:42:46 +00:00
#chat .count {
2014-07-04 23:32:40 +00:00
background: #f9f9f9;
border-top: 1px dashed #e9ecef;
border-bottom: 1px solid #e9ecef;
height: 40px;
left: 0;
position: absolute;
right: 0;
top: 80px;
}
2014-07-07 12:42:46 +00:00
#chat .count:before {
2014-07-04 23:32:40 +00:00
color: #eee;
font: 16px Octicons;
content: "\f02e";
position: absolute;
right: 18px;
line-height: 40px;
transition: color .2s;
2014-07-07 23:13:12 +00:00
z-index: 0;
2014-07-04 23:32:40 +00:00
}
2014-07-07 12:42:46 +00:00
#chat .search {
2014-07-04 23:32:40 +00:00
color: #222;
border: 0;
background: none;
font: inherit;
outline: 0;
padding: 12px 20px;
position: relative;
width: 100%;
}
2014-07-07 12:42:46 +00:00
#chat .names {
2014-06-26 16:14:45 +00:00
bottom: 0;
overflow: auto;
2014-07-09 16:54:16 +00:00
overflow-x: hidden;
2014-07-06 15:22:43 +00:00
-webkit-overflow-scrolling: touch;
2014-06-26 16:14:45 +00:00
padding: 15px 20px;
position: absolute;
2014-07-04 23:32:40 +00:00
top: 120px;
2014-06-26 16:14:45 +00:00
width: 100%;
}
2014-07-07 12:42:46 +00:00
#chat .names button {
2014-06-26 16:14:45 +00:00
display: block;
line-height: 1.6em;
}
2014-07-08 20:50:41 +00:00
#connect input {
width: 100%;
}
#connect label {
display: block;
margin-top: 10px;
}
#connect .title {
margin-bottom: 10px;
}
#connect .port:before {
content: ":";
margin: 28px 0 0 -17px;
position: absolute;
}
#connect .btn {
margin-top: 30px;
}
2014-07-09 22:40:51 +00:00
#settings h2 {
border-bottom: 1px solid #eee;
color: #7f8c8d;
font-size: 26px;
margin: 30px 0 10px;
padding-bottom: 7px;
}
#settings .opt {
display: block;
padding: 10px 0 10px 1px;
}
#settings .opt input {
float: left;
margin: 4px 10px 0 0;
}
#settings #play {
color: #7f8c8d;
}
#settings #play:hover {
opacity: .8;
}
#settings #play:before {
content: "\f0ba";
font: 16px Octicons;
margin-right: 9px;
}
2014-06-30 01:20:54 +00:00
#form {
bottom: 0;
height: 40px;
left: 0;
position: absolute;
2014-07-07 00:44:31 +00:00
right: 0px;
2014-07-08 20:50:41 +00:00
z-index: 1;
2014-06-30 01:20:54 +00:00
}
#form input {
2014-06-26 16:14:45 +00:00
border: 0;
border-top: 1px solid #e9ecef;
2014-07-05 00:31:20 +00:00
font: 13px Consolas, monospace;
2014-06-26 16:14:45 +00:00
height: 100%;
outline: none;
2014-07-05 00:31:20 +00:00
padding: 0 12px;
2014-07-07 21:44:49 +00:00
-webkit-appearance: none;
2014-06-26 16:14:45 +00:00
width: 100%;
}
2014-07-07 00:44:31 +00:00
#form #submit {
height: 0;
margin-left: -9999px;
2014-06-26 16:14:45 +00:00
position: absolute;
2014-07-07 00:44:31 +00:00
width: 0;
2014-06-26 16:14:45 +00:00
}
2014-07-07 21:44:49 +00:00
@media (max-width: 768px) {
#viewport.rt {
-webkit-transform: translate3d(-180px, 0, 0);
transform: translate3d(-180px, 0, 0);
}
2014-06-26 16:14:45 +00:00
#header {
display: block;
}
2014-07-07 21:44:49 +00:00
#header #lt {
display: none;
}
2014-06-26 16:14:45 +00:00
#windows {
top: 40px;
}
2014-07-07 21:44:49 +00:00
#chat .chat {
right: 0;
}
#chat .sidebar {
bottom: -40px;
right: -180px;
top: -40px;
}
2014-06-26 16:14:45 +00:00
}
2014-07-07 21:44:49 +00:00
@media (max-width: 480px) {
#viewport.lt {
-webkit-transform: translate3d(220px, 0, 0);
transform: translate3d(220px, 0, 0);
}
#header #lt {
display: inherit;
}
#sidebar {
left: -220px;
}
2014-07-08 20:50:41 +00:00
#sidebar .empty:before {
margin-top: 0;
}
2014-07-07 21:44:49 +00:00
#main {
left: 0;
}
#chat .messages {
display: block;
padding: 5px 10px;
}
#chat .msg {
display: block;
padding: 2px 0;
}
#chat .msg:last-child {
height: auto;
}
#chat .from,
#chat .text {
background: none;
border: 0;
display: inline;
padding: 0;
}
#chat .time {
display: none;
}
2014-07-08 20:50:41 +00:00
#windows .title {
display: none;
}
2014-07-07 21:44:49 +00:00
}