chatUI.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513
  1. * {
  2. margin: 0px;
  3. padding: 0px;
  4. border: none;
  5. outline: none;
  6. }
  7. *, ::after, ::before {
  8. box-sizing: border-box;
  9. }
  10. body {
  11. margin: 0;
  12. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  13. /*font-size: 1rem;
  14. font-weight: 400;
  15. line-height: 1.5;
  16. color: #212529;*/
  17. text-align: left;
  18. background-color: #fff;
  19. }
  20. html {
  21. font-family: sans-serif;
  22. line-height: 1.15;
  23. -webkit-text-size-adjust: 100%;
  24. -ms-text-size-adjust: 100%;
  25. -ms-overflow-style: scrollbar;
  26. -webkit-tap-highlight-color: transparent;
  27. }
  28. [type=reset], [type=submit], button, html [type=button] {
  29. -webkit-appearance: button;
  30. }
  31. input, button, select, textarea {
  32. font-weight: 400;
  33. font-size: 15px;
  34. }
  35. button, select {
  36. text-transform: none;
  37. }
  38. button, input {
  39. overflow: visible;
  40. }
  41. button, input, optgroup, select, textarea {
  42. margin: 0;
  43. font-family: inherit;
  44. font-size: inherit;
  45. line-height: inherit;
  46. }
  47. button {
  48. border-radius: 0;
  49. }
  50. /*=========================*/
  51. #chatbot-div {
  52. box-shadow: rgba(33, 33, 33, 0.12) 0px 16px 24px 2px, rgba(33, 33, 33, 0.08) 0px 6px 30px 5px, rgba(33, 33, 33, 0.04) 0px 6px 10px -5px;
  53. border-radius: 16px !important;
  54. overflow: hidden;
  55. }
  56. #cb-chatbot, #cb-chatbot-test {
  57. position: fixed;
  58. display: none;
  59. right: 20px;
  60. bottom: 120px;
  61. z-index: 9999;
  62. width: 400px;
  63. height: 640px;
  64. background: white;
  65. overflow: scroll;
  66. border-radius: 0.25rem;
  67. }
  68. #cb-chatbot.zoom-in {
  69. width: 740px;
  70. height: 720px;
  71. }
  72. #cb-container {
  73. font-size: 14px;
  74. width: 100%;
  75. height: 100%;
  76. overflow: hidden;
  77. line-height: 1.43;
  78. }
  79. #zoom-btn, #close-btn {
  80. cursor: pointer;
  81. }
  82. #cb-chatbot-button {
  83. cursor: pointer;
  84. position: fixed;
  85. right: 24px;
  86. bottom: 24px;
  87. z-index: 2;
  88. width: 48px;
  89. height: 48px;
  90. font-size: 15px;
  91. color: white;
  92. line-height: 48px;
  93. text-align: center;
  94. border-radius: 50%;
  95. background: #71609b;
  96. -webkit-animation: mahmud 2s infinite;
  97. animation: mahmud 2s infinite;
  98. transition: all linear .3s;
  99. -webkit-transition: all linear .3s;
  100. -moz-transition: all linear .3s;
  101. -ms-transition: all linear .3s;
  102. -o-transition: all linear .3s;
  103. }
  104. #cb-chatbot-button.active .cb-sc-krNlru {
  105. background: url("./assets/Icon-Close.png") no-repeat;
  106. }
  107. .cb-sc-krNlru{
  108. background: url("./assets/Icon-Logo.png") no-repeat;
  109. background-position: center center !important;
  110. width: 48px !important;
  111. height: 48px !important;
  112. color: white !important;
  113. }
  114. #cb-container ::-webkit-scrollbar {
  115. width: 5px;
  116. height: 3px;
  117. border-left: 0;
  118. background: rgba(0, 0, 0, 0.1)
  119. }
  120. #cb-container ::-webkit-scrollbar-track {
  121. background: none
  122. }
  123. #cb-container ::-webkit-scrollbar-thumb {
  124. background: #6C6C6C;
  125. border-radius: 0
  126. }
  127. #cb-container *:focus {
  128. outline: none;
  129. inline: none
  130. }
  131. #cb-container * {
  132. box-sizing: border-box
  133. }
  134. #cb-flow {
  135. width: 100% !important;
  136. height: calc(100% - 200px)!important;/*563px; 100vh;*/
  137. overflow-y: auto !important;
  138. overflow-x: hidden !important;
  139. margin-top: 20px !important;
  140. margin-bottom: 20px !important;
  141. }
  142. #cb-flow > .cb-inner {
  143. padding-top: 100%;
  144. margin: 0 20px !important;
  145. }
  146. #cb-input {
  147. position: absolute;
  148. bottom: 0;
  149. width: 100%;
  150. text-align: center;
  151. height: 80px /*77px*/;
  152. }
  153. #cb-input #cb-input-container {
  154. display: block;
  155. margin: 10px; margin-top:20px;
  156. }
  157. #cb-input input {
  158. width: 100%;
  159. display: block;
  160. background: #f0f0f0;
  161. box-shadow: 0 0 0 rgba(58, 58, 58, 0);
  162. border-radius: 40px;
  163. font-size: 1em;
  164. padding: 8px 42px 8px 16px;
  165. height: 40px;
  166. color: rgba(34, 34, 34, 0.6);
  167. border-style: none;
  168. transition: box-shadow 0.75s cubic-bezier(0.215, 0.61, 0.355, 1), color 0.75s cubic-bezier(0.215, 0.61, 0.355, 1), transform 375ms cubic-bezier(0.175, 0.885, 0.32, 1.275) 0s, opacity 375ms cubic-bezier(0.215, 0.61, 0.355, 1) 0s
  169. }
  170. #cb-input input:focus {
  171. box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
  172. background: none;
  173. }
  174. #cb-input button {
  175. float: right;
  176. width: 30px;
  177. height: 30px;
  178. margin-top: -45px;
  179. margin-right: 15px;
  180. border-width: 2px;
  181. border-color: #D9D9D9;
  182. border-style: solid;
  183. border-image: none;
  184. background-color: #fff;
  185. color: #D9D9D9;
  186. border-radius: 100px;
  187. transition: background-color 0.75s cubic-bezier(0.215, 0.61, 0.355, 1);
  188. cursor: pointer
  189. }
  190. .cb-segment {
  191. padding:10px 0; clear: both
  192. }
  193. .cb-segment.cb-bot .cb-icon, .cb-segment.cb-bot .cb-bubble, .bubble-ctn-bot {
  194. float: left
  195. }
  196. .cb-segment.cb-human .cb-icon, .cb-segment.cb-human .cb-bubble-input, .cb-segment.cb-human .bubble-ctn-human {
  197. float: right
  198. }
  199. .cb-icon {
  200. display: block;
  201. width: 36px;
  202. height: 36px;
  203. border-radius: 100px
  204. }
  205. .cb-bubble.human {
  206. float: right;
  207. width:calc(100% - 46px);
  208. }
  209. .cb-bot .cb-icon, #cb-header .cb-icon {
  210. background: url("./assets/Icon-Robot.svg") no-repeat;
  211. background-position: center center;
  212. background-color: #71609b;
  213. margin-right: 10px
  214. }
  215. #cb-header .cb-icon {
  216. margin-right: 0;
  217. }
  218. .cb-human .cb-icon {
  219. background: url("./assets/Icon-Human.svg") no-repeat;
  220. background-position: center;
  221. background-color: #75FABF;
  222. margin-left: 10px
  223. }
  224. .cb-bubble {
  225. font-family: Helvetica, Arial, sans-serif !important;
  226. color: #3A3A3A !important;
  227. border-radius: 100px !important;
  228. }
  229. .cb-bubble.bot {
  230. width:calc(100% - 46px);
  231. }
  232. .cb-bubble.bot .bubble-ctn-bot {
  233. width:auto;
  234. background-color: #E6E6E6 !important;
  235. color: #3A3A3A !important;
  236. border-radius:20px !important;
  237. transform: translateX(0px);
  238. padding: 6px 12px;
  239. }
  240. .cb-bubble-type-select .cb-bubble.bot, .cb-bubble-type-select .cb-bubble.human {
  241. background-color: transparent
  242. }
  243. .cb-bubble > .cb-inner {
  244. margin: 0;
  245. padding: 10px 0;
  246. }
  247. .cb-inner {
  248. padding-top: 0 !important;
  249. }
  250. .cb-bubble p {
  251. margin: 0;
  252. opacity: 0;
  253. display: inline;
  254. font-size: 14px;
  255. color: black !important;
  256. }
  257. .cb-segment hr {
  258. clear: both;
  259. display: blocK;
  260. visibility: hidden;
  261. width: 100%;
  262. margin-top: 10px
  263. }
  264. .cb-bot .cb-bubble {
  265. }
  266. .cb-bubble .bubble-ctn-human {
  267. background-color: #fff;
  268. border-bottom-right-radius: 0px;
  269. /*text-align: right;*/
  270. transform: translateX(0px);
  271. border: 2px solid #75FABF;
  272. border-radius: 2em;
  273. padding: 6px 12px;
  274. }
  275. .cb-bubble .bubble-ctn-bot {
  276. padding: 8px 12px;
  277. /*max-width: 314px;*/
  278. }
  279. .cb-waiting {
  280. width: 70px;
  281. padding: 5px
  282. }
  283. @keyframes wave {
  284. 0%, 60%, 100% {
  285. transform: initial
  286. }
  287. 30% {
  288. transform: translateY(-5px);
  289. background: #98979C
  290. }
  291. }
  292. .cb-waiting .circle {
  293. display: inline-block;
  294. width: 11px;
  295. height: 11px;
  296. background-color: #AFAFB2;
  297. border-radius: 100px;
  298. padding: 5px;
  299. animation: wave 1.3s ease-in-out infinite
  300. }
  301. .cb-waiting .circle:nth-child(1) {
  302. margin-left: 8px
  303. }
  304. .cb-waiting .circle:nth-child(2) {
  305. animation-delay: -1.1s;
  306. margin-left: 5px
  307. }
  308. .cb-waiting .circle:nth-child(3) {
  309. animation-delay: -0.9s;
  310. margin-left: 5px
  311. }
  312. .cb-choice {
  313. flex: 1;
  314. display: inline-block;
  315. text-align: center;
  316. cursor: pointer;
  317. border: 2px solid #75FABF;
  318. border-radius: 2em;
  319. padding: 6px 12px;
  320. margin-left: 10px;
  321. font-family: Helvetica, Arial, sans-serif;
  322. transition: all 0.75s cubic-bezier(0.215, 0.61, 0.355, 1)
  323. }
  324. .cb-choice:hover, .cb-choice.cb-active {
  325. background-color: #75FABF;
  326. color: #000;
  327. transform: translateY(3px)
  328. }
  329. .cb-choice:before {
  330. content: '';
  331. display: inline-block;
  332. height: 0.75em;
  333. width: 0.7em;
  334. background-color: #75FABF;
  335. border-radius: 100px;
  336. margin-right: 7px;
  337. transition: all 0.75s cubic-bezier(0.215, 0.61, 0.355, 1)
  338. }
  339. .cb-choice:hover:before, .cb-choice.cb-active:before {
  340. background-color: #fff
  341. }
  342. .cb-bubble-input {
  343. width: 590px;
  344. background-color: #fbfbfb;
  345. padding: 20px;
  346. border-radius: 4px;
  347. margin-top: 20px
  348. }
  349. .cb-bubble-input input {
  350. cursor: pointer;
  351. font-family: Helvetica, Arial, sans-serif;
  352. padding: 10px 10px;
  353. color: #3A3A3A;
  354. margin: 3px 0;
  355. border-style: none;
  356. border-radius: 4px;
  357. transition: box-shadow 0.75s cubic-bezier(0.215, 0.61, 0.355, 1), color 0.75s cubic-bezier(0.215, 0.61, 0.355, 1), transform 375ms cubic-bezier(0.175, 0.885, 0.32, 1.275) 0s, opacity 375ms cubic-bezier(0.215, 0.61, 0.355, 1) 0s;
  358. background-color: #eee;
  359. width: 100%
  360. }
  361. .cb-bubble-input input:focus {
  362. box-shadow: 0 0 30px rgba(0, 0, 0, 0.2)
  363. }
  364. .cb-bubble-input input::placeholder {
  365. font-family: Helvetica, Arial, sans-serif;
  366. color: #9a9a9a
  367. }
  368. .disabled {
  369. background-color: #fff;
  370. color: #9a9a9a;
  371. border: 3px solid #D8D8D8
  372. }
  373. .disabled:before {
  374. background-color: #9a9a9a
  375. }
  376. .disabled:hover {
  377. transform: translateY(0);
  378. background-color: #fff;
  379. color: #9a9a9a
  380. }
  381. .disabled:hover:before {
  382. background-color: #9a9a9a
  383. }
  384. #cb-header {
  385. display: flex;
  386. -webkit-box-pack: justify;
  387. justify-content: space-between;
  388. -webkit-box-align: center;
  389. align-items: center;
  390. font-style: normal;
  391. border-top: none;
  392. border-right: none;
  393. border-left: none;
  394. border-image: initial;
  395. border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  396. padding: 11px 12px;
  397. }
  398. .cb-tit {
  399. text-decoration: none !important;
  400. }
  401. #cb-header #cb-title {
  402. display: flex;
  403. gap: 8px;
  404. -webkit-box-align: center;
  405. align-items: center;
  406. }
  407. #cb-header #cb-text {
  408. font-size: 18px;
  409. font-weight: 600;
  410. font-stretch: normal;
  411. font-style: normal;
  412. line-height: normal;
  413. letter-spacing: -.2px;
  414. color: black;
  415. }
  416. #cb-header .cb-topicn {display:flex; align-items:cetner; justify-content:flex-end; margin-left:auto; }
  417. #cb-header .cb-topicn button {width:20px; margin:0 8px; background-color: transparent !important; cursor: pointer !important;}
  418. #cb-header .cb-topicn img {width:100%; filter: grayscale(1);}
  419. #cb-header button img:hover,
  420. #cb-header button img:active,
  421. #cb-header button img:focus {filter: none;}
  422. .cb-top {display:flex; align-items:center; justify-content:flex-end; height:50px; padding:0 10px; background: linear-gradient(40deg, #50319e, 70%, #2863d1);}
  423. .cb-top button {width:14px; margin:0 8px; background-color: transparent !important;}
  424. .cb-top button img {width:100%;}
  425. .cb-dropdown {position:relative;}
  426. .cb-dropmenu {position: absolute; top: 100%; right:0; z-index: 1000; float: left; width:230px; margin: 2px 0 0; font-size:13px; color: #333; text-align: left; list-style: none; background-color: #fff; background-clip: padding-box; border: 1px solid rgba(0, 0, 0, .15); border-radius:3px; box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,.1); overflow:hidden;}
  427. .cb-dropmenu li {display:flex; padding:10px; border-bottom:1px solid #ededed; cursor: pointer;}
  428. .cb-dropmenu li:hover,
  429. .cb-dropmenu li.active {background:#f6f6f6;}
  430. .cb-dropmenu li:last-child {border-bottom:none;}
  431. .cb-dropmenu .cb-avatar {width:30px; height:30px; margin-right:10px; background:#9ad4a1; border-radius:50px; overflow:hidden;}
  432. .cb-dropmenu .cb-avatar img {width:100%;}
  433. .cb-dropmenu .cb-conts {width:calc(100% - 64px); margin-right:20px; word-break:break-all;}
  434. .cb-dropmenu .cb-conts a.cb-tit,
  435. .cb-dropmenu .cb-conts .cb-tit {display:block; color:#11338c; font-weight:700;}
  436. .cb-dropmenu .cb-conts a.cb-tit:hover,
  437. .cb-dropmenu .cb-conts .cb-tit:hover {color:#0056b3;}
  438. .cb-dropmenu .cb-badge {display:flex; align-items:center; margin-left:auto; width:10px; }
  439. .cb-dropmenu .cb-success {display:block; width:10px; height:10px; border:3px solid #4caf50; border-radius:50px;}