-
Notifications
You must be signed in to change notification settings - Fork 0
/
blog_style.css
120 lines (99 loc) · 1.88 KB
/
blog_style.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
/* Blog listing page */
.blog {
max-width: 1000px;
margin: 0 auto;
}
.blog-header {
margin-top: 50px;
text-align: center;
}
.blog-header h1 {
font-size: 3rem;
font-weight: bold;
}
.blog-posts {
display: flex;
flex-wrap: wrap;
margin-top: 50px;
}
.blog-meta {
font-size: 14px;
color: #999;
margin-bottom: 10px;
}
.blog-post {
flex-basis: 30%;
margin-right: 3%;
margin-left: 3%;
margin-bottom: 50px;
background-color: #fff;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
border-radius: 5px;
overflow: hidden;
}
.blog-post .text {
padding-left: 30px;
padding-right: 30px;
line-height: 1.5;
}
.blog-post .list{
padding-left: 5%;
}
.blog-post li{
padding-bottom: 8px;
}
.blog-post:hover {
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
.blog-post .content-img {
width: 45%;
height: 400px;
object-fit: cover;
}
@media only screen and (max-width: 989px) {
.blog-post .content-img {
width: 95%;
}
}
.blog-post .header-img {
width: 100%;
height: 200px;
object-fit: cover;
}
.blog-post .post-details {
padding: 20px;
}
.blog-post .post-title {
font-size: 1.5rem;
font-weight: bold;
margin-bottom: 10px;
}
.blog-post .post-date {
font-size: 0.9rem;
color: #999;
margin-bottom: 10px;
}
.blog-post .post-excerpt {
font-size: 1.1rem;
line-height: 1.5;
}
.blog-container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
/* code block styling */
/* pre {
background-color: #2e2a2a !important;
font-family: Consolas, monospace;
font-size: 16px;
line-height: 1.5;
padding: 1em;
}
pre code {
background-color: #2e2a2a;
font-family: Consolas, monospace;
font-size: 16px;
line-height: 1.5;
padding: 1em;
} */