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.7KB

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