You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
177 lines
2.6 KiB
177 lines
2.6 KiB
|
|
#messages-container { |
|
overflow: auto; |
|
padding: 1em 0; |
|
} |
|
|
|
#message-input-container { |
|
width: 100%; |
|
padding: 1em; |
|
} |
|
|
|
#message-form { |
|
flex-direction: column; |
|
align-items: flex-end; |
|
margin-bottom: 0; |
|
} |
|
|
|
|
|
|
|
#message-form-actions { |
|
flex-direction: row; |
|
justify-content: space-between; |
|
align-items: center; |
|
width: 100%; |
|
} |
|
|
|
#message-form-actions-buttons { |
|
flex-direction: row; |
|
justify-content: flex-end; |
|
align-items: center; |
|
} |
|
|
|
/* Emoji picker button */ |
|
#emoji-button { |
|
font-size: 1.75em; |
|
cursor: pointer; |
|
margin-right: .5em; |
|
} |
|
.emoji-picker__emoji { |
|
border-radius: 10px; |
|
} |
|
|
|
|
|
.message { |
|
padding: .85em; |
|
align-items: flex-start; |
|
} |
|
.message-avatar { |
|
margin-right: .75em; |
|
} |
|
.message-avatar img { |
|
max-width: unset; |
|
height: 3.0em; |
|
width: 3.0em; |
|
padding: 5px; |
|
} |
|
|
|
.message-content { |
|
font-size: .85em; |
|
max-width: 85%; |
|
word-wrap: break-word; |
|
} |
|
|
|
|
|
|
|
|
|
/* MESSAGE TEXT CONTENT */ |
|
/* MESSAGE TEXT CONTENT */ |
|
/* MESSAGE TEXT CONTENT */ |
|
.message-text a { |
|
color: #7F9CF5; /* indigo-400 */ |
|
} |
|
.message-text a:hover { |
|
text-decoration: underline; |
|
} |
|
|
|
.message-text img { |
|
display: inline; |
|
padding-left: 5px; |
|
padding-right: 5px; |
|
} |
|
|
|
.message-text code { |
|
background-color:darkslategrey; |
|
padding: 3px; |
|
} |
|
|
|
.message-text .emoji { |
|
width: 60px; |
|
} |
|
|
|
|
|
.message-text iframe { |
|
width: 100%; |
|
height: 170px; |
|
border-radius: 15px; |
|
} |
|
|
|
.message-text .instagram-embed { |
|
height: 314px; |
|
} |
|
|
|
.message-text .embedded-image { |
|
width: 100%; |
|
height: 170px; |
|
border-radius: 15px; |
|
} |
|
|
|
.message-text .highlighted { |
|
color: orange; |
|
font-weight: 400; |
|
font-size: 14px; |
|
} |
|
/* MESSAGE TEXT CONTENT */ |
|
/* MESSAGE TEXT CONTENT */ |
|
/* MESSAGE TEXT CONTENT */ |
|
/* MESSAGE TEXT CONTENT */ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* |
|
The chat input has a fake placeholder that is styled below. |
|
It pulls the placeholder text from the div's placeholder attribute. |
|
But really it's just the innerHTML content. |
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#message-body-form { |
|
font-size: 1em; |
|
height: 60px; |
|
} |
|
#message-body-form:disabled{ |
|
opacity: .5; |
|
} |
|
#message-body-form img { |
|
display: inline; |
|
padding-left: 5px; |
|
padding-right: 5px; |
|
} |
|
|
|
#message-body-form .emoji { |
|
width: 40px; |
|
} |
|
|
|
|
|
/* If the div is empty then show the placeholder */ |
|
#message-body-form:empty:before{ |
|
content: attr(placeholder); |
|
pointer-events: none; |
|
display: block; /* For Firefox */ |
|
|
|
/* Style the div's placeholder text color */ |
|
color: rgba(0, 0, 0, 0.5); |
|
} |
|
|
|
/* When chat is enabled (contenteditable=true) */ |
|
#message-body-form[contenteditable=true]:before { |
|
opacity: 1.0; |
|
} |
|
|
|
|
|
/* When chat is disabled (contenteditable=false) chat input div should appear disabled. */ |
|
#message-body-form[contenteditable=false] { |
|
opacity: 0.6; |
|
} |
|
|
|
|
|
|
|
|