Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

_chat.scss 11KB

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