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

371 lines
6.6 KiB
SCSS
Raw Normal View History

2015-10-15 09:14:19 +00:00
.zammad-chat {
color: black;
2015-10-15 09:14:19 +00:00
position: fixed;
right: 30px;
bottom: 0;
font-size: 12px;
2015-10-15 09:14:19 +00:00
width: 33em;
box-shadow: 0 3px 10px rgba(0,0,0,.3);
border-radius: 5px 5px 0 0;
2015-10-15 09:14:19 +00:00
will-change: bottom;
display: none;
flex-direction: column;
2015-10-15 09:14:19 +00:00
}
.zammad-chat.zammad-chat-is-open {
display: flex;
2015-10-15 09:14:19 +00:00
}
.zammad-chat-icon {
height: 2em;
fill: currentColor;
vertical-align: top;
margin-right: 5px;
margin-top: 4px;
}
.zammad-chat-header {
padding: 0.5em 2.5em 0.5em 1em;
background: hsl(203,67%,53%);
color: white;
2015-10-15 09:14:19 +00:00
line-height: 2.5em;
box-shadow:
0 -1px rgba(0,0,0,.1),
2015-10-15 09:14:19 +00:00
0 1px rgba(255,255,255,.3) inset,
0 -1px rgba(0,0,0,.1) inset,
2015-10-15 09:14:19 +00:00
0 1px 1px rgba(0,0,0,.13);
position: relative;
border-radius: 5px 5px 0 0;
2015-10-15 09:14:19 +00:00
overflow: hidden;
cursor: pointer;
}
2015-11-11 10:44:10 +00:00
.zammad-chat.zammad-chat-is-open .zammad-chat-header {
cursor: default;
}
2015-10-15 09:14:19 +00:00
.zammad-chat-welcome-text {
font-size: 1.2em;
}
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.5em;
2015-11-11 10:44:10 +00:00
cursor: pointer;
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;
vertical-align: middle;
}
.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,
.zammad-chat.zammad-chat-is-open .zammad-chat-header-icon-open {
2015-10-15 09:14:19 +00:00
display: none;
}
2015-11-11 10:44:10 +00:00
.zammad-chat.zammad-chat-is-open .zammad-chat-header-icon-close {
2015-10-15 09:14:19 +00:00
display: inline;
}
.zammad-chat-agent {
float: left;
}
.zammad-chat-header-controls {
float: right;
}
.zammad-chat-agent-avatar {
border-radius: 100%;
margin-right: 0.6em;
float: left;
width: 2.5em;
}
.zammad-chat-agent-name {
font-weight: bold;
}
.zammad-chat-agent-status {
margin: 0 1em;
display: inline-block;
line-height: 2em;
padding: 0 .7em;
border-radius: 1em;
background: rgba(0,0,0,.1);
box-shadow: 0 0 0 1px rgba(0,0,0,.04);
2015-10-15 09:14:19 +00:00
}
.zammad-chat-agent-status:before {
content: "";
background: hsl(19,90%,51%);
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,.04);
2015-10-15 09:14:19 +00:00
}
.zammad-chat-agent-status[data-status="online"]:before {
background: hsl(145,51%,55%);
}
.zammad-chat-agent-status[data-status="connecting"]:before {
animation: linear connect-fade 600ms infinite alternate;
background: hsl(41,100%,49%);
}
@keyframes connect-fade {
from { opacity: .5; transform: scale(0.6); }
to { opacity: 1; transform: scale(1); }
}
.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: flex;
align-items: center;
justify-content: center;
2015-10-15 09:14:19 +00:00
}
.zammad-chat-modal-text {
2015-10-15 09:14:19 +00:00
font-size: 1.3em;
line-height: 1.45;
.zammad-chat-loading-animation {
font-size: 0.7em;
}
.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-chat-body {
padding: 0.5em 1em;
height: 300px;
overflow: auto;
background: white;
}
.zammad-chat-timestamp {
2015-10-15 09:14:19 +00:00
text-align: center;
color: hsl(0,0%,60%);
font-size: 0.9em;
2015-10-15 09:14:19 +00:00
margin: 1em 0;
}
.zammad-chat-message {
margin: 0.5em 0;
}
.zammad-chat-status,
2015-10-15 09:14:19 +00:00
.zammad-chat-message-body {
2015-11-11 09:24:05 +00:00
padding: 0.5em 1em;
line-height: 1.4;
2015-10-15 09:14:19 +00:00
border-radius: 1em;
background: hsl(0,0%,93%);
2015-10-15 09:14:19 +00:00
display: inline-block;
max-width: 70%;
2015-11-11 09:22:19 +00:00
white-space: pre-line;
word-wrap: break-word;
2015-10-15 09:14:19 +00:00
box-shadow:
0 2px rgba(255,255,255,.15) inset,
0 0 0 1px rgba(0,0,0,.08) inset,
0 1px rgba(0,0,0,.02);
}
.zammad-chat-status {
display: inline-block;
position: relative;
left: 50%;
transform: translateX(-50%);
margin: 1em 0;
background: #eee;
}
2015-10-15 09:14:19 +00:00
.zammad-chat-message--customer {
text-align: right;
}
.zammad-chat-message--customer + .zammad-chat-message--agent,
.zammad-chat-message--agent + .zammad-chat-message--customer {
margin-top: 1em;
}
.zammad-chat-message--customer .zammad-chat-message-body {
background: hsl(203,67%,53%);
color: white;
2015-10-15 09:14:19 +00:00
}
.zammad-chat-message--unread {
font-weight: bold;
}
.zammad-chat-message--typing .zammad-chat-message-body {
white-space: normal;
}
.zammad-chat-loading-animation {
display: inline-block;
}
2015-10-15 09:14:19 +00:00
.zammad-chat-loading-circle {
background: hsl(0,0%, 85%);
2015-10-15 09:14:19 +00:00
border-radius: 100%;
height: 0.72em;
width: 0.72em;
display: inline-block;
animation: ease-in-out load-fade 600ms infinite alternate;
}
.zammad-chat-loading-circle + .zammad-chat-loading-circle {
animation-delay: .13s;
}
.zammad-chat-loading-circle + .zammad-chat-loading-circle + .zammad-chat-loading-circle {
animation-delay: .26s;
}
@keyframes load-fade {
from { opacity: .5; transform: scale(0.6); }
67% { opacity: 1; transform: scale(1); }
}
.zammad-chat-controls {
overflow: hidden;
display: flex;
align-items: flex-start;
border-top: 1px solid hsl(0,0%,93%);
2015-10-15 09:14:19 +00:00
padding: 0;
line-height: 1.4em;
box-shadow:
0 1px rgba(0,0,0,.01),
0 -1px rgba(0,0,0,.02);
position: relative;
background: white;
}
.zammad-chat-input {
float: left;
font-family: inherit;
line-height: inherit;
font-size: inherit;
appearance: none;
border: none;
background: none;
box-shadow: none;
padding: 1em 2em;
2015-10-15 09:14:19 +00:00
outline: none;
resize: none;
flex: 1;
2015-10-15 09:14:19 +00:00
max-height: 6em;
}
.zammad-chat-input::-webkit-input-placeholder {
color: hsl(0,0%,85%);
2015-10-15 09:14:19 +00:00
}
.zammad-chat-button {
2015-10-15 09:14:19 +00:00
appearance: none;
font-family: inherit;
font-size: inherit;
background: hsl(203,67%,53%);
color: white;
2015-10-15 09:14:19 +00:00
padding: 0.6em 1.2em;
margin: 0.5em 1em 0.5em;
cursor: pointer;
border: none;
border-radius: 1.5em;
box-shadow:
0 2px rgba(255,255,255,.25) inset,
0 0 0 1px rgba(0,0,0,.1) inset,
2015-10-15 09:14:19 +00:00
0 1px rgba(0,0,0,.1);
outline: none;
display: inline-block;
}
.zammad-chat-send {
float: right;
2015-10-15 09:14:19 +00:00
}
.zammad-chat-is-hidden {
display: none;
}
.zammad-chat-is-visible {
display: block;
}
/*
# Flat Design
*/
.zammad-chat--flat .zammad-chat-header,
.zammad-chat--flat .zammad-chat-body {
border: none;
}
.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 {
2015-10-15 09:14:19 +00:00
box-shadow: none;
}
/*
Mobile Design
*/
@media only screen and (max-width: 768px) {
.zammad-chat {
left: 0;
right: 0;
width: auto;
height: 100vh;
}
.zammad-chat-body {
height: auto;
flex: 1;
}
.zammad-chat,
.zammad-chat-header {
border-radius: 0 !important;
}
}