Olivier-Truong's picture
Upload 2 files
f348b5b verified
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
background-color: #f0f0f0;
}
.header {
text-align: center;
padding: 20px;
background-color: #3498db;
color: #ffffff;
}
.app {
position: relative;
padding: 20px;
}
.message-container {
position: relative;
}
.message-container textarea {
width: 100%;
padding: 10px;
border: 1px solid #ccc;
background-color: #ffffff;
}
.message-input {
background-color: transparent;
width: 100%;
height: 175px;
/*border: 1px solid #ccc;*/
}
.message-box {
position: relative;
width: calc(33% + 100px);
height: auto;
padding: calc(4% + 20px);
border-radius: 5px;
font-size: 24pt;
margin: 0 0 20px 20px;
white-space: pre;
white-space: pre-line;
}
@media (orientation: portrait) {
.message-box {
margin-bottom: 100px;
}
}
/* Styles pour le mode paysage */
@media (orientation: landscape) {
.message-box {
margin-bottom: 80px;
}
}
.message-box.sent {
width: calc(88% - 50px);
background-color: #d3d3d3;/*#20efbb; */
left: 0%;
}
.message-box.received {
width: 85%;
background-color: #fff;/*#3498db;*/
}
.message-box.received a {
color: #2A58E2;
font-size: 18pt;
}
#message-input {
position: fixed;
bottom: 10px;
left: calc(10% + 40px);
background-color: transparent;
border: solid #000;
opacity: 85%;
width: calc(70% - 40px);
height: calc(3% + 35px);
border-radius: 30px;
font-size: 32pt;
z-index: 9;
}
#message-input:hover {
color: #000;
background: #d3d3d3;
border: solid #3498db;
}
#send-button:hover {
color: #fff;
background: #20efbb;
}
#send-button {
position: fixed;
bottom: 12px;
left: 84%;
background-color: transparent;
border: solid #20efbb;
width: 150px;
height: calc(3% + 50px);
border-radius: 20px;
font-size: 24pt;
z-index: 9;
}
#upload-files {
position: fixed;
bottom: 0px;
left: 1%;
background-color: transparent;
border: solid #20efbb;
width: 100px;
height: calc(3% + 50px);
border-radius: 20px;
font-size: 18pt;
z-index: 9;
overflow: hidden;
}
#custom-upload {
display: inline-block;
background: transparent;
cursor: pointer;
position: fixed;
bottom: 12px;
left: calc(4% - 10px);
background-color: transparent;
width: calc(100px);
/*height: calc(3% + 50px);*/
border-radius: 20px;
font-size: 18pt;
z-index: 4;
overflow: hidden;
}
#upload-files {
display: none;
}
#upload-files:hover {
color: #fff;
background: #20efbb;
}
#user-id-input {
position: fixed;
top: 80px;
left: calc(10% + 40px);
background-color: transparent;
border: solid #000;
opacity: 5%;
width: calc(70% - 40px);
height: 50px;
border-radius: 30px;
font-size: 24pt;
z-index: 9;
display: block;
}
#user-id-input:hover {
color: #000;
opacity: 80%;
background: #d3d3d3;
border: solid #3498db;
}
#menu-button {
position: fixed;
left: 0;
top: 0;
width: 50px;
height: 100%;
background-color: #3498db;
color: #ffffff;
text-align: center;
line-height: 50px;
cursor: pointer;
z-index: 9999;
}
#menu {
position: fixed;
left: -150px;
top: 0px;
width: 150px;
height: 100%;
background-color: #ffffff;
box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
transition: left 0.3s ease-in-out;
overflow-y: auto;
padding-top: 45px;
padding-left: 20px;
padding-right: 20px;
z-index: 9997;
}
.menu-item {
margin-bottom: 10px;
z-index: 9999;
cursor: pointer;
}
.menu-item a {
color: #0d66e3;
}
#add-button {
cursor: pointer;
z-index: 9999;
}
#input-container {
display: none;
margin-top: 10px;
z-index: 9998;
}
#toggle-menu-button {
position: fixed;
left: 5px;
top: 10px;
width: 30px;
height: 30px;
background-color: #3498db;
color: #ffffff;
text-align: center;
line-height: 30px;
cursor: pointer;
z-index: 9999;
font-size: 14pt;
border: none;
}
#add-button {
position: fixed;
left: 50px;
bottom: 20px;
transform: translateX(-50%);
width: 40px;
height: 40px;
background-color: #3498db;
color: #ffffff;
text-align: center;
line-height: 40px;
font-size: 20px;
cursor: pointer;
border-radius: 50%;
z-index: 9999;