lfmylbhf | 789e717 | 2025-06-06 18:37:21 +0800 | [diff] [blame^] | 1 | //全局容器样式 |
| 2 | .resource-detail-container { |
| 3 | max-width: 1200px; |
| 4 | margin: 0 auto; |
| 5 | padding: 0 2rem; |
| 6 | |
| 7 | //资源标题样式 |
| 8 | .resource-header { |
| 9 | font-size: 34px; |
| 10 | color: rgba(63, 74, 73, 1); |
| 11 | margin-top: 22px; |
| 12 | margin-bottom: 20px; |
| 13 | } |
| 14 | |
| 15 | //资源信息样式 |
| 16 | .resource-info { |
| 17 | display: flex; |
| 18 | |
| 19 | .resource-info-detail { |
| 20 | display: flex; |
| 21 | flex-direction: column; |
| 22 | margin-left: 35px; |
| 23 | justify-content: space-around; |
| 24 | |
| 25 | //资源热度样式 |
| 26 | .resource-hot { |
| 27 | display: flex; |
| 28 | |
| 29 | .resource-hot-data { |
| 30 | font-size: 28px; |
| 31 | color: rgba(255, 87, 51, 1); |
| 32 | margin: auto 0 auto 20px; |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | //资源标签样式 |
| 37 | .resource-label { |
| 38 | .resource-label-button { |
| 39 | margin-right: 15px; |
| 40 | width: 80px; |
| 41 | height: 34px; |
| 42 | border-radius: 15px; |
| 43 | border: 1px solid rgba(166, 166, 166, 1); |
| 44 | background-color: rgba(166, 166, 166, 1); |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | //浏览量和下载量样式 |
| 49 | .resource-data { |
| 50 | //margin-top: 10px; |
| 51 | color: rgba(82, 102, 101, 1); |
| 52 | |
| 53 | .pi-eye { |
| 54 | font-size: 21px; |
| 55 | } |
| 56 | |
| 57 | .pi-download { |
| 58 | font-size: 21px; |
| 59 | } |
| 60 | |
| 61 | .resource-data-container-number{ |
| 62 | font-size: 24px; |
| 63 | margin-left: 8px; |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | //发布时间和更新时间样式 |
| 68 | .resource-time { |
| 69 | //margin-top: 10px; |
| 70 | color: rgba(82, 102, 101, 1); |
| 71 | } |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | |
| 76 | //资源简介 |
| 77 | .resource-summary { |
| 78 | margin-top: 15px; |
| 79 | margin-bottom: 15px; |
| 80 | color: rgba(28, 46, 43, 1); |
| 81 | font-size: 18px; |
| 82 | } |
| 83 | |
| 84 | //资源详情样式 |
| 85 | .resource-detail { |
| 86 | white-space: pre-line; /* 保留换行符 */ |
| 87 | line-height: 25px; /* 增加行高增强可读性 */ |
| 88 | } |
| 89 | |
| 90 | //资源操作部分的样式 |
| 91 | .resource-operation { |
| 92 | display: flex; |
| 93 | justify-content: space-between; |
| 94 | margin-bottom: 40px; |
| 95 | margin-top: 40px; |
| 96 | |
| 97 | .resource-author { |
| 98 | display: flex; |
| 99 | justify-content: space-between; |
| 100 | align-items: center; |
| 101 | width: 380px; |
| 102 | |
| 103 | .resource-author-name { |
| 104 | display: flex; |
| 105 | justify-content: center; |
| 106 | font-size: 19px; |
| 107 | color: rgba(82, 102, 101, 1); |
| 108 | width: 200px; |
| 109 | } |
| 110 | |
| 111 | button { |
| 112 | height: 40px; |
| 113 | width: 110px; |
| 114 | background-color: rgba(82, 102, 101, 1); |
| 115 | border: 1px solid rgba(82, 102, 101, 1); |
| 116 | border-radius: 15px; |
| 117 | } |
| 118 | } |
| 119 | |
| 120 | .resource-operation-detail { |
| 121 | display: flex; |
| 122 | justify-content: space-between; |
| 123 | align-items: center; |
| 124 | //height: 44px; |
| 125 | |
| 126 | .resource-operation-detail-data { |
| 127 | margin-right: 55px; |
| 128 | display: flex; |
| 129 | align-items: center; |
| 130 | |
| 131 | span{ |
| 132 | margin-left:4px; |
| 133 | font-size: 17px; |
| 134 | } |
| 135 | } |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | //资源详情样式 |
| 140 | .resource-detail { |
| 141 | .resource-detail-title { |
| 142 | color: rgba(82, 102, 101, 1); |
| 143 | margin-bottom: 25px; |
| 144 | margin-left: 0; |
| 145 | } |
| 146 | |
| 147 | .resource-detail-text { |
| 148 | padding-left: 30px; |
| 149 | color: rgba(28, 46, 43, 1); |
| 150 | } |
| 151 | } |
| 152 | |
| 153 | // 评论区域 |
| 154 | .comments-section { |
| 155 | .comments-header { |
| 156 | display: flex; |
| 157 | justify-content: space-between; |
| 158 | align-items: center; |
| 159 | |
| 160 | h2 { |
| 161 | font-size: 1.5rem; |
| 162 | color: #2d3748; |
| 163 | margin-bottom: 1.5rem; |
| 164 | } |
| 165 | } |
| 166 | |
| 167 | // 评论输入区 |
| 168 | .comments-input { |
| 169 | display: flex; |
| 170 | align-items: center; |
| 171 | gap: 1rem; |
| 172 | padding: 1rem; |
| 173 | border-radius: 0.5rem; |
| 174 | |
| 175 | .p-inputtext { |
| 176 | flex: 1; // 输入框占据剩余空间 |
| 177 | height: 3rem; |
| 178 | } |
| 179 | |
| 180 | .p-button { |
| 181 | height: 3rem; |
| 182 | } |
| 183 | } |
| 184 | |
| 185 | // 评论列表 |
| 186 | .comments-list { |
| 187 | display: flex; |
| 188 | flex-direction: column; |
| 189 | margin-top: 1rem; |
| 190 | gap: 0.5rem; |
| 191 | |
| 192 | .comment-item { |
| 193 | padding: 1.5rem; |
| 194 | border-radius: 0.5rem; |
| 195 | |
| 196 | .comment-user { |
| 197 | display: flex; |
| 198 | align-items: center; |
| 199 | gap: 1rem; |
| 200 | margin-bottom: 1rem; |
| 201 | |
| 202 | .comment-meta { |
| 203 | display: flex; |
| 204 | align-items: center; |
| 205 | width: 100%; |
| 206 | justify-content: space-between; |
| 207 | gap: 0.5rem; |
| 208 | |
| 209 | .comment-time { |
| 210 | justify-content: space-between; |
| 211 | gap: 0.75rem |
| 212 | } |
| 213 | |
| 214 | .username { |
| 215 | margin-left: 0.5rem; |
| 216 | font-weight: 600; |
| 217 | color: #2d3748; |
| 218 | } |
| 219 | |
| 220 | .floor { |
| 221 | color: #718096; |
| 222 | margin-right: 0.75rem; |
| 223 | font-size: 0.875rem; |
| 224 | } |
| 225 | |
| 226 | .time { |
| 227 | color: #a0aec0; |
| 228 | font-size: 0.875rem; |
| 229 | } |
| 230 | } |
| 231 | } |
| 232 | |
| 233 | .comment-content { |
| 234 | padding-left: 3.5rem; |
| 235 | |
| 236 | .reply-to { |
| 237 | display: inline-block; |
| 238 | color: #93C4C1; |
| 239 | font-size: 0.875rem; |
| 240 | margin-bottom: 0.5rem; |
| 241 | } |
| 242 | |
| 243 | p { |
| 244 | color: #4a5568; |
| 245 | margin: 0; |
| 246 | line-height: 1.5; |
| 247 | } |
| 248 | } |
| 249 | } |
| 250 | } |
| 251 | } |
| 252 | |
| 253 | // 购买弹窗样式 |
| 254 | .purchase-dialog { |
| 255 | .form-text { |
| 256 | } |
| 257 | } |
| 258 | } |
| 259 | |
| 260 | // 取消进入社区的下划线 |
| 261 | .no-underline { |
| 262 | text-decoration: none; |
| 263 | color: rgba(0, 186, 173, 1); |
| 264 | font-size: 18px; |
| 265 | } |
| 266 | |