Prototype switching to em.

This commit is contained in:
Danila Fedorin 2019-08-21 21:40:58 -07:00
parent b8fc33eae6
commit bc794955e3

View File

@ -9,9 +9,9 @@ html, body {
body { body {
font-family: 'Open Sans', sans-serif; font-family: 'Open Sans', sans-serif;
margin: 0px; margin: 0;
background-color: $background-color; background-color: $background-color;
font-size: 12px; font-height: 1em;
color: white; color: white;
} }
@ -21,7 +21,7 @@ input, textarea {
background-color: $inactive-input-color; background-color: $inactive-input-color;
color: white; color: white;
border: none; border: none;
padding: 10px; padding: .5em;
&:focus { &:focus {
background-color: $active-input-color; background-color: $active-input-color;
@ -51,8 +51,8 @@ a {
} }
h1, h2, h3, h4, h5, h6 { h1, h2, h3, h4, h5, h6 {
margin: 0px; margin: 0;
margin-bottom: 3px; margin-bottom: .5em;
} }
/* /*
@ -61,32 +61,32 @@ h1, h2, h3, h4, h5, h6 {
div.errors-wrapper { div.errors-wrapper {
position: fixed; position: fixed;
pointer-events: none; pointer-events: none;
top: 0px; top: 0;
bottom: 0px; bottom: 0;
left: 0px; left: 0;
right: 0px; right: 0;
overflow: hidden; overflow: hidden;
} }
div.error-wrapper { div.error-wrapper {
pointer-events: auto; pointer-events: auto;
width: 400px; width: 40%;
padding: 5px; padding: .5em;
background-color: $error-color; background-color: $error-color;
border: 1px solid $error-color-dark; border: .1em solid $error-color-dark;
color: white; color: white;
margin: auto; margin: auto;
margin-top: 10px; margin-top: .85em;
margin-bottom: 10px; margin-bottom: .85em;
font-size: 14px; font-size: 1em;
align-items: center; align-items: center;
overflow-x: hidden; overflow-x: hidden;
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
.feather-icon { .feather-icon {
margin-right: 10px; margin-right: .85em;
} }
} }
@ -96,12 +96,12 @@ div.error-wrapper {
div.login-wrapper { div.login-wrapper {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
max-width: 300px; max-width: 30%;
margin: auto; margin: auto;
margin-top: 20px; margin-top: 1.5em;
input, button { input, button {
margin: 3px; margin: .3em;
} }
} }
@ -117,19 +117,19 @@ div.base-wrapper {
* The list of rooms * The list of rooms
*/ */
div.rooms-container { div.rooms-container {
border-right: 1px solid $background-color-dark; 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: 200px; min-width: 20em;
padding: 10px; padding: .85em;
box-sizing: border-box; box-sizing: border-box;
border-right: 1px solid $background-color-dark; border-right: .1em solid $background-color-dark;
.room-search { .room-search {
padding: 5px; padding: .5em;
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
} }
@ -137,9 +137,9 @@ div.rooms-wrapper {
div.room-link-wrapper { div.room-link-wrapper {
whitespace: nowrap; whitespace: nowrap;
border-left: solid 2px $background-color; border-left: solid .2em $background-color;
padding-left: 5px; padding-left: .5em;
margin: 3px; margin: .3em;
display: flex; display: flex;
align-items: center; align-items: center;
@ -149,7 +149,7 @@ div.room-link-wrapper {
span.notification-count { span.notification-count {
color: $alert-color; color: $alert-color;
margin-right: 5px; margin-right: .5em;
display: flex; display: flex;
align-items: center; align-items: center;
@ -171,7 +171,7 @@ div.room-link-wrapper {
} }
&.active { &.active {
border-left: solid 2px $primary-color; border-left: solid .2em $primary-color;
} }
&.hidden { &.hidden {
@ -181,15 +181,15 @@ div.room-link-wrapper {
div.reconnect-wrapper { div.reconnect-wrapper {
position: fixed; position: fixed;
bottom: 20px; bottom: 1.5em;
left: 20px; left: 1.5em;
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: 10px; margin-right: .85em;
} }
} }
@ -199,11 +199,11 @@ div.reconnect-wrapper {
div.room-wrapper { div.room-wrapper {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding: 10px; padding: .85em;
} }
div.typing-wrapper { div.typing-wrapper {
padding: 5px; padding: .5em;
height: 1em; height: 1em;
flex-shrink: 0; flex-shrink: 0;
} }
@ -214,13 +214,13 @@ div.message-wrapper {
input, textarea { input, textarea {
flex-grow: 12; flex-grow: 12;
margin: 3px; margin: .3em;
} }
button { button {
margin: 3px; margin: .3em;
height: 40px; height: 3em;
width: 40px; width: 3em;
transition: color $transition-duration; transition: color $transition-duration;
background-color: $background-color; background-color: $background-color;
@ -241,7 +241,7 @@ div.messages-wrapper {
width: 100%; width: 100%;
text-align: center; text-align: center;
box-sizing: border-box; box-sizing: border-box;
padding: 5px; padding: .5em;
} }
} }
@ -251,16 +251,16 @@ table.messages-table {
table-layout: fixed; table-layout: fixed;
td { td {
padding: 5px; padding: .5em;
vertical-align: top; vertical-align: top;
} }
img { img {
max-width: 90%; max-width: 90%;
max-height: 400px; max-height: 30em;
margin-top: 10px; margin-top: .85em;
margin-bottom: 10px; margin-bottom: .85em;
box-shadow: 0px 0px 5px rgba(0, 0, 0, .5); box-shadow: 0 0 .5em rgba(0, 0, 0, .5);
} }
.sending { .sending {
@ -269,27 +269,24 @@ table.messages-table {
video { video {
max-width: 90%; max-width: 90%;
max-height: 400px; max-height: 30em;
} }
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: 0px; margin: 0;
} }
blockquote { blockquote {
margin: 0px 0px 0px 0px; margin: 0 0 0 0;
padding-left: 5px; padding-left: .5em;
border-left: 4px solid $primary-color; border-left: .4em solid $primary-color;
} }
code { code {
@ -301,7 +298,7 @@ div.message {
overflow: auto; overflow: auto;
display: block; display: block;
box-sizing: border-box; box-sizing: border-box;
padding: 10px; padding: .85em;
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;
@ -310,8 +307,8 @@ div.message {
span.sender-wrapper { span.sender-wrapper {
border-radius: $border-radius; border-radius: $border-radius;
padding-left: 5px; padding-left: .5em;
padding-right: 5px; padding-right: .5em;
display: inline-block; display: inline-block;
box-sizing: border-box; box-sizing: border-box;
text-align: right; text-align: right;
@ -324,14 +321,14 @@ span.sender-wrapper {
} }
a.file-wrapper { a.file-wrapper {
padding: 5px 0px 5px 0px; padding: .5em 0 .5em 0;
display: flex; display: flex;
align-items: center; align-items: center;
.feather-icon { .feather-icon {
height: 30px; height: 2em;
width: 30px; width: 2em;
margin-right: 10px; margin-right: .85em;
} }
} }
@ -346,6 +343,6 @@ a.file-wrapper {
stroke-linecap: round; stroke-linecap: round;
stroke-linejoin: round; stroke-linejoin: round;
fill: none; fill: none;
height: 20px; height: 1.5em;
width: 20px; width: 1.5em;
} }