Shuo/client/css/style.css

570 lines
9.9 KiB
CSS
Raw Normal View History

2014-05-28 20:57:39 +00:00
/* http://www.google.com/fonts/specimen/Lato */
2014-06-15 16:10:20 +00:00
@import url(http://fonts.googleapis.com/css?family=Lato:300,400,700);
2014-05-28 20:57:39 +00:00
2014-04-22 17:57:16 +00:00
* {
box-sizing: border-box;
}
2014-06-15 16:10:20 +00:00
.preload * {
transition: none !important;
}
2014-04-22 17:57:16 +00:00
html,
body {
2014-05-30 00:23:23 +00:00
color: #222;
2014-06-15 16:10:20 +00:00
font: 16px Lato, sans-serif;
2014-04-22 17:57:16 +00:00
height: 100%;
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-06-15 16:10:20 +00:00
a:visited {
color: #f00;
}
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;
}
2014-06-15 16:10:20 +00:00
.btn {
border: 2px solid #95a5a6;
border-radius: 5px;
color: #95a5a6;
display: inline-block;
font: bold 12px Lato, sans-serif;
letter-spacing: 1px;
margin-bottom: 10px;
padding: 12px 18px;
text-transform: uppercase;
transition: background .2s, border-color .2s, color .2s;
word-spacing: 3px;
}
.btn:hover {
background: #95a5a6;
color: #fff;
}
.btn:active {
box-shadow: none;
opacity: .8;
}
2014-05-30 00:23:23 +00:00
#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 {
2014-06-13 16:52:36 +00:00
border: 1px solid transparent;
border-radius: 2px;
2014-05-28 20:57:39 +00:00
color: #7c838d;
display: block;
2014-05-28 20:57:39 +00:00
font: 14px Lato;
2014-06-15 16:10:20 +00:00
margin: 1px -11px;
outline: 0;
2014-06-13 16:52:36 +00:00
padding: 6px 10px 8px;
2014-05-28 20:57:39 +00:00
position: relative;
2014-06-13 16:52:36 +00:00
transition: background .1s, color 5s;
}
#sidebar a:hover {
background: rgba(255, 255, 255, 0.025);
2014-04-22 17:57:16 +00:00
}
2014-05-28 20:57:39 +00:00
#sidebar a.active {
2014-06-13 16:52:36 +00:00
background: rgba(255, 255, 255, 0.06);
border-color: rgba(255, 255, 255, .025);
2014-05-28 20:57:39 +00:00
color: #fff;
2014-06-13 16:52:36 +00:00
transition: color 0s;
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-06-15 16:10:20 +00:00
margin-bottom: 6px;
2014-05-24 21:56:28 +00:00
}
2014-06-21 19:39:51 +00:00
#sidebar .lobby {
color: #84d1ff !important;
font-size: 15px;
font-weight: bold;
2014-05-28 20:57:39 +00:00
text-transform: capitalize;
}
#sidebar .close {
background: no-repeat url(data:image/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, .2);
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;
2014-06-13 16:52:36 +00:00
margin-right: 10px;
2014-05-24 21:56:28 +00:00
opacity: 0;
position: absolute;
2014-05-28 20:57:39 +00:00
right: 0;
transition: all .1s;
width: 18px;
}
#sidebar .close:hover {
2014-06-13 16:52:36 +00:00
background-color: rgba(0, 0, 0, .4);
2014-05-28 20:57:39 +00:00
opacity: .8 !important;
}
#sidebar .badge {
2014-06-13 16:52:36 +00:00
background: rgba(255, 255, 255, .06);
2014-05-28 20:57:39 +00:00
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-06-13 16:52:36 +00:00
#sidebar .pulse {
color: #fff;
2014-06-21 19:39:51 +00:00
transition: color .2s;
2014-06-13 16:52:36 +00:00
}
2014-05-28 20:57:39 +00:00
#sidebar .network {
margin-top: 30px;
}
2014-06-21 19:39:51 +00:00
#sidebar .footer {
bottom: 0;
height: 50px;
left: 0;
padding: 0 40px;
position: absolute;
right: 0;
}
#sidebar .footer small {
color: #7c838d;
display: block;
font-size: 12px;
opacity: .4;
text-align: center;
text-transform: uppercase;
word-spacing: 3px;
}
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-06-15 16:10:20 +00:00
display: none;
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-06-15 16:10:20 +00:00
#main .window.active {
display: block;
}
#main .wrap {
margin: 0 auto;
max-width: 480px;
2014-06-15 22:07:17 +00:00
overflow: auto;
2014-06-15 16:10:20 +00:00
padding: 0 20px;
}
#windows a {
color: inherit;
transition: all .2s;
}
#windows a:hover {
color: #00c165;
text-decoration: none;
}
#windows h1,
#windows h2 {
color: #2c3e50;
font: 300 48px Lato, sans-serif;
line-height: 1.5;
}
#windows h2 {
color: #7f8c8d;
font-size: 26px;
}
#windows h3 {
color: #95a5a6;
font-size: 18px;
font-weight: normal;
}
#windows input {
border: 2px solid #e9ecef;
border-radius: 4px;
font-size: 24px;
outline: 0;
padding: 10px 14px;
transition: border-color .2s;
-webkit-appearance: none;
width: 100%;
}
#windows input:hover,
#windows input:focus {
border-color: #95a5a6;
}
#sign-in {
padding: 12.5% 0;
2014-06-15 22:07:17 +00:00
overflow: auto;
2014-06-15 16:10:20 +00:00
}
#sign-in h1,
#sign-in h2 {
text-align: center;
}
#sign-in form {
margin: 0 auto;
max-width: 250px;
}
#sign-in-input {
2014-06-15 20:36:55 +00:00
color: #95a5a6;
2014-06-15 16:10:20 +00:00
margin-bottom: 20px;
width: 100%;
}
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 {
2014-06-21 19:39:51 +00:00
color: #aaa;
2014-05-30 00:23:23 +00:00
height: 32px;
2014-06-21 19:39:51 +00:00
font-size: 18px !important;
opacity: .5;
top: 1px;
transition: opacity .2s;
2014-05-30 00:23:23 +00:00
width: 32px;
}
#chat .header button:hover {
2014-06-21 19:39:51 +00:00
opacity: 1;
2014-05-30 00:23:23 +00:00
}
#chat .header .lt {
left: 4px;
position: absolute;
}
#chat .header .rt {
position: absolute;
right: 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-06-19 23:11:53 +00:00
box-shadow: inset 180px 0 #f9f9f9;
2014-05-28 20:57:39 +00:00
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-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 {
2014-06-19 23:11:53 +00:00
padding-top: 5px;
2014-05-30 01:01:20 +00:00
}
#chat .row:last-child span {
2014-06-19 23:11:53 +00:00
padding-bottom: 5px;
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-06-19 23:11:53 +00:00
width: 134px;
2014-05-02 21:54:31 +00:00
}
2014-05-28 20:57:39 +00:00
#chat .text {
padding-left: 10px;
2014-06-20 01:33:49 +00:00
padding-right: 5px;
2014-05-28 20:57:39 +00:00
}
#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,
2014-06-13 11:22:03 +00:00
#chat .error .type,
2014-05-28 20:57:39 +00:00
#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-06-13 11:22:03 +00:00
#chat .error,
#chat .error .from a,
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;
2014-06-19 23:11:53 +00:00
text-align: right;
width: 46px;
2014-05-28 20:57:39 +00:00
}
2014-06-20 00:26:48 +00:00
#chat .motd {
opacity: 0;
position: absolute;
}
#chat .motd-toggle .motd {
opacity: 1;
position: inherit;
}
#chat .toggle {
background: #f9f9f9;
border: 1px solid #eee;
border-radius: 2px;
color: #999;
float: left;
font-size: 14px;
line-height: 0px;
margin: 2px 9px 0 0;
overflow: hidden;
}
#chat .toggle:hover {
border-color: #ddd;
}
#chat .toggle .tri {
border: 3px solid transparent;
border-top-color: #666;
float: left;
margin: 5px 4px 1px;
}
#chat .toggle.open .tri {
border-top-color: transparent;
border-bottom-color: #666;
margin: 1px 4px 5px;
}
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;
}
}
2014-06-21 19:39:51 +00:00
@media (max-device-width: 767px) {
#chat .header .rt,
#chat .header .lt {
top: 3px;
}
}