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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  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. margin-top: $desktopAppDragBarHeight + 5px;
  42. overflow: auto;
  43. padding: 5px;
  44. text-align: left;
  45. width: $sidebarWidth;
  46. word-wrap: break-word;
  47. a {
  48. display: block;
  49. }
  50. a:link {
  51. color: rgb(184, 184, 184);
  52. }
  53. a:visited {
  54. color: white;
  55. }
  56. a:hover {
  57. color: rgb(213, 213, 213);
  58. }
  59. a:active {
  60. color: black;
  61. }
  62. &::-webkit-scrollbar {
  63. background: #06a5df;
  64. width: 7px;
  65. }
  66. &::-webkit-scrollbar-button {
  67. display: none;
  68. }
  69. &::-webkit-scrollbar-track {
  70. background: black;
  71. }
  72. &::-webkit-scrollbar-track-piece {
  73. background: black;
  74. }
  75. &::-webkit-scrollbar-thumb {
  76. background: #06a5df;
  77. border-radius: 4px;
  78. }
  79. }
  80. .chat-close {
  81. background: gray;
  82. border: 3px solid rgba(255, 255, 255, 0.1);
  83. border-radius: 100%;
  84. color: white;
  85. cursor:pointer;
  86. height: 10px;
  87. line-height: 10px;
  88. padding: 4px;
  89. position: absolute;
  90. right: 5px;
  91. text-align: center;
  92. top: $desktopAppDragBarHeight;
  93. width: 10px;
  94. z-index: 1;
  95. }
  96. #chat-input {
  97. background-color: $newToolbarBackgroundColor;
  98. display: flex;
  99. }
  100. .remoteuser {
  101. color: #B8C7E0;
  102. }
  103. .usrmsg-form {
  104. flex: 1;
  105. }
  106. #usermsg {
  107. background-color: $newToolbarBackgroundColor;
  108. border: 0px none;
  109. border-radius:0;
  110. box-shadow: none;
  111. color: white;
  112. font-size: 10pt;
  113. line-height: 30px;
  114. padding: 5px;
  115. max-height:150px;
  116. min-height:35px;
  117. overflow-y: auto;
  118. resize: none;
  119. width: 100%;
  120. word-break: break-word;
  121. }
  122. #usermsg:hover {
  123. border: 0px none;
  124. box-shadow: none;
  125. }
  126. #nickname {
  127. position: absolute;
  128. text-align: center;
  129. color: #9d9d9d;
  130. font-size: 18px;
  131. top: 100px;
  132. left: 5px;
  133. right: 5px;
  134. width: 95%;
  135. }
  136. #chat_container .display-name {
  137. float: left;
  138. padding-left: 5px;
  139. font-weight: bold;
  140. white-space: nowrap;
  141. text-overflow: ellipsis;
  142. width: 95%;
  143. overflow: hidden;
  144. }
  145. #chat_container .timestamp {
  146. float: right;
  147. padding-right: 5px;
  148. font-size: 11px;
  149. }
  150. .usermessage {
  151. padding-top: 20px;
  152. padding-left: 5px;
  153. }
  154. .chatArrow {
  155. border-color:
  156. transparent $newToolbarBackgroundColor transparent transparent;
  157. border-style: solid;
  158. border-width: 0 10px 10px 0;
  159. left: -10px;
  160. position: absolute;
  161. }
  162. .chatmessage {
  163. background-color: $newToolbarBackgroundColor;
  164. width: 93%;
  165. margin-left: 9px;
  166. margin-right: auto;
  167. border-radius: 5px;
  168. border-top-left-radius: 0px;
  169. margin-top: 3px;
  170. color: white;
  171. padding-bottom: 3px;
  172. position: relative;
  173. &.localuser .display-name {
  174. color: #4C9AFF
  175. }
  176. &.error {
  177. .chatArrow,
  178. .timestamp,
  179. .display-name {
  180. display: none;
  181. }
  182. .usermessage {
  183. color: red;
  184. padding: 0;
  185. }
  186. }
  187. }
  188. .smiley {
  189. font-size: 14pt;
  190. }
  191. #smileys {
  192. font-size: 20pt;
  193. margin: auto;
  194. cursor: pointer;
  195. }
  196. #smileys img {
  197. width: 22px;
  198. padding: 2px;
  199. }
  200. #smileysarea {
  201. background-color: $newToolbarBackgroundColor;
  202. display: flex;
  203. max-height: 150px;
  204. min-height: 35px;
  205. overflow: hidden;
  206. }
  207. .smiley-input {
  208. display: flex;
  209. position: relative;
  210. }
  211. .smileys-panel {
  212. bottom: 100%;
  213. box-sizing: border-box;
  214. height: 0;
  215. overflow: hidden;
  216. position: absolute;
  217. transition: height 0.3s;
  218. width: $sidebarWidth;
  219. &.show-smileys {
  220. height: 146px;
  221. }
  222. #smileysContainer {
  223. background-color: $newToolbarBackgroundColor;
  224. border-bottom: 1px solid;
  225. border-top: 1px solid;
  226. }
  227. }
  228. #smileysContainer .smiley {
  229. font-size: 20pt;
  230. }
  231. .smileyContainer {
  232. width: 40px;
  233. height: 36px;
  234. display: inline-block;
  235. text-align: center;
  236. }
  237. .smileyContainer:hover {
  238. background-color: $newToolbarButtonToggleColor;
  239. border-radius: 5px;
  240. cursor: pointer;
  241. }
  242. #usermsg::-webkit-input-placeholder {
  243. line-height: 30px;
  244. }
  245. #usermsg::-webkit-scrollbar-track-piece {
  246. background: #3a3a3a;
  247. }