-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathrecent-posts.css
More file actions
62 lines (52 loc) · 1.04 KB
/
recent-posts.css
File metadata and controls
62 lines (52 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
@import "./variables.css";
:root {
--post-image-size: 64px;
}
.recent-posts {
padding-left: 0;
}
.recent-posts__item {
position: relative;
height: var(--post-image-size);
margin-top: 12px;
padding-left: var(--post-image-size);
}
.recent-posts__item__image {
display: inline-block;
overflow: hidden;
position: absolute;
top: 0;
left: 0;
}
.recent-posts__item__image__inner {
width: var(--post-image-size);
height: var(--post-image-size);
float: left;
background-size: cover;
background-position: 50% 50%;
display: inline-block;
transition: transform 0.3s ease;
&:hover {
transform: scale(1.5);
}
}
.recent-posts__item__meta {
padding: 13px 0 0 12px;
}
.recent-posts__item__meta__link {
font-size: 16px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: var(--black);
margin-bottom: 4px;
}
.recent-posts__item__meta__time {
font-size: 14px;
color: var(--gray);
}
.recent-posts__item__meta__link,
.recent-posts__item__meta__time {
display: block;
line-height: 1.2em;
}