Skip to content

Commit 7c36891

Browse files
Add blog css (#367)
1 parent 56230fb commit 7c36891

File tree

1 file changed

+91
-1
lines changed

1 file changed

+91
-1
lines changed

assets/theme-css/posts.css

Lines changed: 91 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,103 @@ div.post-list {
2525
}
2626

2727
.post-author:not(:first-child):before {
28-
content: ", ";
28+
content: "";
2929
}
3030

3131
.post-date {
3232
padding-left: 0.5rem;
3333
}
3434

35+
/* Reduce space between label icon and labels */
36+
.post-tag:nth-child(2) {
37+
padding-left: 0.1rem;
38+
}
39+
40+
.post-tag {
41+
padding-left: 0.3rem;
42+
}
43+
44+
.post-author:not(:first-child) {
45+
padding-left: 0.5rem;
46+
}
47+
48+
.post-meta {
49+
padding-bottom: 1rem;
50+
}
51+
52+
.post-meta .icon {
53+
font-size: 1.5rem;
54+
}
55+
56+
.post-meta svg {
57+
fill: gray;
58+
}
59+
60+
.post-content p:not(:last-child) {
61+
margin-bottom: 0.25rem;
62+
}
63+
64+
.post-summary img {
65+
border: 1px solid #bbb;
66+
float: right;
67+
max-width: 15em;
68+
margin: 0.5em;
69+
}
70+
3571
.post-list .post-summary {
3672
padding-top: 0.5rem;
3773
}
74+
75+
div.MathJax_Display {
76+
margin-top: 0;
77+
margin-bottom: 0;
78+
}
79+
80+
.post-featuredImage img {
81+
/* FIXME: Use color variable. */
82+
border: 0.15em #bbb solid;
83+
border-radius: 25px;
84+
max-width: 20rem;
85+
margin: 0.5em;
86+
}
87+
88+
.tag-cloud {
89+
position: sticky;
90+
align-self: flex-start;
91+
top: 6rem;
92+
margin: 0;
93+
padding: 0;
94+
line-height: 1.3em;
95+
}
96+
97+
.tag-cloud-title {
98+
font-size: 32px;
99+
margin-top: 60px;
100+
padding-bottom: 10px;
101+
}
102+
103+
.content-container .post-list {
104+
display: flex;
105+
flex-wrap: wrap;
106+
column-gap: 2rem;
107+
}
108+
109+
/* Default: single column layout for mobile */
110+
.content-container {
111+
max-width: 70em;
112+
margin: 0 30px;
113+
flex-direction: column;
114+
}
115+
116+
/* Full screen two-column layout for desktop etc. */
117+
@media only screen and (min-width: 75em) {
118+
.content-container {
119+
flex-direction: row;
120+
}
121+
122+
article {
123+
flex-grow: 1;
124+
flex-shrink: 0;
125+
flex-basis: calc(50% - 1rem);
126+
}
127+
}

0 commit comments

Comments
 (0)