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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386
  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. .usermessage {
  179. white-space: pre-wrap;
  180. }
  181. &.error {
  182. border-radius: 0px;
  183. .timestamp,
  184. .display-name {
  185. display: none;
  186. }
  187. .usermessage {
  188. color: red;
  189. padding: 0;
  190. }
  191. }
  192. .privatemessagenotice {
  193. font-size: 11px;
  194. font-weight: 100;
  195. }
  196. .messagecontent {
  197. margin: 5px 10px;
  198. max-width: 100%;
  199. overflow: hidden;
  200. }
  201. }
  202. .smiley {
  203. font-size: 14pt;
  204. }
  205. #smileys {
  206. font-size: 20pt;
  207. margin: auto;
  208. cursor: pointer;
  209. }
  210. #smileys img {
  211. width: 22px;
  212. padding: 2px;
  213. }
  214. #smileysarea {
  215. display: flex;
  216. max-height: 150px;
  217. min-height: 35px;
  218. overflow: hidden;
  219. }
  220. .smiley-input {
  221. display: flex;
  222. position: relative;
  223. }
  224. .smileys-panel {
  225. bottom: 100%;
  226. box-sizing: border-box;
  227. background-color: rgba(0, 0, 0, .6) !important;
  228. height: auto;
  229. max-height: 0;
  230. overflow: hidden;
  231. position: absolute;
  232. width: $sidebarWidth;
  233. /**
  234. * CSS transitions do not apply for auto dimensions. So to produce the css
  235. * accordion effect for showing and hiding the smiley-panel, while allowing
  236. * for variable panel, height, use a very large max-height and animate off
  237. * of that.
  238. */
  239. transition: max-height 0.3s;
  240. &.show-smileys {
  241. max-height: 500%;
  242. }
  243. #smileysContainer {
  244. background-color: $newToolbarBackgroundColor;
  245. border-bottom: 1px solid;
  246. border-top: 1px solid;
  247. }
  248. }
  249. #smileysContainer .smiley {
  250. font-size: 20pt;
  251. }
  252. .smileyContainer {
  253. width: 40px;
  254. height: 36px;
  255. display: inline-block;
  256. text-align: center;
  257. }
  258. .smileyContainer:hover {
  259. background-color: $newToolbarButtonToggleColor;
  260. border-radius: 5px;
  261. cursor: pointer;
  262. }
  263. #usermsg::-webkit-scrollbar-track-piece {
  264. background: #3a3a3a;
  265. }
  266. .chat-message-group {
  267. display: flex;
  268. flex-direction: column;
  269. &.local {
  270. align-items: flex-end;
  271. .chatmessage {
  272. background-color: $chatLocalMessageBackgroundColor;
  273. border-radius: 6px 0px 6px 6px;
  274. &.privatemessage {
  275. background-color: $chatPrivateMessageBackgroundColor;
  276. }
  277. }
  278. .display-name {
  279. display: none;
  280. }
  281. .timestamp {
  282. text-align: right;
  283. }
  284. }
  285. &.error {
  286. .chatmessage {
  287. background-color: $defaultWarningColor;
  288. border-radius: 0px;
  289. font-weight: 100;
  290. }
  291. .display-name {
  292. display: none;
  293. }
  294. }
  295. .chatmessage-wrapper {
  296. max-width: 100%;
  297. .replywrapper {
  298. display: flex;
  299. flex-direction: row;
  300. align-items: center;
  301. .messageactions {
  302. align-self: stretch;
  303. border-left: 1px solid $chatActionsSeparatorColor;
  304. display: flex;
  305. flex-direction: column;
  306. justify-content: center;
  307. padding: 5px;
  308. .toolbox-icon {
  309. cursor: pointer;
  310. }
  311. }
  312. }
  313. }
  314. .chatmessage {
  315. background-color: $chatRemoteMessageBackgroundColor;
  316. border-radius: 0px 6px 6px 6px;
  317. display: inline-block;
  318. margin-top: 3px;
  319. color: white;
  320. &.privatemessage {
  321. background-color: $chatPrivateMessageBackgroundColor;
  322. }
  323. }
  324. }