Skip to content

Instantly share code, notes, and snippets.

@yuntan
Last active April 20, 2020 05:17
Show Gist options
  • Save yuntan/b734c0b465985507addbea9e5637f0bd to your computer and use it in GitHub Desktop.
Save yuntan/b734c0b465985507addbea9e5637f0bd to your computer and use it in GitHub Desktop.
writefreely custom CSS for listing page
body#collection section#wrapper {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
grid-auto-rows: 240px;
row-gap: 24px;
}
body#collection section#wrapper article {
margin-bottom: 0;
padding: 0 24px;
/* clip-path: border-box; */
clip-path: inset(0); /* for Chrome */
}
body#collection section#wrapper article .post-title {
font-size: 18px;
font-weight: 600;
}
body#collection section#wrapper article time.dt-published {
font-size: 14px;
}
body#collection article .book>:not(:first-child) {
display: none;
}
body#collection section#wrapper nav#paging a {
color: rgb(214, 211, 205);
}
body#collection section#wrapper nav#paging {
padding: unset;
margin-bottom: unset;
grid-column-start: 1;
grid-column-end: -1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment