decentralized-video-chat/public/css/chat.css

341 lines
6.2 KiB
CSS
Raw Normal View History

2020-03-25 05:34:57 +08:00
@import url("https://fonts.googleapis.com/css?family=Fira+Sans:600|Heebo:400,500,700&display=swap");
2020-03-29 00:36:59 +08:00
/*Fade in page on load*/
@-webkit-keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@-moz-keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
2020-03-29 00:36:59 +08:00
/*Fade in page on load*/
2020-03-28 05:00:28 +08:00
body {
background: #16171B;
2020-03-24 13:04:30 +08:00
margin: 0;
2020-03-25 05:34:57 +08:00
padding: 0;
opacity: 0; /* make things invisible upon start */
-webkit-animation: fadeIn ease-in 1;
-moz-animation: fadeIn ease-in 1;
animation: fadeIn ease-in 1;
-webkit-animation-fill-mode: forwards;
-moz-animation-fill-mode: forwards;
animation-fill-mode: forwards;
-webkit-animation-duration: 0.3s;
-moz-animation-duration: 0.3s;
animation-duration: 0.3s;
2020-03-25 05:34:57 +08:00
}
video {
background: #16171a;
}
2020-03-29 00:36:59 +08:00
#header {
position: absolute;
color: white;
font-family: "Fira Sans", sans-serif;
font-weight: 600;
white-space: nowrap;
top: 40px;
left: 80px;
margin-left: 30px;
margin-top: 30px;
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
float: left;
}
#header p, img {
float: left;
padding: 7px;
}
2020-03-29 01:35:06 +08:00
#header, a {
color: white;
text-decoration: none;
}
2020-03-29 00:36:59 +08:00
#moveable {
z-index: 100;
position: absolute;
width: 15%;
cursor: move;
}
#moveable p {
z-index: 101;
2020-03-28 05:00:28 +08:00
position: absolute;
color: white;
font-family: "Heebo", sans-serif;
white-space: nowrap;
2020-03-28 05:00:28 +08:00
top: 50%;
left: 50%;
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
font-weight: bold;
background: rgba(0, 0, 0, 0.12);
padding: 10px;
border-radius: 5px;
2020-03-24 13:04:30 +08:00
}
#local-video {
width: 100%;
2020-03-27 12:31:21 +08:00
height: auto;
2020-03-28 05:00:28 +08:00
border-radius: 20px;
2020-03-27 12:31:21 +08:00
-webkit-transform: scaleX(-1);
transform: scaleX(-1);
2020-03-28 02:06:07 +08:00
background: #16171a;
2020-03-24 13:04:30 +08:00
}
#remote-video-text {
2020-03-29 10:47:24 +08:00
/*padding: 0;*/
margin: 0;
2020-03-29 10:47:24 +08:00
width: 60vw;
position: absolute;
2020-03-29 10:47:24 +08:00
top: calc(80%);
left: 20vw;
/*-ms-transform: translate(-50%, -90%);*/
/*transform: translate(-50%, -90%);*/
z-index: 1;
color: white;
font-family: "Heebo", sans-serif;
2020-03-29 10:47:24 +08:00
font-size: 40px;
/*white-space: nowrap;*/
font-weight: bold;
2020-03-29 10:47:24 +08:00
text-align: left;
background: rgba(0, 0, 0, 0.20);
border-radius: 10px;
padding: 10px;
}
2020-03-24 13:04:30 +08:00
#remote-video {
padding: 0;
margin: 0;
position: absolute;
top: 50%;
left: 50%;
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
width: 70%;
height: auto;
2020-03-28 05:00:28 +08:00
max-height: 100%;
max-width: 100%;
2020-03-28 05:00:28 +08:00
border-radius: 10px;
background-image: url(../images/loader.gif);
2020-03-25 06:14:05 +08:00
background-size: 400px auto;
background-repeat: no-repeat;
2020-03-25 06:14:05 +08:00
background-position: center center;
2020-03-28 02:06:07 +08:00
box-shadow: 9px 9px 16px #0a0b0c, -9px -9px 16px #222328;
2020-03-26 05:57:54 +08:00
2020-03-28 02:06:07 +08:00
}
/*Neomorphic buttons*/
button {
border: none;
font-size: 2rem;
transition: all .3s ease-in-out;
color: gray;
background: transparent;
cursor: pointer;
padding: 10px;
}
button:focus {
outline: none;
}
2020-03-28 02:06:07 +08:00
button:hover {
color: white;
border-radius: 100px;
background: #16171a;
}
.multi-button {
position: absolute;
left: calc(5vw - 40px);
top: calc(50vh - 175px);
2020-03-28 02:06:07 +08:00
z-index: 999;
border-radius: 10px;
background: #16171a;
box-shadow: 9px 9px 16px #0a0b0c, -9px -9px 16px #222328;
padding: 15px;
display: grid;
grid-gap: 0.5rem;
width: 50px;
}
.HoverState {
color: white;
font-family: "Heebo", sans-serif;
position: absolute;
left: 70px;
2020-03-28 02:06:07 +08:00
white-space: nowrap;
top: 25px;
font-weight: bold;
2020-03-28 05:00:28 +08:00
background: #16171a;
padding: 10px;
border-radius: 10px;
2020-03-28 02:06:07 +08:00
}
.buttonContainer {
position: relative;
margin: 0 auto;
}
2020-03-29 00:36:59 +08:00
/*Neomorphic buttons*/
2020-03-30 02:59:59 +08:00
/*simple chat*/
2020-03-29 00:36:59 +08:00
#entire-chat {
2020-03-30 02:59:59 +08:00
position: absolute;
height: 100%;
right: 0;
width: 13vw;
padding: 0;
}
.compose {
width: 100%;
height: 10%;
overflow: scroll;
2020-03-30 02:59:59 +08:00
font-family: "Heebo", sans-serif;
position: absolute;
bottom: 0;
right: 0;
/*margin: 0;*/
2020-03-30 02:59:59 +08:00
/*z-index: 1;*/
border-radius: 20px;
/*box-shadow: 6px 6px 12px #b11882, -6px -6px 12px #292a30;*/
box-shadow: 6px 6px 12px #030506, -6px -6px 12px #292a30;
margin: 20px;
box-sizing: border-box;
padding: 16px;
2020-03-30 02:59:59 +08:00
}
.compose textarea::placeholder {
color: white;
}
.compose textarea {
font-family: inherit;
font-size: inherit;
border: none;
width: 100%;
height: 80%;
2020-03-30 02:59:59 +08:00
resize: none;
outline: none;
color: white;
/*background: #3a4150;*/
background-color: rgb(22, 23, 26);
/*box-shadow: 6px 6px 12px #111314, -6px -6px 12px #292a30;*/
2020-03-30 02:59:59 +08:00
}
#chat-zone {
padding-top: 20px;
2020-03-30 02:59:59 +08:00
box-sizing: border-box;
/*border: red 1px solid;*/
position: absolute;
height: calc(90% - 20px);
2020-03-30 02:59:59 +08:00
right: 0;
width: 15vw;
overflow: scroll;
2020-03-30 02:59:59 +08:00
-webkit-overflow-scrolling: touch;
font-family: "Heebo", sans-serif;
}
#chat-zone .chat-messages .message-item {
position: relative;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: flex-end;
padding: 0 16px 4px;
margin-bottom: 20px;
}
#chat-zone .chat-messages .message-item.customer {
padding-left: 40px;
}
/*Your messages*/
2020-03-30 02:59:59 +08:00
#chat-zone .message-item.moderator .message-bloc {
background-color: rgb(22, 23, 26);
2020-03-30 02:59:59 +08:00
color: #fff;
position: relative;
display: flex;
align-items: center;
justify-content: center;
padding: 12px;
max-width: 100%;
border-radius: 20px 20px 20px 5px;
box-shadow: 6px 6px 12px #030506, -6px -6px 12px #23242a;
2020-03-30 02:59:59 +08:00
}
/*Recieved messages*/
2020-03-30 02:59:59 +08:00
#chat-zone .message-item.customer .message-bloc {
background-color: rgb(42, 43, 47);
color: #fff;
border-radius: 20px 20px 5px 20px;
box-shadow: 6px 6px 12px #030506, -6px -6px 12px #22232a;
2020-03-30 02:59:59 +08:00
}
#chat-zone .chat-messages .message-item.customer .message-bloc {
margin-left: auto;
}
2020-03-29 00:36:59 +08:00
2020-03-30 02:59:59 +08:00
#chat-zone .chat-messages .message-item .message-bloc {
position: relative;
display: flex;
align-items: center;
justify-content: center;
padding: 12px;
max-width: 100%;
}
2020-03-29 00:36:59 +08:00
.message {
word-break: break-all;
2020-03-30 02:59:59 +08:00
}
2020-03-29 00:36:59 +08:00
2020-03-30 02:59:59 +08:00
/*simple chat*/