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

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