thelounge/client/css/style.css

302 lines
4.7 KiB
CSS
Raw Normal View History

2014-06-26 18:14:45 +02:00
@import url(
http://fonts.googleapis.com/css?family=Lato:300,400,700
);
@font-face {
font-family: "Octicons";
src: url("fonts/octicons.woff") format("woff");
}
html,
body {
height: 100%;
}
body {
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;
}
button {
background: 0;
border: none;
color: #33b0f7;
outline: 0;
padding: 0;
}
#sidebar {
background: #262c36;
2014-06-27 02:47:36 +02:00
bottom: 0;
2014-06-26 18:14:45 +02:00
left: 0;
2014-06-27 02:47:36 +02:00
overflow: auto;
overflow-x: hidden;
2014-06-26 18:14:45 +02: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-06-30 03:20:54 +02:00
#networks {
2014-06-27 02:47:36 +02:00
min-height: 100%;
padding: 30px 40px 80px;
2014-06-26 18:14:45 +02:00
}
2014-06-30 03:20:54 +02:00
#networks .network + .network {
2014-06-26 18:14:45 +02:00
margin-top: 30px;
}
2014-06-30 03:20:54 +02:00
#networks .chan {
2014-06-26 18:14:45 +02:00
display: block;
margin: 1px -10px;
padding: 6px 10px 8px;
position: relative;
text-align: left;
2014-06-29 21:41:02 +02:00
transition: all .2s;
2014-06-26 18:14:45 +02:00
width: 160px;
}
2014-06-30 03:20:54 +02:00
#networks .chan:first-child {
2014-06-26 18:14:45 +02:00
color: #84d1ff;
font-size: 15px;
font-weight: bold;
}
2014-06-30 03:20:54 +02:00
#networks .badge {
2014-06-26 18:14:45 +02: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;
transition: all .1s;
}
2014-06-30 03:20:54 +02:00
#networks .badge:empty {
display: none;
}
2014-06-26 18:14:45 +02:00
#footer {
height: 80px;
line-height: 80px;
2014-06-27 02:47:36 +02:00
margin-top: -80px;
2014-06-26 18:14:45 +02:00
text-align: center;
2014-06-27 02:47:36 +02:00
width: 220px;
2014-06-26 18:14:45 +02:00
}
#footer button {
font: 18px Octicons;
padding: 8px 12px;
}
#connect:before {
content: "\f085";
}
#settings:before {
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 {
color: #aaa;
font: 24px Octicons;
height: 32px;
opacity: .5;
position: absolute;
top: 4px;
transition: opacity .2s;
width: 32px;
}
#header #lt {
left: 4px;
}
#header #rt {
right: 4px;
}
#header #lt:before,
#header #rt:before {
content: "\f05e";
}
#windows {
bottom: 0;
position: absolute;
top: 0px;
width: 100%;
}
#chat {
font: 13px Consolas, monospace;
height: 100%;
position: relative;
width: 100%;
}
#chat button:hover {
opacity: .6;
}
2014-06-30 03:20:54 +02:00
#chat .window {
2014-06-26 18:14:45 +02:00
bottom: 40px;
left: 0;
position: absolute;
overflow: auto;
right: 180px;
top: 0;
}
#chat .sidebar {
background: #fff;
border-left: 1px solid #e9ecef;
bottom: 0;
position: absolute;
right: 0;
top: 0;
width: 180px;
z-index: 1;
}
#messages {
display: table;
height: 100%;
width: 100%;
}
#messages .msg {
display: table-row;
word-wrap: break-word;
}
#messages .msg:last-child {
height: 100%;
}
#messages .msg:last-child .text {
padding-bottom: 5px;
}
#messages .time,
#messages .from,
#messages .text {
display: table-cell;
padding: 5px 0 0;
}
#messages .time {
background: #f9f9f9;
color: #ddd;
text-align: right;
width: 46px;
}
#messages .from {
background: #f9f9f9;
2014-07-03 00:00:11 +02:00
border-right: 1px solid #f4f4f4;
2014-06-30 03:20:54 +02:00
color: #ddd;
2014-06-26 18:14:45 +02:00
padding-right: 10px;
text-align: right;
width: 134px;
}
2014-06-30 03:20:54 +02:00
#messages .from button {
color: #33b0f7;
}
2014-06-26 18:14:45 +02:00
#messages .text {
padding-left: 10px;
padding-right: 6px;
}
#messages .type {
color: #ccc;
2014-06-30 03:20:54 +02:00
display: none;
}
#messages .join .type,
#messages .part .type,
#messages .mode .type,
#messages .nick .type,
#messages .kick .type,
#messages .quit .type,
#messages .quit .type,
#messages .notice .type,
#messages .topic .type {
2014-06-30 03:20:54 +02:00
display: inline;
2014-06-26 18:14:45 +02:00
}
#meta {
border-bottom: 1px solid #e9ecef;
height: 80px;
padding: 25px 0 0 20px;
}
#meta h1 {
color: #222;
font-size: 15px;
}
#meta .count {
color: #ccc;
}
2014-06-30 03:20:54 +02:00
#meta .type {
text-transform: capitalize;
}
2014-06-26 18:14:45 +02:00
#users {
bottom: 0;
overflow: auto;
padding: 15px 20px;
position: absolute;
top: 80px;
width: 100%;
}
#users button {
display: block;
line-height: 1.6em;
}
2014-06-30 03:20:54 +02:00
#form {
bottom: 0;
height: 40px;
left: 0;
position: absolute;
right: 180px;
}
#form input {
2014-06-26 18:14:45 +02:00
border: 0;
border-top: 1px solid #e9ecef;
height: 100%;
outline: none;
padding: 0 10px;
width: 100%;
}
#submit {
margin-left: -999px;
position: absolute;
}
@media (max-width: 767px) {
#header {
display: block;
}
#windows {
top: 40px;
}
}