184 lines
3.3 KiB
CSS
184 lines
3.3 KiB
CSS
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* style.css :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: edbernar <edbernar@student.42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2024/07/30 13:53:39 by edbernar #+# #+# */
|
|
/* Updated: 2024/07/30 20:18:19 by edbernar ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
body {
|
|
border: 0;
|
|
padding: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: #616161;
|
|
user-select: none;
|
|
}
|
|
|
|
#chatButton {
|
|
position: absolute;
|
|
bottom: 10px;
|
|
left: 30px;
|
|
background-color: white;
|
|
width: 100px;
|
|
height: 40px;
|
|
text-align: center;
|
|
cursor : pointer;
|
|
z-index: 998;
|
|
}
|
|
|
|
#chatButton p {
|
|
margin: 0;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
#chatButton:hover {
|
|
background-color: rgb(204, 204, 204);
|
|
}
|
|
|
|
#chatDiv {
|
|
width: 350px;
|
|
height: 400px;
|
|
background-color: #131313;
|
|
position: absolute;
|
|
left: 20px;
|
|
bottom: 0px;
|
|
z-index: 999;
|
|
display: none;
|
|
flex-direction: column;
|
|
color: white;
|
|
font-family: 'Poppins';
|
|
padding: 20px;
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
#chatDiv h1 {
|
|
margin: 0;
|
|
font-size: 25px;
|
|
}
|
|
|
|
/* Delete this, is just for cross style */
|
|
#chatDiv h2 {
|
|
cursor : pointer;
|
|
margin: 0;
|
|
font-size: 25px;
|
|
}
|
|
|
|
#chatDiv #topChatHome {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
border-bottom: 1px solid #484848;
|
|
padding-bottom: 10px;
|
|
}
|
|
|
|
#buttonTypeChatHome {
|
|
display: grid;
|
|
grid-template-columns: 50% 50%;
|
|
width: 100%;
|
|
border-bottom: 1px solid #484848;
|
|
}
|
|
|
|
#buttonTypeChatHome h2 {
|
|
text-align: center;
|
|
font-size: 20px;
|
|
color: #dfdfdf;
|
|
padding-top: 5px;
|
|
padding-bottom: 5px;
|
|
}
|
|
|
|
#selected {
|
|
background-color: black;
|
|
}
|
|
|
|
#messageListChatHome {
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: auto;
|
|
height: 100%;
|
|
}
|
|
|
|
#messageListChatHome .user {
|
|
display: flex;
|
|
flex-direction: row;
|
|
height: 75px;
|
|
margin: 0;
|
|
padding: 0;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
#messageListChatHome .user .status {
|
|
border-radius: 1000px;
|
|
width: 60px;
|
|
height: 60px;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
#messageListChatHome .online {
|
|
background-color: rgb(17, 165, 29);
|
|
}
|
|
|
|
#messageListChatHome .offline {
|
|
background-color: rgb(85, 85, 85);
|
|
}
|
|
|
|
#messageListChatHome .user img {
|
|
height: 52px;
|
|
margin-left: 4px;
|
|
margin-top: 4px;
|
|
border-radius: 1000px;
|
|
}
|
|
|
|
|
|
|
|
|
|
#messageListChatHome .opponentMessage {
|
|
max-width: 80%;
|
|
padding: 10px;
|
|
margin-top: 20px;
|
|
background-color: #484848;
|
|
margin-right: auto;
|
|
}
|
|
|
|
#messageListChatHome .meMessage {
|
|
max-width: 80%;
|
|
padding: 10px;
|
|
margin-top: 20px;
|
|
background-color: #222222;
|
|
margin-right: 0;
|
|
margin-left: auto;
|
|
}
|
|
|
|
#messageListChatHome .meMessage p {
|
|
text-align: right;
|
|
}
|
|
|
|
|
|
#messageListChatHome .content {
|
|
user-select: text;
|
|
}
|
|
|
|
#messageListChatHome .time {
|
|
margin-top: 10px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
#messageListChatHome p {
|
|
margin: 0;
|
|
word-break: break-word;
|
|
}
|
|
|
|
|
|
#inputDiv {
|
|
position: absolute;
|
|
width: 90%;
|
|
height: 50px;
|
|
background-color: #0B0B0B;
|
|
bottom: 10px;
|
|
user-select: text;
|
|
}
|