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

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