File tree Expand file tree Collapse file tree 2 files changed +9
-35
lines changed Expand file tree Collapse file tree 2 files changed +9
-35
lines changed Original file line number Diff line number Diff line change 14
14
<ul class =" details" >
15
15
@if (BlogPost .IsScheduled )
16
16
{
17
- <li class =" schedule " >Scheduled </li >
17
+ <li class =" bg-success text-white px-2 py-1 rounded " >Scheduled </li >
18
18
}
19
19
else if (! BlogPost .IsPublished )
20
20
{
21
- <li class =" draft " >Draft </li >
21
+ <li class =" text-white px-2 py-1 rounded " style = " background-color : #ff8700 ; " >Draft </li >
22
22
}
23
23
<li class =" date me-4" ><span >@BlogPost.UpdatedDate.ToShortDateString() </span ></li >
24
24
@if (BlogPost .Tags .Any ())
32
32
</ul >
33
33
</li >
34
34
}
35
- <li class =" read-time me-4" >@BlogPost.ReadingTimeInMinutes minute read</li >
35
+ <li class =" me-4" >
36
+ <span class =" me-1" style =" font-family : ' icons' ; font-weight : 900 ;" > ; </span >
37
+ @BlogPost.ReadingTimeInMinutes minute read
38
+ </li >
36
39
</ul >
37
40
</div >
38
41
<div class =" description" >
39
42
<div class =" header" >
40
- <h4 class =" card-title " >@BlogPost.Title </h4 >
43
+ <h4 class =" fw-semibold lh-sm me-4 " >@BlogPost.Title </h4 >
41
44
<BookmarkButton IsBookmarked =" isBookmarked" Bookmarked =" ToggleBookmark" ></BookmarkButton >
42
45
</div >
43
- <p class =" card-content " >@MarkdownConverter.ToMarkupString(BlogPost.ShortDescription) </p >
46
+ <p class =" fw-light " >@MarkdownConverter.ToMarkupString(BlogPost.ShortDescription) </p >
44
47
<p class =" read-more" >
45
48
<a href =" /blogPost/@BlogPost.Id/@BlogPost.Slug" aria-label =" @BlogPost.Title" >Read the whole article</a >
46
49
</p >
Original file line number Diff line number Diff line change @@ -112,12 +112,6 @@ code {
112
112
content : "\e9d5" ;
113
113
}
114
114
115
- .read-time : before {
116
- font-family : 'icons' ;
117
- font-weight : 900 ;
118
- content : "\e94f" ;
119
- }
120
-
121
115
.copy-btn {
122
116
border-color : whitesmoke !important ;
123
117
}
428
422
display : inline-block;
429
423
}
430
424
431
- .blog-card .read-time : before {
432
- font-family : 'icons' ;
433
- font-weight : 900 ;
434
- content : "\e94f" ;
435
- }
436
-
437
425
.blog-card p {
438
426
position : relative;
439
427
margin : 1rem 0 0 ;
451
439
top : -0.75rem ;
452
440
border-radius : 3px ;
453
441
}
442
+
454
443
.blog-card : hover .details {
455
444
left : 0 ;
456
445
}
463
452
color : # D7D7D7 !important ;
464
453
}
465
454
466
- .schedule {
467
- background-color : # 28a745 ;
468
- }
469
-
470
- .draft {
471
- background-color : # ff8700 ;
472
- }
473
-
474
- .card-title {
475
- font-weight : 600 ;
476
- line-height : 1.3 ;
477
- margin-right : 1rem ;
478
- }
479
-
480
- .card-content {
481
- font-weight : 300 ;
482
- }
483
-
484
455
@media (min-width : 640px ) {
485
456
.blog-card {
486
457
flex-direction : row;
You can’t perform that action at this time.
0 commit comments