blob: 097d35078e08fb7e133a53a90a743e3b2494aea9 [file] [log] [blame]
LaoeGaociee7c5772025-05-28 12:34:47 +08001$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
53.tools {
54 display: flex;
55 align-items: center;
56 gap: 2rem;
LaoeGaoci388f7762025-05-29 22:24:35 +080057
LaoeGaociee7c5772025-05-28 12:34:47 +080058 .no-underline {
59 text-decoration: none;
60 }
LaoeGaoci388f7762025-05-29 22:24:35 +080061
LaoeGaociee7c5772025-05-28 12:34:47 +080062 .tool-item {
63 display: flex;
64 flex-direction: column;
65 align-items: center;
66 gap: 0.25rem;
67
68 i {
69 font-size: 1.25rem;
70 color: $icon-color;
71 }
72
73 span {
74 font-size: 0.75rem;
75 color: #333;
76 }
77 }
78
79 .p-avatar {
80 margin-left: 1rem;
81 }
82}
83
84.logo-name {
85 display: flex;
86 align-items: center;
LaoeGaoci388f7762025-05-29 22:24:35 +080087 gap: 1rem;
LaoeGaociee7c5772025-05-28 12:34:47 +080088
89 .logo {
90 width: 40px;
91 height: 40px;
92 }
93
94 .name {
LaoeGaoci388f7762025-05-29 22:24:35 +080095 font-size: 2rem;
LaoeGaociee7c5772025-05-28 12:34:47 +080096 font-weight: bold;
97 }
98}
99
100// 全局容器样式
101.main-container {
102 max-width: 1200px;
103 margin: 0 auto;
104 padding: 0 2rem;
105}
106
107//TabView组件样式
108.p-tabview {
109 background-color: #F0F4F7;
110}
111
112.p-tabview-panels {
113 background-color: #F0F4F7;
114}
115
116.p-tabview-nav {
117 background-color: #F0F4F7;
118}
119
120.p-tabview-nav-link {
121 background-color: #F0F4F7;
122}
123
124//分页样式
125.Paginator {
126 display: flex;
127 justify-content: center;
128 align-items: center;
129 background-color: #F0F4F7;
130
131 // 高亮状态的分页按钮
132 .p-highlight {
133 background-color: rgba(182, 238, 235, 0.4) !important;
134 color: #768786 !important;
135 border-color: #768786 !important;
136 }
137}
138
139// 大标题样式
140h1,
141.heading,
142.title {
143 color: $heading-color;
144 font-size: 2rem;
145 font-weight: bold;
146}
147
148
149// 搜索栏样式
LaoeGaoci388f7762025-05-29 22:24:35 +0800150.searchBar {
LaoeGaociee7c5772025-05-28 12:34:47 +0800151 max-width: 600px;
152 margin: 2rem auto;
153 position: relative;
154
155 .pi-search {
156 position: absolute;
157 color: $icon-color;
158 left: 1rem;
159 top: 50%;
160 transform: translateY(-50%);
161 z-index: 1;
162 }
163
164 .search-helper {
165 width: 100%;
166 height: 3rem;
167 padding-left: 2.5rem;
168 border-radius: 1.5rem;
169 font-size: 1.1rem;
170 border: 1px solid #ddd;
171 }
LaoeGaoci388f7762025-05-29 22:24:35 +0800172}
173
174// 评论区域
175.comments-section {
176 .comments-header {
177 display: flex;
178 justify-content: space-between;
179 align-items: center;
180
181 h2 {
182 font-size: 1.5rem;
183 color: #2d3748;
184 margin-bottom: 1.5rem;
185 }
186 }
187
188 // 评论输入区
189 .comments-input {
190 display: flex;
191 align-items: center;
192 gap: 1rem;
193 padding: 1rem;
194 border-radius: 0.5rem;
195
196 .p-inputtext {
197 flex: 1; // 输入框占据剩余空间
198 height: 3rem;
199 }
200
201 .p-button {
202 height: 3rem;
203 }
204 }
205
206 // 评论列表
207 .comments-list {
208 display: flex;
209 flex-direction: column;
210 margin-top: 1rem;
211 gap: 0.5rem;
212
213 .comment-item {
214 padding: 1.5rem;
215 border-radius: 0.5rem;
216
217 .comment-user {
218 display: flex;
219 align-items: center;
220 gap: 1rem;
221 margin-bottom: 1rem;
222
223 .comment-meta {
224 display: flex;
225 align-items: center;
226 width: 100%;
227 justify-content: space-between;
228 gap: 0.5rem;
229
230 .comment-time {
231 justify-content: space-between;
232 gap: 0.75rem
233 }
234
235 .username {
236 margin-left: 0.5rem;
237 font-weight: 600;
238 color: #2d3748;
239 }
240
241 .floor {
242 color: #718096;
243 margin-right: 0.75rem;
244 font-size: 0.875rem;
245 }
246
247 .time {
248 color: #a0aec0;
249 font-size: 0.875rem;
250 }
251 }
252 }
253
254 .comment-content {
255 padding-left: 3.5rem;
256
257 .reply-to {
258 display: inline-block;
259 color: #93C4C1;
260 font-size: 0.875rem;
261 margin-bottom: 0.5rem;
262 }
263
264 p {
265 color: #4a5568;
266 margin: 0;
267 line-height: 1.5;
268 }
269 }
270 }
271 }
272}
273
274.p-sidebar-header,
275.p-sidebar-custom-header {
276 padding: 10px !important;
277}
278
279.p-overlaypanel-content {
280 padding: 0 !important;
281}
282
283.reply {
284
285 .reply-input {
286 display: flex;
287 flex-direction: row;
288 align-items: center;
289 justify-self: center;
290 gap: 3rem;
291 padding: 1rem;
292 }
LaoeGaociee7c5772025-05-28 12:34:47 +0800293}