trabajo-afectivo/public/assets/chat/chat.css

469 lines
8.3 KiB
CSS
Raw Normal View History

2015-10-15 09:14:19 +00:00
.zammad-chat {
color: black;
position: fixed;
right: 30px;
bottom: 0;
font-size: 12px;
width: 33em;
height: 3.5em;
2015-10-15 09:14:19 +00:00
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
border-radius: 5px 5px 0 0;
will-change: bottom;
display: none;
-ms-flex-direction: column;
2015-12-08 11:32:19 +00:00
flex-direction: column;
z-index: 999;
}
@media only screen and (max-width: 768px) {
.zammad-chat {
right: 0;
width: 100%;
border-radius: 0 !important;
font-size: 16px !important;
}
}
.zammad-chat--animate {
transition: transform 500ms;
}
2015-10-15 09:14:19 +00:00
.zammad-chat.zammad-chat-is-loaded {
display: -ms-flexbox;
display: flex;
opacity: 0;
}
.zammad-chat.zammad-chat-is-shown {
opacity: 1;
}
2015-10-15 09:14:19 +00:00
.zammad-chat.zammad-chat-is-open {
height: 30em;
}
@media only screen and (max-width: 768px) {
.zammad-chat.zammad-chat-is-open {
height: 100%;
}
}
2015-10-15 09:14:19 +00:00
.zammad-chat-icon {
height: 2em;
width: 2em;
2015-10-15 09:14:19 +00:00
fill: currentColor;
vertical-align: top;
margin-right: 5px;
margin-top: 4px;
}
2015-10-15 09:14:19 +00:00
.zammad-chat-header {
padding: 0.5em 2.5em 0.5em 1em;
background: #379ad7;
color: white;
line-height: 2.5em;
height: 3.5em;
box-shadow: 0 -1px rgba(0, 0, 0, 0.1), 0 1px rgba(255, 255, 255, 0.3) inset,
0 -1px rgba(0, 0, 0, 0.1) inset, 0 1px 1px rgba(0, 0, 0, 0.13);
2015-10-15 09:14:19 +00:00
position: relative;
border-radius: 5px 5px 0 0;
overflow: hidden;
cursor: pointer;
}
@media only screen and (max-width: 768px) {
.zammad-chat-header {
border-radius: 0 !important;
}
}
2015-11-17 00:43:36 +00:00
2015-11-25 13:47:02 +00:00
.zammad-chat.zammad-chat-is-open .zammad-chat-header {
cursor: default;
}
2015-11-11 10:44:10 +00:00
2015-10-15 09:14:19 +00:00
.zammad-chat-welcome-text {
font-size: 1.2em;
}
2015-10-15 09:14:19 +00:00
2015-11-11 10:44:10 +00:00
.zammad-chat-header-icon {
2015-10-15 09:14:19 +00:00
position: absolute;
right: 0;
top: 0;
height: 100%;
width: 3.4em;
text-align: center;
line-height: 3.4em;
cursor: pointer;
}
.zammad-chat-header-icon::before {
content: '';
display: inline-block;
}
2015-10-15 09:14:19 +00:00
2015-11-11 10:44:10 +00:00
.zammad-chat-header-icon-open,
.zammad-chat-header-icon-close {
2015-10-15 09:14:19 +00:00
fill: currentColor;
2015-11-11 10:44:10 +00:00
width: 1.6em;
height: auto;
vertical-align: middle;
}
2015-11-11 10:44:10 +00:00
.zammad-chat-header-icon-close {
width: 1.3em;
}
2015-10-15 09:14:19 +00:00
2015-11-11 10:44:10 +00:00
.zammad-chat-header-icon-close,
2015-11-25 13:47:02 +00:00
.zammad-chat.zammad-chat-is-open .zammad-chat-header-icon-open {
display: none;
}
2015-10-15 09:14:19 +00:00
2015-11-25 13:47:02 +00:00
.zammad-chat.zammad-chat-is-open .zammad-chat-header-icon-close {
display: inline;
}
2015-10-15 09:14:19 +00:00
.zammad-chat-agent {
float: left;
}
2015-10-15 09:14:19 +00:00
.zammad-chat-header-controls {
float: right;
}
2015-10-15 09:14:19 +00:00
.zammad-chat-agent-avatar {
border-radius: 100%;
margin-right: 0.6em;
float: left;
width: 2.5em;
}
2015-10-15 09:14:19 +00:00
.zammad-chat-agent-name {
font-weight: bold;
}
2015-10-15 09:14:19 +00:00
.zammad-chat-agent-status {
margin: 0.25em 1em;
2015-10-15 09:14:19 +00:00
display: inline-block;
line-height: 2em;
padding: 0 0.7em;
2015-10-15 09:14:19 +00:00
border-radius: 1em;
background: rgba(0, 0, 0, 0.1);
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04) inset;
}
2015-10-15 09:14:19 +00:00
.zammad-chat-agent-status::before {
content: '';
2015-10-15 09:14:19 +00:00
background: #f35912;
display: inline-block;
height: 0.9em;
width: 0.9em;
border-radius: 100%;
position: relative;
margin-right: 0.3em;
vertical-align: middle;
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04) inset;
}
2015-10-15 09:14:19 +00:00
.zammad-chat-agent-status[data-status='online']::before {
background: #52c782;
}
2015-10-15 09:14:19 +00:00
.zammad-chat-agent-status[data-status='connecting']::before {
2015-10-15 09:14:19 +00:00
animation: linear connect-fade 600ms infinite alternate;
background: #faab00;
}
2015-10-15 09:14:19 +00:00
@keyframes connect-fade {
from {
opacity: 0.5;
transform: scale(0.6);
}
2015-10-15 09:14:19 +00:00
to {
opacity: 1;
transform: scale(1);
}
}
2015-10-15 09:14:19 +00:00
.zammad-chat-modal {
2015-10-15 09:14:19 +00:00
position: absolute;
left: 0;
right: 0;
bottom: 0;
top: 3.5em;
2015-10-15 09:14:19 +00:00
margin-top: 1px;
text-align: center;
background: white;
2015-10-15 09:14:19 +00:00
z-index: 1;
padding: 20px;
display: -ms-flexbox;
display: flex;
-ms-flex-align: center;
align-items: center;
-ms-flex-pack: center;
justify-content: center;
}
.zammad-chat-modal:empty {
display: none;
}
2015-10-15 09:14:19 +00:00
.zammad-chat-modal-text {
font-size: 1.3em;
line-height: 1.45;
}
.zammad-chat-modal-text .zammad-chat-loading-animation {
font-size: 0.7em;
}
.zammad-chat-modal-text .zammad-chat-button {
margin-top: 1em;
font-size: 0.8em;
}
2015-10-15 09:14:19 +00:00
.zammad-chat-modal .zammad-chat-loading-animation {
2015-10-15 09:14:19 +00:00
margin-right: 8px;
vertical-align: middle;
}
2015-10-15 09:14:19 +00:00
.zammad-scroll-hint {
background: #f9fafa;
display: -ms-flexbox;
display: flex;
-ms-flex-align: center;
align-items: center;
border-bottom: 1px solid #e8e8e8;
padding: 7px 10px 6px;
color: #999;
cursor: pointer;
}
.zammad-scroll-hint.is-hidden {
display: none;
}
.zammad-scroll-hint-icon {
fill: #c4c7ca;
margin-right: 8px;
}
2015-10-15 09:14:19 +00:00
.zammad-chat-body {
padding: 0.5em 1em;
overflow: auto;
2015-11-17 00:43:36 +00:00
background: white;
-ms-flex: 1;
flex: 1;
display: none;
2019-01-22 06:12:32 +00:00
-webkit-overflow-scrolling: touch;
overscroll-behavior: contain;
}
@media only screen and (max-width: 768px) {
.zammad-chat-body {
height: auto;
-ms-flex: 1;
flex: 1;
}
}
2015-10-15 09:14:19 +00:00
.zammad-chat-is-open .zammad-chat-body {
display: block;
}
.zammad-chat-timestamp {
2015-10-15 09:14:19 +00:00
text-align: center;
color: #999;
font-size: 0.9em;
margin: 1em 0;
}
2015-10-15 09:14:19 +00:00
.zammad-chat-status {
margin: 1em 0;
text-align: center;
}
2015-10-15 09:14:19 +00:00
.zammad-chat-message {
margin: 0.5em 0;
}
.zammad-chat-message-body {
white-space: pre-line;
word-wrap: break-word;
border-radius: 1em;
}
2015-10-15 09:14:19 +00:00
.zammad-chat-status-inner,
2015-10-15 09:14:19 +00:00
.zammad-chat-message-body {
padding: 0.5em 1em;
line-height: 1.4;
background: #ededed;
2015-10-15 09:14:19 +00:00
display: inline-block;
max-width: 70%;
box-shadow: 0 2px rgba(255, 255, 255, 0.15) inset,
0 0 0 1px rgba(0, 0, 0, 0.08) inset, 0 1px rgba(0, 0, 0, 0.02);
}
2015-10-15 09:14:19 +00:00
.zammad-chat-status-inner {
background: #eee;
border-radius: 0.5em;
}
2015-10-15 09:14:19 +00:00
.zammad-chat-message--customer {
text-align: right;
}
2015-10-15 09:14:19 +00:00
.zammad-chat-message--customer + .zammad-chat-message--agent,
.zammad-chat-message--agent + .zammad-chat-message--customer {
margin-top: 1em;
}
2015-10-15 09:14:19 +00:00
.zammad-chat-message--customer .zammad-chat-message-body {
background: #379ad7;
color: white;
}
2015-10-15 09:14:19 +00:00
.zammad-chat-message--unread {
font-weight: bold;
}
2015-10-15 09:14:19 +00:00
.zammad-chat-message--typing .zammad-chat-message-body {
white-space: normal;
}
2015-10-15 09:14:19 +00:00
.zammad-chat-loading-animation {
display: inline-block;
}
2015-10-15 09:14:19 +00:00
.zammad-chat-loading-circle {
background: #d9d9d9;
2015-10-15 09:14:19 +00:00
border-radius: 100%;
2016-07-05 11:00:21 +00:00
height: 0.55em;
width: 0.55em;
2015-10-15 09:14:19 +00:00
display: inline-block;
animation: ease-in-out load-fade 600ms infinite alternate;
}
2015-10-15 09:14:19 +00:00
.zammad-chat-loading-circle + .zammad-chat-loading-circle {
animation-delay: 0.13s;
}
2015-10-15 09:14:19 +00:00
.zammad-chat-loading-circle
+ .zammad-chat-loading-circle
+ .zammad-chat-loading-circle {
animation-delay: 0.26s;
}
2015-10-15 09:14:19 +00:00
@keyframes load-fade {
from {
opacity: 0.5;
transform: scale(0.6);
}
2015-10-15 09:14:19 +00:00
67% {
opacity: 1;
transform: scale(1);
}
}
2015-10-15 09:14:19 +00:00
.zammad-chat-controls {
overflow: hidden;
display: none;
-ms-flex-align: end;
align-items: flex-end;
border-top: 1px solid #ededed;
2015-10-15 09:14:19 +00:00
padding: 0;
2015-11-26 00:09:46 +00:00
margin: 0;
2015-10-15 09:14:19 +00:00
line-height: 1.4em;
box-shadow: 0 1px rgba(0, 0, 0, 0.01), 0 -1px rgba(0, 0, 0, 0.02);
position: relative;
background: white;
}
2015-10-15 09:14:19 +00:00
.zammad-chat-is-open .zammad-chat-controls {
display: -ms-flexbox;
display: flex;
}
2015-10-15 09:14:19 +00:00
.zammad-chat-input {
2015-11-26 09:29:29 +00:00
margin: 0;
2015-11-26 09:37:49 +00:00
padding: 1em 2em;
2015-10-15 09:14:19 +00:00
float: left;
2015-11-26 09:37:49 +00:00
max-height: 6em;
min-height: 1.4em;
2015-10-15 09:14:19 +00:00
font-family: inherit;
line-height: 1.4em;
2015-10-15 09:14:19 +00:00
font-size: inherit;
-webkit-appearance: none;
-moz-appearance: none;
2015-10-15 09:14:19 +00:00
appearance: none;
border: none;
2015-10-15 09:14:19 +00:00
background: none;
box-shadow: none;
box-sizing: content-box;
2015-10-15 09:14:19 +00:00
outline: none;
-ms-flex: 1;
flex: 1;
overflow: auto;
}
2015-10-15 09:14:19 +00:00
.zammad-chat-input::-webkit-input-placeholder {
color: #d9d9d9;
}
2015-10-15 09:14:19 +00:00
.zammad-chat-button {
2015-10-15 09:14:19 +00:00
-webkit-appearance: none;
-moz-appearance: none;
2015-10-15 09:14:19 +00:00
appearance: none;
font-family: inherit;
font-size: inherit;
2015-11-26 09:29:29 +00:00
line-height: initial;
2015-10-15 09:14:19 +00:00
background: #379ad7;
color: white;
2015-11-26 09:59:56 +00:00
padding: 0.5em 1.2em;
margin: 0.63em 1em;
2015-10-15 09:14:19 +00:00
cursor: pointer;
border: none;
border-radius: 1.5em;
box-shadow: 0 2px rgba(255, 255, 255, 0.25) inset,
0 0 0 1px rgba(0, 0, 0, 0.1) inset, 0 1px rgba(0, 0, 0, 0.1);
outline: none;
display: inline-block;
}
.zammad-chat-send {
float: right;
}
2015-10-15 09:14:19 +00:00
2015-12-08 11:32:19 +00:00
.zammad-chat-button:disabled,
.zammad-chat-input:disabled {
cursor: not-allowed;
opacity: 0.3;
}
2015-12-08 11:32:19 +00:00
2015-10-15 09:14:19 +00:00
.zammad-chat-is-hidden {
display: none;
}
2015-10-15 09:14:19 +00:00
/*
# Flat Design
*/
.zammad-chat--flat .zammad-chat-header,
.zammad-chat--flat .zammad-chat-body {
border: none;
}
2015-10-15 09:14:19 +00:00
.zammad-chat--flat .zammad-chat-header {
box-shadow: none;
}
2015-10-15 09:14:19 +00:00
.zammad-chat--flat .zammad-chat-message-body {
box-shadow: none;
}
2015-10-15 09:14:19 +00:00
.zammad-chat--flat .zammad-chat-agent-status,
.zammad-chat--flat .zammad-chat-button,
.zammad-chat--flat .zammad-chat-status {
box-shadow: none;
}