-
Notifications
You must be signed in to change notification settings - Fork 7
/
blog.css
207 lines (171 loc) · 3.66 KB
/
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
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
/* ================ Blog Posts & Listing ================ */
h1 {
font-size: 2em;
line-height: 1.6;
color: var(--header-color);
border-bottom: 1px solid var(--divider-color);
}
h2 { font-size: 1.5em; }
h3 { font-size: 1.17em; }
h4 { font-size: 1.12em; }
h5 { font-size: .83em; }
h6 { font-size: .75em; }
@media (min-width: 700px) {
h1 { font-size: 40px; }
h2 { font-size: 32px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
}
main a {
text-decoration: underline;
color: var(--primary-color);
}
/* p {
text-align: justify;
} */
blockquote {
background: #f9f9f9;
border-left: 10px solid #ccc;
margin: 1.5em 10px;
padding: 1.2em 10px;
quotes: "\201C""\201D""\2018""\2019";
}
blockquote:before {
color: var(--primary-light-60-color);
content: open-quote;
font-size: 5em;
line-height: 0.1em;
margin-right: 0.1em;
vertical-align: -0.4em;
}
blockquote p {
display: inline;
font-size: 1.3em;
font-weight: 300;
line-height: 1.5;
}
img.hero {
display: block;
margin: 2rem auto;
max-width: 100%;
border-radius: 5px;
}
.blogslist {
width: 100%;
/* max-width: 1240px; */
/* margin: 0 auto; */
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
grid-gap: 20px;
}
.blogtag {
margin-left: 1em;
text-decoration: none;
}
.blogslist .card {
background: white;
text-decoration: none;
color: var(--main-text-color);
border-radius: 5px;
overflow: hidden;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
display: flex;
flex-direction: column;
position: relative;
transition: all .1s ease-out;
}
.blogslist .card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 5px rgba(0,0,0,0.2);
}
.blogslist article {
padding: 20px;
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.blogslist h4 {
margin: 0.2em 0;
}
.blogslist p {
flex: 1;
font-size: 0.9em;
line-height: 1.4;
}
.blogslist time {
font-size: 11px;
font-weight: bold;
color: var(--header-color);
letter-spacing: .05em;
}
/* time::before {
content: '📅 ';
} */
.blogslist .taglist > span {
font-size: 0.8em;
font-weight: bold;
margin-right: 0.5em;
color: var(--lighter-text-color);
/* font-family: 'Courier New', Courier, monospace; */
}
.blogslist .thumb {
padding-bottom: 60%;
background-size: cover;
height: auto;
}
.pagination a {
color: var(--main-text-color);
}
/* .item a:hover p {
color: var(--main-text-color) !important;
text-decoration: none;
} */
/* .item {
padding: 20px;
} */
.blog-button {
width: 30%;
color: white;
margin-top: 20px;
font-size: 13px;
font-weight: 500;
background: #44ce6f;
border: 0;
padding: 12px 30px;
}
.active, .btn:hover {
color: var(--primary-color) !important;
}
/* ===================== Markdown Extentions ============================== */
nav.table-of-contents {
display: block;
width: 100%;
padding: 0.4em;
margin-bottom: 2em;
background: var(--background-section-color);
border-left: 5px solid var(--primary-color);
}
nav.table-of-contents li > a {
text-decoration: none;
line-height: 1.8;
font-weight: bold;
}
@media (min-width: 700px) {
nav.table-of-contents {
max-width:70%;
width:auto;
padding: 1em;
margin-left: auto;
margin-right: auto;
}
}
h1 > a.header-anchor, h2 > a.header-anchor, h3 > a.header-anchor {
color: var(--tag-color);
text-decoration: none;
margin-left: 0.2em;
visibility: hidden;
}
h1:hover > a.header-anchor, h2:hover > a.header-anchor, h3:hover > a.header-anchor {
visibility: visible;
}