style.scss 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509
  1. // ── Lightbox (portal — outside .feed) ──
  2. .feed-lightbox {
  3. position: fixed;
  4. inset: 0;
  5. background: rgba(0, 0, 0, 0.92);
  6. display: flex;
  7. align-items: center;
  8. justify-content: center;
  9. z-index: 1000;
  10. padding: 24px;
  11. &__close {
  12. position: absolute;
  13. top: 16px;
  14. right: 16px;
  15. width: 44px;
  16. height: 44px;
  17. border-radius: 50%;
  18. border: none;
  19. background: rgba(255, 255, 255, 0.1);
  20. color: #fff;
  21. cursor: pointer;
  22. display: inline-flex;
  23. align-items: center;
  24. justify-content: center;
  25. z-index: 10;
  26. &:hover {
  27. background: rgba(255, 255, 255, 0.2);
  28. }
  29. }
  30. &__nav {
  31. position: absolute;
  32. top: 50%;
  33. transform: translateY(-50%);
  34. width: 48px;
  35. height: 48px;
  36. border-radius: 50%;
  37. border: none;
  38. background: rgba(255, 255, 255, 0.1);
  39. color: #fff;
  40. cursor: pointer;
  41. display: inline-flex;
  42. align-items: center;
  43. justify-content: center;
  44. z-index: 10;
  45. &:hover {
  46. background: rgba(255, 255, 255, 0.25);
  47. }
  48. &--prev {
  49. left: 24px;
  50. }
  51. &--next {
  52. right: 24px;
  53. }
  54. }
  55. &__stage {
  56. max-width: 100%;
  57. max-height: 100%;
  58. display: flex;
  59. flex-direction: column;
  60. align-items: center;
  61. justify-content: center;
  62. position: relative;
  63. }
  64. &__image {
  65. max-width: min(90vw, 1200px);
  66. max-height: 85vh;
  67. object-fit: contain;
  68. display: block;
  69. border-radius: 4px;
  70. }
  71. &__counter {
  72. position: absolute;
  73. bottom: -32px;
  74. left: 50%;
  75. transform: translateX(-50%);
  76. color: rgba(255, 255, 255, 0.8);
  77. font-size: 0.875rem;
  78. letter-spacing: 1px;
  79. }
  80. @media (max-width: 640px) {
  81. &__nav--prev {
  82. left: 8px;
  83. }
  84. &__nav--next {
  85. right: 8px;
  86. }
  87. &__close {
  88. top: 8px;
  89. right: 8px;
  90. }
  91. }
  92. }
  93. .feed {
  94. display: grid;
  95. grid-template-columns: minmax(0, 1fr);
  96. gap: 24px;
  97. height: 100%;
  98. max-width: 1200px;
  99. margin: 0 auto;
  100. padding: 20px 16px;
  101. @media (min-width: 1024px) {
  102. // 메인과 사이드바 사이 간격을 gap 대신 좌우 padding 으로 처리 →
  103. // 가운데 세로 구분선을 main 의 border-right 로 두면 main 의 풀하이트만큼 자연스럽게 길어짐.
  104. grid-template-columns: minmax(0, 720px) 320px;
  105. gap: 0;
  106. align-items: stretch;
  107. }
  108. &__main {
  109. min-width: 0;
  110. display: flex;
  111. flex-direction: column;
  112. gap: 16px;
  113. @media (min-width: 1024px) {
  114. padding-right: 24px;
  115. border-right: 1px solid var(--border-default, #e5e7eb);
  116. }
  117. }
  118. &__header {
  119. display: flex;
  120. align-items: center;
  121. justify-content: space-between;
  122. gap: 12px;
  123. position: sticky;
  124. top: 0;
  125. background: var(--bg-page, #fff);
  126. padding: 8px 0;
  127. z-index: 10;
  128. border-bottom: 1px solid var(--border-default, #e5e7eb);
  129. &--tag,
  130. &--user {
  131. flex-direction: column;
  132. align-items: flex-start;
  133. padding: 16px 0;
  134. }
  135. }
  136. &__tabs {
  137. display: flex;
  138. align-items: center;
  139. gap: 0;
  140. flex: 1;
  141. }
  142. &__tab {
  143. padding: 12px 16px;
  144. font-size: 0.9375rem;
  145. font-weight: 500;
  146. color: var(--text-muted);
  147. text-decoration: none;
  148. position: relative;
  149. transition: color 0.15s ease;
  150. &--active {
  151. color: var(--fg-default, #0f0f0f);
  152. font-weight: 600;
  153. &::after {
  154. content: '';
  155. position: absolute;
  156. bottom: -8px;
  157. left: 16px;
  158. right: 16px;
  159. height: 2px;
  160. background: var(--fg-default, #0f0f0f);
  161. border-radius: 2px 2px 0 0;
  162. }
  163. }
  164. &:hover {
  165. color: var(--fg-default, #0f0f0f);
  166. }
  167. }
  168. &__write-fab {
  169. display: inline-flex;
  170. align-items: center;
  171. justify-content: center;
  172. padding: 10px 22px;
  173. border-radius: 999px;
  174. background: #3b82f6;
  175. color: #fff;
  176. font-size: 0.9375rem;
  177. font-weight: 600;
  178. line-height: 1;
  179. white-space: nowrap;
  180. text-decoration: none;
  181. border: none;
  182. cursor: pointer;
  183. box-shadow: 0 2px 6px rgba(59, 130, 246, 0.25);
  184. &:hover {
  185. background: #2563eb;
  186. }
  187. }
  188. &__composer-dialog {
  189. max-width: 600px !important;
  190. width: calc(100vw - 32px);
  191. padding: 20px !important;
  192. .feed__composer {
  193. border: none;
  194. padding: 0;
  195. background: transparent;
  196. }
  197. }
  198. &__tag-title {
  199. font-size: 1.5rem;
  200. font-weight: 700;
  201. display: flex;
  202. align-items: baseline;
  203. gap: 4px;
  204. }
  205. &__tag-hash {
  206. color: var(--text-muted);
  207. }
  208. &__tag-meta,
  209. &__user-meta {
  210. font-size: 0.875rem;
  211. color: var(--text-muted);
  212. margin-top: 4px;
  213. }
  214. &__user-name {
  215. font-size: 1.5rem;
  216. font-weight: 700;
  217. }
  218. &__user-actions {
  219. margin-top: 8px;
  220. }
  221. &__write-title {
  222. font-size: 1.25rem;
  223. font-weight: 700;
  224. }
  225. // ── Card ──
  226. &__list {
  227. display: flex;
  228. flex-direction: column;
  229. }
  230. &__list-item {
  231. transition: outline 0.15s ease;
  232. &--focused {
  233. outline: 2px solid #3b82f6;
  234. outline-offset: 2px;
  235. border-radius: 12px;
  236. }
  237. }
  238. &__card {
  239. padding: 16px 4px;
  240. border-top: 1px solid var(--border-default, #e5e7eb);
  241. background: transparent;
  242. display: flex;
  243. flex-direction: column;
  244. gap: 12px;
  245. }
  246. // 마지막 카드에만 하단 경계선 부여 → 인접 카드 사이는 공유된 1px 선 하나만
  247. &__list > &__list-item:last-child &__card {
  248. border-bottom: 1px solid var(--border-default, #e5e7eb);
  249. }
  250. &__card-header {
  251. display: flex;
  252. align-items: flex-start;
  253. gap: 12px;
  254. }
  255. &__card-avatar {
  256. width: 40px;
  257. height: 40px;
  258. border-radius: 50%;
  259. overflow: hidden;
  260. flex-shrink: 0;
  261. background: var(--bg-subtle, #f3f4f6);
  262. display: block;
  263. img {
  264. width: 100%;
  265. height: 100%;
  266. object-fit: cover;
  267. }
  268. }
  269. &__card-avatar-fallback {
  270. width: 100%;
  271. height: 100%;
  272. display: flex;
  273. align-items: center;
  274. justify-content: center;
  275. font-weight: 700;
  276. font-size: 1rem;
  277. color: var(--text-muted);
  278. }
  279. &__card-meta {
  280. flex: 1;
  281. min-width: 0;
  282. }
  283. &__card-author-row {
  284. display: flex;
  285. align-items: center;
  286. flex-wrap: wrap;
  287. gap: 4px;
  288. font-size: 0.875rem;
  289. }
  290. &__card-author {
  291. font-weight: 600;
  292. color: var(--fg-default);
  293. text-decoration: none;
  294. &:hover {
  295. text-decoration: underline;
  296. }
  297. }
  298. &__card-badge {
  299. display: inline-flex;
  300. align-items: center;
  301. justify-content: center;
  302. width: 16px;
  303. height: 16px;
  304. border-radius: 50%;
  305. background: linear-gradient(135deg, #fbbf24, #f59e0b);
  306. color: #fff;
  307. font-size: 0.625rem;
  308. }
  309. &__card-time {
  310. color: var(--text-muted);
  311. font-size: 0.8125rem;
  312. }
  313. &__card-subject {
  314. display: block;
  315. margin-top: 2px;
  316. font-weight: 600;
  317. color: var(--fg-default);
  318. text-decoration: none;
  319. &:hover {
  320. color: #3b82f6;
  321. }
  322. }
  323. &__card-summary {
  324. margin: 2px 0 0;
  325. font-size: 0.8125rem;
  326. color: var(--text-muted);
  327. font-style: italic;
  328. overflow: hidden;
  329. text-overflow: ellipsis;
  330. display: -webkit-box;
  331. -webkit-line-clamp: 1;
  332. -webkit-box-orient: vertical;
  333. }
  334. &__card-body {
  335. font-size: 0.9375rem;
  336. color: var(--text-primary, #1f2937);
  337. text-decoration: none;
  338. display: block;
  339. p {
  340. margin: 0;
  341. line-height: 1.55;
  342. display: -webkit-box;
  343. -webkit-line-clamp: 4;
  344. -webkit-box-orient: vertical;
  345. overflow: hidden;
  346. }
  347. }
  348. &__card-thumbnail {
  349. position: relative;
  350. display: block;
  351. border-radius: 12px;
  352. overflow: hidden;
  353. max-height: 420px;
  354. background: var(--bg-subtle, #f3f4f6);
  355. img {
  356. width: 100%;
  357. height: auto;
  358. max-height: 420px;
  359. object-fit: cover;
  360. display: block;
  361. }
  362. }
  363. &__card-image-count {
  364. position: absolute;
  365. right: 8px;
  366. bottom: 8px;
  367. padding: 2px 8px;
  368. border-radius: 999px;
  369. background: rgba(0, 0, 0, 0.6);
  370. color: #fff;
  371. font-size: 0.75rem;
  372. font-weight: 600;
  373. }
  374. &__card-tags {
  375. display: flex;
  376. flex-wrap: wrap;
  377. gap: 6px;
  378. }
  379. &__card-actions {
  380. display: flex;
  381. align-items: center;
  382. gap: 8px;
  383. padding-top: 8px;
  384. border-top: 1px solid var(--border-subtle, #f3f4f6);
  385. }
  386. &__action {
  387. display: inline-flex;
  388. align-items: center;
  389. gap: 4px;
  390. padding: 6px 10px;
  391. border-radius: 999px;
  392. border: none;
  393. background: transparent;
  394. color: var(--text-muted);
  395. font-size: 0.8125rem;
  396. cursor: pointer;
  397. text-decoration: none;
  398. transition: background 0.15s ease, color 0.15s ease;
  399. &:hover {
  400. background: var(--bg-subtle, #f3f4f6);
  401. color: var(--fg-default);
  402. }
  403. &--active {
  404. color: #ef4444;
  405. }
  406. }
  407. &__action-icon {
  408. font-size: 1rem;
  409. line-height: 1;
  410. }
  411. &__tag-chip {
  412. display: inline-flex;
  413. align-items: center;
  414. gap: 4px;
  415. padding: 4px 10px;
  416. border-radius: 999px;
  417. border: 1px solid var(--border-default, #e5e7eb);
  418. color: var(--text-secondary, #4b5563);
  419. font-size: 0.8125rem;
  420. text-decoration: none;
  421. background: var(--bg-card, #fff);
  422. &:hover {
  423. border-color: #3b82f6;
  424. color: #3b82f6;
  425. }
  426. }
  427. &__tag-chip-count {
  428. color: var(--text-muted);
  429. font-size: 0.75rem;
  430. }
  431. // ── Empty / Sentinel ──
  432. &__empty {
  433. text-align: center;
  434. color: var(--text-muted);
  435. padding: 32px 16px;
  436. font-size: 0.9375rem;
  437. }
  438. &__sentinel {
  439. text-align: center;
  440. padding: 16px;
  441. color: var(--text-muted);
  442. font-size: 0.875rem;
  443. }
  444. // ── Sidebar ──
  445. &__sidebar {
  446. display: none;
  447. @media (min-width: 1024px) {
  448. display: block;
  449. position: sticky;
  450. top: 20px;
  451. padding-left: 24px;
  452. }
  453. }
  454. &__sidebar-section {
  455. padding: 8px 0;
  456. background: transparent;
  457. }
  458. &__sidebar-title {
  459. font-size: 1rem;
  460. font-weight: 700;
  461. margin-bottom: 12px;
  462. }
  463. &__sidebar-empty {
  464. color: var(--text-muted);
  465. font-size: 0.875rem;
  466. }
  467. &__sidebar-follows {
  468. display: flex;
  469. flex-direction: column;
  470. gap: 14px;
  471. list-style: none;
  472. padding: 0;
  473. margin: 0;
  474. }
  475. &__sidebar-follow {
  476. display: flex;
  477. align-items: flex-start;
  478. gap: 10px;
  479. }
  480. &__sidebar-follow-avatar {
  481. width: 40px;
  482. height: 40px;
  483. flex-shrink: 0;
  484. background: var(--bg-subtle, #f3f4f6);
  485. img {
  486. width: 100%;
  487. height: 100%;
  488. object-fit: cover;
  489. }
  490. }
  491. &__sidebar-follow-avatar-fallback {
  492. background: var(--bg-subtle, #f3f4f6);
  493. img {
  494. width: 60%;
  495. height: 60%;
  496. object-fit: contain;
  497. opacity: 0.55;
  498. }
  499. .dark & img {
  500. opacity: 0.7;
  501. filter: invert(0.85);
  502. }
  503. }
  504. &__sidebar-follow-meta {
  505. flex: 1;
  506. min-width: 0;
  507. display: flex;
  508. flex-direction: column;
  509. gap: 2px;
  510. }
  511. &__sidebar-follow-name {
  512. font-size: 0.875rem;
  513. font-weight: 600;
  514. color: var(--fg-default);
  515. text-decoration: none;
  516. display: inline-flex;
  517. align-items: center;
  518. gap: 4px;
  519. &:hover {
  520. text-decoration: underline;
  521. }
  522. }
  523. &__sidebar-follow-badge {
  524. display: inline-flex;
  525. align-items: center;
  526. justify-content: center;
  527. color: #3b82f6;
  528. }
  529. &__sidebar-follow-followers {
  530. font-size: 0.75rem;
  531. color: var(--text-muted);
  532. line-height: 1.4;
  533. margin: 0;
  534. }
  535. &__sidebar-follow-btn {
  536. font-size: 0.75rem !important;
  537. padding: 4px 12px !important;
  538. flex-shrink: 0;
  539. }
  540. // ── Page header (detail view) ──
  541. &__page-header {
  542. display: flex;
  543. align-items: center;
  544. gap: 12px;
  545. padding: 10px 12px;
  546. border: 1px solid var(--border-default, #e5e7eb);
  547. border-radius: 12px;
  548. background: var(--bg-card, #fff);
  549. position: sticky;
  550. top: 0;
  551. z-index: 9;
  552. }
  553. &__page-back {
  554. width: 32px;
  555. height: 32px;
  556. border-radius: 50%;
  557. border: none;
  558. background: transparent;
  559. color: var(--fg-default);
  560. cursor: pointer;
  561. display: inline-flex;
  562. align-items: center;
  563. justify-content: center;
  564. transition: background 0.15s ease;
  565. &:hover {
  566. background: var(--bg-subtle, #f3f4f6);
  567. }
  568. }
  569. &__page-title {
  570. font-size: 1.125rem;
  571. font-weight: 700;
  572. color: var(--fg-default);
  573. margin: 0;
  574. }
  575. // ── Post detail view ──
  576. &__post {
  577. padding: 16px 4px;
  578. border-top: 1px solid var(--border-default, #e5e7eb);
  579. border-bottom: 1px solid var(--border-default, #e5e7eb);
  580. background: transparent;
  581. display: flex;
  582. flex-direction: column;
  583. gap: 16px;
  584. }
  585. &__post-header {
  586. display: flex;
  587. align-items: flex-start;
  588. gap: 12px;
  589. }
  590. &__post-avatar {
  591. width: 48px;
  592. height: 48px;
  593. border-radius: 50%;
  594. overflow: hidden;
  595. flex-shrink: 0;
  596. background: var(--bg-subtle, #f3f4f6);
  597. display: block;
  598. img {
  599. width: 100%;
  600. height: 100%;
  601. object-fit: cover;
  602. }
  603. }
  604. &__post-avatar-fallback {
  605. width: 100%;
  606. height: 100%;
  607. display: flex;
  608. align-items: center;
  609. justify-content: center;
  610. font-weight: 700;
  611. color: var(--text-muted);
  612. }
  613. &__post-meta {
  614. flex: 1;
  615. min-width: 0;
  616. }
  617. &__post-author-row {
  618. display: flex;
  619. align-items: center;
  620. gap: 4px;
  621. }
  622. &__post-author {
  623. font-weight: 700;
  624. color: var(--fg-default);
  625. text-decoration: none;
  626. font-size: 1rem;
  627. &:hover {
  628. text-decoration: underline;
  629. }
  630. }
  631. &__post-badge {
  632. display: inline-flex;
  633. align-items: center;
  634. justify-content: center;
  635. color: #3b82f6;
  636. }
  637. &__post-meta-row {
  638. font-size: 0.8125rem;
  639. color: var(--text-muted);
  640. display: flex;
  641. align-items: center;
  642. gap: 4px;
  643. margin-top: 2px;
  644. }
  645. &__post-more {
  646. width: 32px;
  647. height: 32px;
  648. border-radius: 50%;
  649. border: none;
  650. background: transparent;
  651. color: var(--text-muted);
  652. cursor: pointer;
  653. display: inline-flex;
  654. align-items: center;
  655. justify-content: center;
  656. &:hover {
  657. background: var(--bg-subtle, #f3f4f6);
  658. color: var(--fg-default);
  659. }
  660. }
  661. &__post-body {
  662. font-size: 1rem;
  663. }
  664. &__post-content {
  665. margin: 0;
  666. line-height: 1.6;
  667. white-space: pre-wrap;
  668. word-break: break-word;
  669. color: var(--text-primary, #1f2937);
  670. }
  671. &__post-gallery {
  672. display: grid;
  673. gap: 4px;
  674. border-radius: 12px;
  675. overflow: hidden;
  676. &--count-1 {
  677. grid-template-columns: 1fr;
  678. .feed__post-gallery-item {
  679. aspect-ratio: 16 / 10;
  680. }
  681. }
  682. &--count-2 {
  683. grid-template-columns: 1fr 1fr;
  684. .feed__post-gallery-item {
  685. aspect-ratio: 1 / 1;
  686. }
  687. }
  688. &--count-3,
  689. &--count-4 {
  690. grid-template-columns: 1fr 1fr;
  691. .feed__post-gallery-item {
  692. aspect-ratio: 1 / 1;
  693. }
  694. }
  695. }
  696. &__post-gallery-item {
  697. position: relative;
  698. border: none;
  699. padding: 0;
  700. background: var(--bg-subtle, #f3f4f6);
  701. cursor: zoom-in;
  702. overflow: hidden;
  703. min-height: 0;
  704. img {
  705. width: 100%;
  706. height: 100%;
  707. object-fit: cover;
  708. display: block;
  709. }
  710. &:hover img {
  711. opacity: 0.92;
  712. }
  713. }
  714. &__post-gallery-more {
  715. position: absolute;
  716. inset: 0;
  717. display: flex;
  718. align-items: center;
  719. justify-content: center;
  720. background: rgba(0, 0, 0, 0.5);
  721. color: #fff;
  722. font-size: 1.25rem;
  723. font-weight: 700;
  724. }
  725. &__post-tags {
  726. display: flex;
  727. flex-wrap: wrap;
  728. gap: 6px;
  729. }
  730. &__post-actions {
  731. display: flex;
  732. align-items: center;
  733. gap: 8px;
  734. padding-top: 12px;
  735. border-top: 1px solid var(--border-subtle, #f3f4f6);
  736. }
  737. &__post-action {
  738. display: inline-flex;
  739. align-items: center;
  740. gap: 6px;
  741. padding: 6px 12px;
  742. border-radius: 999px;
  743. border: none;
  744. background: transparent;
  745. color: var(--text-muted);
  746. font-size: 0.875rem;
  747. cursor: pointer;
  748. text-decoration: none;
  749. transition: background 0.15s ease, color 0.15s ease;
  750. &:hover:not(&--stat) {
  751. background: var(--bg-subtle, #f3f4f6);
  752. color: var(--fg-default);
  753. }
  754. &--active {
  755. color: #ef4444;
  756. }
  757. &--stat {
  758. cursor: default;
  759. }
  760. }
  761. // ── Reply composer ──
  762. &__reply-composer {
  763. display: flex;
  764. gap: 12px;
  765. padding: 16px 4px;
  766. border-bottom: 1px solid var(--border-default, #e5e7eb);
  767. background: transparent;
  768. &--login {
  769. justify-content: center;
  770. color: var(--text-muted);
  771. }
  772. }
  773. &__reply-composer-avatar {
  774. width: 36px;
  775. height: 36px;
  776. border-radius: 50%;
  777. overflow: hidden;
  778. flex-shrink: 0;
  779. background: var(--bg-subtle, #f3f4f6);
  780. img {
  781. width: 100%;
  782. height: 100%;
  783. object-fit: cover;
  784. }
  785. }
  786. &__reply-composer-avatar-fallback {
  787. width: 100%;
  788. height: 100%;
  789. display: flex;
  790. align-items: center;
  791. justify-content: center;
  792. font-weight: 700;
  793. color: var(--text-muted);
  794. font-size: 0.875rem;
  795. }
  796. &__reply-composer-body {
  797. flex: 1;
  798. display: flex;
  799. flex-direction: column;
  800. gap: 8px;
  801. min-width: 0;
  802. }
  803. &__reply-composer-target {
  804. display: inline-flex;
  805. align-items: center;
  806. gap: 6px;
  807. padding: 4px 10px;
  808. border-radius: 999px;
  809. background: var(--bg-subtle, #f3f4f6);
  810. color: var(--text-secondary, #4b5563);
  811. font-size: 0.8125rem;
  812. align-self: flex-start;
  813. button {
  814. border: none;
  815. background: transparent;
  816. color: var(--text-muted);
  817. cursor: pointer;
  818. display: inline-flex;
  819. align-items: center;
  820. padding: 0;
  821. &:hover {
  822. color: var(--fg-default);
  823. }
  824. }
  825. }
  826. &__reply-composer-input {
  827. resize: vertical;
  828. min-height: 60px;
  829. padding: 10px 12px;
  830. border: 1px solid var(--border-strong);
  831. border-radius: 3px;
  832. background: var(--bg-input);
  833. font-size: 0.9375rem;
  834. color: var(--fg-default);
  835. outline: none;
  836. font-family: inherit;
  837. transition: border-color 0.3s ease, box-shadow 0.3s ease;
  838. &:hover,
  839. &:focus {
  840. border-color: var(--text-link);
  841. }
  842. &:focus {
  843. box-shadow: inset 1px 2px 2px rgba(0, 0, 0, 0.05), 0 0 4px rgba(44, 112, 170, 0.8);
  844. }
  845. }
  846. &__reply-composer-error {
  847. color: #dc2626;
  848. font-size: 0.8125rem;
  849. margin: 0;
  850. }
  851. &__reply-composer-footer {
  852. display: flex;
  853. align-items: center;
  854. justify-content: space-between;
  855. gap: 8px;
  856. }
  857. &__reply-composer-tools {
  858. display: flex;
  859. align-items: center;
  860. #emojiPicker > button {
  861. width: 32px;
  862. height: 32px;
  863. border-radius: 50%;
  864. border: none;
  865. background: transparent;
  866. padding: 0;
  867. display: inline-flex;
  868. align-items: center;
  869. justify-content: center;
  870. cursor: pointer;
  871. color: var(--text-muted);
  872. svg {
  873. width: 18px;
  874. height: 18px;
  875. }
  876. &:hover {
  877. background: var(--bg-subtle, #f3f4f6);
  878. color: var(--text-link);
  879. }
  880. }
  881. }
  882. &__reply-composer-submit {
  883. display: flex;
  884. align-items: center;
  885. gap: 8px;
  886. }
  887. &__reply-composer-count {
  888. font-size: 0.8125rem;
  889. color: var(--text-muted);
  890. &--over {
  891. color: #dc2626;
  892. font-weight: 600;
  893. }
  894. }
  895. &__reply-composer-btn {
  896. padding: 6px 16px;
  897. border-radius: 4px;
  898. background: #3b82f6;
  899. color: #fff;
  900. font-size: 0.8125rem;
  901. font-weight: 600;
  902. border: 1px solid #3b82f6;
  903. cursor: pointer;
  904. &:hover:not(:disabled) {
  905. background: #2563eb;
  906. border-color: #2563eb;
  907. }
  908. &:disabled {
  909. background: var(--bg-subtle, #e5e7eb);
  910. color: var(--text-muted);
  911. border-color: var(--bg-subtle, #e5e7eb);
  912. cursor: not-allowed;
  913. }
  914. }
  915. // ── Reply list ──
  916. &__reply-list {
  917. display: flex;
  918. flex-direction: column;
  919. gap: 4px;
  920. }
  921. &__reply-count {
  922. font-size: 0.875rem;
  923. font-weight: 600;
  924. color: var(--fg-default);
  925. padding: 8px 4px;
  926. border-bottom: 1px solid var(--border-subtle, #f3f4f6);
  927. }
  928. &__reply-empty {
  929. text-align: center;
  930. color: var(--text-muted);
  931. padding: 32px 16px;
  932. font-size: 0.875rem;
  933. }
  934. &__reply-more-btn {
  935. align-self: center;
  936. margin-top: 8px;
  937. padding: 8px 20px;
  938. border-radius: 999px;
  939. background: transparent;
  940. border: 1px solid var(--border-default, #e5e7eb);
  941. color: var(--text-secondary);
  942. font-size: 0.8125rem;
  943. cursor: pointer;
  944. &:hover:not(:disabled) {
  945. background: var(--bg-subtle);
  946. }
  947. &:disabled {
  948. opacity: 0.6;
  949. cursor: not-allowed;
  950. }
  951. }
  952. &__reply {
  953. display: flex;
  954. gap: 10px;
  955. padding: 12px 4px;
  956. border-bottom: 1px solid var(--border-subtle, #f3f4f6);
  957. &:last-child {
  958. border-bottom: none;
  959. }
  960. &--nested {
  961. margin-left: 32px;
  962. }
  963. }
  964. &__reply-avatar {
  965. width: 32px;
  966. height: 32px;
  967. border-radius: 50%;
  968. overflow: hidden;
  969. flex-shrink: 0;
  970. background: var(--bg-subtle, #f3f4f6);
  971. display: block;
  972. img {
  973. width: 100%;
  974. height: 100%;
  975. object-fit: cover;
  976. }
  977. }
  978. &__reply-avatar-fallback {
  979. width: 100%;
  980. height: 100%;
  981. display: flex;
  982. align-items: center;
  983. justify-content: center;
  984. font-weight: 700;
  985. color: var(--text-muted);
  986. font-size: 0.8125rem;
  987. }
  988. &__reply-body {
  989. flex: 1;
  990. min-width: 0;
  991. }
  992. &__reply-header {
  993. display: flex;
  994. align-items: center;
  995. gap: 4px;
  996. }
  997. &__reply-author {
  998. font-weight: 600;
  999. font-size: 0.875rem;
  1000. color: var(--fg-default);
  1001. text-decoration: none;
  1002. &:hover {
  1003. text-decoration: underline;
  1004. }
  1005. }
  1006. &__reply-time {
  1007. font-size: 0.75rem;
  1008. color: var(--text-muted);
  1009. }
  1010. &__reply-more {
  1011. margin-left: auto;
  1012. width: 24px;
  1013. height: 24px;
  1014. border-radius: 50%;
  1015. border: none;
  1016. background: transparent;
  1017. color: var(--text-muted);
  1018. cursor: pointer;
  1019. display: inline-flex;
  1020. align-items: center;
  1021. justify-content: center;
  1022. &:hover {
  1023. background: var(--bg-subtle);
  1024. color: var(--fg-default);
  1025. }
  1026. }
  1027. &__reply-parent-ref {
  1028. display: inline-flex;
  1029. align-items: center;
  1030. gap: 4px;
  1031. font-size: 0.75rem;
  1032. color: var(--text-muted);
  1033. margin-top: 2px;
  1034. }
  1035. &__reply-content {
  1036. margin: 4px 0;
  1037. font-size: 0.9375rem;
  1038. line-height: 1.5;
  1039. color: var(--text-primary);
  1040. white-space: pre-wrap;
  1041. word-break: break-word;
  1042. &--deleted {
  1043. color: var(--text-muted);
  1044. font-style: italic;
  1045. }
  1046. }
  1047. &__reply-actions {
  1048. display: flex;
  1049. align-items: center;
  1050. gap: 4px;
  1051. margin-top: 4px;
  1052. }
  1053. &__reply-action {
  1054. display: inline-flex;
  1055. align-items: center;
  1056. gap: 3px;
  1057. padding: 4px 8px;
  1058. border-radius: 999px;
  1059. border: none;
  1060. background: transparent;
  1061. color: var(--text-muted);
  1062. font-size: 0.75rem;
  1063. cursor: pointer;
  1064. &:hover {
  1065. background: var(--bg-subtle);
  1066. color: var(--fg-default);
  1067. }
  1068. &--active {
  1069. color: #ef4444;
  1070. }
  1071. }
  1072. // ── Toast (새 글 N개) ──
  1073. &__toast {
  1074. position: fixed;
  1075. top: 72px;
  1076. left: 50%;
  1077. transform: translateX(-50%);
  1078. display: inline-flex;
  1079. align-items: center;
  1080. gap: 6px;
  1081. padding: 8px 16px;
  1082. border-radius: 999px;
  1083. background: #3b82f6;
  1084. color: #fff;
  1085. font-size: 0.875rem;
  1086. font-weight: 600;
  1087. border: none;
  1088. cursor: pointer;
  1089. box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
  1090. z-index: 50;
  1091. &:hover {
  1092. background: #2563eb;
  1093. }
  1094. }
  1095. &__toast-dot {
  1096. width: 8px;
  1097. height: 8px;
  1098. border-radius: 50%;
  1099. background: #fff;
  1100. animation: feed-pulse 1.4s ease-in-out infinite;
  1101. }
  1102. // ── Composer ──
  1103. &__composer {
  1104. display: flex;
  1105. gap: 12px;
  1106. padding: 16px;
  1107. border: 1px solid var(--border-default, #e5e7eb);
  1108. border-radius: 12px;
  1109. background: var(--bg-card, #fff);
  1110. &--login {
  1111. justify-content: center;
  1112. color: var(--text-muted);
  1113. }
  1114. }
  1115. &__composer-avatar {
  1116. width: 40px;
  1117. height: 40px;
  1118. border-radius: 50%;
  1119. overflow: hidden;
  1120. flex-shrink: 0;
  1121. background: var(--bg-subtle, #f3f4f6);
  1122. img {
  1123. width: 100%;
  1124. height: 100%;
  1125. object-fit: cover;
  1126. }
  1127. }
  1128. &__composer-avatar-fallback {
  1129. width: 100%;
  1130. height: 100%;
  1131. display: flex;
  1132. align-items: center;
  1133. justify-content: center;
  1134. font-weight: 700;
  1135. color: var(--text-muted);
  1136. }
  1137. &__composer-body {
  1138. flex: 1;
  1139. display: flex;
  1140. flex-direction: column;
  1141. gap: 10px;
  1142. min-width: 0;
  1143. }
  1144. &__composer-input {
  1145. resize: vertical;
  1146. min-height: 80px;
  1147. padding: 10px 12px;
  1148. border: 1px solid var(--border-strong);
  1149. border-radius: 3px;
  1150. background: var(--bg-input);
  1151. font-size: 1rem;
  1152. color: var(--fg-default);
  1153. outline: none;
  1154. font-family: inherit;
  1155. transition: border-color 0.3s ease, box-shadow 0.3s ease;
  1156. &:hover,
  1157. &:focus {
  1158. border-color: var(--text-link);
  1159. }
  1160. &:focus {
  1161. box-shadow: inset 1px 2px 2px rgba(0, 0, 0, 0.05), 0 0 4px rgba(44, 112, 170, 0.8);
  1162. }
  1163. }
  1164. &__composer-previews {
  1165. display: grid;
  1166. grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  1167. gap: 8px;
  1168. }
  1169. &__composer-preview {
  1170. position: relative;
  1171. aspect-ratio: 1 / 1;
  1172. border-radius: 8px;
  1173. overflow: hidden;
  1174. background: var(--bg-subtle, #f3f4f6);
  1175. img {
  1176. width: 100%;
  1177. height: 100%;
  1178. object-fit: cover;
  1179. }
  1180. }
  1181. &__composer-preview-remove {
  1182. position: absolute;
  1183. top: 6px;
  1184. right: 6px;
  1185. width: 22px;
  1186. height: 22px;
  1187. border-radius: 50%;
  1188. border: none;
  1189. background: rgba(0, 0, 0, 0.55);
  1190. color: #fff;
  1191. cursor: pointer;
  1192. display: inline-flex;
  1193. align-items: center;
  1194. justify-content: center;
  1195. padding: 0;
  1196. line-height: 1;
  1197. transition: background 0.15s ease;
  1198. &:hover {
  1199. background: rgba(0, 0, 0, 0.8);
  1200. }
  1201. }
  1202. &__composer-error {
  1203. color: #dc2626;
  1204. font-size: 0.8125rem;
  1205. }
  1206. &__composer-footer {
  1207. display: flex;
  1208. align-items: center;
  1209. justify-content: space-between;
  1210. gap: 8px;
  1211. border-top: 1px solid var(--border-subtle, #f3f4f6);
  1212. padding-top: 10px;
  1213. }
  1214. &__composer-tools {
  1215. display: flex;
  1216. align-items: center;
  1217. gap: 4px;
  1218. #emojiPicker {
  1219. display: inline-flex;
  1220. align-items: center;
  1221. > button {
  1222. width: 32px;
  1223. height: 32px;
  1224. border-radius: 50%;
  1225. border: none;
  1226. background: transparent;
  1227. padding: 0;
  1228. display: inline-flex;
  1229. align-items: center;
  1230. justify-content: center;
  1231. cursor: pointer;
  1232. color: var(--text-muted);
  1233. transition: background 0.15s ease, color 0.15s ease;
  1234. svg {
  1235. width: 18px;
  1236. height: 18px;
  1237. }
  1238. &:hover,
  1239. &:focus,
  1240. &:active {
  1241. background: var(--bg-subtle, #f3f4f6);
  1242. color: var(--text-link);
  1243. }
  1244. }
  1245. }
  1246. }
  1247. &__composer-tool {
  1248. width: 32px;
  1249. height: 32px;
  1250. border-radius: 50%;
  1251. border: none;
  1252. background: transparent;
  1253. padding: 0;
  1254. display: inline-flex;
  1255. align-items: center;
  1256. justify-content: center;
  1257. color: var(--text-muted);
  1258. cursor: pointer;
  1259. transition: background 0.15s ease, color 0.15s ease;
  1260. &:hover:not(:disabled) {
  1261. background: var(--bg-subtle, #f3f4f6);
  1262. color: var(--fg-default);
  1263. }
  1264. &:disabled {
  1265. opacity: 0.4;
  1266. cursor: not-allowed;
  1267. }
  1268. }
  1269. &__composer-submit {
  1270. display: flex;
  1271. align-items: center;
  1272. gap: 8px;
  1273. }
  1274. &__composer-count {
  1275. font-size: 0.8125rem;
  1276. color: var(--text-muted);
  1277. &--over {
  1278. color: #dc2626;
  1279. font-weight: 600;
  1280. }
  1281. }
  1282. &__composer-submit-btn {
  1283. padding: 8px 20px;
  1284. border-radius: 4px;
  1285. background: #3b82f6;
  1286. color: #fff;
  1287. font-size: 0.875rem;
  1288. font-weight: 600;
  1289. border: 1px solid #3b82f6;
  1290. cursor: pointer;
  1291. &:hover:not(:disabled) {
  1292. background: #2563eb;
  1293. border-color: #2563eb;
  1294. }
  1295. &:disabled {
  1296. background: var(--bg-subtle, #e5e7eb);
  1297. color: var(--text-muted);
  1298. border-color: var(--bg-subtle, #e5e7eb);
  1299. cursor: not-allowed;
  1300. }
  1301. }
  1302. }
  1303. @keyframes feed-pulse {
  1304. 0%, 100% { opacity: 1; }
  1305. 50% { opacity: 0.4; }
  1306. }