chat-sidebar.scss 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  1. .chat-sidebar {
  2. display: flex;
  3. flex-direction: column;
  4. height: 100%;
  5. background: var(--bg-page);
  6. position: relative;
  7. .chat-header {
  8. display: flex;
  9. align-items: center;
  10. justify-content: space-between;
  11. padding: 2px 12px;
  12. background: var(--bg-subtle);
  13. border-bottom: 1px solid var(--border-default);
  14. flex-shrink: 0;
  15. .chat-header-left {
  16. display: flex;
  17. align-items: center;
  18. gap: 10px;
  19. min-width: 0;
  20. }
  21. .chat-header-viewers {
  22. display: inline-flex;
  23. align-items: center;
  24. gap: 6px;
  25. padding: 4px 10px;
  26. border-radius: 12px;
  27. background: var(--bg-page);
  28. border: 1px solid var(--border-default);
  29. font-size: 0.8125rem;
  30. color: var(--text-secondary);
  31. font-weight: 600;
  32. cursor: pointer;
  33. transition: background 0.15s, border-color 0.15s, color 0.15s;
  34. svg {
  35. font-size: 0.875rem;
  36. color: #ef4444;
  37. }
  38. &:hover {
  39. background: var(--bg-subtle);
  40. border-color: var(--border-strong);
  41. color: var(--text-primary);
  42. }
  43. }
  44. .chat-header-actions {
  45. display: flex;
  46. align-items: center;
  47. gap: 4px;
  48. .chat-menu-wrapper > button {
  49. display: flex;
  50. align-items: center;
  51. justify-content: center;
  52. width: 32px;
  53. height: 32px;
  54. border: none;
  55. background: transparent;
  56. cursor: pointer;
  57. color: var(--text-secondary);
  58. border-radius: 4px;
  59. transition: background 0.15s, color 0.15s;
  60. &:hover {
  61. background: var(--border-default);
  62. color: var(--text-primary);
  63. }
  64. }
  65. }
  66. .chat-menu-wrapper {
  67. position: relative;
  68. }
  69. .chat-menu {
  70. position: absolute;
  71. top: 100%;
  72. right: 0;
  73. min-width: 150px;
  74. background: var(--bg-page);
  75. border: 1px solid var(--border-default);
  76. border-radius: 3px;
  77. z-index: 10;
  78. overflow: hidden;
  79. button {
  80. display: flex;
  81. align-items: center;
  82. gap: 8px;
  83. width: 100%;
  84. padding: 10px 14px;
  85. border: none;
  86. background: transparent;
  87. cursor: pointer;
  88. font-size: 0.8125rem;
  89. color: var(--text-primary);
  90. text-align: left;
  91. transition: background 0.15s;
  92. svg {
  93. width: 14px;
  94. color: var(--text-muted);
  95. }
  96. &:hover {
  97. background: var(--bg-subtle);
  98. }
  99. &:disabled {
  100. color: var(--border-strong);
  101. cursor: not-allowed;
  102. svg {
  103. color: var(--border-strong);
  104. }
  105. &:hover {
  106. background: transparent;
  107. }
  108. }
  109. }
  110. }
  111. }
  112. .chat-messages {
  113. flex: 1;
  114. overflow-y: auto;
  115. padding: 8px 12px;
  116. display: flex;
  117. flex-direction: column;
  118. gap: 4px;
  119. font-size: var(--chat-font-size, 16px);
  120. &::-webkit-scrollbar {
  121. width: 4px;
  122. }
  123. &::-webkit-scrollbar-thumb {
  124. background: var(--border-strong);
  125. border-radius: 2px;
  126. }
  127. .chat-system {
  128. text-align: center;
  129. font-size: 0.75rem;
  130. color: var(--text-muted);
  131. padding: 4px 0;
  132. }
  133. .chat-message {
  134. display: flex;
  135. align-items: center;
  136. gap: 6px;
  137. padding: 3px 0;
  138. line-height: 1.4;
  139. word-break: break-word;
  140. .chat-message-time {
  141. font-size: 0.625rem;
  142. color: var(--text-muted);
  143. flex-shrink: 0;
  144. }
  145. .chat-message-badge {
  146. width: 16px;
  147. height: 16px;
  148. border-radius: 50%;
  149. object-fit: cover;
  150. flex-shrink: 0;
  151. }
  152. .chat-message-name {
  153. font-size: 0.8125em;
  154. font-weight: 600;
  155. color: var(--title-color, var(--text-secondary));
  156. flex-shrink: 0;
  157. max-width: 120px;
  158. overflow: hidden;
  159. text-overflow: ellipsis;
  160. white-space: nowrap;
  161. }
  162. .chat-message-content {
  163. font-size: 1em;
  164. color: var(--text-primary);
  165. }
  166. }
  167. }
  168. .chat-input-area {
  169. flex-shrink: 0;
  170. border-top: 1px solid var(--border-default);
  171. padding: 8px 10px;
  172. background: var(--bg-elevated);
  173. .chat-input-row {
  174. display: flex;
  175. gap: 6px;
  176. input {
  177. flex: 1;
  178. padding: 8px 10px;
  179. border: 1px solid var(--border-default);
  180. border-radius: 4px;
  181. font-size: 0.8125rem;
  182. outline: none;
  183. transition: border-color 0.15s;
  184. &:focus {
  185. border-color: #F7931A;
  186. }
  187. &:disabled {
  188. background: var(--bg-subtle);
  189. color: var(--text-muted);
  190. }
  191. }
  192. button {
  193. display: flex;
  194. align-items: center;
  195. justify-content: center;
  196. width: 36px;
  197. height: 36px;
  198. border: none;
  199. background: var(--color-accent);
  200. color: #fff;
  201. border-radius: 4px;
  202. cursor: pointer;
  203. flex-shrink: 0;
  204. transition: background 0.15s;
  205. &:hover {
  206. background: var(--color-accent-hover);
  207. }
  208. &:disabled {
  209. background: var(--border-strong);
  210. cursor: not-allowed;
  211. }
  212. }
  213. }
  214. .chat-login-notice {
  215. text-align: center;
  216. font-size: 0.8125rem;
  217. color: var(--text-muted);
  218. padding: 2px 0;
  219. a {
  220. color: var(--color-accent);
  221. font-weight: 600;
  222. text-decoration: underline;
  223. &:hover {
  224. color: var(--color-accent-hover);
  225. }
  226. }
  227. }
  228. }
  229. // 참여자 목록 오버레이
  230. .chat-participants-overlay {
  231. position: absolute;
  232. top: 0;
  233. left: 0;
  234. right: 0;
  235. bottom: 0;
  236. background: var(--overlay-color);
  237. z-index: 11;
  238. }
  239. // 참여자 목록 패널
  240. .chat-participants-dialog {
  241. position: absolute;
  242. top: 50%;
  243. left: 50%;
  244. transform: translate(-50%, -50%);
  245. width: calc(100% - 24px);
  246. max-height: 60%;
  247. background: var(--bg-page);
  248. border-radius: 8px;
  249. box-shadow: 0 8px 24px var(--shadow-color);
  250. overflow: hidden;
  251. z-index: 12;
  252. .chat-participants-header {
  253. display: flex;
  254. align-items: center;
  255. justify-content: space-between;
  256. padding: 12px 16px;
  257. border-bottom: 1px solid var(--border-default);
  258. background: var(--bg-subtle);
  259. h3 {
  260. font-size: 0.875rem;
  261. font-weight: 600;
  262. color: var(--text-primary);
  263. margin: 0;
  264. }
  265. button {
  266. display: flex;
  267. align-items: center;
  268. justify-content: center;
  269. width: 28px;
  270. height: 28px;
  271. border: none;
  272. background: transparent;
  273. cursor: pointer;
  274. font-size: 1.25rem;
  275. color: var(--text-secondary);
  276. border-radius: 4px;
  277. &:hover {
  278. background: var(--border-default);
  279. color: var(--text-primary);
  280. }
  281. }
  282. }
  283. .chat-participants-list {
  284. list-style: none;
  285. margin: 0;
  286. padding: 0;
  287. overflow-y: auto;
  288. max-height: calc(100% - 52px);
  289. li {
  290. display: flex;
  291. align-items: center;
  292. gap: 8px;
  293. padding: 10px 16px;
  294. font-size: 0.8125rem;
  295. color: var(--text-primary);
  296. border-bottom: 1px solid var(--bg-subtle);
  297. &:last-child {
  298. border-bottom: none;
  299. }
  300. .chat-participant-icon {
  301. color: var(--text-muted);
  302. font-size: 0.75rem;
  303. }
  304. }
  305. .chat-participants-empty {
  306. justify-content: center;
  307. color: var(--text-muted);
  308. padding: 24px 16px;
  309. }
  310. .chat-participants-guest {
  311. color: var(--text-muted);
  312. font-style: italic;
  313. }
  314. }
  315. }
  316. }