Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

_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. margin-top: 30px;
  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: 25px;
  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. margin-left: 5px;
  106. }
  107. #usermsg {
  108. background-color: $newToolbarBackgroundColor;
  109. border: 0px none;
  110. border-radius:0;
  111. box-shadow: none;
  112. color: white;
  113. font-size: 10pt;
  114. line-height: 30px;
  115. padding: 5px 5px 5px 0px;
  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. position: absolute;
  129. text-align: center;
  130. color: #9d9d9d;
  131. font-size: 18px;
  132. top: 100px;
  133. left: 5px;
  134. right: 5px;
  135. width: 95%;
  136. }
  137. #chat_container .display-name {
  138. float: left;
  139. padding-left: 5px;
  140. font-weight: bold;
  141. white-space: nowrap;
  142. text-overflow: ellipsis;
  143. width: 95%;
  144. overflow: hidden;
  145. }
  146. #chat_container .timestamp {
  147. float: right;
  148. padding-right: 5px;
  149. font-size: 11px;
  150. }
  151. .usermessage {
  152. padding-top: 20px;
  153. padding-left: 5px;
  154. }
  155. .chatArrow {
  156. border-color:
  157. transparent $newToolbarBackgroundColor transparent transparent;
  158. border-style: solid;
  159. border-width: 0 10px 10px 0;
  160. left: -10px;
  161. position: absolute;
  162. }
  163. .chatmessage {
  164. background-color: $newToolbarBackgroundColor;
  165. width: 93%;
  166. margin-left: 9px;
  167. margin-right: auto;
  168. border-radius: 5px;
  169. border-top-left-radius: 0px;
  170. margin-top: 3px;
  171. color: white;
  172. padding-bottom: 3px;
  173. position: relative;
  174. &.localuser .display-name {
  175. color: #4C9AFF
  176. }
  177. &.error {
  178. .chatArrow,
  179. .timestamp,
  180. .display-name {
  181. display: none;
  182. }
  183. .usermessage {
  184. color: red;
  185. padding: 0;
  186. }
  187. }
  188. }
  189. .smiley {
  190. font-size: 14pt;
  191. }
  192. #smileys {
  193. font-size: 20pt;
  194. margin: auto;
  195. cursor: pointer;
  196. }
  197. #smileys img {
  198. width: 22px;
  199. padding: 2px;
  200. }
  201. #smileysarea {
  202. background-color: $newToolbarBackgroundColor;
  203. display: flex;
  204. max-height: 150px;
  205. min-height: 35px;
  206. overflow: hidden;
  207. }
  208. .smiley-input {
  209. display: flex;
  210. position: relative;
  211. }
  212. .smileys-panel {
  213. bottom: 100%;
  214. box-sizing: border-box;
  215. height: 0;
  216. overflow: hidden;
  217. position: absolute;
  218. transition: height 0.3s;
  219. width: $sidebarWidth;
  220. &.show-smileys {
  221. height: 146px;
  222. }
  223. #smileysContainer {
  224. background-color: $newToolbarBackgroundColor;
  225. border-bottom: 1px solid;
  226. border-top: 1px solid;
  227. }
  228. }
  229. #smileysContainer .smiley {
  230. font-size: 20pt;
  231. }
  232. .smileyContainer {
  233. width: 40px;
  234. height: 36px;
  235. display: inline-block;
  236. text-align: center;
  237. }
  238. .smileyContainer:hover {
  239. background-color: $newToolbarButtonToggleColor;
  240. border-radius: 5px;
  241. cursor: pointer;
  242. }
  243. #usermsg::-webkit-input-placeholder {
  244. line-height: 30px;
  245. }
  246. #usermsg::-webkit-scrollbar-track-piece {
  247. background: #3a3a3a;
  248. }