-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblog.css
56 lines (48 loc) · 886 Bytes
/
blog.css
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
html {
background-color: black;
}
body {
display: flex;
flex-direction: column;
align-items: center;
}
h1 {
font-size: calc(0.4 * (6vw + 5vh));
color: white;
font-weight: normal;
}
.blog-item {
font-size: calc(0.31 * (3vw + 5.3vh));
display: flex;
justify-content: space-between;
width: 55vw;
text-decoration: none;
color: white;
margin-bottom: -9px;
position: relative;
}
@media (orientation: portrait) {
.blog-item {
width: 90vw;
}
}
.blog-item::after {
content: "";
display: block;
height: calc(0.05 * (4vw + 5vh));
top: calc(0.69 * (4vw + 5.7vh));
position: absolute;
background: #fff;
}
.blog-item:hover::after {
width: 100%;
}
.blog-title {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-right: 3%;
}
.blog-date {
white-space: nowrap;
}