NDOJ/resources/chatbox.scss
2023-02-07 23:14:48 -06:00

236 lines
4.3 KiB
SCSS

.chat {
background: white;
}
#chat-log p {
margin: 0;
padding-top: 0.1em;
padding-bottom: 0.1em;
overflow-wrap: anywhere;
}
.chatbtn_remove_mess {
float: right;
margin-right: 1em;
}
#emoji-button {
position: absolute;
right: 1em;
font-size: 2em;
color: lightgray;
}
#emoji-button:hover {
color: gray;
}
#chat-log {
padding: 0;
padding-top: 2em;
width: 100%;
font-size: 14px;
}
#chat-log li {
list-style-type: none;
margin: 0.5em;
}
#chat-submit {
margin-top: 1em;
}
.big-emoji {
font-size: 16px;
}
#chat-online {
border-right: 1px solid #ccc;
padding-bottom: 0 !important;
min-width: 25%;
border-bottom: 0;
}
#chat-online-content {
margin-top: 0.5em;
margin-bottom: 0;
overflow: hidden;
overflow-wrap: break-word;
overflow-y: auto;
max-height: 77vh;
}
#chat-box {
/*border: 1px solid #ccc;*/
/*border-top-right-radius: 4px;*/
width: 100%;
overflow: hidden;
overflow-wrap: break-word;
overflow-y: scroll;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
height: 75%;
}
#chat-input {
width: 100%;
padding: 0.4em 4em 0.6em 1.2em;
border: 0;
color: black;
border-top-left-radius: 0;
border-top-right-radius: 0;
height: 100%;
font-size: 16px;
}
#chat-online-content {
padding: 0;
width: 100%;
}
@media (min-width: 800px) {
#chat-container {
display: flex;
width: 100%;
height: 90vh;
border: 1px solid #ccc;
/*border-radius: 0 4px 0 0;*/
border-bottom: 0;
}
#chat-online {
margin: 0;
}
.chat-left-panel, .chat-right-panel {
display: block !important;
}
}
#chat-input, #chat-log .content-message {
font-family: "Noto Sans", Arial, "Lucida Grande", sans-serif;
}
.info-pic {
height: 90%;
border-radius: 50%;
padding: 0.05em;
border: 0.1px solid #ccc;
margin-left: 3em;
margin-bottom: 1.5px;
}
.info-circle {
position: absolute;
cx: 86%;
cy: 80%;
r: 6px;
stroke: white;
stroke-width: 1;
}
.info-name {
margin-left: 10px;
font-size: 2em;
font-weight: bold !important;
display: flex;
}
.info-name a {
display: table-caption;
}
#chat-info {
border-bottom: 2px solid darkgray;
display: flex;
}
#refresh-button {
padding: 0;
margin-left: auto;
margin-right: 0.3em;
background: transparent;
border: none;
height: 1.5em;
width: 1.5em;
}
#refresh-button:hover {
background: lightgreen;
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
transition: 1.5s ease-in-out;
}
.status-pic {
height: 1.3em;
width: 1.3em;
border-radius: 0.3em;
}
.status-container {
position: relative;
display: inline-flex;
}
.status-circle {
position: absolute;
bottom: 0;
right: 0;
cx: 18px;
cy: 18px;
r: 4.5px;
stroke: white;
stroke-width: 1;
}
.status-row {
display: flex;
font-size: 15px;
padding: 0.2em 0.2em 0.2em 1em;
border-radius: 4px;
}
.status-row:hover {
background: lightgray;
cursor: pointer;
}
.status-list {
padding: 0;
}
.status-section-title {
cursor: pointer;
margin-top: 0.5em;
}
.message-text {
padding: 0.4em 0.6em 0.5em;
border-radius: 15px;
max-width: 70%;
width: fit-content;
}
.message-text-other {
background: #eeeeee;
color: black;
}
.message-text-myself {
background: rgb(0, 132, 255);
color: white;
}
.chat {
.active-span {
margin-top: 1em;
margin-right: 1em;
color: #636363;
}
.unread-count {
float: right;
color: white;
background-color: darkcyan;
border-radius: 2px;
padding: 0 0.5em;
}
#setting-content {
display: none;
position: absolute;
background-color: #f1f1f1;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
right: 0;
}
#setting-content li {
padding: 12px 16px;
text-decoration: none;
display: block;
color: black;
font-weight: bold;
}
#setting-content li:hover {
background-color: #ddd;
cursor: pointer;
}
}
@media (max-width: 799px) {
#chat-area {
height: 500px;
}
#emoji-button {
display: none;
}
}