You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1119 lines
17 KiB

/**************
* BASE STYLES *
**************/
/* Overwrite browser defaults */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html,
body {
height: 100%;
}
html {
font-size: 62.5%;
}
body {
font-family: "Segoe UI", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
a {
text-decoration: none;
color: inherit;
}
/* Variables */
:root {
--background-green: #fdfdfd;
--background-beige: #fdfdfd;
--sidebar-header: #ededed;
--notifications-text-color: rgba(48, 48, 48, 0.96);
--notifications-link-color: rgba(48, 48, 48, 0.85);
--notifications-background-color: #9de1fe;
--search-bar-bg: #f6f6f6;
--white: #ffffff;
--text-gray: #919191;
--chat-border: #ededed;
--messenger-color: #0280f5;
--whatsapp-color: #24d366;
--telegram-color: #26a4e3;
--scrollbar-color: #cccccc;
--chat-window-scrollbar-color: #bab3ae;
--box-shadow-color: #d5d5d5;
--backround-chat-panel: #fdfdfd;
--chat-hover-color: #f5f5f5;
--chat-active-color: #ebebeb;
--chat-window-beige: #e5ddd5;
--sender-message-green: #b8ffd5;
--events-message: #f3f3f3;
--type-message-bar: #f0f0f0;
--backgroup-icons-upload: #E9E9E9;
--background-color-message-receive: #dbf2ff;
}
/************
* MAIN GRID *
*************/
.grid {
display: grid;
height: 100%;
grid-template-columns: repeat(12, 1fr);
grid-template-rows: 12.8rem 1fr;
}
/*****************
* APP BACKGROUND *
******************/
.top {
background: var(--background-green);
grid-column: 1 / -1;
grid-row: 1 / 2;
}
.bottom {
/** background-image: linear-gradient(to right top, #af8866, #b7766e, #ae6984, #8e679b, #506ba8); */
background-image: linear-gradient(to right bottom, #676767, #626262, #5d5d5d, #585858, #535353);
grid-column: 1 / -1;
grid-row: 1 / 5;
}
/******
* APP *
*******/
.app {
display: grid;
grid-template-columns: 42rem 1fr;
grid-column: 1 / -1;
grid-row: 1 / -1;
width: 90%;
max-width: 1250px;
margin: 2rem auto;
border: 1px solid rgba(0, 0, 0, 0.1);
box-shadow: 0 0 2rem 1rem rgba(0, 0, 0, 0.3);
border-top-left-radius: 20px;
border-bottom-left-radius: 20px;
}
/***********
* SIDEBAR *
************/
.sidebar {
grid-column: 1 / 2;
background: var(--white);
border-right: 1px solid rgba(226, 226, 226, 0.7);
}
.sidebar-span {
flex: 1;
justify-content: flex-start;
font-size: 10px;
font-weight: 700;
line-height: 14px;
color: #919191;
}
.sidebar-name {
display: flex;
flex-direction: column;
margin-left: 20px;
padding-bottom: 3px;
margin-top: auto;
margin-bottom: auto;
}
/* Sidebar header */
.sidebar-header {
background: var(--sidebar-header);
display: flex;
justify-content: space-between;
height: 6rem;
padding: 1rem 2rem;
}
/* Profile image */
.sidebar-header>img {
width: 4rem;
height: 4rem;
border-radius: 50%;
cursor: pointer;
}
.sidebar-header-icons {
display: flex;
align-items: center;
flex: 1;
justify-content: flex-end;
cursor: pointer;
}
.sidebar-header-icons img:active {
background: var(--box-shadow-color);
border-radius: 50%;
box-shadow: 0 0 1px 8px var(--box-shadow-color);
}
/* Adds margin to icon in the center */
.sidebar-header-icons img:nth-child(2) {
margin: 0 3rem;
}
/* Sidebar notifications */
.sidebar-notifications {
display: flex;
align-items: center;
background: var(--notifications-background-color);
height: 9rem;
padding: 0 2rem;
cursor: pointer;
}
.sidebar-notifications>img {
margin-right: 2rem;
}
.sidebar-notifications-message {
display: flex;
flex-direction: column;
flex: 1;
}
.sidebar-notifications-message span {
font-size: 1.6rem;
color: var(--notifications-text-color);
}
.sidebar-notifications-message a {
font-size: 1.4rem;
color: var(--notifications-link-color);
}
.sidebar-notifications-message img {
vertical-align: middle;
}
.sidebar-notifications-message a:hover {
text-decoration: underline;
}
/* Sidebar search chat */
.search-chat {
background: var(--search-bar-bg);
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.search-bar {
display: flex;
padding: 1rem;
border-bottom: 1px solid var(--chat-border);
}
.search-bar>img {
width: 2.8rem;
background: var(--white);
border-top-left-radius: 2rem;
border-bottom-left-radius: 2rem;
padding-left: 1rem;
}
.search-bar input {
outline: none;
border: none;
padding: 1rem 1rem 1rem 2rem;
flex: 1;
border-top-right-radius: 2rem;
border-bottom-right-radius: 2rem;
font-family: "Segoe UI";
}
.search-bar input::placeholder {
color: var(--text-gray);
}
/* Chats */
.chats {
overflow-y: scroll;
overflow-x: hidden;
}
.chats::-webkit-scrollbar {
width: 0.7rem;
height: 3rem;
}
.chats::-webkit-scrollbar-thumb {
background-color: var(--scrollbar-color);
}
.chat {
display: flex;
align-items: center;
background: var(--white);
padding: 1rem 0 0 2rem;
cursor: pointer;
}
.chat:hover {
background: var(--chat-hover-color);
}
.chat:hover .chat-options {
display: initial;
}
.active-chat {
background: var(--chat-active-color) !important;
}
.chat-left img {
width: 5rem;
height: 5rem;
border-radius: 50%;
}
.chat-right {
flex: 1;
display: flex;
flex-direction: column;
margin-left: 1.5rem;
padding-right: 2rem;
padding-bottom: 1rem;
border-bottom: 1px solid var(--chat-border);
}
.chat-right-top {
display: flex;
align-items: baseline;
justify-content: space-between;
margin-bottom: 0.5rem;
}
.contact-name {
font-weight: 500;
font-size: 1.7rem;
color: #585858;
}
.chat-message,
.chat-message-typing,
.chat-message-messenger,
.chat-message-whatsapp,
.chat-message-telegram,
.chat-message-group {
font-size: 1.5rem;
}
.chat-message,
.chat-message-group {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 28rem;
}
.chat-message {
color: var(--text-gray);
}
.chat-message-group {
font-weight: 500;
color: inherit;
}
.chat-message-typing {
color: var(--messenger-color);
font-weight: 500;
}
.chat-message-messenger {
color: var(--messenger-color);
font-weight: 500;
}
.chat-message-whatsapp {
color: var(--whatsapp-color);
font-weight: 500;
}
.chat-message-telegram {
color: var(--telegram-color);
font-weight: 500;
}
.chat-date {
font-size: 1.2rem;
color: var(--text-gray);
}
.chat-right-bottom {
display: flex;
}
.chat-right-bottom-left {
display: flex;
align-items: flex-end;
flex: 1;
}
.chat-right-bottom-right {
display: flex;
align-items: center;
}
.unread-messages-number {
display: inline-block;
width: 2rem;
height: 2rem;
background: var(--messenger-color);
color: var(--white);
font-weight: 500;
border-radius: 50%;
text-align: center;
line-height: 2rem;
}
.chat-options {
display: none;
margin-left: 0.5rem;
}
.chat-options img {
vertical-align: middle;
}
.single-check-mark,
.double-check-mark {
margin-right: 0.2rem;
}
.single-check-mark {
width: 1.4rem;
}
.double-check-mark {
width: 2rem;
}
.image-icon,
.microphone-icon {
margin-right: 0.3rem;
}
/******
* MAIN *
*******/
.main {
grid-column: 2 / -1;
background: var(--chat-window-beige);
position: relative;
border-bottom-right-radius: 20px;
border-top-right-radius: 20px;
}
/* Main chat window header */
.chat-window-header {
display: flex;
justify-content: space-between;
align-items: center;
height: 6rem;
padding: 1rem 2rem;
background: var(--sidebar-header);
cursor: pointer;
}
.chat-window-header-left {
display: flex;
align-items: center;
}
.chat-window-header-right {
display: flex;
align-items: center;
}
.chat-window-header-right-commands {
display: flex;
margin-right: 5px;
}
.contact-name-and-status-container {
display: flex;
flex-direction: column;
}
.chat-window-contact-image {
width: 4rem;
height: 4rem;
border-radius: 50%;
cursor: pointer;
margin-right: 1.5rem;
}
.chat-window-contact-name {
font-weight: 500;
font-size: 1.7rem;
color: #585858;
}
.chat-window-contact-status {
color: var(--text-gray);
font-size: 1.3rem;
}
.chat-window-menu-icon {
margin-left: 2rem;
margin: auto;
}
.chat-window-menu-icon:active {
background: var(--box-shadow-color);
border-radius: 50%;
box-shadow: 0 0 1px 8px var(--box-shadow-color);
}
.chat-window-menu-span {
margin-left: 3px;
flex: 1;
justify-content: flex-start;
font-size: 10px;
font-weight: 700;
line-height: 14px;
}
/* Chat window */
.chat-window {
display: flex;
flex-direction: column;
padding: 10rem 10rem 6rem 10rem;
height: calc(100vh - 100px);
overflow: scroll;
overflow-x: hidden;
background-image: url('../images/wallpaper_simpleschat.png');
background-repeat: repeat;
}
.chat-window::-webkit-scrollbar {
width: 0.7rem;
height: 3rem;
}
.chat-window::-webkit-scrollbar-track {
background: var(--chat-window-beige);
}
.chat-window::-webkit-scrollbar-thumb {
background: var(--chat-window-scrollbar-color);
}
.sender,
.receiver,
.events {
border-radius: 0.5rem;
padding: 1.2rem 1rem;
margin-bottom: 0.3rem;
position: relative;
}
.events {
background: var(--events-message);
align-self: center;
}
.sender {
background: var(--sender-message-green);
align-self: flex-end;
}
.receiver {
background: var(--background-color-message-receive);
align-self: flex-start;
}
.sender-message,
.receiver-message {
font-size: 1.4rem;
margin-right: 3rem;
word-break: break-all;
}
.message-column {
display: flex;
flex: 1;
flex-direction: row;
align-items: center;
}
.message-time,
.audio-message-length {
color: var(--text-gray);
font-size: 1rem;
}
.message-status img {
margin-left: 3px;
vertical-align: bottom;
}
.image-message {
width: 33rem;
height: 33rem;
position: relative;
padding: 0.5rem;
cursor: pointer;
}
.image-message img {
width: 100%;
height: 100%;
}
.image-message .receiver-message {
margin-right: 0;
display: flex;
justify-content: center;
align-items: center;
}
.image-message .message-time {
position: absolute;
bottom: 1rem;
right: 2rem;
color: var(--white);
}
.receiver-message-tail,
.sender-message-tail {
width: 0.8rem;
height: 1.3rem;
position: absolute;
top: 0;
}
.receiver-message-tail {
left: -0.5rem;
}
.sender-message-tail {
right: -0.5rem;
}
.receiver-audio-message {
width: 33rem;
}
.audio-message {
display: flex;
align-items: center;
flex-wrap: wrap;
}
.audio-message-left {
cursor: pointer;
}
.audio-message-center {
position: relative;
margin: 0 1.5rem;
flex: 1;
}
/* Reset input range styles */
input[type="range"]:focus {
outline: none;
}
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
background: #30b6b6;
cursor: pointer;
height: 1.5rem;
width: 1.5rem;
border-radius: 50%;
}
input[type="range"] {
background: #d8d8d8;
width: 100%;
height: 0.5rem;
-webkit-appearance: none;
border-radius: 1rem;
}
.audio-message-bar {
width: 75%;
background: #30b6f6;
position: absolute;
left: 0;
height: 0.5rem;
z-index: 1;
}
.audio-message-center-top {
display: flex;
}
.audio-message-center-bottom {
position: absolute;
top: 1.5rem;
width: 100%;
}
.audio-message-bottom {
display: flex;
justify-content: space-between;
}
.audio-message-right {
position: relative;
}
.audio-message-contact-image {
width: 5rem;
height: 5rem;
border-radius: 50%;
}
.audio-message-microphone {
width: 2rem;
position: absolute;
bottom: 0;
left: -1rem;
}
/* Type message bar */
.type-window-image {
max-width: 900px;
width: 100%;
display: flex;
flex-direction: column;
padding: 1rem 2rem;
justify-content: column;
align-items: center;
z-index: 999;
}
.type-window-image h1 {
font-size: 40px;
color: var(--chat-window-scrollbar-color);
}
.type-window-image h2 {
font-size: 20px;
color: var(--chat-window-scrollbar-color);
}
.type-window-image img {
width: 450px;
margin-top: 30px;
}
/* Type message bar */
.type-message-bar {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
display: flex;
background: var(--type-message-bar);
padding: 1rem 2rem 1rem;
justify-content: space-between;
align-items: center;
z-index: 999;
}
.type-message-bar img {
cursor: pointer;
}
.type-message-bar-icons-upload {
display: flex;
flex-direction: column;
flex: 1;
position: absolute;
bottom: 50px;
overflow: hidden;
height: 120px;
margin-left: -40px;
z-index: 9999;
}
.type-message-bar-icons-upload-btn {
padding: 10px 11px 10px;
background-color: var(--backgroup-icons-upload);
border-radius: 100px;
margin-bottom: 10px;
}
.type-message-bar-icons-upload img {
width: 22px;
}
.type-message-bar-left img:nth-of-type(2) {
margin: 0 2rem;
}
.type-message-bar-center {
flex: 1;
margin: 0 5px;
}
.type-message-bar-center input {
width: 100%;
outline: none;
border: none;
padding: 1rem 1rem 1rem 2rem;
flex: 1;
border-radius: 2rem;
font-family: "Segoe UI";
}
.type-message-bar-center input::-webkit-input-placeholder {
font-size: 1.5rem;
}
.type-message-bar-right {
margin-left: 2rem;
justify-content: center;
}
#myImg {
width: 100%;
border-radius: 5px;
transition: 0.3s;
}
#myImg:hover {
opacity: 0.7;
}
/**
* MODAL
*/
.modal {
display: none;
position: fixed;
z-index: 99999;
padding-top: 100px;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgb(0, 0, 0);
background-color: rgba(0, 0, 0, 0.4);
}
/* Modal Content */
.modal-content {
position: relative;
border-radius: 10px;
background-color: #fefefe;
margin: auto;
padding: 0;
border: 1px solid #888;
width: 30%;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
-webkit-animation-name: animatetop;
-webkit-animation-duration: 0.4s;
animation-name: animatetop;
animation-duration: 0.4s
}
.modal-content-body {
display: flex;
align-items: center;
}
.modal-content-body-item {
flex-direction: column;
}
.modal-content-body-itens {
flex-direction: column;
flex: 1;
}
/* Add Animation */
@-webkit-keyframes animatetop {
from {
top: -300px;
opacity: 0
}
to {
top: 0;
opacity: 1
}
}
@keyframes animatetop {
from {
top: -300px;
opacity: 0
}
to {
top: 0;
opacity: 1
}
}
/* The Close Button */
.close {
color: #585858;
font-size: 28px;
font-weight: bold;
}
.close:hover,
.close:focus {
color: #FFF;
text-decoration: none;
cursor: pointer;
}
.modal-header {
display: flex;
align-items: center;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
padding: 5px 16px;
background-color: var(--sidebar-header);
color: #585858;
}
.modal-header-title {
flex: 1;
}
.modal-body {
padding: 10px 16px;
}
.modal-footer {
border-top: solid 1px var(--backgroup-icons-upload);
display: flex;
align-items: center;
flex-direction: row;
padding: 2px 16px;
}
.modal-footer-content {
display: flex;
flex-direction: row;
margin: 10px;
}
.modal-text {
font-size: 16px;
}
.modal-list-radio {
font-size: 16px;
}
/**
* FLEXBOX JUSTIFY CONTENT
*/
.flex-center {
justify-content: center;
}
.flex-right {
justify-content: right;
}
/**
* FLEXBOX SIZE
*/
.flex-1 {
flex: 1;
}
/*
* BOTAO STYLE
*/
.btn-danger {
padding: 5px 15px 5px;
color: #FFF;
border: solid 1px transparent;
border-radius: 20px;
background-color: #f77070;
}
.btn-danger:hover {
background-color: #ff0000;
}
.btn-danger:active {
background-color: #fd6868;
}
.btn-info {
padding: 5px 15px 5px;
color: #FFF;
border: solid 1px transparent;
border-radius: 20px;
background-color: #70aff7;
}
.btn-info:hover {
background-color: #0076fd;
}
.btn-info:active {
background-color: #378ff5;
}
.btn-send {
padding: 7px 9px 7px;
color: #FFF;
border: solid 1px transparent;
border-radius: 20px;
background-color: #e5e5e5;
}
.fz-10 {
font-size: 10px;
}
.fz-12 {
font-size: 12px;
}
.fz-14 {
font-size: 14px;
}
.fz-18 {
font-size: 18px;
}
/**
* STATUS
*/
.status-connect {
color: rgb(42, 201, 95);
}
.status-desconnect {
color: rgb(241, 65, 65);
}
.status-reconnect {
color: rgb(241, 165, 65);
}
.status-disabled {
color: #D8D8D8
}
.select-notification {
background-color: var(--chat-active-color);
}
.opacity-3 {
opacity: 0.3
}
.cursor-pointer {
cursor: pointer;
}
@media (max-width: 1310px) {
.modal-content{
width: 42%;
}
}
@media (max-width: 1240px) {
#welcometomessage h1,h2{
font-size: 30px;
}
#welcometomessage img {
width: 300px;
}
.chat-window {
padding: 5rem 5rem 3rem 4rem;
}
.chat-window-contact-name{
font-size: 1.3rem;
}
.chat-window-contact-status {
font-size: 0.9rem;
}
.type-message-bar-icons-upload{
margin-left: 20px
}
.chats {
height: 85vh;
}
}
@media (max-width: 1100px) {
.chats {
height: 82vh;
}
}
@media (max-width: 990px) {
#welcometomessage h1,h2{
font-size: 20px;
}
#welcometomessage img {
width: 200px;
}
.chat-window-contact-name{
font-size: 1rem;
}
.chat-window-contact-status {
font-size: 0.8rem;
}
.chats {
height: 80vh;
}
.modal-content{
width: 50%;
}
}
@media (max-height: 820px){
#welcometomessage h1,h2{
font-size: 30px;
}
#welcometomessage img {
width: 300px;
}
}
@media (max-height: 1380px){
.chats {
height: 82vh;
}
}