File tree Expand file tree Collapse file tree 3 files changed +9
-15
lines changed
src/LinkDotNet.Blog.Web/Features/Components Expand file tree Collapse file tree 3 files changed +9
-15
lines changed Original file line number Diff line number Diff line change
1
+ img {
2
+ position : absolute;
3
+ top : 0 ;
4
+ left : 0 ;
5
+ object-fit : cover;
6
+ height : 100% ;
7
+ width : 100% ;
8
+ }
Original file line number Diff line number Diff line change 5
5
<article >
6
6
<div class =" blog-card @AltCssClass" >
7
7
<div class =" meta" >
8
- <div >
8
+ <div class = " photo " >
9
9
<PreviewImage PreviewImageUrl =" @BlogPost.PreviewImageUrl"
10
10
PreviewImageUrlFallback =" @BlogPost.PreviewImageUrlFallback"
11
11
LazyLoadImage =" @LazyLoadPreviewImage" ></PreviewImage >
12
12
</div >
13
- @* <div class="photo" style="background-image: url(@BlogPost.PreviewImageUrl)"></div> *@
14
13
<ul class =" details" >
15
14
<li class =" date" >@BlogPost.UpdatedDate.ToString( "dd/MM/yyyy")</li >
16
15
@if (BlogPost .Tags != null )
Original file line number Diff line number Diff line change 23
23
.blog-card a : hover {
24
24
color : # 5ad67d ;
25
25
}
26
- .blog-card : hover .photo {
27
- transform : scale (1.3 ) rotate (3deg );
28
- }
29
26
.blog-card .meta {
30
27
position : relative;
31
28
z-index : 0 ;
32
29
height : 200px ;
33
30
}
34
- .blog-card .photo {
35
- position : absolute;
36
- top : 0 ;
37
- right : 0 ;
38
- bottom : 0 ;
39
- left : 0 ;
40
- background-size : cover;
41
- background-position : center;
42
- transition : transform 0.5s ;
43
- }
44
31
.blog-card .details ,
45
32
.blog-card .details ul {
46
33
margin : auto;
You can’t perform that action at this time.
0 commit comments