選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

_chat.scss 5.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  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: 15px;
  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: 5px;
  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. height: 15px;
  157. left: -10px;
  158. position: absolute;
  159. }
  160. .chatmessage {
  161. background-color: $newToolbarBackgroundColor;
  162. width: 93%;
  163. margin-left: 9px;
  164. margin-right: auto;
  165. border-radius: 5px;
  166. border-top-left-radius: 0px;
  167. margin-top: 3px;
  168. color: white;
  169. padding-bottom: 3px;
  170. position: relative;
  171. &.localuser .display-name {
  172. color: #4C9AFF
  173. }
  174. &.error {
  175. .chatArrow,
  176. .timestamp,
  177. .display-name {
  178. display: none;
  179. }
  180. .usermessage {
  181. color: red;
  182. padding: 0;
  183. }
  184. }
  185. }
  186. .smiley {
  187. font-size: 14pt;
  188. }
  189. #smileys {
  190. font-size: 20pt;
  191. display: inline-block;
  192. height: 26px;
  193. margin: auto;
  194. cursor: pointer;
  195. }
  196. #smileys img {
  197. width: 22px;
  198. padding: 2px;
  199. }
  200. #smileysarea {
  201. background-color: $newToolbarBackgroundColor;
  202. border: 0px none;
  203. display: flex;
  204. height: 70px;
  205. max-height: 150px;
  206. min-height: 35px;
  207. min-width: 31px;
  208. padding: 0px;
  209. overflow: hidden;
  210. width: 17%;
  211. }
  212. .smiley-input {
  213. position: relative;
  214. }
  215. .smileys-panel {
  216. bottom: 100%;
  217. box-sizing: border-box;
  218. height: 0;
  219. overflow: hidden;
  220. position: absolute;
  221. transition: height 0.3s;
  222. width: $sidebarWidth;
  223. &.show-smileys {
  224. height: 146px;
  225. }
  226. #smileysContainer {
  227. background-color: $newToolbarBackgroundColor;
  228. border-bottom: 1px solid;
  229. border-top: 1px solid;
  230. }
  231. }
  232. #smileysContainer .smiley {
  233. font-size: 20pt;
  234. }
  235. .smileyContainer {
  236. width: 40px;
  237. height: 36px;
  238. display: inline-block;
  239. text-align: center;
  240. }
  241. .smileyContainer:hover {
  242. background-color: $newToolbarButtonToggleColor;
  243. border-radius: 5px;
  244. cursor: pointer;
  245. }
  246. #usermsg::-webkit-input-placeholder {
  247. line-height: 30px;
  248. }
  249. #usermsg::-webkit-scrollbar-track-piece {
  250. background: #3a3a3a;
  251. }