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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. #sideToolbarContainer {
  2. background-color: $newToolbarBackgroundColor;
  3. display: flex;
  4. /**
  5. * Make the sidebar flush with the top of the toolbar. Take the size of
  6. * the toolbar and subtract from 100%.
  7. */
  8. height: calc(100% - #{$newToolbarSizeWithPadding});
  9. left: -$sidebarWidth;
  10. overflow: hidden;
  11. position: absolute;
  12. top: 0;
  13. transition: left 0.5s;
  14. width: $sidebarWidth;
  15. z-index: $sideToolbarContainerZ;
  16. /**
  17. * The sidebar (chat) is off-screen when hidden. Move it flush to the left
  18. * side of the window when it should be visible.
  19. */
  20. &.slideInExt {
  21. left: 0;
  22. }
  23. .sideToolbarContainer__inner {
  24. box-sizing: border-box;
  25. color: #FFF;
  26. display: flex;
  27. flex-direction: column;
  28. height: 100%;
  29. width: $sidebarWidth;
  30. }
  31. }
  32. #chat_container * {
  33. -webkit-user-select: text;
  34. user-select: text;
  35. }
  36. #chatconversation {
  37. box-sizing: border-box;
  38. flex: 1;
  39. font-size: 10pt;
  40. line-height: 20px;
  41. overflow: auto;
  42. padding: 5px;
  43. text-align: left;
  44. width: $sidebarWidth;
  45. word-wrap: break-word;
  46. a {
  47. display: block;
  48. }
  49. a:link {
  50. color: rgb(184, 184, 184);
  51. }
  52. a:visited {
  53. color: white;
  54. }
  55. a:hover {
  56. color: rgb(213, 213, 213);
  57. }
  58. a:active {
  59. color: black;
  60. }
  61. &::-webkit-scrollbar {
  62. background: #06a5df;
  63. width: 7px;
  64. }
  65. &::-webkit-scrollbar-button {
  66. display: none;
  67. }
  68. &::-webkit-scrollbar-track {
  69. background: black;
  70. }
  71. &::-webkit-scrollbar-track-piece {
  72. background: black;
  73. }
  74. &::-webkit-scrollbar-thumb {
  75. background: #06a5df;
  76. border-radius: 4px;
  77. }
  78. }
  79. .chat-header {
  80. background-color: rgba(42, 58, 75, 0.9);
  81. height: 70px;
  82. position: relative;
  83. width: 100%;
  84. z-index: 1;
  85. .chat-close {
  86. align-items: center;
  87. bottom: 8px;
  88. color: white;
  89. cursor: pointer;
  90. display: flex;
  91. font-size: 18px;
  92. height: 40px;
  93. justify-content: center;
  94. line-height: 15px;
  95. padding: 4px;
  96. position: absolute;
  97. right: 5px;
  98. width: 40px;
  99. &:hover {
  100. color: rgba(255, 255, 255, 0.8);
  101. }
  102. }
  103. }
  104. #chat-input {
  105. background-color: $newToolbarBackgroundColor;
  106. border-top: 1px solid #A4B8D1;
  107. display: flex;
  108. }
  109. .remoteuser {
  110. color: #B8C7E0;
  111. }
  112. .usrmsg-form {
  113. flex: 1;
  114. }
  115. #usermsg {
  116. background-color: $newToolbarBackgroundColor;
  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: rgba(240, 243, 247, 0.15);
  163. width: 93%;
  164. margin-left: 9px;
  165. margin-right: auto;
  166. border-radius: 0px 6px 6px 6px;
  167. margin-top: 3px;
  168. color: white;
  169. padding-bottom: 3px;
  170. position: relative;
  171. &.localuser {
  172. background-color: rgba(26, 108, 180, 1);
  173. border-radius: 6px 0px 6px 6px;
  174. }
  175. &.error {
  176. border-radius: 0px;
  177. .timestamp,
  178. .display-name {
  179. display: none;
  180. }
  181. .usermessage {
  182. color: red;
  183. padding: 0;
  184. }
  185. }
  186. }
  187. .smiley {
  188. font-size: 14pt;
  189. }
  190. #smileys {
  191. font-size: 20pt;
  192. margin: auto;
  193. cursor: pointer;
  194. }
  195. #smileys img {
  196. width: 22px;
  197. padding: 2px;
  198. }
  199. #smileysarea {
  200. background-color: $newToolbarBackgroundColor;
  201. display: flex;
  202. max-height: 150px;
  203. min-height: 35px;
  204. overflow: hidden;
  205. }
  206. .smiley-input {
  207. display: flex;
  208. position: relative;
  209. }
  210. .smileys-panel {
  211. bottom: 100%;
  212. box-sizing: border-box;
  213. height: 0;
  214. overflow: hidden;
  215. position: absolute;
  216. transition: height 0.3s;
  217. width: $sidebarWidth;
  218. &.show-smileys {
  219. height: 146px;
  220. }
  221. #smileysContainer {
  222. background-color: $newToolbarBackgroundColor;
  223. border-bottom: 1px solid;
  224. border-top: 1px solid;
  225. }
  226. }
  227. #smileysContainer .smiley {
  228. font-size: 20pt;
  229. }
  230. .smileyContainer {
  231. width: 40px;
  232. height: 36px;
  233. display: inline-block;
  234. text-align: center;
  235. }
  236. .smileyContainer:hover {
  237. background-color: $newToolbarButtonToggleColor;
  238. border-radius: 5px;
  239. cursor: pointer;
  240. }
  241. #usermsg::-webkit-input-placeholder {
  242. line-height: 30px;
  243. }
  244. #usermsg::-webkit-scrollbar-track-piece {
  245. background: #3a3a3a;
  246. }