2018-12-21 19:31:42 -08:00
|
|
|
@import url('https://fonts.googleapis.com/css?family=Open+Sans|Source+Code+Pro');
|
2018-12-10 12:21:08 -08:00
|
|
|
$primary-color: #53C0FA;
|
|
|
|
$primary-color-highlight: #4298C7;
|
|
|
|
$primary-color-light: #9FDBFB;
|
2018-12-25 18:28:32 -08:00
|
|
|
$background-color: #1b1e21;
|
2019-02-25 17:39:25 -08:00
|
|
|
$background-color-light: lighten($background-color, 4%);
|
2018-12-10 23:24:17 -08:00
|
|
|
$background-color-dark: darken($background-color, 4%);
|
2018-12-23 00:23:48 -08:00
|
|
|
$error-color: #f01d43;
|
|
|
|
$error-color-dark: darken(#f01d43, 10%);
|
2019-05-19 15:01:02 -07:00
|
|
|
$alert-color: #18f49c;
|
|
|
|
$alert-color-bright: rgb(240, 244, 24);
|
2019-05-19 01:34:14 -07:00
|
|
|
$inactive-input-color: lighten($background-color-light, 5%);
|
|
|
|
$active-input-color: lighten($inactive-input-color, 5%);
|
2018-12-10 12:21:08 -08:00
|
|
|
|
2019-05-19 01:34:14 -07:00
|
|
|
$transition-duration: .250s;
|
2018-12-27 00:12:48 -08:00
|
|
|
|
2019-02-25 19:58:05 -08:00
|
|
|
$inset-shadow: inset 0px 0px 5px rgba(0, 0, 0, .25);
|
|
|
|
|
2019-05-19 13:23:16 -07:00
|
|
|
$border-radius: 3px;
|
|
|
|
|
2018-12-10 15:27:18 -08:00
|
|
|
html, body {
|
|
|
|
height: 100vh;
|
|
|
|
}
|
|
|
|
|
2018-12-10 12:21:08 -08:00
|
|
|
body {
|
|
|
|
font-family: 'Open Sans', sans-serif;
|
|
|
|
margin: 0px;
|
2018-12-10 23:24:17 -08:00
|
|
|
background-color: $background-color;
|
2018-12-13 21:58:15 -08:00
|
|
|
font-size: 12px;
|
2018-12-25 18:28:32 -08:00
|
|
|
color: white;
|
2018-12-10 12:21:08 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin input-common {
|
|
|
|
padding: 5px;
|
2019-05-19 13:23:16 -07:00
|
|
|
border-radius: $border-radius;
|
2018-12-10 12:21:08 -08:00
|
|
|
outline: none;
|
|
|
|
|
2018-12-22 00:05:32 -08:00
|
|
|
font-family: inherit;
|
|
|
|
font-size: inherit;
|
2019-05-19 01:34:14 -07:00
|
|
|
|
|
|
|
&:focus {
|
|
|
|
transition: background-color $transition-duration;
|
|
|
|
}
|
2018-12-10 12:21:08 -08:00
|
|
|
}
|
|
|
|
|
2018-12-22 00:05:32 -08:00
|
|
|
input, textarea {
|
2018-12-10 12:21:08 -08:00
|
|
|
@include input-common();
|
2019-05-19 01:34:14 -07:00
|
|
|
overflow-x: hidden;
|
2018-12-10 12:21:08 -08:00
|
|
|
background-color: $inactive-input-color;
|
2018-12-25 18:28:32 -08:00
|
|
|
color: white;
|
2019-05-19 01:34:14 -07:00
|
|
|
border: none;
|
|
|
|
padding: 10px;
|
2018-12-10 12:21:08 -08:00
|
|
|
|
|
|
|
&:focus {
|
|
|
|
background-color: $active-input-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
button {
|
|
|
|
@include input-common();
|
|
|
|
border: none;
|
|
|
|
background-color: $primary-color;
|
|
|
|
color: white;
|
2018-12-10 12:47:31 -08:00
|
|
|
text-transform: uppercase;
|
2018-12-10 12:21:08 -08:00
|
|
|
|
|
|
|
&:hover, &:focus {
|
|
|
|
background-color: $primary-color-highlight;
|
|
|
|
}
|
|
|
|
}
|
2018-12-10 12:47:31 -08:00
|
|
|
|
|
|
|
a {
|
|
|
|
text-decoration: none;
|
|
|
|
color: $primary-color;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: $primary-color-highlight;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-12-24 14:08:26 -08:00
|
|
|
h2, h3 {
|
2018-12-10 13:18:02 -08:00
|
|
|
margin: 0px;
|
|
|
|
margin-bottom: 3px;
|
|
|
|
}
|
|
|
|
|
2018-12-23 20:26:35 -08:00
|
|
|
a.file-wrapper {
|
2019-02-25 19:58:05 -08:00
|
|
|
padding: 5px 0px 5px 0px;
|
2018-12-23 20:26:35 -08:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
.feather-icon {
|
|
|
|
height: 30px;
|
|
|
|
width: 30px;
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-12-23 00:23:48 -08:00
|
|
|
div.errors-wrapper {
|
|
|
|
position: fixed;
|
|
|
|
pointer-events: none;
|
|
|
|
top: 0px;
|
|
|
|
bottom: 0px;
|
|
|
|
left: 0px;
|
|
|
|
right: 0px;
|
|
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
div.error-wrapper {
|
|
|
|
pointer-events: auto;
|
|
|
|
width: 400px;
|
|
|
|
padding: 5px;
|
|
|
|
background-color: $error-color;
|
|
|
|
border: 1px solid $error-color-dark;
|
|
|
|
color: white;
|
|
|
|
margin: auto;
|
|
|
|
margin-top: 10px;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
font-size: 14px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
.feather-icon {
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-12-10 12:47:31 -08:00
|
|
|
/*
|
|
|
|
* Login Screen
|
|
|
|
*/
|
|
|
|
div.login-wrapper {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
max-width: 300px;
|
|
|
|
margin: auto;
|
|
|
|
margin-top: 20px;
|
|
|
|
|
|
|
|
input, button {
|
|
|
|
margin: 3px;
|
|
|
|
}
|
2018-12-10 13:18:02 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Base View
|
|
|
|
*/
|
|
|
|
div.base-wrapper {
|
|
|
|
display: flex;
|
2018-12-10 15:27:18 -08:00
|
|
|
height: 100%;
|
2018-12-10 12:47:31 -08:00
|
|
|
|
2018-12-13 17:47:58 -08:00
|
|
|
> div {
|
2019-02-25 17:39:25 -08:00
|
|
|
padding: 10px;
|
2018-12-10 15:27:18 -08:00
|
|
|
box-sizing: border-box;
|
2018-12-10 13:18:02 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* The list of rooms
|
|
|
|
*/
|
|
|
|
div.rooms-wrapper {
|
2018-12-10 14:32:29 -08:00
|
|
|
flex-shrink: 0;
|
2019-05-19 13:47:06 -07:00
|
|
|
width: 15%;
|
|
|
|
min-width: 200px;
|
2019-02-25 17:39:25 -08:00
|
|
|
background-color: $background-color-light;
|
2019-05-19 13:32:57 -07:00
|
|
|
|
|
|
|
.room-search {
|
|
|
|
padding: 5px;
|
|
|
|
width: 100%;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
2018-12-13 17:47:58 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
div.room-link-wrapper {
|
|
|
|
whitespace: nowrap;
|
|
|
|
display: flex;
|
|
|
|
padding: 0px;
|
2019-05-19 13:23:16 -07:00
|
|
|
border-left: solid 2px $background-color-light;
|
|
|
|
padding-left: 5px;
|
|
|
|
margin: 3px;
|
|
|
|
align-items: center;
|
2019-05-19 15:01:02 -07:00
|
|
|
|
|
|
|
.feather-icon {
|
|
|
|
margin-right: 3px;
|
2019-05-19 15:33:55 -07:00
|
|
|
height: 1.2em;
|
2019-05-19 15:01:02 -07:00
|
|
|
}
|
2019-05-19 13:42:22 -07:00
|
|
|
|
2019-05-19 15:01:02 -07:00
|
|
|
span {
|
|
|
|
color: $alert-color;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2018-12-13 17:47:58 -08:00
|
|
|
margin-right: 5px;
|
2019-05-19 15:01:02 -07:00
|
|
|
|
|
|
|
&.bright {
|
|
|
|
color: $alert-color-bright;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
2019-05-19 13:23:16 -07:00
|
|
|
color: lightgrey;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover a {
|
|
|
|
color: $primary-color;
|
2019-05-19 13:26:30 -07:00
|
|
|
transition: color $transition-duration;
|
2019-05-19 13:23:16 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
border-left: solid 2px $primary-color;
|
2018-12-10 13:18:02 -08:00
|
|
|
}
|
2019-05-19 13:42:22 -07:00
|
|
|
|
|
|
|
&.hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
2018-12-10 13:18:02 -08:00
|
|
|
}
|
|
|
|
|
2018-12-27 00:12:48 -08:00
|
|
|
div.reconnect-wrapper {
|
|
|
|
position: fixed;
|
|
|
|
bottom: 20px;
|
|
|
|
left: 20px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
background-color: $inactive-input-color;
|
2019-05-19 13:23:16 -07:00
|
|
|
border-radius: $border-radius;
|
2018-12-27 00:12:48 -08:00
|
|
|
|
|
|
|
.feather-icon {
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-12-10 13:18:02 -08:00
|
|
|
/*
|
|
|
|
* The current room, if any.
|
|
|
|
*/
|
|
|
|
div.room-wrapper {
|
|
|
|
flex-grow: 1;
|
2018-12-10 15:27:18 -08:00
|
|
|
display: flex;
|
|
|
|
height: 100%;
|
2018-12-10 23:24:17 -08:00
|
|
|
flex-direction: column;
|
2019-02-25 17:39:25 -08:00
|
|
|
padding: 5px;
|
2018-12-10 13:18:02 -08:00
|
|
|
}
|
|
|
|
|
2018-12-15 18:14:40 -08:00
|
|
|
div.typing-wrapper {
|
|
|
|
padding: 5px;
|
2019-05-19 01:34:14 -07:00
|
|
|
height: 1em;
|
2018-12-22 00:44:05 -08:00
|
|
|
flex-shrink: 0;
|
2018-12-15 18:14:40 -08:00
|
|
|
}
|
|
|
|
|
2018-12-10 13:18:02 -08:00
|
|
|
/*
|
|
|
|
* The message input and send button.
|
|
|
|
*/
|
|
|
|
div.message-wrapper {
|
|
|
|
display: flex;
|
2018-12-13 18:41:43 -08:00
|
|
|
flex-shrink: 0;
|
2018-12-10 13:18:02 -08:00
|
|
|
|
2018-12-22 00:05:32 -08:00
|
|
|
input, textarea {
|
2018-12-20 19:22:51 -08:00
|
|
|
flex-grow: 12;
|
2018-12-10 13:18:02 -08:00
|
|
|
margin: 3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
button {
|
|
|
|
margin: 3px;
|
2019-02-25 20:34:02 -08:00
|
|
|
height: 40px;
|
|
|
|
width: 40px;
|
2019-05-19 13:26:30 -07:00
|
|
|
transition: background-color $transition-duration;
|
2018-12-10 12:47:31 -08:00
|
|
|
}
|
|
|
|
}
|
2018-12-10 14:20:06 -08:00
|
|
|
|
2019-02-25 16:44:47 -08:00
|
|
|
div.messages-wrapper {
|
2018-12-10 15:27:18 -08:00
|
|
|
overflow-y: scroll;
|
|
|
|
flex-grow: 1;
|
2018-12-19 21:52:07 -08:00
|
|
|
|
|
|
|
a.history-link {
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
text-align: center;
|
|
|
|
box-sizing: border-box;
|
|
|
|
padding: 5px;
|
|
|
|
}
|
2018-12-10 15:27:18 -08:00
|
|
|
}
|
|
|
|
|
2019-02-25 16:44:47 -08:00
|
|
|
table.messages-table {
|
2018-12-10 23:24:17 -08:00
|
|
|
border-collapse: collapse;
|
|
|
|
width: 100%;
|
2018-12-13 17:53:57 -08:00
|
|
|
table-layout: fixed;
|
2018-12-10 23:24:17 -08:00
|
|
|
|
2018-12-10 14:20:06 -08:00
|
|
|
td {
|
2018-12-10 23:24:17 -08:00
|
|
|
padding: 5px;
|
2018-12-10 14:32:29 -08:00
|
|
|
vertical-align: top;
|
2018-12-10 14:20:06 -08:00
|
|
|
}
|
2018-12-10 23:24:17 -08:00
|
|
|
|
2018-12-13 19:45:55 -08:00
|
|
|
img {
|
|
|
|
max-width: 90%;
|
|
|
|
max-height: 400px;
|
2019-03-17 12:44:52 -07:00
|
|
|
margin-top: 10px;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
box-shadow: 0px 0px 5px rgba(0, 0, 0, .5);
|
2018-12-13 19:45:55 -08:00
|
|
|
}
|
|
|
|
|
2019-03-15 18:50:09 -07:00
|
|
|
.sending {
|
|
|
|
color: grey;
|
|
|
|
}
|
|
|
|
|
2018-12-23 20:26:35 -08:00
|
|
|
video {
|
|
|
|
max-width: 90%;
|
|
|
|
max-height: 400px;
|
|
|
|
}
|
|
|
|
|
2018-12-10 23:24:17 -08:00
|
|
|
td:nth-child(1) {
|
2018-12-13 17:53:57 -08:00
|
|
|
width: 10%;
|
2018-12-26 21:54:44 -08:00
|
|
|
@media screen and (min-width: 1000px) {
|
|
|
|
width: 100px;
|
|
|
|
}
|
2018-12-10 23:24:17 -08:00
|
|
|
white-space: nowrap;
|
|
|
|
}
|
2018-12-10 14:20:06 -08:00
|
|
|
}
|
|
|
|
|
2019-02-25 16:44:47 -08:00
|
|
|
div.message {
|
2018-12-20 22:59:31 -08:00
|
|
|
p {
|
|
|
|
margin: 0px;
|
|
|
|
}
|
2018-12-21 19:31:42 -08:00
|
|
|
|
|
|
|
blockquote {
|
|
|
|
margin: 0px 0px 0px 0px;
|
|
|
|
padding-left: 5px;
|
|
|
|
border-left: 4px solid $primary-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
code {
|
|
|
|
font-family: Iosevka, "Source Code Pro", monospace,
|
|
|
|
}
|
|
|
|
|
|
|
|
pre code {
|
|
|
|
width: 100%;
|
|
|
|
overflow: auto;
|
|
|
|
display: block;
|
|
|
|
box-sizing: border-box;
|
|
|
|
padding: 10px;
|
2019-02-25 20:40:46 -08:00
|
|
|
background-color: $background-color-dark;
|
2019-05-19 13:23:16 -07:00
|
|
|
border-radius: $border-radius;
|
2019-02-25 19:58:05 -08:00
|
|
|
box-shadow: $inset-shadow;
|
2018-12-21 19:31:42 -08:00
|
|
|
}
|
2018-12-20 22:59:31 -08:00
|
|
|
}
|
|
|
|
|
2018-12-10 14:20:06 -08:00
|
|
|
span.sender-wrapper {
|
2019-05-19 13:23:16 -07:00
|
|
|
border-radius: $border-radius;
|
2018-12-10 14:20:06 -08:00
|
|
|
padding-left: 5px;
|
|
|
|
padding-right: 5px;
|
2018-12-10 23:24:17 -08:00
|
|
|
display: inline-block;
|
|
|
|
box-sizing: border-box;
|
2019-02-25 16:44:47 -08:00
|
|
|
text-align: right;
|
|
|
|
font-weight: 800;
|
2018-12-10 23:24:17 -08:00
|
|
|
width: 100%;
|
2018-12-10 23:27:45 -08:00
|
|
|
text-overflow: ellipsis;
|
2018-12-13 17:53:57 -08:00
|
|
|
overflow: hidden;
|
|
|
|
vertical-align: bottom; /* Fix for overflow changing element height */
|
2018-12-25 18:28:32 -08:00
|
|
|
color: black;
|
2018-12-10 14:20:06 -08:00
|
|
|
}
|
2018-12-10 16:16:39 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Icons
|
|
|
|
*/
|
|
|
|
.feather-icon {
|
2019-02-25 20:34:02 -08:00
|
|
|
vertical-align: middle;
|
2018-12-10 16:16:39 -08:00
|
|
|
stroke: currentColor;
|
|
|
|
stroke-width: 2;
|
|
|
|
stroke-linecap: round;
|
|
|
|
stroke-linejoin: round;
|
|
|
|
fill: none;
|
|
|
|
height: 20px;
|
|
|
|
width: 20px;
|
|
|
|
}
|