thelounge/client/css/style.css

744 lines
13 KiB
CSS
Raw Normal View History

@import url('//fonts.googleapis.com/css?family=Lato:400,700');
2014-08-15 13:52:14 +00:00
@font-face {
2014-08-29 20:54:11 +00:00
font-family: "FontAwesome";
src: url("fonts/fontawesome.svg") format("svg"), url("fonts/fontawesome.woff") format("woff");
2014-08-15 13:52:14 +00:00
}
html,
body {
height: 100%;
}
body {
background: #505d70;
2014-09-10 15:56:19 +00:00
background: #455164;
2014-08-15 13:52:14 +00:00
color: #222;
font: 16px Lato, sans-serif;
margin: 0;
}
a {
2014-08-15 21:33:22 +00:00
transition: opacity .2s;
2014-08-15 13:52:14 +00:00
}
a:hover {
text-decoration: none;
opacity: .8;
}
h1,
h2 {
font: inherit;
line-height: inherit;
margin: 0;
}
input {
outline: 0;
}
button {
border: none;
background: none;
margin: 0;
outline: none;
padding: 0;
}
.tooltip-inner {
background: #fff;
border-radius: 2px;
color: #262c36;
}
.tooltip.top .tooltip-arrow {
border-top-color: #fff;
}
.btn {
border: 2px solid #84d1ff;
border: 2px solid #84ce88;
border-radius: 3px;
color: #84d1ff;
color: #84ce88;
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: #84d1ff;
background: #84ce88;
color: #fff;
}
.btn:active {
box-shadow: none;
opacity: .8;
}
.btn:disabled {
opacity: .6;
}
.container {
margin: 80px auto;
max-width: 420px;
overflow: hidden;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
padding: 0 30px;
}
::-moz-placeholder {
2014-09-10 15:56:19 +00:00
color: rgba(0, 0, 0, .35);
2014-08-15 13:52:14 +00:00
opacity: 1;
}
::-webkit-input-placeholder {
2014-09-10 15:56:19 +00:00
color: rgba(0, 0, 0, .35);
2014-08-15 13:52:14 +00:00
}
:-ms-input-placeholder {
2014-09-10 15:56:19 +00:00
color: rgba(0, 0, 0, .35) !important;
2014-08-15 13:52:14 +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;
}
#sidebar {
bottom: 0;
left: 0;
overflow: hidden;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
position: absolute;
top: 0;
width: 220px;
}
#sidebar button,
#sidebar .sign-out {
border: 1px solid transparent;
border-radius: 2px;
color: #bcc4d3;
2014-08-29 20:54:11 +00:00
color: #99a2b4;
2014-08-15 13:52:14 +00:00
font-size: 14px;
}
#sidebar button:hover,
#sidebar .active {
color: #fff;
}
#sidebar button.active {
color: #fff;
}
#sidebar .networks {
min-height: 100%;
2014-08-29 20:54:11 +00:00
padding: 20px 30px 80px;
2014-08-15 13:52:14 +00:00
}
#sidebar .network + .network {
margin-top: 30px;
}
#sidebar .empty {
2014-09-10 15:56:19 +00:00
color: #9ca5b4;
2014-08-15 13:52:14 +00:00
line-height: 1.6;
font-size: 12px;
margin-top: 20px;
padding: 20px 40px;
text-align: center;
position: absolute;
top: 0;
}
#sidebar .chan {
display: block;
margin: 1px -10px;
padding: 6px 10px 8px;
position: relative;
text-align: left;
transition: all .2s;
2014-08-29 20:54:11 +00:00
width: 180px;
2014-08-15 13:52:14 +00:00
}
#sidebar .chan:first-child {
color: #84ce88;
font-size: 15px;
font-weight: bold;
}
#sidebar .chan:first-child:hover,
#sidebar .chan:first-child.active {
color: #c0f8c3;
}
2014-08-29 20:54:11 +00:00
#sidebar .chan:before,
#chat .title:before {
font: 14px FontAwesome;
float: left;
margin-top: 3px;
margin-right: 12px;
width: 14px;
text-align: center;
}
#chat .title:before {
margin-top: 17px;
}
#sidebar .chan.lobby:before,
#chat .lobby .title:before {
content: "\f0a0";
}
#sidebar .chan.query:before,
#chat .query .title:before {
content: "\f0e6";
}
#sidebar .chan.channel:before,
#chat .channel .title:before {
content: "\f0f6";
}
2014-08-15 13:52:14 +00:00
#sidebar .chan:hover .badge {
opacity: 0;
}
#sidebar .chan:hover .close {
opacity: .2;
}
#sidebar .badge {
background: rgba(255, 255, 255, .06);
border-radius: 3px;
color: #afb6c0;
font-size: 10px;
margin-top: 1px;
padding: 3px 6px;
position: absolute;
right: 10px;
transition: all .2s;
}
#sidebar .badge.highlight {
background: #fff;
color: #49505a;
}
#sidebar .badge:empty {
display: none;
}
#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, .1);
opacity: .7 !important;
}
#footer {
height: 70px;
line-height: 70px;
margin-top: -70px;
text-align: center;
}
#footer button {
border: 0;
}
#footer button.active {
background: none;
}
#footer .icon {
2014-09-10 15:56:19 +00:00
color: #9ca5b4;
2014-08-15 13:52:14 +00:00
display: inline-block;
2014-08-29 20:54:11 +00:00
font: 14px FontAwesome;
2014-08-15 13:52:14 +00:00
line-height: 34px;
padding: 0px 12px;
}
.signed-out #footer .sign-in {
display: inline-block;
}
.signed-out #footer .connect,
.signed-out #footer .sign-out {
display: none;
}
.public #footer .sign-in,
.public #footer .sign-out {
display: none;
}
#footer .sign-in {
display: none;
}
#footer .sign-in:before {
2014-09-10 15:56:19 +00:00
content: "\f023";
2014-08-15 13:52:14 +00:00
}
#footer .connect:before {
2014-09-10 15:56:19 +00:00
content: "\f067";
2014-08-15 13:52:14 +00:00
}
#footer .settings:before {
2014-09-10 15:56:19 +00:00
content: "\f013";
2014-08-15 13:52:14 +00:00
}
#footer .sign-out:before {
2014-08-29 20:54:11 +00:00
content: "\f13e";
2014-08-15 13:52:14 +00:00
}
#main {
background: #fff;
border-radius: 2px;
bottom: 4px;
left: 220px;
overflow: hidden;
position: absolute;
right: 5px;
top: 4px;
}
#header {
display: none;
height: 40px;
position: absolute;
top: 0;
width: 100%;
}
#windows {
bottom: 48px;
position: absolute;
top: 0px;
width: 100%;
}
#windows .input {
border: 1px solid #cdd3da;
2014-08-16 00:05:37 +00:00
border-radius: 2px;
2014-08-15 13:52:14 +00:00
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: #79838c;
}
#windows .window:before,
#windows .chan:before {
background: #f4f4f4;
background-image: linear-gradient(#f4f4f4, #ececec);
border-bottom: 1px solid #d7d7d7;
content: " ";
display: block;
height: 10px;
position: relative;
z-index: 10;
}
#windows .chan,
#windows .window {
background: #fff;
bottom: 0;
display: none;
left: 0;
position: absolute;
right: 0;
top: 0;
}
#windows .window {
overflow-y: auto;
-webkit-overflow-scrolling: touch;
}
#windows .window h1 {
font: 36px Lato;
}
2014-09-10 15:56:19 +00:00
#windows .window h2 {
border-bottom: 1px solid #eee;
color: #7f8c8d;
font-size: 22px;
margin: 30px 0 10px;
padding-bottom: 7px;
}
2014-08-15 13:52:14 +00:00
#windows .active {
display: block;
}
#chat {
bottom: 0;
2014-08-18 23:54:14 +00:00
font: 13px Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace;
2014-08-15 13:52:14 +00:00
left: 0;
position: absolute;
right: 0;
top: 0;
}
#chat button:hover {
opacity: .6;
}
#chat .header {
border-bottom: 1px solid #e7e7e7;
line-height: 50px;
height: 48px;
padding: 0 20px;
}
#chat .header .lt,
#chat .header .rt {
color: #ccc;
display: none;
float: left;
line-height: 40px;
height: 36px;
margin: 6px 12px 0 -12px;
width: 36px;
}
2014-08-15 21:33:22 +00:00
#chat .header .lt:before,
#chat .header .rt:before {
2014-08-29 20:54:11 +00:00
font: 14px FontAwesome;
content: "\f0c9";
2014-08-15 13:52:14 +00:00
}
#chat .header .rt {
float: right;
2014-08-15 21:33:22 +00:00
margin: 6px -12px 0 12px;
2014-08-15 13:52:14 +00:00
}
#chat .header .title {
font: 16px Lato;
}
#chat .header .topic {
2014-08-29 20:54:11 +00:00
/* Hidden for now */
display: none;
2014-08-15 13:52:14 +00:00
color: #777;
margin-left: 8px;
text-transform: capitalize;
}
#chat .chat,
#chat .sidebar {
top: 58px;
}
#chat .chat {
bottom: 0;
left: 0;
overflow: auto;
-webkit-overflow-scrolling: touch;
position: absolute;
right: 180px;
}
#chat .sidebar {
background: #fff;
border-left: 1px solid #e7e7e7;
bottom: 0;
position: absolute;
right: 0;
width: 180px;
}
#chat .lobby .chat,
#chat .query .chat {
right: 0;
}
#chat .lobby .sidebar,
#chat .query .sidebar {
display: none;
}
#chat .show-more {
2014-08-18 23:54:14 +00:00
background: #fff;
border-bottom: 1px solid #e7e7e7;
2014-08-15 13:52:14 +00:00
color: #b1c3ce;
2014-08-18 23:54:14 +00:00
height: 48px;
line-height: 50px;
2014-08-15 13:52:14 +00:00
position: absolute;
width: 100%;
}
#chat .show-more + .messages .msg:first-child span {
2014-08-18 23:54:14 +00:00
padding-top: 54px;
2014-08-15 13:52:14 +00:00
}
#chat .messages {
display: table;
height: 100%;
width: 100%;
}
#chat .msg {
display: table-row;
word-wrap: break-word;
}
#chat .msg:first-child > span {
padding-top: 10px;
}
#chat .msg:last-child {
height: 100%;
}
#chat .msg:last-child .text {
padding-bottom: 10px;
}
#chat .msg .type {
color: #ccc;
color: #d0dbe2;
display: none;
}
#chat .time,
#chat .from,
#chat .text {
display: table-cell;
2014-08-18 23:54:14 +00:00
padding: 3px 0;
2014-08-16 19:49:28 +00:00
vertical-align: top;
2014-08-15 13:52:14 +00:00
}
#chat .time {
2014-09-10 15:56:19 +00:00
color: #d0dbe2;
2014-08-15 13:52:14 +00:00
text-align: right;
width: 46px;
min-width: 46px;
}
#chat .from {
border-right: 1px solid #f6f6f6;
color: #b1c3ce;
padding-right: 10px;
text-align: right;
width: 134px;
min-width: 134px;
}
#chat a,
#chat .from button,
#chat .sidebar button {
color: #84ce88;
}
#chat .text {
padding-left: 10px;
padding-right: 6px;
}
#chat .text a {
word-break: break-all;
}
#chat .join .type,
#chat .part .type,
#chat .mode .type,
#chat .nick .type,
#chat .kick .type,
#chat .quit .type,
#chat .quit .type,
#chat .topic .type {
display: inline;
}
#chat .error,
#chat .error .from,
#chat .highlight,
#chat .highlight .from {
color: #f00;
}
2014-09-10 20:08:32 +00:00
#chat.hide-join .join span,
#chat.hide-nick .nick span,
#chat.hide-part .part span,
#chat.hide-mode .mode span,
#chat.hide-quit .quit span {
display: none !important;
}
2014-08-15 13:52:14 +00:00
#chat .notice .type {
display: none;
}
#chat .action,
#chat .action .user {
color: #f39c12;
}
#chat .action .user:before {
content: '* ';
}
2014-08-17 21:40:08 +00:00
#chat .image {
2014-08-16 19:49:28 +00:00
max-height: 120px;
max-width: 240px;
}
2014-08-15 13:52:14 +00:00
#chat .count {
2014-09-10 15:56:19 +00:00
background: #fafafa;
2014-08-15 13:52:14 +00:00
height: 48px;
left: 0;
position: absolute;
right: 0;
top: 0;
}
#chat .count:before {
2014-09-10 15:56:19 +00:00
color: #cfcfcf;
2014-08-29 20:54:11 +00:00
font: 14px FontAwesome;
content: "\f002";
2014-08-15 13:52:14 +00:00
position: absolute;
right: 18px;
line-height: 50px;
transition: color .2s;
z-index: 0;
}
#chat .search {
color: #222;
border: 0;
background: none;
font: inherit;
outline: 0;
padding: 18px 16px;
position: relative;
width: 100%;
}
#chat .names {
bottom: 0;
overflow: auto;
overflow-x: hidden;
-webkit-overflow-scrolling: touch;
padding: 12px 16px;
position: absolute;
top: 48px;
width: 100%;
}
#chat .names button {
display: block;
2014-08-18 23:54:14 +00:00
line-height: 1.6;
2014-08-15 13:52:14 +00:00
}
#sign-in label {
display: block;
margin-top: 10px;
}
#sign-in .title {
margin-bottom: 10px;
}
#sign-in .btn {
margin-top: 25px;
}
#sign-in .error {
color: #e74c3c;
margin-top: 1em;
}
#connect label {
display: block;
margin-top: 10px;
}
#connect .title {
margin-bottom: 10px;
}
#connect .port:before {
content: ":";
margin: 28px 0 0 -17px;
position: absolute;
}
2014-09-10 15:56:19 +00:00
#connect .tls {
float: left;
font-size: 14px;
padding: 10px 2px;
}
#connect .tls input {
float: left;
margin: 3px 10px 0 0;
}
2014-08-15 13:52:14 +00:00
#connect .btn {
2014-09-10 15:56:19 +00:00
float: left;
2014-08-15 13:52:14 +00:00
margin-top: 25px;
}
#settings .title {
margin-bottom: -10px;
}
#settings .opt {
display: block;
padding: 10px 0 10px 1px;
}
#settings .opt input {
float: left;
margin: 4px 10px 0 0;
}
#settings .about,
#settings #play {
color: #7f8c8d;
}
2014-08-16 00:05:37 +00:00
#settings .about small {
margin-left: 2px;
}
2014-08-15 13:52:14 +00:00
#settings #play:hover {
opacity: .8;
}
#settings #play:before {
2014-08-29 20:54:11 +00:00
content: "\f028";
font: 14px FontAwesome;
2014-08-15 13:52:14 +00:00
margin-right: 9px;
}
#settings .about {
font-size: 14px;
padding-top: 2px;
line-height: 1.8;
}
#form {
background: #e4eaee;
border-top: 1px solid #cfdae1;
bottom: 0;
height: 48px;
left: 0;
position: absolute;
right: 0px;
z-index: 1;
}
#form input {
border: 1px solid #cfdae1;
font: 13px Consolas, monospace;
border-radius: 2px;
height: 100%;
outline: none;
padding: 0 12px;
-webkit-appearance: none;
width: 100%;
}
#form .inner {
bottom: 7px;
left: 7px;
position: absolute;
right: 7px;
top: 6px;
}
#form #submit {
height: 0;
margin-left: -9999px;
position: absolute;
width: 0;
}
@media (max-width: 768px) {
#viewport.lt {
-webkit-transform: translate3d(220px, 0, 0);
transform: translate3d(220px, 0, 0);
}
2014-08-15 21:33:22 +00:00
#viewport.rt #chat .sidebar {
2014-08-16 00:05:37 +00:00
-webkit-transform: translate3d(-180px, 0, 0);
transform: translate3d(-180px, 0, 0);
2014-08-15 13:52:14 +00:00
}
#sidebar {
left: -220px;
}
#sidebar .empty:before {
margin-top: 0;
}
#main {
left: 5px;
right: 5px;
}
#chat .chat {
right: 0;
}
2014-08-15 21:33:22 +00:00
#chat .header .lt,
#chat .channel .header .rt {
2014-08-15 13:52:14 +00:00
display: block;
}
#chat .sidebar {
right: -180px;
2014-08-16 00:05:37 +00:00
transition: all .4s;
-webkit-transform: translateZ(0);
2014-08-18 23:54:14 +00:00
transform: translateZ(0);
2014-08-16 00:05:37 +00:00
-webkit-perspective: 1000;
2014-08-18 23:54:14 +00:00
perspective: 1000;
2014-08-15 13:52:14 +00:00
}
2014-08-29 20:54:11 +00:00
#chat .title:before {
display: none;
}
2014-08-15 13:52:14 +00:00
}
@media (max-width: 480px) {
2014-09-10 15:56:19 +00:00
.container {
margin: 40px 0;
}
2014-08-15 13:52:14 +00:00
#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;
}
}