@import url( http://fonts.googleapis.com/css?family=Lato:400,700 ); @font-face { font-family: "Octicons"; src: url("fonts/octicons.woff") format("woff"); } html, body { height: 100%; } body { background: #fff; 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; } .container { margin: 10% auto; max-width: 480px; overflow: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 30px; } #wrap { height: 100%; overflow: hidden; position: relative; width: 100%; } #viewport { height: 100%; position: relative; width: 100%; transition: all .4s; -webkit-transform: translateZ(0); transform: translateZ(0); -webkit-perspective: 1000; perspective: 1000; } #sidebar { background: #262c36; bottom: 0; left: 0; overflow: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; 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; } #sidebar .networks { min-height: 100%; padding: 30px 40px 80px; } #sidebar .network + .network { margin-top: 30px; } #sidebar .chan { display: block; margin: 1px -10px; padding: 6px 10px 8px; position: relative; text-align: left; transition: all .2s; width: 160px; } #sidebar .chan:first-child { color: #84d1ff; font-size: 15px; font-weight: bold; } #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 .1s; } #sidebar .badge:empty { display: none; } #footer { height: 80px; line-height: 80px; margin-top: -80px; text-align: center; width: 220px; } #footer button { font: 18px Octicons; padding: 8px 12px; } #footer #btn-1:before { content: "\f085"; } #footer #btn-2: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 { border: 1px solid #bdc3c7; border-radius: 2px; color: #666; font: 16px Octicons; height: 32px; opacity: .5; position: absolute; top: 4px; transition: opacity .2s; width: 32px; } #header button:hover { border-color: #bdc3c7; opacity: 1; } #header #lt { left: 4px; } #header #rt { right: 4px; } #header #lt:before { content: "\f05e"; } #header #rt:before { content: "\f037"; } #windows { bottom: 40px; position: absolute; top: 0px; width: 100%; } #windows > div, #windows .chan { background: #fff; bottom: 0; left: 0; position: absolute; right: 0; top: 0; } #chat { font: 13px Consolas, monospace; height: 100%; position: relative; width: 100%; } #chat button:hover { opacity: .6; } #chat .chat { bottom: 0; left: 0; overflow: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; 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; } #chat .messages { display: table; table-layout: fixed; height: 100%; width: 100%; } #chat .msg { display: table-row; word-wrap: break-word; } #chat .msg:last-child { height: 100%; } #chat .msg:last-child .text { padding-bottom: 5px; } #chat .msg .type { color: #ccc; display: none; } #chat .time, #chat .from, #chat .text { display: table-cell; padding: 5px 0 0; } #chat .time { background: #f9f9f9; color: #ddd; text-align: right; width: 46px; } #chat .from { background: #f9f9f9; border-right: 1px solid #f4f4f4; color: #ddd; padding-right: 10px; text-align: right; width: 134px; } #chat a, #chat .from button { color: #33b0f7; } #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 .notice .type, #chat .topic .type { display: inline; } #chat .meta { height: 80px; padding: 25px 0 0 20px; } #chat .meta h1 { color: #222; font-size: 15px; } #chat .meta .type { color: #ccc; text-transform: capitalize; } #chat .count { background: #f9f9f9; border-top: 1px dashed #e9ecef; border-bottom: 1px solid #e9ecef; height: 40px; left: 0; position: absolute; right: 0; top: 80px; } #chat .count:before { color: #eee; font: 16px Octicons; content: "\f02e"; position: absolute; right: 18px; line-height: 40px; transition: color .2s; z-index: -1; } #chat .search { color: #222; border: 0; background: none; font: inherit; outline: 0; padding: 12px 20px; position: relative; width: 100%; } #chat .names { bottom: 0; overflow: auto; -webkit-overflow-scrolling: touch; padding: 15px 20px; position: absolute; top: 120px; width: 100%; } #chat .names button { display: block; line-height: 1.6em; } #form { bottom: 0; height: 40px; left: 0; position: absolute; right: 0px; } #form input { border: 0; border-top: 1px solid #e9ecef; font: 13px Consolas, monospace; height: 100%; outline: none; padding: 0 12px; -webkit-appearance: none; width: 100%; } #form #submit { height: 0; margin-left: -9999px; position: absolute; width: 0; } @media (max-width: 768px) { #viewport.rt { -webkit-transform: translate3d(-180px, 0, 0); transform: translate3d(-180px, 0, 0); } #header { display: block; } #header #lt { display: none; } #windows { top: 40px; } #chat .chat { right: 0; } #chat .sidebar { bottom: -40px; right: -180px; top: -40px; } } @media (max-width: 480px) { #viewport.lt { -webkit-transform: translate3d(220px, 0, 0); transform: translate3d(220px, 0, 0); } #header #lt { display: inherit; } #sidebar { left: -220px; } #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; } }