@@ -101,7 +101,6 @@ $succN: #2ecc71;
101
101
.pg-nav-content {
102
102
position : absolute ;
103
103
right : 0 ;
104
- top : 2.5rem ;
105
104
min-width : 7.5rem ;
106
105
opacity : 0 ;
107
106
transform : translateY (50% );
@@ -125,70 +124,33 @@ $succN: #2ecc71;
125
124
.fixed-footer {
126
125
bottom : 0 ;
127
126
}
128
-
129
- /* loading */
130
- .page-loading {
127
+ /* footer nav */
128
+ .fixed-footer-nav {
131
129
position : fixed ;
132
- top : 0 ;
133
- width : 100% ;
134
- height : 100% ;
135
- background : rgba (0 , 0 , 0 , 0.75 );
136
- z-index : $z-lod ;
137
- .v-dot1 {
138
- height : 60px ;
139
- width : 60px ;
140
- position : absolute ;
141
- top : calc (50% - 30px );
142
- left : calc (50% - 30px );
143
- animation : v- dotRotate 2s 0s infinite linear ;
144
- animation-fill-mode : forwards ;
145
- .v-dot2 {
146
- background-color : rgb (93 , 197 , 150 );
147
- height : 30px ;
148
- width : 30px ;
149
- border-radius : 100% ;
150
- animation : v- dotBounce 2s 0s infinite linear ;
151
- animation-fill-mode : forwards ;
152
- position : absolute ;
153
- top : 0 ;
154
- bottom : auto ;
155
- }
156
- .v-dot3 {
157
- animation : v- dotBounce 2s -1s infinite linear ;
158
- animation-fill-mode : forwards ;
159
- position : absolute ;
160
- top : auto ;
161
- bottom : 0 ;
162
- background-color : rgb (93 , 197 , 150 );
163
- height : 30px ;
164
- width : 30px ;
165
- border-radius : 100% ;
130
+ bottom : 0 ;
131
+ left : 0 ;
132
+ right : 0 ;
133
+ z-index : $z-fix ;
134
+ background : #fff ;
135
+ padding : 10px ;
136
+ border-top : 1px solid #eee ;
137
+ > ul {
138
+ display : flex ;
139
+ text-align : center ;
140
+ > li {
141
+ width : 100% ;
166
142
}
167
143
}
168
144
}
169
- @keyframes v-dotRotate {
170
- 100% {
171
- transform : rotate (360deg );
172
- }
173
- }
174
- @keyframes v-dotBounce {
175
- 0%,
176
- 100% {
177
- transform : scale (0 );
178
- }
179
- 50% {
180
- transform : scale (1.0 );
181
- }
182
- }
183
145
184
146
/* -----------------------------------------------------------------------
185
147
------------------------------ Home Style ------------------------------
186
148
-----------------------------------------------------------------------*/
187
149
.articles {
188
150
.articles-nav {
189
- margin : 10 px 0 ;
151
+ margin : 0.625 rem 0 ;
190
152
padding : 0 ;
191
- box-shadow : 0 0 px 5 px rgba (0 , 0 , 0 , 0.15 );
153
+ box-shadow : 0 0 0.3125 rem rgba (0 , 0 , 0 , 0.15 );
192
154
overflow : hidden ;
193
155
& ::-webkit-scrollbar {
194
156
display : none ;
@@ -226,7 +188,7 @@ $succN: #2ecc71;
226
188
height : 7.5rem ;
227
189
background-size : cover ;
228
190
background-position : center center ;
229
- border-radius : 5 px ;
191
+ border-radius : 0.3125 rem ;
230
192
border : 1px solid #eee ;
231
193
}
232
194
.cont-prev {
@@ -281,23 +243,23 @@ $succN: #2ecc71;
281
243
color : #888 ;
282
244
}
283
245
.article-desc {
284
- padding : 15 px 0 ;
246
+ padding : 0.9375 rem 0 ;
285
247
color : #999 ;
286
- font-size : 15 px ;
248
+ font-size : 0.9375 rem ;
287
249
margin-bottom : 0 ;
288
250
& :after {
289
251
display : block ;
290
- width : 160 px ;
291
- height : 4 px ;
292
- border-radius : 3 px ;
252
+ width : 10 rem ;
253
+ height : 0.25 rem ;
254
+ border-radius : 0.1875 rem ;
293
255
background : #efefef ;
294
256
content : " " ;
295
257
margin-top : 1rem ;
296
258
}
297
259
}
298
260
.article-content {
299
261
width : 100% ;
300
- font-size : 14 px ;
262
+ font-size : 0.875 rem ;
301
263
> p {
302
264
margin-bottom : 0.625rem ;
303
265
}
@@ -308,19 +270,123 @@ $succN: #2ecc71;
308
270
.dp-highlighter {
309
271
width : 100% ;
310
272
overflow-x : auto ;
311
- margin : 15 px 0 ;
273
+ margin : 0.9375 rem 0 ;
312
274
ol {
313
- margin : 0 0 2 px 15 px ;
275
+ margin : 0 0 0.125 rem 0.9375 rem ;
314
276
li {
315
277
white-space : nowrap ;
316
278
}
317
279
}
318
280
}
319
281
}
282
+ .article-protected {
283
+ margin : 2.1875rem 0.625rem ;
284
+ padding : 1.5625rem 0.9375rem ;
285
+ border : 0.125rem dashed #0887e2 ;
286
+ > p {
287
+ color : #999 ;
288
+ line-height : 1 ;
289
+ margin : 0.3125rem 0 ;
290
+ font-size : 0.875rem ;
291
+ text-align : right ;
292
+ }
293
+ > input {
294
+ position : relative ;
295
+ & ::placeholder {
296
+ color : #999 ;
297
+ }
298
+ & ::before {
299
+ content : " \e600 " ;
300
+ }
301
+ }
302
+ }
303
+ .article-comments {
304
+ > h3 {
305
+ font-size : 1.125rem ;
306
+ margin-top : 2.1875rem ;
307
+ }
308
+ ul {
309
+ li {
310
+ margin : 0.3125rem auto ;
311
+ padding : 0.3125rem 0 ;
312
+ border-bottom : 1px solid #ccc ;
313
+ }
314
+ }
315
+ .comment-content {
316
+ display : flex ;
317
+ .comment-avatar {
318
+ text-align : center ;
319
+ width : 3.75rem ;
320
+ padding : 0 0.3125rem ;
321
+ img {
322
+ display : inline-block ;
323
+ width : 3rem ;
324
+ height : 3rem ;
325
+ border-radius : 50% ;
326
+ border : 1px solid #eee ;
327
+ white-space : nowrap ;
328
+ text-overflow : clip ;
329
+ overflow : hidden ;
330
+ }6
331
+ p {
332
+ font-size : 0.875rem ;
333
+ white-space : nowrap ;
334
+ text-overflow : ellipsis ;
335
+ overflow-x : hidden ;
336
+ }
337
+ }
338
+ .comment-desc {
339
+ width : calc (100% - 3.75rem );
340
+ .comment-info {
341
+ font-size : 0.75rem ;
342
+ color : #999 ;
343
+ margin-top : 0.3125rem ;
344
+ span :first-child {
345
+ font-size : 1rem ;
346
+ font-weight : bold ;
347
+ color : #222 ;
348
+ }
349
+ }
350
+ .comment-response {
351
+ min-height : 3rem ;
352
+ font-size : 0.875rem ;
353
+ color : #555 ;
354
+ }
355
+ }
356
+ }
357
+ }
358
+ }
359
+ .fixed-response {
360
+ display : flex ;
361
+ .response-input {
362
+ width : calc (100% - 2.875rem );
363
+ input {
364
+ border : none ;
365
+ box-shadow : none ;
366
+ border-radius : 0 ;
367
+ border-bottom : 1px solid #aaa ;
368
+ & :focus {
369
+ border-color : $MC ;
370
+ }
371
+ }
372
+ }
373
+ .response-submit {
374
+ button {
375
+ background : none ;
376
+ line-height : 1 ;
377
+ outline : none ;
378
+ & :active {
379
+ color : $MC ;
380
+ }
381
+ i {
382
+ font-size : 22px ;
383
+ }
384
+ }
385
+ }
320
386
}
321
387
322
388
/* -----------------------------------------------------------------------
323
- ----------------------------- article Style -----------------------------
389
+ ------------------------------ topic Style - -----------------------------
324
390
-----------------------------------------------------------------------*/
325
391
.topic {
326
392
padding : 1.25rem 0 ;
@@ -440,7 +506,6 @@ $succN: #2ecc71;
440
506
border-bottom : 1px solid #eee ;
441
507
}
442
508
.comments-content {
443
-
444
509
ul {
445
510
li {
446
511
margin : 0.3125rem auto ;
@@ -466,22 +531,43 @@ $succN: #2ecc71;
466
531
}
467
532
}
468
533
.comment-desc {
469
- width : calc (100% - 60 px );
534
+ width : calc (100% - 3.75 rem );
470
535
.comment-response {
471
536
min-height : 3rem ;
472
- font-size : 14 px ;
537
+ font-size : 0.875 rem ;
473
538
color : #555 ;
474
539
}
475
540
.comment-info {
476
541
font-size : 0.75rem ;
477
542
color : #999 ;
478
- margin-top : 5 px ;
543
+ margin-top : 0.3125 rem ;
479
544
}
480
545
}
481
546
}
482
547
}
483
548
}
484
549
550
+ /* -----------------------------------------------------------------------
551
+ ------------------------------- pages nav -------------------------------
552
+ -----------------------------------------------------------------------*/
553
+ .pages-nav {
554
+ .prev-next {
555
+ display : flex ;
556
+ border : 1px solid #eee ;
557
+ margin : 1.5625rem auto ;
558
+ .prev-page ,
559
+ .next-page {
560
+ width : 50% ;
561
+ padding : 0.4375rem ;
562
+ text-align : center ;
563
+ background : #eee ;
564
+ & .empty {
565
+ background : #fafafa ;
566
+ }
567
+ }
568
+ }
569
+ }
570
+
485
571
/* -----------------------------------------------------------------------
486
572
-------------------------- fixed compoment css --------------------------
487
573
-----------------------------------------------------------------------*/
0 commit comments