You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_chat.scss 9.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525
  1. #sideToolbarContainer {
  2. background-color: $newToolbarBackgroundColor;
  3. box-sizing: border-box;
  4. color: #FFF;
  5. display: flex;
  6. flex-direction: column;
  7. height: 100%;
  8. left: -$sidebarWidth;
  9. overflow: hidden;
  10. position: absolute;
  11. top: 0;
  12. width: $sidebarWidth;
  13. z-index: $sideToolbarContainerZ;
  14. /**
  15. * The sidebar (chat) is off-screen when hidden. Move it flush to the left
  16. * side of the window when it should be visible.
  17. */
  18. &.slideInExt {
  19. left: 0;
  20. }
  21. }
  22. #chatconversation {
  23. box-sizing: border-box;
  24. flex: 1;
  25. font-size: 10pt;
  26. line-height: 20px;
  27. overflow: auto;
  28. padding: 16px;
  29. text-align: left;
  30. width: $sidebarWidth;
  31. word-wrap: break-word;
  32. display: flex;
  33. flex-direction: column;
  34. & > :first-child {
  35. margin-top: auto;
  36. }
  37. a {
  38. display: block;
  39. }
  40. a:link {
  41. color: rgb(184, 184, 184);
  42. }
  43. a:visited {
  44. color: white;
  45. }
  46. a:hover {
  47. color: rgb(213, 213, 213);
  48. }
  49. a:active {
  50. color: black;
  51. }
  52. &::-webkit-scrollbar {
  53. background: #06a5df;
  54. width: 7px;
  55. }
  56. &::-webkit-scrollbar-button {
  57. display: none;
  58. }
  59. &::-webkit-scrollbar-track {
  60. background: black;
  61. }
  62. &::-webkit-scrollbar-track-piece {
  63. background: black;
  64. }
  65. &::-webkit-scrollbar-thumb {
  66. background: #06a5df;
  67. border-radius: 4px;
  68. }
  69. }
  70. #chat-recipient {
  71. align-items: center;
  72. background-color: $chatPrivateMessageBackgroundColor;
  73. display: flex;
  74. flex-direction: row;
  75. font-weight: 100;
  76. padding: 10px;
  77. span {
  78. color: white;
  79. display: flex;
  80. flex: 1;
  81. }
  82. div {
  83. svg {
  84. cursor: pointer;
  85. fill: white
  86. }
  87. }
  88. }
  89. .chat-header {
  90. background-color: $chatHeaderBackgroundColor;
  91. height: 70px;
  92. position: relative;
  93. width: 100%;
  94. z-index: 1;
  95. display: flex;
  96. justify-content: space-between;
  97. padding: 16px;
  98. align-items: center;
  99. box-sizing: border-box;
  100. color: #fff;
  101. font-weight: 600;
  102. font-size: 24px;
  103. line-height: 32px;
  104. .jitsi-icon {
  105. cursor: pointer;
  106. }
  107. .jitsi-icon > svg {
  108. fill: #A4B8D1;
  109. }
  110. }
  111. .chat-input-container {
  112. padding: 0 16px 24px;
  113. &.populated {
  114. #chat-input {
  115. border: 1px solid #619CF4;
  116. .send-button {
  117. background: #1B67EC;
  118. cursor: pointer;
  119. path {
  120. fill: #fff;
  121. }
  122. }
  123. }
  124. }
  125. }
  126. #chat-input {
  127. border: 1px solid $chatInputSeparatorColor;
  128. display: flex;
  129. padding: 5px 10px;
  130. border-radius: 3px;
  131. * {
  132. background-color: transparent;
  133. }
  134. }
  135. .send-button-container {
  136. display: flex;
  137. align-items: center;
  138. }
  139. .send-button {
  140. display: flex;
  141. align-items: center;
  142. justify-content: center;
  143. height: 40px;
  144. width: 40px;
  145. border-radius: 3px;
  146. path {
  147. fill: $chatInputSeparatorColor;
  148. }
  149. }
  150. .mobile-browser {
  151. .send-button {
  152. height: 48px;
  153. width: 48px;
  154. }
  155. }
  156. .remoteuser {
  157. color: #B8C7E0;
  158. }
  159. .usrmsg-form {
  160. flex: 1;
  161. }
  162. #usermsg {
  163. border: 0px none;
  164. border-radius:0;
  165. box-shadow: none;
  166. color: white;
  167. font-size: 15px;
  168. padding: 10px;
  169. overflow-y: auto;
  170. resize: none;
  171. width: 100%;
  172. word-break: break-word;
  173. }
  174. #usermsg:hover {
  175. border: 0px none;
  176. box-shadow: none;
  177. }
  178. #nickname {
  179. text-align: center;
  180. color: #9d9d9d;
  181. font-size: 16px;
  182. margin: auto 0;
  183. padding: 0 16px;
  184. input {
  185. height: 40px;
  186. }
  187. label {
  188. line-height: 24px;
  189. }
  190. .enter-chat {
  191. display: flex;
  192. align-items: center;
  193. justify-content: center;
  194. margin-top: 16px;
  195. height: 40px;
  196. background: #1B67EC;
  197. border-radius: 3px;
  198. color: #fff;
  199. cursor: pointer;
  200. &.disabled {
  201. color: #757575;
  202. background: #11336E;
  203. pointer-events: none;
  204. }
  205. }
  206. }
  207. .mobile-browser {
  208. #nickname {
  209. input {
  210. height: 48px;
  211. }
  212. .enter-chat {
  213. height: 48px;
  214. }
  215. }
  216. }
  217. .sideToolbarContainer {
  218. * {
  219. -webkit-user-select: text;
  220. user-select: text;
  221. }
  222. .display-name {
  223. font-size: 13px;
  224. font-weight: bold;
  225. margin-bottom: 5px;
  226. white-space: nowrap;
  227. text-overflow: ellipsis;
  228. overflow: hidden;
  229. }
  230. @media (max-width: 580px) {
  231. display: none !important;
  232. }
  233. }
  234. .chatmessage {
  235. background-color: $chatRemoteMessageBackgroundColor;
  236. border-radius: 0px 6px 6px 6px;
  237. box-sizing: border-box;
  238. color: white;
  239. margin-top: 3px;
  240. max-width: 100%;
  241. position: relative;
  242. &.localuser {
  243. background-color: $chatLocalMessageBackgroundColor;
  244. border-radius: 6px 0px 6px 6px;
  245. }
  246. .usermessage {
  247. white-space: pre-wrap;
  248. }
  249. &.error {
  250. border-radius: 0px;
  251. .timestamp,
  252. .display-name {
  253. display: none;
  254. }
  255. .usermessage {
  256. color: red;
  257. padding: 0;
  258. }
  259. }
  260. .privatemessagenotice {
  261. font-size: 11px;
  262. font-weight: 100;
  263. }
  264. .messagecontent {
  265. margin: 5px 10px;
  266. max-width: 100%;
  267. overflow: hidden;
  268. }
  269. }
  270. .smiley {
  271. font-size: 14pt;
  272. }
  273. #smileys {
  274. font-size: 20pt;
  275. margin: auto;
  276. cursor: pointer;
  277. }
  278. #smileys img {
  279. width: 22px;
  280. padding: 2px;
  281. }
  282. #smileysarea {
  283. display: flex;
  284. max-height: 150px;
  285. min-height: 35px;
  286. overflow: hidden;
  287. }
  288. .smiley-input {
  289. display: flex;
  290. position: relative;
  291. }
  292. .smileys-panel {
  293. bottom: 100%;
  294. box-sizing: border-box;
  295. background-color: rgba(0, 0, 0, .6) !important;
  296. height: auto;
  297. max-height: 0;
  298. overflow: hidden;
  299. position: absolute;
  300. width: $sidebarWidth;
  301. /**
  302. * CSS transitions do not apply for auto dimensions. So to produce the css
  303. * accordion effect for showing and hiding the smiley-panel, while allowing
  304. * for variable panel, height, use a very large max-height and animate off
  305. * of that.
  306. */
  307. transition: max-height 0.3s;
  308. &.show-smileys {
  309. max-height: 500%;
  310. }
  311. #smileysContainer {
  312. background-color: $newToolbarBackgroundColor;
  313. border-bottom: 1px solid;
  314. border-top: 1px solid;
  315. }
  316. }
  317. #smileysContainer .smiley {
  318. font-size: 20pt;
  319. }
  320. .smileyContainer {
  321. width: 40px;
  322. height: 36px;
  323. display: inline-block;
  324. text-align: center;
  325. }
  326. .smileyContainer:hover {
  327. background-color: $newToolbarButtonToggleColor;
  328. border-radius: 5px;
  329. cursor: pointer;
  330. }
  331. #usermsg::-webkit-scrollbar-track-piece {
  332. background: #3a3a3a;
  333. }
  334. .chat-message-group {
  335. display: flex;
  336. flex-direction: column;
  337. &.local {
  338. align-items: flex-end;
  339. .chatmessage {
  340. background-color: $chatLocalMessageBackgroundColor;
  341. border-radius: 6px 0px 6px 6px;
  342. &.privatemessage {
  343. background-color: $chatPrivateMessageBackgroundColor;
  344. }
  345. }
  346. .display-name {
  347. display: none;
  348. }
  349. .timestamp {
  350. text-align: right;
  351. }
  352. }
  353. &.error {
  354. .chatmessage {
  355. background-color: $defaultWarningColor;
  356. border-radius: 0px;
  357. font-weight: 100;
  358. }
  359. .display-name {
  360. display: none;
  361. }
  362. }
  363. .chatmessage-wrapper {
  364. max-width: 100%;
  365. .replywrapper {
  366. display: flex;
  367. flex-direction: row;
  368. align-items: center;
  369. .messageactions {
  370. align-self: stretch;
  371. border-left: 1px solid $chatActionsSeparatorColor;
  372. display: flex;
  373. flex-direction: column;
  374. justify-content: center;
  375. padding: 5px;
  376. .toolbox-icon {
  377. cursor: pointer;
  378. }
  379. }
  380. }
  381. }
  382. .chatmessage {
  383. background-color: $chatRemoteMessageBackgroundColor;
  384. border-radius: 0px 6px 6px 6px;
  385. display: inline-block;
  386. margin-top: 3px;
  387. color: white;
  388. &.privatemessage {
  389. background-color: $chatPrivateMessageBackgroundColor;
  390. }
  391. }
  392. }
  393. .chat-dialog {
  394. display: flex;
  395. flex-direction: column;
  396. height: 100%;
  397. margin-top: -5px; // Margin set by atlaskit.
  398. &-header {
  399. display: flex;
  400. justify-content: space-between;
  401. align-items: center;
  402. margin: 16px 16px 24px;
  403. width: calc(100% - 32px);
  404. box-sizing: border-box;
  405. color: #fff;
  406. font-weight: 600;
  407. font-size: 24px;
  408. line-height: 32px;
  409. .jitsi-icon {
  410. cursor: pointer;
  411. }
  412. .jitsi-icon > svg {
  413. fill: #A4B8D1;
  414. }
  415. }
  416. #chatconversation {
  417. width: 100%;
  418. }
  419. .chat-input-container {
  420. padding: 0 0 24px;
  421. }
  422. }
  423. .touchmove-hack {
  424. display: flex;
  425. flex: 1;
  426. overflow: auto;
  427. }
  428. /**
  429. * Make header close button more easily tappable on mobile.
  430. */
  431. .mobile-browser .chat-dialog-header .jitsi-icon {
  432. display: grid;
  433. place-items: center;
  434. height: 48px;
  435. width: 48px;
  436. background: #2a3a4b;
  437. border-radius: 3px;
  438. }