LaoeGaoci | ee7c577 | 2025-05-28 12:34:47 +0800 | [diff] [blame] | 1 | $function-button-color: #93C4C1; |
2 | $nomal-button-color: #526665; | ||||
3 | $heading-color: #2c3e50; | ||||
4 | $subheading-color: #93C4C1; | ||||
5 | $icon-color: #93C4C1; | ||||
6 | $background-color: #F0F4F7; | ||||
7 | |||||
8 | .container { | ||||
9 | display: flex; | ||||
10 | flex-direction: column; | ||||
11 | background-color: $background-color; | ||||
12 | min-height: 100vh; | ||||
13 | } | ||||
14 | |||||
15 | .toolbar { | ||||
16 | display: flex; | ||||
17 | justify-content: space-between; | ||||
18 | align-items: center; | ||||
19 | padding: 1rem 2rem; | ||||
20 | background-color: #FFF; | ||||
21 | position: sticky; | ||||
22 | top: 0; | ||||
23 | z-index: 1000; | ||||
24 | |||||
25 | } | ||||
26 | |||||
27 | // ##第一部分:logo-name | ||||
28 | .logo-name { | ||||
29 | display: flex; | ||||
30 | align-items: center; | ||||
31 | gap: 2rem; | ||||
32 | |||||
33 | .logo { | ||||
34 | width: 40px; | ||||
35 | height: 40px; | ||||
36 | } | ||||
37 | |||||
38 | .name { | ||||
39 | font-size: 3rem; | ||||
40 | font-weight: bold; | ||||
41 | color: #333; | ||||
42 | } | ||||
43 | } | ||||
44 | |||||
45 | // ##第二部分:tools | ||||
46 | .tools { | ||||
47 | display: flex; | ||||
48 | align-items: center; | ||||
49 | gap: 1rem; | ||||
50 | |||||
51 | } | ||||
52 | |||||
LaoeGaoci | 8f6d0db | 2025-06-03 22:57:04 +0800 | [diff] [blame^] | 53 | .no-underline { |
54 | text-decoration: none; | ||||
55 | } | ||||
56 | |||||
LaoeGaoci | ee7c577 | 2025-05-28 12:34:47 +0800 | [diff] [blame] | 57 | .tools { |
58 | display: flex; | ||||
59 | align-items: center; | ||||
60 | gap: 2rem; | ||||
LaoeGaoci | 388f776 | 2025-05-29 22:24:35 +0800 | [diff] [blame] | 61 | |
LaoeGaoci | ee7c577 | 2025-05-28 12:34:47 +0800 | [diff] [blame] | 62 | .tool-item { |
63 | display: flex; | ||||
64 | flex-direction: column; | ||||
65 | align-items: center; | ||||
66 | gap: 0.25rem; | ||||
LaoeGaoci | 8f6d0db | 2025-06-03 22:57:04 +0800 | [diff] [blame^] | 67 | transition: color 0.5s ease; |
LaoeGaoci | ee7c577 | 2025-05-28 12:34:47 +0800 | [diff] [blame] | 68 | |
69 | i { | ||||
70 | font-size: 1.25rem; | ||||
71 | color: $icon-color; | ||||
72 | } | ||||
73 | |||||
74 | span { | ||||
75 | font-size: 0.75rem; | ||||
76 | color: #333; | ||||
77 | } | ||||
LaoeGaoci | 8f6d0db | 2025-06-03 22:57:04 +0800 | [diff] [blame^] | 78 | |
79 | &:active { | ||||
80 | i { | ||||
81 | color: #14b8a6; // 点击时图标变色 | ||||
82 | } | ||||
83 | |||||
84 | span { | ||||
85 | color: #14b8a6; // 点击时文字变色 | ||||
86 | } | ||||
87 | } | ||||
LaoeGaoci | ee7c577 | 2025-05-28 12:34:47 +0800 | [diff] [blame] | 88 | } |
89 | |||||
90 | .p-avatar { | ||||
91 | margin-left: 1rem; | ||||
92 | } | ||||
93 | } | ||||
94 | |||||
95 | .logo-name { | ||||
96 | display: flex; | ||||
97 | align-items: center; | ||||
LaoeGaoci | 388f776 | 2025-05-29 22:24:35 +0800 | [diff] [blame] | 98 | gap: 1rem; |
LaoeGaoci | ee7c577 | 2025-05-28 12:34:47 +0800 | [diff] [blame] | 99 | |
100 | .logo { | ||||
101 | width: 40px; | ||||
102 | height: 40px; | ||||
103 | } | ||||
104 | |||||
105 | .name { | ||||
LaoeGaoci | 388f776 | 2025-05-29 22:24:35 +0800 | [diff] [blame] | 106 | font-size: 2rem; |
LaoeGaoci | ee7c577 | 2025-05-28 12:34:47 +0800 | [diff] [blame] | 107 | font-weight: bold; |
108 | } | ||||
109 | } | ||||
110 | |||||
111 | // 全局容器样式 | ||||
112 | .main-container { | ||||
113 | max-width: 1200px; | ||||
114 | margin: 0 auto; | ||||
115 | padding: 0 2rem; | ||||
116 | } | ||||
117 | |||||
118 | //TabView组件样式 | ||||
119 | .p-tabview { | ||||
120 | background-color: #F0F4F7; | ||||
121 | } | ||||
122 | |||||
123 | .p-tabview-panels { | ||||
124 | background-color: #F0F4F7; | ||||
125 | } | ||||
126 | |||||
127 | .p-tabview-nav { | ||||
128 | background-color: #F0F4F7; | ||||
129 | } | ||||
130 | |||||
131 | .p-tabview-nav-link { | ||||
132 | background-color: #F0F4F7; | ||||
133 | } | ||||
134 | |||||
135 | //分页样式 | ||||
136 | .Paginator { | ||||
137 | display: flex; | ||||
138 | justify-content: center; | ||||
139 | align-items: center; | ||||
140 | background-color: #F0F4F7; | ||||
141 | |||||
142 | // 高亮状态的分页按钮 | ||||
143 | .p-highlight { | ||||
144 | background-color: rgba(182, 238, 235, 0.4) !important; | ||||
145 | color: #768786 !important; | ||||
146 | border-color: #768786 !important; | ||||
147 | } | ||||
148 | } | ||||
149 | |||||
150 | // 大标题样式 | ||||
151 | h1, | ||||
152 | .heading, | ||||
153 | .title { | ||||
154 | color: $heading-color; | ||||
155 | font-size: 2rem; | ||||
156 | font-weight: bold; | ||||
157 | } | ||||
158 | |||||
159 | |||||
160 | // 搜索栏样式 | ||||
LaoeGaoci | 388f776 | 2025-05-29 22:24:35 +0800 | [diff] [blame] | 161 | .searchBar { |
LaoeGaoci | ee7c577 | 2025-05-28 12:34:47 +0800 | [diff] [blame] | 162 | max-width: 600px; |
163 | margin: 2rem auto; | ||||
164 | position: relative; | ||||
165 | |||||
166 | .pi-search { | ||||
167 | position: absolute; | ||||
168 | color: $icon-color; | ||||
169 | left: 1rem; | ||||
170 | top: 50%; | ||||
171 | transform: translateY(-50%); | ||||
172 | z-index: 1; | ||||
173 | } | ||||
174 | |||||
175 | .search-helper { | ||||
176 | width: 100%; | ||||
177 | height: 3rem; | ||||
178 | padding-left: 2.5rem; | ||||
179 | border-radius: 1.5rem; | ||||
180 | font-size: 1.1rem; | ||||
181 | border: 1px solid #ddd; | ||||
182 | } | ||||
LaoeGaoci | 388f776 | 2025-05-29 22:24:35 +0800 | [diff] [blame] | 183 | } |
184 | |||||
185 | // 评论区域 | ||||
186 | .comments-section { | ||||
187 | .comments-header { | ||||
188 | display: flex; | ||||
189 | justify-content: space-between; | ||||
190 | align-items: center; | ||||
191 | |||||
192 | h2 { | ||||
193 | font-size: 1.5rem; | ||||
194 | color: #2d3748; | ||||
195 | margin-bottom: 1.5rem; | ||||
196 | } | ||||
197 | } | ||||
198 | |||||
199 | // 评论输入区 | ||||
200 | .comments-input { | ||||
201 | display: flex; | ||||
202 | align-items: center; | ||||
203 | gap: 1rem; | ||||
204 | padding: 1rem; | ||||
205 | border-radius: 0.5rem; | ||||
206 | |||||
207 | .p-inputtext { | ||||
208 | flex: 1; // 输入框占据剩余空间 | ||||
209 | height: 3rem; | ||||
210 | } | ||||
211 | |||||
212 | .p-button { | ||||
213 | height: 3rem; | ||||
214 | } | ||||
215 | } | ||||
216 | |||||
217 | // 评论列表 | ||||
218 | .comments-list { | ||||
219 | display: flex; | ||||
220 | flex-direction: column; | ||||
221 | margin-top: 1rem; | ||||
222 | gap: 0.5rem; | ||||
223 | |||||
224 | .comment-item { | ||||
225 | padding: 1.5rem; | ||||
226 | border-radius: 0.5rem; | ||||
227 | |||||
228 | .comment-user { | ||||
229 | display: flex; | ||||
230 | align-items: center; | ||||
231 | gap: 1rem; | ||||
232 | margin-bottom: 1rem; | ||||
233 | |||||
234 | .comment-meta { | ||||
235 | display: flex; | ||||
236 | align-items: center; | ||||
237 | width: 100%; | ||||
238 | justify-content: space-between; | ||||
239 | gap: 0.5rem; | ||||
240 | |||||
241 | .comment-time { | ||||
242 | justify-content: space-between; | ||||
243 | gap: 0.75rem | ||||
244 | } | ||||
245 | |||||
246 | .username { | ||||
247 | margin-left: 0.5rem; | ||||
248 | font-weight: 600; | ||||
249 | color: #2d3748; | ||||
250 | } | ||||
251 | |||||
252 | .floor { | ||||
253 | color: #718096; | ||||
254 | margin-right: 0.75rem; | ||||
255 | font-size: 0.875rem; | ||||
256 | } | ||||
257 | |||||
258 | .time { | ||||
259 | color: #a0aec0; | ||||
260 | font-size: 0.875rem; | ||||
261 | } | ||||
262 | } | ||||
263 | } | ||||
264 | |||||
265 | .comment-content { | ||||
266 | padding-left: 3.5rem; | ||||
267 | |||||
268 | .reply-to { | ||||
269 | display: inline-block; | ||||
270 | color: #93C4C1; | ||||
271 | font-size: 0.875rem; | ||||
272 | margin-bottom: 0.5rem; | ||||
273 | } | ||||
274 | |||||
275 | p { | ||||
276 | color: #4a5568; | ||||
277 | margin: 0; | ||||
278 | line-height: 1.5; | ||||
279 | } | ||||
280 | } | ||||
281 | } | ||||
282 | } | ||||
283 | } | ||||
284 | |||||
285 | .p-sidebar-header, | ||||
286 | .p-sidebar-custom-header { | ||||
287 | padding: 10px !important; | ||||
288 | } | ||||
289 | |||||
290 | .p-overlaypanel-content { | ||||
291 | padding: 0 !important; | ||||
292 | } | ||||
293 | |||||
294 | .reply { | ||||
295 | |||||
296 | .reply-input { | ||||
297 | display: flex; | ||||
298 | flex-direction: row; | ||||
299 | align-items: center; | ||||
300 | justify-self: center; | ||||
301 | gap: 3rem; | ||||
302 | padding: 1rem; | ||||
303 | } | ||||
LaoeGaoci | ee7c577 | 2025-05-28 12:34:47 +0800 | [diff] [blame] | 304 | } |