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

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