Make minor visual changes

This commit is contained in:
Danila Fedorin 2019-08-21 21:20:30 -07:00
parent 7d09b4ad9a
commit b8fc33eae6
4 changed files with 84 additions and 65 deletions

View File

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

12
static/scss/mixins.scss Normal file
View File

@ -0,0 +1,12 @@
@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,22 +1,7 @@
@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');
$primary-color: #53C0FA; @import 'mixins';
$primary-color-highlight: #4298C7; @import 'variables';
$primary-color-light: #9FDBFB; @import 'components';
$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;
@ -30,19 +15,6 @@ body {
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;
@ -68,6 +40,7 @@ button {
} }
} }
a { a {
text-decoration: none; text-decoration: none;
color: $primary-color; color: $primary-color;
@ -77,23 +50,14 @@ a {
} }
} }
h2, h3 { h1, h2, h3, h4, h5, h6 {
margin: 0px; margin: 0px;
margin-bottom: 3px; margin-bottom: 3px;
} }
a.file-wrapper { /*
padding: 5px 0px 5px 0px; * Errors
display: flex; */
align-items: center;
.feather-icon {
height: 30px;
width: 30px;
margin-right: 10px;
}
}
div.errors-wrapper { div.errors-wrapper {
position: fixed; position: fixed;
pointer-events: none; pointer-events: none;
@ -147,21 +111,22 @@ 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: 1px solid $background-color-dark;
}
div.rooms-wrapper { div.rooms-wrapper {
flex-shrink: 0; flex-shrink: 0;
width: 15%; width: 15%;
min-width: 200px; min-width: 200px;
background-color: $background-color-light; padding: 10px;
box-sizing: border-box;
border-right: 1px solid $background-color-dark;
.room-search { .room-search {
padding: 5px; padding: 5px;
@ -172,23 +137,21 @@ div.rooms-wrapper {
div.room-link-wrapper { div.room-link-wrapper {
whitespace: nowrap; whitespace: nowrap;
display: flex; border-left: solid 2px $background-color;
padding: 0px;
border-left: solid 2px $background-color-light;
padding-left: 5px; padding-left: 5px;
margin: 3px; margin: 3px;
display: flex;
align-items: center; align-items: center;
.feather-icon { .feather-icon {
margin-right: 3px;
height: 1.2em; height: 1.2em;
} }
span { span.notification-count {
color: $alert-color; color: $alert-color;
margin-right: 5px;
display: flex; display: flex;
align-items: center; align-items: center;
margin-right: 5px;
&.bright { &.bright {
color: $alert-color-bright; color: $alert-color-bright;
@ -234,11 +197,9 @@ 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: 5px; padding: 10px;
} }
div.typing-wrapper { div.typing-wrapper {
@ -247,9 +208,6 @@ div.typing-wrapper {
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;
@ -263,7 +221,14 @@ div.message-wrapper {
margin: 3px; margin: 3px;
height: 40px; height: 40px;
width: 40px; width: 40px;
transition: background-color $transition-duration; transition: color $transition-duration;
background-color: $background-color;
color: $primary-color;
&:hover {
color: $primary-color-light;
}
} }
} }
@ -358,6 +323,19 @@ span.sender-wrapper {
color: black; color: black;
} }
a.file-wrapper {
padding: 5px 0px 5px 0px;
display: flex;
align-items: center;
.feather-icon {
height: 30px;
width: 30px;
margin-right: 10px;
}
}
/** /**
* Icons * Icons
*/ */

View File

@ -0,0 +1,26 @@
// 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;