Skip to content

Commit b010f73

Browse files
committed
게시물 상세 수정
1 parent 19c2294 commit b010f73

2 files changed

Lines changed: 293 additions & 35 deletions

File tree

src/components/community/PostDetail.css

Lines changed: 90 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,14 @@
267267
.comment-editor {
268268
display: flex;
269269
flex-direction: column;
270-
gap: 12px;
270+
gap: 10px;
271+
margin-bottom: 18px;
272+
}
273+
274+
.comment-hint {
275+
font-size: 11.5px;
276+
color: var(--detail-muted);
277+
margin-top: -6px;
271278
}
272279

273280
.comment-editor textarea {
@@ -291,10 +298,6 @@
291298
background: var(--detail-surface);
292299
}
293300

294-
.comment-tip {
295-
font-size: 12px;
296-
color: var(--detail-muted);
297-
}
298301

299302
.comment-editor-actions {
300303
display: flex;
@@ -497,9 +500,18 @@
497500
}
498501

499502
.empty-comment {
500-
margin-top: 36px;
503+
margin-top: 28px;
501504
text-align: center;
502505
color: var(--detail-muted);
506+
display: flex;
507+
flex-direction: column;
508+
align-items: center;
509+
gap: 4px;
510+
}
511+
512+
.empty-icon {
513+
font-size: 28px;
514+
margin-bottom: 4px;
503515
}
504516

505517
.comment-title {
@@ -568,6 +580,56 @@
568580
color: var(--detail-muted);
569581
}
570582

583+
.author-stats-list {
584+
margin: 0;
585+
padding: 0;
586+
list-style: none;
587+
display: flex;
588+
flex-direction: column;
589+
gap: 6px;
590+
font-size: 13px;
591+
color: var(--detail-muted);
592+
}
593+
594+
.author-stats-list li {
595+
display: flex;
596+
align-items: center;
597+
justify-content: space-between;
598+
gap: 12px;
599+
}
600+
601+
.author-stats-list li strong {
602+
color: var(--detail-text);
603+
font-weight: 700;
604+
}
605+
606+
.author-recent {
607+
flex-direction: column;
608+
align-items: flex-start;
609+
justify-content: flex-start;
610+
gap: 6px;
611+
}
612+
613+
.author-recent button {
614+
padding: 0;
615+
border: none;
616+
background: none;
617+
color: var(--detail-accent);
618+
font-size: 13px;
619+
font-weight: 600;
620+
cursor: pointer;
621+
text-align: left;
622+
}
623+
624+
.author-recent button:hover {
625+
text-decoration: underline;
626+
}
627+
628+
.author-recent time {
629+
font-size: 12px;
630+
color: var(--detail-muted);
631+
}
632+
571633
.related-qna-header {
572634
display: flex;
573635
align-items: center;
@@ -603,13 +665,25 @@
603665
}
604666

605667
.related-item {
668+
width: 100%;
606669
background: var(--detail-bg);
607670
border: 1px solid var(--detail-border);
608671
border-radius: 14px;
609672
padding: 12px 14px;
610673
display: flex;
611674
flex-direction: column;
612675
gap: 6px;
676+
cursor: pointer;
677+
text-align: left;
678+
font: inherit;
679+
transition: border-color 0.18s ease, transform 0.18s ease;
680+
}
681+
682+
.related-item:hover,
683+
.related-item:focus-visible {
684+
border-color: rgba(124, 92, 255, 0.45);
685+
transform: translateY(-2px);
686+
outline: none;
613687
}
614688

615689
.related-title {
@@ -633,6 +707,16 @@
633707
gap: 8px;
634708
}
635709

710+
.related-empty {
711+
font-size: 13px;
712+
color: var(--detail-muted);
713+
padding: 10px 12px;
714+
border: 1px dashed var(--detail-border);
715+
border-radius: 12px;
716+
text-align: center;
717+
background: var(--detail-bg);
718+
}
719+
636720
@media (max-width: 1080px) {
637721
.post-detail-container {
638722
width: min(1060px, 100% - 36px);

0 commit comments

Comments
 (0)