| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- body {
- background-color: #fff5e3;
- font-family: sans-serif;
- display: flex;
- flex-wrap: wrap;
- margin: 0;
- }
- #message-container {
- padding: 0 5%;
- width: 100%;
- }
- h1 {
- width: 100%;
- }
- #message-input {
- width: 100%;
- position: fixed;
- top: 90%;
- height: 10%;
- display: flex;
- background-color: #a0a0a0f7;
- }
- #message-text-box {
- width: 90%;
- border: none;
- border-radius: 20px 0 0 20px;
- padding: 5px;
- vertical-align: middle;
- font-size: medium;
- resize: none;
- vertical-align: middle;
- }
- #message-text-box:focus {
- outline: none;
- }
- #messages {
- display: flex;
- flex-direction:column;
- width: 100%;
- margin: auto;
- }
- #send-message-button {
- width: 10%;
- font-size: medium;
- }
- #send-message-button:hover {
- opacity: 10%;
- }
- .message {
- width: 40%;
- flex-basis: 100%;
- border: 1px solid;
- padding: 1%;
- border-radius: 8px;
- box-shadow: 2px 2px #a0a0a0f7;
- }
- .message .time {
- font-size: x-small;
- display: flex;
- align-self:flex-end;
- }
- .from-me {
- background-color: #dcf8c6;
- }
- .from-them {
- background-color: #fff;
- align-self:flex-end;
- }
|