chat.css 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408
  1. .zammad-chat {
  2. color: black;
  3. position: fixed;
  4. right: 30px;
  5. bottom: 0;
  6. font-size: 12px;
  7. width: 33em;
  8. height: 3.5em;
  9. box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  10. border-radius: 5px 5px 0 0;
  11. will-change: bottom;
  12. display: none;
  13. -webkit-flex-direction: column;
  14. -ms-flex-direction: column;
  15. flex-direction: column;
  16. z-index: 999; }
  17. @media only screen and (max-width: 768px) {
  18. .zammad-chat {
  19. right: 0;
  20. width: 100%;
  21. border-radius: 0 !important;
  22. font-size: 16px; } }
  23. .zammad-chat.zammad-chat-is-loaded {
  24. display: -webkit-flex;
  25. display: -ms-flexbox;
  26. display: flex;
  27. opacity: 0; }
  28. .zammad-chat.zammad-chat-is-shown {
  29. opacity: 1; }
  30. .zammad-chat.zammad-chat-is-open {
  31. height: 30em; }
  32. @media only screen and (max-width: 768px) {
  33. .zammad-chat.zammad-chat-is-open {
  34. height: 100%; } }
  35. .zammad-chat-icon {
  36. height: 2em;
  37. width: 2em;
  38. fill: currentColor;
  39. vertical-align: top;
  40. margin-right: 5px;
  41. margin-top: 4px; }
  42. .zammad-chat-header {
  43. padding: 0.5em 2.5em 0.5em 1em;
  44. background: #379ad7;
  45. color: white;
  46. line-height: 2.5em;
  47. 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);
  48. position: relative;
  49. border-radius: 5px 5px 0 0;
  50. overflow: hidden;
  51. cursor: pointer; }
  52. @media only screen and (max-width: 768px) {
  53. .zammad-chat-header {
  54. border-radius: 0 !important; } }
  55. .zammad-chat.zammad-chat-is-open .zammad-chat-header {
  56. cursor: default; }
  57. .zammad-chat-welcome-text {
  58. font-size: 1.2em; }
  59. .zammad-chat-header-icon {
  60. position: absolute;
  61. right: 0;
  62. top: 0;
  63. height: 100%;
  64. width: 3.4em;
  65. text-align: center;
  66. line-height: 3.5em;
  67. cursor: pointer; }
  68. .zammad-chat-header-icon-open,
  69. .zammad-chat-header-icon-close {
  70. fill: currentColor;
  71. width: 1.6em;
  72. height: auto;
  73. vertical-align: middle; }
  74. .zammad-chat-header-icon-close {
  75. width: 1.3em; }
  76. .zammad-chat-header-icon-close,
  77. .zammad-chat.zammad-chat-is-open .zammad-chat-header-icon-open {
  78. display: none; }
  79. .zammad-chat.zammad-chat-is-open .zammad-chat-header-icon-close {
  80. display: inline; }
  81. .zammad-chat-agent {
  82. float: left; }
  83. .zammad-chat-header-controls {
  84. float: right; }
  85. .zammad-chat-agent-avatar {
  86. border-radius: 100%;
  87. margin-right: 0.6em;
  88. float: left;
  89. width: 2.5em; }
  90. .zammad-chat-agent-name {
  91. font-weight: bold; }
  92. .zammad-chat-agent-status {
  93. margin: 0 1em;
  94. display: inline-block;
  95. line-height: 2em;
  96. padding: 0 .7em;
  97. border-radius: 1em;
  98. background: rgba(0, 0, 0, 0.1);
  99. box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04) inset; }
  100. .zammad-chat-agent-status:before {
  101. content: "";
  102. background: #f35912;
  103. display: inline-block;
  104. height: 0.9em;
  105. width: 0.9em;
  106. border-radius: 100%;
  107. position: relative;
  108. margin-right: 0.3em;
  109. vertical-align: middle;
  110. box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04) inset; }
  111. .zammad-chat-agent-status[data-status="online"]:before {
  112. background: #52c782; }
  113. .zammad-chat-agent-status[data-status="connecting"]:before {
  114. -webkit-animation: linear connect-fade 600ms infinite alternate;
  115. animation: linear connect-fade 600ms infinite alternate;
  116. background: #faab00; }
  117. @-webkit-keyframes connect-fade {
  118. from {
  119. opacity: .5;
  120. -webkit-transform: scale(0.6);
  121. transform: scale(0.6); }
  122. to {
  123. opacity: 1;
  124. -webkit-transform: scale(1);
  125. transform: scale(1); } }
  126. @keyframes connect-fade {
  127. from {
  128. opacity: .5;
  129. -webkit-transform: scale(0.6);
  130. transform: scale(0.6); }
  131. to {
  132. opacity: 1;
  133. -webkit-transform: scale(1);
  134. transform: scale(1); } }
  135. .zammad-chat-modal {
  136. position: absolute;
  137. left: 0;
  138. right: 0;
  139. bottom: 0;
  140. top: 3.5em;
  141. margin-top: 1px;
  142. text-align: center;
  143. background: white;
  144. z-index: 1;
  145. padding: 20px;
  146. display: -webkit-flex;
  147. display: -ms-flexbox;
  148. display: flex;
  149. -webkit-align-items: center;
  150. -ms-flex-align: center;
  151. align-items: center;
  152. -webkit-justify-content: center;
  153. -ms-flex-pack: center;
  154. justify-content: center; }
  155. .zammad-chat-modal:empty {
  156. display: none; }
  157. .zammad-chat-modal-text {
  158. font-size: 1.3em;
  159. line-height: 1.45; }
  160. .zammad-chat-modal-text .zammad-chat-loading-animation {
  161. font-size: 0.7em; }
  162. .zammad-chat-modal-text .zammad-chat-button {
  163. margin-top: 1em;
  164. font-size: 0.8em; }
  165. .zammad-chat-modal .zammad-chat-loading-animation {
  166. margin-right: 8px;
  167. vertical-align: middle; }
  168. .zammad-scroll-hint {
  169. background: #f9fafa;
  170. display: -webkit-flex;
  171. display: -ms-flexbox;
  172. display: flex;
  173. -webkit-align-items: center;
  174. -ms-flex-align: center;
  175. align-items: center;
  176. border-bottom: 1px solid #e8e8e8;
  177. padding: 7px 10px 6px;
  178. color: #999999;
  179. cursor: pointer; }
  180. .zammad-scroll-hint.is-hidden {
  181. display: none; }
  182. .zammad-scroll-hint-icon {
  183. fill: #c4c7ca;
  184. margin-right: 8px; }
  185. .zammad-chat-body {
  186. padding: 0.5em 1em;
  187. overflow: auto;
  188. background: white;
  189. -webkit-flex: 1;
  190. -ms-flex: 1;
  191. flex: 1;
  192. display: none;
  193. -webkit-overflow-scrolling: touch; }
  194. @media only screen and (max-width: 768px) {
  195. .zammad-chat-body {
  196. height: auto;
  197. -webkit-flex: 1;
  198. -ms-flex: 1;
  199. flex: 1; } }
  200. .zammad-chat-is-open .zammad-chat-body {
  201. display: block; }
  202. .zammad-chat-timestamp {
  203. text-align: center;
  204. color: #999999;
  205. font-size: 0.9em;
  206. margin: 1em 0; }
  207. .zammad-chat-status {
  208. margin: 1em 0;
  209. text-align: center; }
  210. .zammad-chat-message {
  211. margin: 0.5em 0; }
  212. .zammad-chat-message-body {
  213. white-space: pre-line;
  214. word-wrap: break-word;
  215. border-radius: 1em; }
  216. .zammad-chat-status-inner,
  217. .zammad-chat-message-body {
  218. padding: 0.5em 1em;
  219. line-height: 1.4;
  220. background: #ededed;
  221. display: inline-block;
  222. max-width: 70%;
  223. 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); }
  224. .zammad-chat-status-inner {
  225. background: #eee;
  226. border-radius: .5em; }
  227. .zammad-chat-message--customer {
  228. text-align: right; }
  229. .zammad-chat-message--customer + .zammad-chat-message--agent,
  230. .zammad-chat-message--agent + .zammad-chat-message--customer {
  231. margin-top: 1em; }
  232. .zammad-chat-message--customer .zammad-chat-message-body {
  233. background: #379ad7;
  234. color: white; }
  235. .zammad-chat-message--unread {
  236. font-weight: bold; }
  237. .zammad-chat-message--typing .zammad-chat-message-body {
  238. white-space: normal; }
  239. .zammad-chat-loading-animation {
  240. display: inline-block; }
  241. .zammad-chat-loading-circle {
  242. background: #d9d9d9;
  243. border-radius: 100%;
  244. height: 0.55em;
  245. width: 0.55em;
  246. display: inline-block;
  247. -webkit-animation: ease-in-out load-fade 600ms infinite alternate;
  248. animation: ease-in-out load-fade 600ms infinite alternate; }
  249. .zammad-chat-loading-circle + .zammad-chat-loading-circle {
  250. -webkit-animation-delay: .13s;
  251. animation-delay: .13s; }
  252. .zammad-chat-loading-circle + .zammad-chat-loading-circle + .zammad-chat-loading-circle {
  253. -webkit-animation-delay: .26s;
  254. animation-delay: .26s; }
  255. @-webkit-keyframes load-fade {
  256. from {
  257. opacity: .5;
  258. -webkit-transform: scale(0.6);
  259. transform: scale(0.6); }
  260. 67% {
  261. opacity: 1;
  262. -webkit-transform: scale(1);
  263. transform: scale(1); } }
  264. @keyframes load-fade {
  265. from {
  266. opacity: .5;
  267. -webkit-transform: scale(0.6);
  268. transform: scale(0.6); }
  269. 67% {
  270. opacity: 1;
  271. -webkit-transform: scale(1);
  272. transform: scale(1); } }
  273. .zammad-chat-controls {
  274. overflow: hidden;
  275. display: none;
  276. -webkit-align-items: flex-end;
  277. -ms-flex-align: end;
  278. align-items: flex-end;
  279. border-top: 1px solid #ededed;
  280. padding: 0;
  281. margin: 0;
  282. line-height: 1.4em;
  283. box-shadow: 0 1px rgba(0, 0, 0, 0.01), 0 -1px rgba(0, 0, 0, 0.02);
  284. position: relative;
  285. background: white; }
  286. .zammad-chat-is-open .zammad-chat-controls {
  287. display: -webkit-flex;
  288. display: -ms-flexbox;
  289. display: flex; }
  290. .zammad-chat-input {
  291. margin: 0;
  292. padding: 1em 2em;
  293. float: left;
  294. max-height: 6em;
  295. min-height: 1.4em;
  296. font-family: inherit;
  297. line-height: 1.4em;
  298. font-size: inherit;
  299. -webkit-appearance: none;
  300. -moz-appearance: none;
  301. appearance: none;
  302. border: none;
  303. background: none;
  304. box-shadow: none;
  305. box-sizing: content-box;
  306. outline: none;
  307. -webkit-flex: 1;
  308. -ms-flex: 1;
  309. flex: 1;
  310. overflow: auto; }
  311. .zammad-chat-input::-webkit-input-placeholder {
  312. color: #d9d9d9; }
  313. .zammad-chat-button {
  314. -webkit-appearance: none;
  315. -moz-appearance: none;
  316. appearance: none;
  317. font-family: inherit;
  318. font-size: inherit;
  319. line-height: initial;
  320. background: #379ad7;
  321. color: white;
  322. padding: 0.5em 1.2em;
  323. margin: 0.63em 1em;
  324. cursor: pointer;
  325. border: none;
  326. border-radius: 1.5em;
  327. 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);
  328. outline: none;
  329. display: inline-block; }
  330. .zammad-chat-send {
  331. float: right; }
  332. .zammad-chat-button:disabled,
  333. .zammad-chat-input:disabled {
  334. opacity: 0.3; }
  335. .zammad-chat-is-hidden {
  336. display: none; }
  337. /*
  338. # Flat Design
  339. */
  340. .zammad-chat--flat .zammad-chat-header,
  341. .zammad-chat--flat .zammad-chat-body {
  342. border: none; }
  343. .zammad-chat--flat .zammad-chat-header {
  344. box-shadow: none; }
  345. .zammad-chat--flat .zammad-chat-message-body {
  346. box-shadow: none; }
  347. .zammad-chat--flat .zammad-chat-agent-status,
  348. .zammad-chat--flat .zammad-chat-button,
  349. .zammad-chat--flat .zammad-chat-status {
  350. box-shadow: none; }