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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  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. max-height:150px;
  117. min-height:35px;
  118. overflow-y: auto;
  119. resize: none;
  120. width: 100%;
  121. word-break: break-word;
  122. }
  123. #usermsg:hover {
  124. border: 0px none;
  125. box-shadow: none;
  126. }
  127. #nickname {
  128. text-align: center;
  129. color: #9d9d9d;
  130. font-size: 18px;
  131. margin-top: 30px;
  132. left: 5px;
  133. right: 5px;
  134. }
  135. .sideToolbarContainer {
  136. * {
  137. -webkit-user-select: text;
  138. user-select: text;
  139. }
  140. .display-name {
  141. font-size: 13px;
  142. font-weight: bold;
  143. white-space: nowrap;
  144. text-overflow: ellipsis;
  145. overflow: hidden;
  146. }
  147. }
  148. .chatmessage {
  149. background-color: $chatRemoteMessageBackgroundColor;
  150. border-radius: 0px 6px 6px 6px;
  151. box-sizing: border-box;
  152. color: white;
  153. margin-top: 3px;
  154. max-width: 100%;
  155. padding-bottom: 3px;
  156. position: relative;
  157. &.localuser {
  158. background-color: $chatLocalMessageBackgroundColor;
  159. border-radius: 6px 0px 6px 6px;
  160. }
  161. &.error {
  162. border-radius: 0px;
  163. .timestamp,
  164. .display-name {
  165. display: none;
  166. }
  167. .usermessage {
  168. color: red;
  169. padding: 0;
  170. }
  171. }
  172. }
  173. .smiley {
  174. font-size: 14pt;
  175. }
  176. #smileys {
  177. font-size: 20pt;
  178. margin: auto;
  179. cursor: pointer;
  180. }
  181. #smileys img {
  182. width: 22px;
  183. padding: 2px;
  184. }
  185. #smileysarea {
  186. display: flex;
  187. max-height: 150px;
  188. min-height: 35px;
  189. overflow: hidden;
  190. }
  191. .smiley-input {
  192. display: flex;
  193. position: relative;
  194. }
  195. .smileys-panel {
  196. bottom: 100%;
  197. box-sizing: border-box;
  198. height: auto;
  199. max-height: 0;
  200. overflow: hidden;
  201. position: absolute;
  202. width: $sidebarWidth;
  203. /**
  204. * CSS transitions do not apply for auto dimensions. So to produce the css
  205. * accordion effect for showing and hiding the smiley-panel, while allowing
  206. * for variable panel, height, use a very large max-height and animate off
  207. * of that.
  208. */
  209. transition: max-height 0.3s;
  210. &.show-smileys {
  211. max-height: 500%;
  212. }
  213. #smileysContainer {
  214. background-color: $newToolbarBackgroundColor;
  215. border-bottom: 1px solid;
  216. border-top: 1px solid;
  217. }
  218. }
  219. #smileysContainer .smiley {
  220. font-size: 20pt;
  221. }
  222. .smileyContainer {
  223. width: 40px;
  224. height: 36px;
  225. display: inline-block;
  226. text-align: center;
  227. }
  228. .smileyContainer:hover {
  229. background-color: $newToolbarButtonToggleColor;
  230. border-radius: 5px;
  231. cursor: pointer;
  232. }
  233. #usermsg::-webkit-input-placeholder {
  234. line-height: 30px;
  235. }
  236. #usermsg::-webkit-scrollbar-track-piece {
  237. background: #3a3a3a;
  238. }
  239. .chat-message-group {
  240. display: flex;
  241. flex-direction: column;
  242. &.local {
  243. align-items: flex-end;
  244. .display-name {
  245. display: none;
  246. }
  247. .chatmessage {
  248. background-color: $chatLocalMessageBackgroundColor;
  249. border-radius: 6px 0px 6px 6px;
  250. }
  251. }
  252. &.error {
  253. .chatmessage {
  254. border-radius: 0px;
  255. color: red;
  256. }
  257. .display-name {
  258. display: none;
  259. }
  260. }
  261. .chatmessage {
  262. background-color: $chatRemoteMessageBackgroundColor;
  263. border-radius: 0px 6px 6px 6px;
  264. display: inline-block;
  265. margin-top: 3px;
  266. color: white;
  267. padding: 8px;
  268. }
  269. }