2020-04-02 14:36:49 +02:00
|
|
|
#chaticon, #chatbox {
|
2020-04-08 18:14:20 +02:00
|
|
|
visibility: hidden;
|
2020-04-02 14:36:49 +02:00
|
|
|
z-index: 400;
|
2020-03-22 10:17:54 +01:00
|
|
|
position: absolute;
|
|
|
|
bottom: 0px;
|
2020-04-07 12:11:38 +02:00
|
|
|
right: 25px;
|
2020-04-08 18:14:20 +02:00
|
|
|
}
|
|
|
|
#chaticon.visible, #chatbox.visible {
|
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
#chaticon {
|
2020-03-22 10:17:54 +01:00
|
|
|
border-top-left-radius: 5px;
|
|
|
|
border-top-right-radius: 5px;
|
2020-04-02 14:36:49 +02:00
|
|
|
border: 1px solid #ccc;
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
2020-04-08 18:14:20 +02:00
|
|
|
.chat-content {
|
2020-04-02 14:36:49 +02:00
|
|
|
width: 400px;
|
|
|
|
height: 300px;
|
2020-04-08 18:14:20 +02:00
|
|
|
border-top-left-radius: 5px;
|
|
|
|
border-top-right-radius: 5px;
|
|
|
|
display: flex;
|
|
|
|
border: 1px solid #ccc;
|
|
|
|
border-bottom: none;
|
2020-04-02 14:36:49 +02:00
|
|
|
z-index: 401;
|
|
|
|
background-color: #f7f7f7;
|
|
|
|
flex-direction: column;
|
2020-04-08 18:14:20 +02:00
|
|
|
transition: all 0.3s cubic-bezier(0.74, -0.05, 0.27, 1.75);
|
|
|
|
opacity: .3;
|
|
|
|
transform: scale(.5);
|
|
|
|
transform-origin: 100% 100%
|
|
|
|
}
|
|
|
|
#chatbox.visible .chat-content{
|
|
|
|
opacity: 1;
|
|
|
|
transform: scale(1);
|
2020-04-02 14:36:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#chatbox.stickyChat {
|
|
|
|
position: relative;
|
|
|
|
width: auto;
|
|
|
|
flex: 1 auto; /* take reminaning vertical space */
|
|
|
|
height: auto;
|
|
|
|
right: 0;
|
2020-04-08 18:14:20 +02:00
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
#chatbox.stickyChat .chat-content {
|
2020-04-02 14:36:49 +02:00
|
|
|
background-color: #f1f1f1;
|
|
|
|
border-radius: 0;
|
|
|
|
border: none;
|
|
|
|
border-left: 1px solid #ccc;
|
2020-04-08 18:14:20 +02:00
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
2020-04-02 14:36:49 +02:00
|
|
|
}
|
2020-04-08 18:14:20 +02:00
|
|
|
#chatbox.stickyChat .chat-content .stick-to-screen-btn {
|
2020-04-02 14:36:49 +02:00
|
|
|
display: none;
|
|
|
|
}
|
2020-04-08 18:14:20 +02:00
|
|
|
#chatbox.stickyChat.chatAndUsersChat .chat-content .hide-reduce-btn {
|
2020-04-02 14:36:49 +02:00
|
|
|
display:none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* -- TITLE BAR -- */
|
|
|
|
#titlebar {
|
|
|
|
font-weight: bold;
|
|
|
|
padding: 5px;
|
|
|
|
}
|
|
|
|
#titlebar #titlelabel {
|
|
|
|
margin: 4px 0 0 4px;
|
2020-04-06 14:31:07 +02:00
|
|
|
display: inline;
|
2020-04-09 08:40:49 +02:00
|
|
|
font-size: 1.4rem;
|
2020-04-02 14:36:49 +02:00
|
|
|
}
|
|
|
|
#titlebar .stick-to-screen-btn,
|
|
|
|
#titlebar .hide-reduce-btn {
|
|
|
|
font-size: 25px;
|
2020-03-31 19:27:04 +02:00
|
|
|
color: inherit;
|
2020-04-02 14:36:49 +02:00
|
|
|
float: right;
|
|
|
|
text-align: right;
|
|
|
|
text-decoration: none;
|
|
|
|
cursor: pointer;
|
2020-03-22 10:17:54 +01:00
|
|
|
}
|
2020-04-02 14:36:49 +02:00
|
|
|
#titlebar .stick-to-screen-btn {
|
|
|
|
font-size: 10px;
|
|
|
|
padding-top: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* -- MESSAGES -- */
|
2020-03-22 10:17:54 +01:00
|
|
|
#chattext {
|
|
|
|
background-color: white;
|
2020-04-02 14:36:49 +02:00
|
|
|
overflow-y: auto;
|
|
|
|
flex: 1 auto;
|
2020-04-16 17:15:49 +02:00
|
|
|
height: 0; /* strange bug on firefox, if height is not set, the chattext grow bigger than the maximum height */
|
2020-03-22 10:17:54 +01:00
|
|
|
}
|
|
|
|
#chattext p {
|
|
|
|
padding: 3px;
|
|
|
|
overflow-x: hidden;
|
2020-04-02 14:36:49 +02:00
|
|
|
word-wrap: break-word;
|
2020-03-22 10:17:54 +01:00
|
|
|
}
|
2020-04-02 14:36:49 +02:00
|
|
|
#chattext .time {
|
|
|
|
float: right;
|
|
|
|
font-style: italic;
|
|
|
|
font-size: .85rem;
|
|
|
|
opacity: .8;
|
|
|
|
margin-left: 3px;
|
|
|
|
margin-right: 2px;
|
2020-03-22 10:17:54 +01:00
|
|
|
}
|
2020-04-02 14:36:49 +02:00
|
|
|
|
|
|
|
/* -- INPUT BOX -- */
|
2020-03-22 10:17:54 +01:00
|
|
|
#chatinputbox {
|
2020-04-02 14:36:49 +02:00
|
|
|
padding: 5px;
|
2020-03-22 10:17:54 +01:00
|
|
|
}
|
2020-04-02 14:36:49 +02:00
|
|
|
#chatinputbox #chatinput {
|
2020-03-22 10:17:54 +01:00
|
|
|
width: 100%;
|
|
|
|
}
|
2020-04-02 14:36:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
/* -- CHAT ICON -- */
|
2020-03-22 10:17:54 +01:00
|
|
|
#chaticon {
|
|
|
|
background-color: #fff;
|
|
|
|
cursor: pointer;
|
|
|
|
display: none;
|
2020-04-02 14:36:49 +02:00
|
|
|
padding: 5px;
|
2020-03-22 10:17:54 +01:00
|
|
|
}
|
|
|
|
#chaticon a {
|
|
|
|
text-decoration: none
|
|
|
|
}
|
2020-04-02 14:36:49 +02:00
|
|
|
#chaticon #chatlabel {
|
2020-03-22 10:17:54 +01:00
|
|
|
font-weight: bold;
|
|
|
|
text-decoration: none;
|
2020-04-02 14:36:49 +02:00
|
|
|
margin-right: 3px;
|
|
|
|
vertical-align: middle;
|
2020-03-22 10:17:54 +01:00
|
|
|
}
|
2020-04-02 14:36:49 +02:00
|
|
|
#chaticon #chatcounter {
|
|
|
|
font-size: .8rem;
|
|
|
|
vertical-align: middle;
|
2020-04-06 14:31:07 +02:00
|
|
|
margin-left: 5px;
|
2020-03-22 10:17:54 +01:00
|
|
|
}
|
|
|
|
|
2020-04-02 14:36:49 +02:00
|
|
|
/* -- LOAD MESSAGES -- */
|
|
|
|
.chatloadmessages
|
|
|
|
{
|
|
|
|
margin-bottom: 5px;
|
|
|
|
margin-top: 5px;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
display: block;
|
2020-03-22 10:17:54 +01:00
|
|
|
}
|
2020-04-02 14:36:49 +02:00
|
|
|
#chatloadmessagesbutton
|
|
|
|
{
|
|
|
|
line-height: 1.8em;
|
2020-03-22 10:17:54 +01:00
|
|
|
}
|
2020-04-02 14:36:49 +02:00
|
|
|
#chatloadmessagesball
|
|
|
|
{
|
|
|
|
display: none;
|
2020-03-22 10:17:54 +01:00
|
|
|
}
|
2020-03-21 11:19:58 +01:00
|
|
|
|
2020-03-22 10:17:54 +01:00
|
|
|
@media only screen and (max-width: 720px) {
|
|
|
|
#chatbox {
|
2020-04-02 14:36:49 +02:00
|
|
|
right: 0;
|
2020-04-08 18:14:20 +02:00
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
#chatbox .chat-content {
|
|
|
|
width: 100%;
|
2020-03-22 10:17:54 +01:00
|
|
|
}
|
|
|
|
}
|