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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407
  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. a {
  33. display: block;
  34. }
  35. a:link {
  36. color: rgb(184, 184, 184);
  37. }
  38. a:visited {
  39. color: white;
  40. }
  41. a:hover {
  42. color: rgb(213, 213, 213);
  43. }
  44. a:active {
  45. color: black;
  46. }
  47. &::-webkit-scrollbar {
  48. background: #06a5df;
  49. width: 7px;
  50. }
  51. &::-webkit-scrollbar-button {
  52. display: none;
  53. }
  54. &::-webkit-scrollbar-track {
  55. background: black;
  56. }
  57. &::-webkit-scrollbar-track-piece {
  58. background: black;
  59. }
  60. &::-webkit-scrollbar-thumb {
  61. background: #06a5df;
  62. border-radius: 4px;
  63. }
  64. }
  65. #chat-recipient {
  66. align-items: center;
  67. background-color: $chatPrivateMessageBackgroundColor;
  68. display: flex;
  69. flex-direction: row;
  70. font-weight: 100;
  71. padding: 10px;
  72. span {
  73. color: white;
  74. display: flex;
  75. flex: 1;
  76. }
  77. div {
  78. svg {
  79. cursor: pointer;
  80. fill: white
  81. }
  82. }
  83. }
  84. .chat-header {
  85. background-color: $chatHeaderBackgroundColor;
  86. height: 70px;
  87. position: relative;
  88. width: 100%;
  89. z-index: 1;
  90. display: flex;
  91. justify-content: space-between;
  92. padding: 16px;
  93. align-items: center;
  94. box-sizing: border-box;
  95. color: #fff;
  96. font-weight: 600;
  97. font-size: 24px;
  98. line-height: 32px;
  99. .jitsi-icon > svg {
  100. cursor: pointer;
  101. fill: #A4B8D1;
  102. }
  103. }
  104. #chat-input {
  105. border-top: 1px solid $chatInputSeparatorColor;
  106. display: flex;
  107. padding: 5px 10px;
  108. * {
  109. background-color: transparent;
  110. }
  111. }
  112. .remoteuser {
  113. color: #B8C7E0;
  114. }
  115. .usrmsg-form {
  116. flex: 1;
  117. }
  118. #usermsg {
  119. border: 0px none;
  120. border-radius:0;
  121. box-shadow: none;
  122. color: white;
  123. font-size: 15px;
  124. padding: 10px;
  125. overflow-y: auto;
  126. resize: none;
  127. width: 100%;
  128. word-break: break-word;
  129. }
  130. #usermsg:hover {
  131. border: 0px none;
  132. box-shadow: none;
  133. }
  134. #nickname {
  135. text-align: center;
  136. color: #9d9d9d;
  137. font-size: 18px;
  138. margin-top: 30px;
  139. left: 5px;
  140. right: 5px;
  141. }
  142. .sideToolbarContainer {
  143. * {
  144. -webkit-user-select: text;
  145. user-select: text;
  146. }
  147. .display-name {
  148. font-size: 13px;
  149. font-weight: bold;
  150. margin-bottom: 5px;
  151. white-space: nowrap;
  152. text-overflow: ellipsis;
  153. overflow: hidden;
  154. }
  155. @media (max-width: 580px) {
  156. display: none !important;
  157. }
  158. }
  159. .chatmessage {
  160. background-color: $chatRemoteMessageBackgroundColor;
  161. border-radius: 0px 6px 6px 6px;
  162. box-sizing: border-box;
  163. color: white;
  164. margin-top: 3px;
  165. max-width: 100%;
  166. position: relative;
  167. &.localuser {
  168. background-color: $chatLocalMessageBackgroundColor;
  169. border-radius: 6px 0px 6px 6px;
  170. }
  171. .usermessage {
  172. white-space: pre-wrap;
  173. }
  174. &.error {
  175. border-radius: 0px;
  176. .timestamp,
  177. .display-name {
  178. display: none;
  179. }
  180. .usermessage {
  181. color: red;
  182. padding: 0;
  183. }
  184. }
  185. .privatemessagenotice {
  186. font-size: 11px;
  187. font-weight: 100;
  188. }
  189. .messagecontent {
  190. margin: 5px 10px;
  191. max-width: 100%;
  192. overflow: hidden;
  193. }
  194. }
  195. .smiley {
  196. font-size: 14pt;
  197. }
  198. #smileys {
  199. font-size: 20pt;
  200. margin: auto;
  201. cursor: pointer;
  202. }
  203. #smileys img {
  204. width: 22px;
  205. padding: 2px;
  206. }
  207. #smileysarea {
  208. display: flex;
  209. max-height: 150px;
  210. min-height: 35px;
  211. overflow: hidden;
  212. }
  213. .smiley-input {
  214. display: flex;
  215. position: relative;
  216. }
  217. .smileys-panel {
  218. bottom: 100%;
  219. box-sizing: border-box;
  220. background-color: rgba(0, 0, 0, .6) !important;
  221. height: auto;
  222. max-height: 0;
  223. overflow: hidden;
  224. position: absolute;
  225. width: $sidebarWidth;
  226. /**
  227. * CSS transitions do not apply for auto dimensions. So to produce the css
  228. * accordion effect for showing and hiding the smiley-panel, while allowing
  229. * for variable panel, height, use a very large max-height and animate off
  230. * of that.
  231. */
  232. transition: max-height 0.3s;
  233. &.show-smileys {
  234. max-height: 500%;
  235. }
  236. #smileysContainer {
  237. background-color: $newToolbarBackgroundColor;
  238. border-bottom: 1px solid;
  239. border-top: 1px solid;
  240. }
  241. }
  242. #smileysContainer .smiley {
  243. font-size: 20pt;
  244. }
  245. .smileyContainer {
  246. width: 40px;
  247. height: 36px;
  248. display: inline-block;
  249. text-align: center;
  250. }
  251. .smileyContainer:hover {
  252. background-color: $newToolbarButtonToggleColor;
  253. border-radius: 5px;
  254. cursor: pointer;
  255. }
  256. #usermsg::-webkit-scrollbar-track-piece {
  257. background: #3a3a3a;
  258. }
  259. .chat-message-group {
  260. display: flex;
  261. flex-direction: column;
  262. &.local {
  263. align-items: flex-end;
  264. .chatmessage {
  265. background-color: $chatLocalMessageBackgroundColor;
  266. border-radius: 6px 0px 6px 6px;
  267. &.privatemessage {
  268. background-color: $chatPrivateMessageBackgroundColor;
  269. }
  270. }
  271. .display-name {
  272. display: none;
  273. }
  274. .timestamp {
  275. text-align: right;
  276. }
  277. }
  278. &.error {
  279. .chatmessage {
  280. background-color: $defaultWarningColor;
  281. border-radius: 0px;
  282. font-weight: 100;
  283. }
  284. .display-name {
  285. display: none;
  286. }
  287. }
  288. .chatmessage-wrapper {
  289. max-width: 100%;
  290. .replywrapper {
  291. display: flex;
  292. flex-direction: row;
  293. align-items: center;
  294. .messageactions {
  295. align-self: stretch;
  296. border-left: 1px solid $chatActionsSeparatorColor;
  297. display: flex;
  298. flex-direction: column;
  299. justify-content: center;
  300. padding: 5px;
  301. .toolbox-icon {
  302. cursor: pointer;
  303. }
  304. }
  305. }
  306. }
  307. .chatmessage {
  308. background-color: $chatRemoteMessageBackgroundColor;
  309. border-radius: 0px 6px 6px 6px;
  310. display: inline-block;
  311. margin-top: 3px;
  312. color: white;
  313. &.privatemessage {
  314. background-color: $chatPrivateMessageBackgroundColor;
  315. }
  316. }
  317. }
  318. .chat-dialog {
  319. display: flex;
  320. flex-direction: column;
  321. height: 100%;
  322. margin-top: -5px; // Margin set by atlaskit.
  323. &-header {
  324. display: flex;
  325. justify-content: space-between;
  326. margin: 16px 16px 24px;
  327. width: calc(100% - 32px);
  328. box-sizing: border-box;
  329. color: #fff;
  330. font-weight: 600;
  331. font-size: 24px;
  332. line-height: 32px;
  333. .jitsi-icon > svg {
  334. cursor: pointer;
  335. fill: #A4B8D1;
  336. }
  337. }
  338. #chatconversation {
  339. width: 100%;
  340. }
  341. }