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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380
  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-recipient {
  71. align-items: center;
  72. background-color: $chatPrivateMessageBackgroundColor;
  73. display: flex;
  74. flex-direction: row;
  75. font-weight: 100;
  76. padding: 10px;
  77. span {
  78. color: white;
  79. display: flex;
  80. flex: 1;
  81. }
  82. div {
  83. svg {
  84. cursor: pointer;
  85. fill: white
  86. }
  87. }
  88. }
  89. .chat-header {
  90. background-color: $chatHeaderBackgroundColor;
  91. height: 70px;
  92. position: relative;
  93. width: 100%;
  94. z-index: 1;
  95. .chat-close {
  96. align-items: center;
  97. bottom: 8px;
  98. color: white;
  99. cursor: pointer;
  100. display: flex;
  101. font-size: 18px;
  102. height: 40px;
  103. justify-content: center;
  104. line-height: 15px;
  105. padding: 4px;
  106. position: absolute;
  107. right: 5px;
  108. width: 40px;
  109. &:hover {
  110. color: rgba(255, 255, 255, 0.8);
  111. }
  112. }
  113. }
  114. #chat-input {
  115. border-top: 1px solid $chatInputSeparatorColor;
  116. display: flex;
  117. padding: 5px 10px;
  118. * {
  119. background-color: transparent;
  120. }
  121. }
  122. .remoteuser {
  123. color: #B8C7E0;
  124. }
  125. .usrmsg-form {
  126. flex: 1;
  127. }
  128. #usermsg {
  129. border: 0px none;
  130. border-radius:0;
  131. box-shadow: none;
  132. color: white;
  133. font-size: 15px;
  134. padding: 10px;
  135. overflow-y: auto;
  136. resize: none;
  137. width: 100%;
  138. word-break: break-word;
  139. }
  140. #usermsg:hover {
  141. border: 0px none;
  142. box-shadow: none;
  143. }
  144. #nickname {
  145. text-align: center;
  146. color: #9d9d9d;
  147. font-size: 18px;
  148. margin-top: 30px;
  149. left: 5px;
  150. right: 5px;
  151. }
  152. .sideToolbarContainer {
  153. * {
  154. -webkit-user-select: text;
  155. user-select: text;
  156. }
  157. .display-name {
  158. font-size: 13px;
  159. font-weight: bold;
  160. margin-bottom: 5px;
  161. white-space: nowrap;
  162. text-overflow: ellipsis;
  163. overflow: hidden;
  164. }
  165. }
  166. .chatmessage {
  167. background-color: $chatRemoteMessageBackgroundColor;
  168. border-radius: 0px 6px 6px 6px;
  169. box-sizing: border-box;
  170. color: white;
  171. margin-top: 3px;
  172. max-width: 100%;
  173. position: relative;
  174. &.localuser {
  175. background-color: $chatLocalMessageBackgroundColor;
  176. border-radius: 6px 0px 6px 6px;
  177. }
  178. &.error {
  179. border-radius: 0px;
  180. .timestamp,
  181. .display-name {
  182. display: none;
  183. }
  184. .usermessage {
  185. color: red;
  186. padding: 0;
  187. }
  188. }
  189. .privatemessagenotice {
  190. font-size: 11px;
  191. font-weight: 100;
  192. }
  193. .messagecontent {
  194. margin: 5px 10px;
  195. }
  196. }
  197. .smiley {
  198. font-size: 14pt;
  199. }
  200. #smileys {
  201. font-size: 20pt;
  202. margin: auto;
  203. cursor: pointer;
  204. }
  205. #smileys img {
  206. width: 22px;
  207. padding: 2px;
  208. }
  209. #smileysarea {
  210. display: flex;
  211. max-height: 150px;
  212. min-height: 35px;
  213. overflow: hidden;
  214. }
  215. .smiley-input {
  216. display: flex;
  217. position: relative;
  218. }
  219. .smileys-panel {
  220. bottom: 100%;
  221. box-sizing: border-box;
  222. background-color: rgba(0, 0, 0, .6) !important;
  223. height: auto;
  224. max-height: 0;
  225. overflow: hidden;
  226. position: absolute;
  227. width: $sidebarWidth;
  228. /**
  229. * CSS transitions do not apply for auto dimensions. So to produce the css
  230. * accordion effect for showing and hiding the smiley-panel, while allowing
  231. * for variable panel, height, use a very large max-height and animate off
  232. * of that.
  233. */
  234. transition: max-height 0.3s;
  235. &.show-smileys {
  236. max-height: 500%;
  237. }
  238. #smileysContainer {
  239. background-color: $newToolbarBackgroundColor;
  240. border-bottom: 1px solid;
  241. border-top: 1px solid;
  242. }
  243. }
  244. #smileysContainer .smiley {
  245. font-size: 20pt;
  246. }
  247. .smileyContainer {
  248. width: 40px;
  249. height: 36px;
  250. display: inline-block;
  251. text-align: center;
  252. }
  253. .smileyContainer:hover {
  254. background-color: $newToolbarButtonToggleColor;
  255. border-radius: 5px;
  256. cursor: pointer;
  257. }
  258. #usermsg::-webkit-scrollbar-track-piece {
  259. background: #3a3a3a;
  260. }
  261. .chat-message-group {
  262. display: flex;
  263. flex-direction: column;
  264. &.local {
  265. align-items: flex-end;
  266. .chatmessage {
  267. background-color: $chatLocalMessageBackgroundColor;
  268. border-radius: 6px 0px 6px 6px;
  269. &.privatemessage {
  270. background-color: $chatPrivateMessageBackgroundColor;
  271. }
  272. }
  273. .display-name {
  274. display: none;
  275. }
  276. .timestamp {
  277. text-align: right;
  278. }
  279. }
  280. &.error {
  281. .chatmessage {
  282. background-color: $defaultWarningColor;
  283. border-radius: 0px;
  284. font-weight: 100;
  285. }
  286. .display-name {
  287. display: none;
  288. }
  289. }
  290. .chatmessage-wrapper {
  291. max-width: 100%;
  292. .replywrapper {
  293. display: flex;
  294. flex-direction: row;
  295. align-items: center;
  296. .messageactions {
  297. align-self: stretch;
  298. border-left: 1px solid $chatActionsSeparatorColor;
  299. display: flex;
  300. flex-direction: column;
  301. justify-content: center;
  302. padding: 5px;
  303. .toolbox-icon {
  304. cursor: pointer;
  305. }
  306. }
  307. }
  308. }
  309. .chatmessage {
  310. background-color: $chatRemoteMessageBackgroundColor;
  311. border-radius: 0px 6px 6px 6px;
  312. display: inline-block;
  313. margin-top: 3px;
  314. color: white;
  315. &.privatemessage {
  316. background-color: $chatPrivateMessageBackgroundColor;
  317. }
  318. }
  319. }