dispatch/client/src/css/style.css

626 lines
8.4 KiB
CSS
Raw Normal View History

2015-01-17 01:37:21 +00:00
* {
2015-12-28 23:34:32 +00:00
margin: 0;
padding: 0;
box-sizing: border-box;
2015-01-17 01:37:21 +00:00
}
body {
2016-01-22 19:08:16 +00:00
font-family: Roboto Mono, monospace;
2015-12-28 23:34:32 +00:00
background: #f0f0f0;
2015-01-17 01:37:21 +00:00
}
2016-01-11 20:04:57 +00:00
h1, h2, h3, h4, h5, h6 {
font-family: Montserrat, sans-serif;
font-weight: 400;
}
h1 {
font-weight: 700;
}
input {
2016-01-22 19:08:16 +00:00
font: 16px Roboto Mono, monospace;
2015-12-28 23:34:32 +00:00
border: none;
outline: none;
}
button {
2015-12-28 23:34:32 +00:00
font: 16px Montserrat, sans-serif;
border: none;
outline: none;
cursor: pointer;
}
2015-01-17 01:37:21 +00:00
p {
2015-12-28 23:34:32 +00:00
line-height: 1.5;
2015-01-17 01:37:21 +00:00
}
2015-02-16 20:53:01 +00:00
i[class^="icon-"]:before, i[class*=" icon-"]:before {
2015-12-28 23:34:32 +00:00
margin: 0;
2015-02-16 20:53:01 +00:00
}
2015-01-17 01:37:21 +00:00
.tablist {
2015-12-28 23:34:32 +00:00
position: fixed;
left: 0;
top: 0;
bottom: 0;
width: 200px;
background: #222;
color: #FFF;
font-family: Montserrat, sans-serif;
transition: transform .2s;
2015-01-17 01:37:21 +00:00
}
.tab-container {
2015-12-28 23:34:32 +00:00
position: absolute;
top: 50px;
bottom: 50px;
width: 100%;
overflow: auto;
}
2015-01-17 01:37:21 +00:00
.tablist p {
2015-12-28 23:34:32 +00:00
padding: 3px 15px;
2016-01-13 17:53:54 +00:00
padding-right: 10px;
2015-12-28 23:34:32 +00:00
cursor: pointer;
2015-01-17 01:37:21 +00:00
}
.tablist p:last-child {
2015-12-28 23:34:32 +00:00
margin-bottom: 10px;
}
2015-01-17 01:37:21 +00:00
.tablist p:hover {
2015-12-28 23:34:32 +00:00
background: #111;
}
.tablist p.selected {
2015-12-28 23:34:32 +00:00
padding-left: 10px;
border-left: 5px solid #6BB758;
}
2016-01-13 17:53:54 +00:00
.tab-content {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.tab-server {
2016-01-13 17:53:54 +00:00
display: flex;
align-items: center;
2015-12-28 23:34:32 +00:00
color: #999;
margin-top: 10px !important;
}
2016-01-13 17:53:54 +00:00
.tab-server .tab-content {
flex: 1;
margin-right: 5px;
}
.tab-indicator {
width: 10px;
height: 10px;
border-radius: 50%;
}
.button-connect {
2015-12-28 23:34:32 +00:00
width: 100%;
height: 50px;
background: #6BB758;
color: #FFF;
}
.button-connect:hover {
2015-12-28 23:34:32 +00:00
background: #7BBF6A;
}
.button-connect:active {
2015-12-28 23:34:32 +00:00
background: #6BB758;
}
.side-buttons {
2015-12-28 23:34:32 +00:00
position: fixed;
bottom: 0;
height: 50px;
width: 200px;
text-align: center;
}
.side-buttons i {
2015-12-28 23:34:32 +00:00
display: inline-block;
color: #999;
width: 50%;
line-height: 50px;
cursor: pointer;
font-size: 20px;
border-top: 1px solid #1D1D1D;
}
.side-buttons i:not(:first-child) {
2015-12-28 23:34:32 +00:00
border-left: 1px solid #1D1D1D;
}
.side-buttons i:hover {
2015-12-28 23:34:32 +00:00
color: #CCC;
background: #1D1D1D;
2015-01-17 01:37:21 +00:00
}
2015-06-09 22:24:14 +00:00
.main-container {
2015-12-28 23:34:32 +00:00
position: fixed;
left: 200px;
top: 0;
bottom: 0;
right: 0;
transition: left .2s, transform .2s;
2015-06-09 22:24:14 +00:00
}
.connect {
2015-12-28 23:34:32 +00:00
display: flex;
justify-content: center;
position: absolute;
top: 0;
width: 100%;
bottom: 0;
2016-01-25 00:01:37 +00:00
overflow: auto;
}
2016-01-11 20:04:57 +00:00
.connect .navicon, .settings .navicon {
2015-12-28 23:34:32 +00:00
position: absolute;
top: 0;
left: 0;
2015-06-09 22:24:14 +00:00
}
2016-01-25 00:01:37 +00:00
.connect-form {
margin: auto 0;
padding-top: 20px;
width: 300px;
}
.connect-form h1 {
2015-12-28 23:34:32 +00:00
margin-bottom: 15px;
text-align: center;
}
.connect-form input {
2015-12-28 23:34:32 +00:00
display: block;
margin: 5px 0px;
2016-01-25 00:01:37 +00:00
padding: 15px;
2015-12-28 23:34:32 +00:00
border: none;
}
.connect-form input[type="submit"],
2016-01-25 00:01:37 +00:00
.connect-form input[type="text"],
.connect-form input[type="password"] {
width: 100%;
}
.connect-form input[type="submit"] {
2015-12-28 23:34:32 +00:00
height: 50px;
2016-01-25 00:01:37 +00:00
margin-bottom: 20px;
2015-12-28 23:34:32 +00:00
font-family: Montserrat, sans-serif;
background: #6BB758;
color: #FFF;
cursor: pointer;
}
.connect-form input[type="submit"]:hover {
2015-12-28 23:34:32 +00:00
background: #7BBF6A;
}
.connect-form input[type="submit"]:active {
2015-12-28 23:34:32 +00:00
background: #6BB758;
}
.connect-form input[type="checkbox"] {
2015-12-28 23:34:32 +00:00
display: inline-block;
margin-right: 5px;
vertical-align: middle;
}
.connect-form i {
2015-12-28 23:34:32 +00:00
float: right;
cursor: pointer;
color: #999;
padding: 10px 5px;
font-size: 24px;
}
.connect-form i:hover {
2015-12-28 23:34:32 +00:00
color: #000;
}
.connect-form label {
2015-12-28 23:34:32 +00:00
display: inline-block;
padding: 10px 0;
color: #333;
}
.chat-title-bar {
2015-12-28 23:34:32 +00:00
font-family: Montserrat, sans-serif;
position: absolute;
left: 0;
top: 0;
right: 0;
height: 50px;
line-height: 50px;
border-bottom: 1px solid #DDD;
display: flex;
font-size: 20px;
}
.chat-channel .chat-title-bar {
2015-12-28 23:34:32 +00:00
right: 200px;
}
2015-06-09 22:24:14 +00:00
.navicon {
2015-12-28 23:34:32 +00:00
display: none;
padding: 0 15px;
line-height: 50px;
font-size: 20px;
cursor: pointer;
2015-06-09 22:24:14 +00:00
}
.chat-title-bar i {
2015-12-28 23:34:32 +00:00
padding: 0 15px;
cursor: pointer;
}
.chat-server .icon-search {
2015-12-28 23:34:32 +00:00
display: none;
}
.chat-server .userlist-bar, .chat-private .userlist-bar {
2015-12-28 23:34:32 +00:00
display: none;
}
.button-leave {
2015-12-28 23:34:32 +00:00
border-left: 1px solid #DDD;
}
.button-leave:hover {
2015-12-28 23:34:32 +00:00
background: #DDD;
}
2016-01-11 22:31:06 +00:00
.button-userlist {
display: none;
border-left: 1px solid #DDD;
}
.chat-server .button-userlist, .chat-private .button-userlist {
display: none;
}
.chat-title {
2015-12-28 23:34:32 +00:00
margin-left: 15px;
font-size: 24px;
white-space: nowrap;
}
.chat-topic-wrap {
2015-12-28 23:34:32 +00:00
flex: 1;
position: relative;
margin: 0 15px;
}
.chat-topic {
2015-12-28 23:34:32 +00:00
position: absolute;
width: 100%;
bottom: -4px;
font-size: 16px;
color: #999;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.chat-topic a {
2015-12-28 23:34:32 +00:00
color: #999;
text-decoration: none;
}
.chat-topic a:hover {
2015-12-28 23:34:32 +00:00
text-decoration: underline;
}
.userlist-bar {
2015-12-28 23:34:32 +00:00
position: absolute;
top: 0;
right: 0;
width: 200px;
height: 50px;
border-left: 1px solid #DDD;
border-bottom: 1px solid #DDD;
line-height: 50px;
text-align: center;
padding: 0 15px;
font-family: Montserrat, sans-serif;
}
.userlist-bar i {
2015-12-28 23:34:32 +00:00
margin-right: 3px;
}
.search {
2015-12-28 23:34:32 +00:00
display: none;
position: absolute;
left: 0;
top: 50px;
bottom: 50px;
right: 200px;
2016-01-11 22:31:06 +00:00
z-index: 3;
2015-12-28 23:34:32 +00:00
background: #f0f0f0;
}
2015-06-09 23:17:24 +00:00
.chat-server .search {
2015-12-28 23:34:32 +00:00
display: none;
2015-06-09 23:17:24 +00:00
}
.chat-private .search {
2015-12-28 23:34:32 +00:00
right: 0;
}
2016-01-18 02:21:58 +00:00
.search-input-wrap {
display: flex;
2015-12-28 23:34:32 +00:00
width: 100%;
2016-01-18 02:21:58 +00:00
background: #FFF;
2015-12-28 23:34:32 +00:00
border-bottom: 1px solid #DDD;
}
2016-01-18 02:21:58 +00:00
.search i {
padding: 15px;
color: #DDD;
}
.search-input {
flex: 1;
padding: 15px;
padding-left: 0;
}
.search-results {
2015-12-28 23:34:32 +00:00
position: absolute;
top: 50px;
bottom: 0;
width: 100%;
overflow: auto;
padding: 10px 15px;
}
2016-01-22 23:41:35 +00:00
.search-result:not(:last-child) {
margin-bottom: 5px;
}
.messagebox {
2015-12-28 23:34:32 +00:00
position: absolute;
left: 0;
top: 50px;
bottom: 50px;
right: 0;
z-index: 1;
2016-02-16 21:43:25 +00:00
overflow: hidden;
2015-01-17 01:37:21 +00:00
}
.chat-channel .messagebox {
2015-12-28 23:34:32 +00:00
right: 200px;
}
2017-05-02 21:21:25 +00:00
.messagebox-top-indicator {
color: #999;
height: 100px;
text-align: center;
padding-top: 40px;
}
2016-02-16 21:43:25 +00:00
.VirtualScroll {
overflow-x: hidden !important;
}
.message {
padding: 4px 15px;
}
.message-info {
2015-12-28 23:34:32 +00:00
color: #999;
}
2015-02-03 23:55:41 +00:00
.message-action {
2015-12-28 23:34:32 +00:00
color: #FF6698;
2015-02-03 23:55:41 +00:00
}
.message-time {
2015-12-28 23:34:32 +00:00
color: #999;
}
.message-sender {
2016-01-22 23:41:35 +00:00
font-weight: 700;
2015-12-28 23:34:32 +00:00
color: #6BB758;
cursor: pointer;
}
2017-05-16 06:38:43 +00:00
.message a {
text-decoration: none;
color: #0066FF;
}
.message a:hover {
text-decoration: underline;
}
.message-input-wrap {
2015-12-28 23:34:32 +00:00
position: absolute;
left: 0;
bottom: 0;
right: 0;
height: 50px;
z-index: 1;
2017-05-15 20:51:21 +00:00
display: flex;
border-top: 1px solid #DDD;
background: #FFF;
}
.message-input-nick {
margin: 10px;
line-height: 30px;
height: 30px;
padding: 0 10px;
background: #6BB758;
color: #FFF;
font-family: Montserrat, sans-serif;
margin-right: 0;
}
.message-input {
2017-05-15 20:51:21 +00:00
flex: 1;
2015-12-28 23:34:32 +00:00
width: 100%;
height: 100%;
2017-05-15 20:51:21 +00:00
padding: 0 15px;
}
2015-01-17 01:37:21 +00:00
.userlist {
2015-12-28 23:34:32 +00:00
position: absolute;
top: 50px;
bottom: 50px;
right: 0;
width: 200px;
border-left: 1px solid #DDD;
2016-01-11 22:31:06 +00:00
background: #f0f0f0;
z-index: 2;
transition: transform .2s;
2015-02-05 01:14:24 +00:00
}
2015-01-30 01:34:28 +00:00
.userlist p {
2015-12-28 23:34:32 +00:00
padding: 0px 15px;
cursor: pointer;
2015-01-30 01:34:28 +00:00
}
.userlist p:hover {
2015-12-28 23:34:32 +00:00
background: #DDD;
2015-06-09 22:24:14 +00:00
}
2016-01-11 20:04:57 +00:00
.settings {
text-align: center;
}
.settings p {
color: #999;
}
.settings h1 {
margin: 20px;
}
.settings h2 {
margin: 15px;
}
.settings button {
margin: 5px;
color: #FFF;
background: #6BB758;
padding: 10px 20px;
width: 200px;
}
.settings button:hover {
background: #7BBF6A;
}
.settings button:active {
background: #6BB758;
}
.settings div {
display: inline-block;
}
.settings .error {
margin: 10px;
color: #F6546A;
}
.input-file {
color: #FFF;
background: #222 !important;
padding: 10px;
margin: 5px;
width: 200px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.ReactVirtualized__List {
box-sizing: content-box !important;
2017-03-23 19:38:27 +00:00
outline: none;
}
.rvlist-messages {
padding: 7px 0;
overflow-y: scroll !important;
}
.rvlist-users {
padding: 10px 0;
}
2015-06-09 22:24:14 +00:00
@media (max-width: 600px) {
2015-12-28 23:34:32 +00:00
.tablist {
width: 200px;
transform: translateX(-200px);
}
.main-container {
transform: translateX(0);
left: 0;
}
.navicon {
display: inline-block;
}
.main-container.off-canvas {
transform: translateX(200px);
}
.tablist.off-canvas {
transform: translateX(0);
}
.chat-title {
margin-left: 0;
}
2016-01-11 22:31:06 +00:00
.userlist-bar {
display: none;
}
.userlist {
transform: translateX(200px);
}
.userlist.off-canvas {
transform: translateX(0);
}
.chat-channel .chat-title-bar, .chat-channel .messagebox {
right: 0;
}
.button-userlist {
display: inline-block;
}
.chat-topic {
display: none;
}
.search {
right: 0;
}
2016-01-25 00:01:37 +00:00
.connect-form {
width: 100%;
margin: auto 50px;
max-width: 400px;
}
2015-12-11 23:33:05 +00:00
}