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

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