LaoeGaoci | ee7c577 | 2025-05-28 12:34:47 +0800 | [diff] [blame^] | 1 | .thread-detail { |
| 2 | max-width: 1200px; |
| 3 | margin: 0 auto; |
| 4 | padding: 2rem; |
| 5 | |
| 6 | // 帖子头部 |
| 7 | .thread-header { |
| 8 | display: flex; |
| 9 | justify-content: space-between; |
| 10 | align-items: center; |
| 11 | margin-bottom: 2rem; |
| 12 | |
| 13 | .user-info { |
| 14 | display: flex; |
| 15 | align-items: center; |
| 16 | gap: 1rem; |
| 17 | |
| 18 | .user-meta { |
| 19 | h3 { |
| 20 | margin: 0; |
| 21 | font-size: 1.25rem; |
| 22 | color: #2d3748; |
| 23 | } |
| 24 | |
| 25 | span { |
| 26 | color: #718096; |
| 27 | font-size: 0.875rem; |
| 28 | } |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | .post-time { |
| 33 | color: #718096; |
| 34 | font-size: 0.875rem; |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | // 帖子内容 |
| 39 | .thread-content { |
| 40 | h1 { |
| 41 | font-size: 2rem; |
| 42 | color: #1a202c; |
| 43 | margin-bottom: 1.5rem; |
| 44 | } |
| 45 | |
| 46 | .content-body { |
| 47 | .thread-image { |
| 48 | width: 100%; |
| 49 | height: auto; |
| 50 | border-radius: 0.5rem; |
| 51 | margin-bottom: 1.5rem; |
| 52 | } |
| 53 | |
| 54 | .thread-image { |
| 55 | display: flex; |
| 56 | align-items: center; |
| 57 | justify-content: center; |
| 58 | } |
| 59 | |
| 60 | p { |
| 61 | font-size: 1rem; |
| 62 | line-height: 1.75; |
| 63 | color: #4a5568; |
| 64 | margin-bottom: 2rem; |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | .thread-actions { |
| 69 | display: flex; |
| 70 | gap: 1rem; |
| 71 | margin-bottom: 2rem; |
| 72 | |
| 73 | .like-button { |
| 74 | &.liked { |
| 75 | background: #f49c79; |
| 76 | } |
| 77 | } |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | // 评论区域 |
| 82 | .comments-section { |
| 83 | .comments-header { |
| 84 | display: flex; |
| 85 | justify-content: space-between; |
| 86 | align-items: center; |
| 87 | |
| 88 | h2 { |
| 89 | font-size: 1.5rem; |
| 90 | color: #2d3748; |
| 91 | margin-bottom: 1.5rem; |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | // 评论输入区 |
| 96 | .comments-input { |
| 97 | display: flex; |
| 98 | align-items: center; |
| 99 | gap: 1rem; |
| 100 | padding: 1rem; |
| 101 | border-radius: 0.5rem; |
| 102 | |
| 103 | .p-inputtext { |
| 104 | flex: 1; // 输入框占据剩余空间 |
| 105 | height: 3rem; |
| 106 | } |
| 107 | |
| 108 | .p-button { |
| 109 | height: 3rem; |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | // 评论列表 |
| 114 | .comments-list { |
| 115 | display: flex; |
| 116 | flex-direction: column; |
| 117 | margin-top: 1rem; |
| 118 | gap: 0.5rem; |
| 119 | |
| 120 | .comment-item { |
| 121 | padding: 1.5rem; |
| 122 | border-radius: 0.5rem; |
| 123 | |
| 124 | .comment-user { |
| 125 | display: flex; |
| 126 | align-items: center; |
| 127 | gap: 1rem; |
| 128 | margin-bottom: 1rem; |
| 129 | |
| 130 | .comment-meta { |
| 131 | display: flex; |
| 132 | align-items: center; |
| 133 | width: 100%; |
| 134 | justify-content: space-between; |
| 135 | gap: 0.5rem; |
| 136 | |
| 137 | .comment-time { |
| 138 | justify-content: space-between; |
| 139 | gap: 0.75rem |
| 140 | } |
| 141 | |
| 142 | .username { |
| 143 | margin-left: 0.5rem; |
| 144 | font-weight: 600; |
| 145 | color: #2d3748; |
| 146 | } |
| 147 | |
| 148 | .floor { |
| 149 | color: #718096; |
| 150 | margin-right: 0.75rem; |
| 151 | font-size: 0.875rem; |
| 152 | } |
| 153 | |
| 154 | .time { |
| 155 | color: #a0aec0; |
| 156 | font-size: 0.875rem; |
| 157 | } |
| 158 | } |
| 159 | } |
| 160 | |
| 161 | .comment-content { |
| 162 | padding-left: 3.5rem; |
| 163 | |
| 164 | .reply-to { |
| 165 | display: inline-block; |
| 166 | color: #93C4C1; |
| 167 | font-size: 0.875rem; |
| 168 | margin-bottom: 0.5rem; |
| 169 | } |
| 170 | |
| 171 | p { |
| 172 | color: #4a5568; |
| 173 | margin: 0; |
| 174 | line-height: 1.5; |
| 175 | } |
| 176 | } |
| 177 | } |
| 178 | } |
| 179 | } |
| 180 | } |
| 181 | |
| 182 | .p-sidebar-header, |
| 183 | .p-sidebar-custom-header { |
| 184 | padding: 10px !important; |
| 185 | } |
| 186 | |
| 187 | .p-overlaypanel-content { |
| 188 | padding: 0 !important; |
| 189 | } |
| 190 | |
| 191 | .reply { |
| 192 | |
| 193 | .reply-input { |
| 194 | display: flex; |
| 195 | flex-direction: row; |
| 196 | align-items: center; |
| 197 | justify-self: center; |
| 198 | gap: 3rem; |
| 199 | padding: 1rem; |
| 200 | } |
| 201 | } |