Compare commits

..

No commits in common. "bc794955e3c78d8f9eacbc0a30a4e4b4cd408f8e" and "61121ee6f85e389e0d3bb74646405155b71812f2" have entirely different histories.

4 changed files with 116 additions and 134 deletions

View File

@ -1,3 +0,0 @@
@import 'mixins';
@import 'variables';

View File

@ -1,12 +0,0 @@
@mixin input-common {
padding: 5px;
border-radius: $border-radius;
outline: none;
font-family: inherit;
font-size: inherit;
&:focus {
transition: background-color $transition-duration;
}
}

View File

@ -1,7 +1,22 @@
@import url('https://fonts.googleapis.com/css?family=Open+Sans|Source+Code+Pro'); @import url('https://fonts.googleapis.com/css?family=Open+Sans|Source+Code+Pro');
@import 'mixins'; $primary-color: #53C0FA;
@import 'variables'; $primary-color-highlight: #4298C7;
@import 'components'; $primary-color-light: #9FDBFB;
$background-color: #1b1e21;
$background-color-light: lighten($background-color, 4%);
$background-color-dark: darken($background-color, 4%);
$error-color: #f01d43;
$error-color-dark: darken(#f01d43, 10%);
$alert-color: #18f49c;
$alert-color-bright: rgb(240, 244, 24);
$inactive-input-color: lighten($background-color-light, 5%);
$active-input-color: lighten($inactive-input-color, 5%);
$transition-duration: .250s;
$inset-shadow: inset 0px 0px 5px rgba(0, 0, 0, .25);
$border-radius: 3px;
html, body { html, body {
height: 100vh; height: 100vh;
@ -9,19 +24,32 @@ html, body {
body { body {
font-family: 'Open Sans', sans-serif; font-family: 'Open Sans', sans-serif;
margin: 0; margin: 0px;
background-color: $background-color; background-color: $background-color;
font-height: 1em; font-size: 12px;
color: white; color: white;
} }
@mixin input-common {
padding: 5px;
border-radius: $border-radius;
outline: none;
font-family: inherit;
font-size: inherit;
&:focus {
transition: background-color $transition-duration;
}
}
input, textarea { input, textarea {
@include input-common(); @include input-common();
overflow-x: hidden; overflow-x: hidden;
background-color: $inactive-input-color; background-color: $inactive-input-color;
color: white; color: white;
border: none; border: none;
padding: .5em; padding: 10px;
&:focus { &:focus {
background-color: $active-input-color; background-color: $active-input-color;
@ -40,7 +68,6 @@ button {
} }
} }
a { a {
text-decoration: none; text-decoration: none;
color: $primary-color; color: $primary-color;
@ -50,43 +77,50 @@ a {
} }
} }
h1, h2, h3, h4, h5, h6 { h2, h3 {
margin: 0; margin: 0px;
margin-bottom: .5em; margin-bottom: 3px;
}
a.file-wrapper {
padding: 5px 0px 5px 0px;
display: flex;
align-items: center;
.feather-icon {
height: 30px;
width: 30px;
margin-right: 10px;
}
} }
/*
* Errors
*/
div.errors-wrapper { div.errors-wrapper {
position: fixed; position: fixed;
pointer-events: none; pointer-events: none;
top: 0; top: 0px;
bottom: 0; bottom: 0px;
left: 0; left: 0px;
right: 0; right: 0px;
overflow: hidden; overflow: hidden;
} }
div.error-wrapper { div.error-wrapper {
pointer-events: auto; pointer-events: auto;
width: 40%; width: 400px;
padding: .5em; padding: 5px;
background-color: $error-color; background-color: $error-color;
border: .1em solid $error-color-dark; border: 1px solid $error-color-dark;
color: white; color: white;
margin: auto; margin: auto;
margin-top: .85em; margin-top: 10px;
margin-bottom: .85em; margin-bottom: 10px;
font-size: 1em; font-size: 14px;
display: flex;
align-items: center; align-items: center;
overflow-x: hidden;
white-space: nowrap;
text-overflow: ellipsis;
.feather-icon { .feather-icon {
margin-right: .85em; margin-right: 10px;
} }
} }
@ -96,12 +130,12 @@ div.error-wrapper {
div.login-wrapper { div.login-wrapper {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
max-width: 30%; max-width: 300px;
margin: auto; margin: auto;
margin-top: 1.5em; margin-top: 20px;
input, button { input, button {
margin: .3em; margin: 3px;
} }
} }
@ -111,25 +145,24 @@ div.login-wrapper {
div.base-wrapper { div.base-wrapper {
display: flex; display: flex;
height: 100%; height: 100%;
> div {
padding: 10px;
box-sizing: border-box;
}
} }
/* /*
* The list of rooms * The list of rooms
*/ */
div.rooms-container {
border-right: .1em solid $background-color-dark;
}
div.rooms-wrapper { div.rooms-wrapper {
flex-shrink: 0; flex-shrink: 0;
width: 15%; width: 15%;
min-width: 20em; min-width: 200px;
padding: .85em; background-color: $background-color-light;
box-sizing: border-box;
border-right: .1em solid $background-color-dark;
.room-search { .room-search {
padding: .5em; padding: 5px;
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
} }
@ -137,21 +170,23 @@ div.rooms-wrapper {
div.room-link-wrapper { div.room-link-wrapper {
whitespace: nowrap; whitespace: nowrap;
border-left: solid .2em $background-color;
padding-left: .5em;
margin: .3em;
display: flex; display: flex;
padding: 0px;
border-left: solid 2px $background-color-light;
padding-left: 5px;
margin: 3px;
align-items: center; align-items: center;
.feather-icon { .feather-icon {
margin-right: 3px;
height: 1.2em; height: 1.2em;
} }
span.notification-count { span {
color: $alert-color; color: $alert-color;
margin-right: .5em;
display: flex; display: flex;
align-items: center; align-items: center;
margin-right: 5px;
&.bright { &.bright {
color: $alert-color-bright; color: $alert-color-bright;
@ -171,7 +206,7 @@ div.room-link-wrapper {
} }
&.active { &.active {
border-left: solid .2em $primary-color; border-left: solid 2px $primary-color;
} }
&.hidden { &.hidden {
@ -181,15 +216,15 @@ div.room-link-wrapper {
div.reconnect-wrapper { div.reconnect-wrapper {
position: fixed; position: fixed;
bottom: 1.5em; bottom: 20px;
left: 1.5em; left: 20px;
display: flex; display: flex;
align-items: center; align-items: center;
background-color: $inactive-input-color; background-color: $inactive-input-color;
border-radius: $border-radius; border-radius: $border-radius;
.feather-icon { .feather-icon {
margin-right: .85em; margin-right: 10px;
} }
} }
@ -197,38 +232,36 @@ div.reconnect-wrapper {
* The current room, if any. * The current room, if any.
*/ */
div.room-wrapper { div.room-wrapper {
flex-grow: 1;
display: flex; display: flex;
height: 100%;
flex-direction: column; flex-direction: column;
padding: .85em; padding: 5px;
} }
div.typing-wrapper { div.typing-wrapper {
padding: .5em; padding: 5px;
height: 1em; height: 1em;
flex-shrink: 0; flex-shrink: 0;
} }
/*
* The message input and send button.
*/
div.message-wrapper { div.message-wrapper {
display: flex; display: flex;
flex-shrink: 0; flex-shrink: 0;
input, textarea { input, textarea {
flex-grow: 12; flex-grow: 12;
margin: .3em; margin: 3px;
} }
button { button {
margin: .3em; margin: 3px;
height: 3em; height: 40px;
width: 3em; width: 40px;
transition: color $transition-duration; transition: background-color $transition-duration;
background-color: $background-color;
color: $primary-color;
&:hover {
color: $primary-color-light;
}
} }
} }
@ -241,7 +274,7 @@ div.messages-wrapper {
width: 100%; width: 100%;
text-align: center; text-align: center;
box-sizing: border-box; box-sizing: border-box;
padding: .5em; padding: 5px;
} }
} }
@ -251,16 +284,16 @@ table.messages-table {
table-layout: fixed; table-layout: fixed;
td { td {
padding: .5em; padding: 5px;
vertical-align: top; vertical-align: top;
} }
img { img {
max-width: 90%; max-width: 90%;
max-height: 30em; max-height: 400px;
margin-top: .85em; margin-top: 10px;
margin-bottom: .85em; margin-bottom: 10px;
box-shadow: 0 0 .5em rgba(0, 0, 0, .5); box-shadow: 0px 0px 5px rgba(0, 0, 0, .5);
} }
.sending { .sending {
@ -269,24 +302,27 @@ table.messages-table {
video { video {
max-width: 90%; max-width: 90%;
max-height: 30em; max-height: 400px;
} }
td:nth-child(1) { td:nth-child(1) {
width: 10%; width: 10%;
@media screen and (min-width: 1000px) {
width: 100px;
}
white-space: nowrap; white-space: nowrap;
} }
} }
div.message { div.message {
p { p {
margin: 0; margin: 0px;
} }
blockquote { blockquote {
margin: 0 0 0 0; margin: 0px 0px 0px 0px;
padding-left: .5em; padding-left: 5px;
border-left: .4em solid $primary-color; border-left: 4px solid $primary-color;
} }
code { code {
@ -298,7 +334,7 @@ div.message {
overflow: auto; overflow: auto;
display: block; display: block;
box-sizing: border-box; box-sizing: border-box;
padding: .85em; padding: 10px;
background-color: $background-color-dark; background-color: $background-color-dark;
border-radius: $border-radius; border-radius: $border-radius;
box-shadow: $inset-shadow; box-shadow: $inset-shadow;
@ -307,8 +343,8 @@ div.message {
span.sender-wrapper { span.sender-wrapper {
border-radius: $border-radius; border-radius: $border-radius;
padding-left: .5em; padding-left: 5px;
padding-right: .5em; padding-right: 5px;
display: inline-block; display: inline-block;
box-sizing: border-box; box-sizing: border-box;
text-align: right; text-align: right;
@ -320,19 +356,6 @@ span.sender-wrapper {
color: black; color: black;
} }
a.file-wrapper {
padding: .5em 0 .5em 0;
display: flex;
align-items: center;
.feather-icon {
height: 2em;
width: 2em;
margin-right: .85em;
}
}
/** /**
* Icons * Icons
*/ */
@ -343,6 +366,6 @@ a.file-wrapper {
stroke-linecap: round; stroke-linecap: round;
stroke-linejoin: round; stroke-linejoin: round;
fill: none; fill: none;
height: 1.5em; height: 20px;
width: 1.5em; width: 20px;
} }

View File

@ -1,26 +0,0 @@
// Colors
$primary-color: #53C0FA;
$primary-color-highlight: #4298C7;
$primary-color-light: #9FDBFB;
$background-color: #1b1e21;
$background-color-light: lighten($background-color, 4%);
$background-color-dark: darken($background-color, 4%);
$error-color: #f01d43;
$error-color-dark: darken(#f01d43, 10%);
$alert-color: #18f49c;
$alert-color-bright: rgb(240, 244, 24);
$inactive-input-color: lighten($background-color-light, 5%);
$active-input-color: lighten($inactive-input-color, 5%);
// Transitions
$transition-duration: .250s;
// Shadows
$inset-shadow: inset 0px 0px 5px rgba(0, 0, 0, .25);
// Borders
$border-radius: 3px;