style.css 1.86 KB
* {
    margin: 0;
    padding: 0;
}

html, body {
    height : 100%;
}

.wrapper {
    height : 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.user-container {
    background: rebeccapurple;
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0.5rem;
}

.user-container .nickname {
    font-size : 14px;
    margin-right : 1.5rem;
    margin-left : 1rem;
    color:#fff;
}

.user-container input {
    border-radius: 3px;
    border: none;
    height: 80%;
}

.display-container {
    background: #D2D2FF;
    flex : 12;
    overflow-y:scroll;
}

.input-container {
    flex:1;
    display:flex;
    justify-content: stretch;
    align-items: stretch;
}

.input-container span {
    display: flex;
    justify-content: flex-start;
    align-items:center;
    padding: 0.3rem;
    width: 100%;
}

.chatting-input {
    font-size:12px;
    height:100%;
    flex:8;
    border:none;
}

.send-button {
    flex:1;
    background: rebeccapurple;
    color:#fff;
    border:none;
    height:100%;
    border-radius:3px;
}

.chatting-list li {
    width:50%;
    padding:0.3rem;
    display:flex;
    justify-content: flex-start;
    align-items:flex-end;
    margin-top:0.5rem;
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.profile .user {
    font-size: 10px;
    margin-bottom: 0.3rem;
}

.profile .image {
    border-radius: 50%;
    object-fit: cover;
    width: 50px;
    height: 50px;
}

.message {
    border-radius: 5px;
    padding: 0.5rem;
    font-size: 12px;
    margin: 0 5px;
    flex: 10;
}

.time {
    font-size: 10px;
    margin: 0 5px;
}

.sent {
    flex-direction: row-reverse;
    float: right;
}

.sent .message {
    background: #9986EE;
    color: #fff;
}

.received .message {
    background: #fff;
}