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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  1. #sideToolbarContainer {
  2. background-color: $newToolbarBackgroundColor;
  3. box-sizing: border-box;
  4. color: #FFF;
  5. display: flex;
  6. flex-direction: column;
  7. /**
  8. * Make the sidebar flush with the top of the toolbar. Take the size of
  9. * the toolbar and subtract from 100%.
  10. */
  11. height: calc(100% - #{$newToolbarSizeWithPadding});
  12. left: -$sidebarWidth;
  13. overflow: hidden;
  14. position: absolute;
  15. top: 0;
  16. transition: left 0.5s;
  17. width: $sidebarWidth;
  18. z-index: $sideToolbarContainerZ;
  19. /**
  20. * The sidebar (chat) is off-screen when hidden. Move it flush to the left
  21. * side of the window when it should be visible.
  22. */
  23. &.slideInExt {
  24. left: 0;
  25. }
  26. }
  27. #chatconversation {
  28. box-sizing: border-box;
  29. flex: 1;
  30. font-size: 10pt;
  31. line-height: 20px;
  32. overflow: auto;
  33. padding: 16px;
  34. text-align: left;
  35. width: $sidebarWidth;
  36. word-wrap: break-word;
  37. a {
  38. display: block;
  39. }
  40. a:link {
  41. color: rgb(184, 184, 184);
  42. }
  43. a:visited {
  44. color: white;
  45. }
  46. a:hover {
  47. color: rgb(213, 213, 213);
  48. }
  49. a:active {
  50. color: black;
  51. }
  52. &::-webkit-scrollbar {
  53. background: #06a5df;
  54. width: 7px;
  55. }
  56. &::-webkit-scrollbar-button {
  57. display: none;
  58. }
  59. &::-webkit-scrollbar-track {
  60. background: black;
  61. }
  62. &::-webkit-scrollbar-track-piece {
  63. background: black;
  64. }
  65. &::-webkit-scrollbar-thumb {
  66. background: #06a5df;
  67. border-radius: 4px;
  68. }
  69. }
  70. .chat-header {
  71. background-color: $chatHeaderBackgroundColor;
  72. height: 70px;
  73. position: relative;
  74. width: 100%;
  75. z-index: 1;
  76. .chat-close {
  77. align-items: center;
  78. bottom: 8px;
  79. color: white;
  80. cursor: pointer;
  81. display: flex;
  82. font-size: 18px;
  83. height: 40px;
  84. justify-content: center;
  85. line-height: 15px;
  86. padding: 4px;
  87. position: absolute;
  88. right: 5px;
  89. width: 40px;
  90. &:hover {
  91. color: rgba(255, 255, 255, 0.8);
  92. }
  93. }
  94. }
  95. #chat-input {
  96. border-top: 1px solid $chatInputSeparatorColor;
  97. display: flex;
  98. * {
  99. background-color: transparent;
  100. }
  101. }
  102. .remoteuser {
  103. color: #B8C7E0;
  104. }
  105. .usrmsg-form {
  106. flex: 1;
  107. }
  108. #usermsg {
  109. border: 0px none;
  110. border-radius:0;
  111. box-shadow: none;
  112. color: white;
  113. font-size: 15px;
  114. line-height: 30px;
  115. padding: 5px;
  116. overflow-y: auto;
  117. resize: none;
  118. width: 100%;
  119. word-break: break-word;
  120. }
  121. #usermsg:hover {
  122. border: 0px none;
  123. box-shadow: none;
  124. }
  125. #nickname {
  126. text-align: center;
  127. color: #9d9d9d;
  128. font-size: 18px;
  129. margin-top: 30px;
  130. left: 5px;
  131. right: 5px;
  132. }
  133. .sideToolbarContainer {
  134. * {
  135. -webkit-user-select: text;
  136. user-select: text;
  137. }
  138. .display-name {
  139. font-size: 13px;
  140. font-weight: bold;
  141. white-space: nowrap;
  142. text-overflow: ellipsis;
  143. overflow: hidden;
  144. }
  145. }
  146. .chatmessage {
  147. background-color: $chatRemoteMessageBackgroundColor;
  148. border-radius: 0px 6px 6px 6px;
  149. box-sizing: border-box;
  150. color: white;
  151. margin-top: 3px;
  152. max-width: 100%;
  153. padding-bottom: 3px;
  154. position: relative;
  155. &.localuser {
  156. background-color: $chatLocalMessageBackgroundColor;
  157. border-radius: 6px 0px 6px 6px;
  158. }
  159. &.error {
  160. border-radius: 0px;
  161. .timestamp,
  162. .display-name {
  163. display: none;
  164. }
  165. .usermessage {
  166. color: red;
  167. padding: 0;
  168. }
  169. }
  170. }
  171. .smiley {
  172. font-size: 14pt;
  173. }
  174. #smileys {
  175. font-size: 20pt;
  176. margin: auto;
  177. cursor: pointer;
  178. }
  179. #smileys img {
  180. width: 22px;
  181. padding: 2px;
  182. }
  183. #smileysarea {
  184. display: flex;
  185. max-height: 150px;
  186. min-height: 35px;
  187. overflow: hidden;
  188. }
  189. .smiley-input {
  190. display: flex;
  191. position: relative;
  192. }
  193. .smileys-panel {
  194. bottom: 100%;
  195. box-sizing: border-box;
  196. height: auto;
  197. max-height: 0;
  198. overflow: hidden;
  199. position: absolute;
  200. width: $sidebarWidth;
  201. /**
  202. * CSS transitions do not apply for auto dimensions. So to produce the css
  203. * accordion effect for showing and hiding the smiley-panel, while allowing
  204. * for variable panel, height, use a very large max-height and animate off
  205. * of that.
  206. */
  207. transition: max-height 0.3s;
  208. &.show-smileys {
  209. max-height: 500%;
  210. }
  211. #smileysContainer {
  212. background-color: $newToolbarBackgroundColor;
  213. border-bottom: 1px solid;
  214. border-top: 1px solid;
  215. }
  216. }
  217. #smileysContainer .smiley {
  218. font-size: 20pt;
  219. }
  220. .smileyContainer {
  221. width: 40px;
  222. height: 36px;
  223. display: inline-block;
  224. text-align: center;
  225. }
  226. .smileyContainer:hover {
  227. background-color: $newToolbarButtonToggleColor;
  228. border-radius: 5px;
  229. cursor: pointer;
  230. }
  231. #usermsg::-webkit-input-placeholder {
  232. line-height: 30px;
  233. }
  234. #usermsg::-webkit-scrollbar-track-piece {
  235. background: #3a3a3a;
  236. }
  237. .chat-message-group {
  238. display: flex;
  239. flex-direction: column;
  240. &.local {
  241. align-items: flex-end;
  242. .chatmessage {
  243. background-color: $chatLocalMessageBackgroundColor;
  244. border-radius: 6px 0px 6px 6px;
  245. }
  246. .display-name {
  247. display: none;
  248. }
  249. .timestamp {
  250. text-align: right;
  251. }
  252. }
  253. &.error {
  254. .chatmessage {
  255. border-radius: 0px;
  256. color: red;
  257. }
  258. .display-name {
  259. display: none;
  260. }
  261. }
  262. .chatmessage-wrapper {
  263. max-width: 100%;
  264. }
  265. .chatmessage {
  266. background-color: $chatRemoteMessageBackgroundColor;
  267. border-radius: 0px 6px 6px 6px;
  268. display: inline-block;
  269. margin-top: 3px;
  270. color: white;
  271. padding: 8px;
  272. }
  273. }