| 1 |
/** |
| 2 |
* ABlog |
| 3 |
* ref: https://ablog.readthedocs.io/ |
| 4 |
*/ |
| 5 |
|
| 6 |
/** |
| 7 |
* Sidebar template components |
| 8 |
*/ |
| 9 |
.ablog-sidebar-item { |
| 10 |
h2, |
| 11 |
h3 { |
| 12 |
font-size: var(--pst-sidebar-header-font-size); |
| 13 |
|
| 14 |
// Remove unnecessary vertical whitespace |
| 15 |
margin-top: 0.5rem; |
| 16 |
|
| 17 |
// The headers are all links, but this makes them hard to parse |
| 18 |
// So we change the colors to make them look like headers |
| 19 |
a { |
| 20 |
color: var(--pst-color-text-base); |
| 21 |
} |
| 22 |
} |
| 23 |
|
| 24 |
ul { |
| 25 |
// No bullet points for the primary sidebar items |
| 26 |
list-style: none; |
| 27 |
padding-left: 0; |
| 28 |
|
| 29 |
// Otherwise a scrollbar randomly shows up |
| 30 |
overflow-y: hidden; |
| 31 |
|
| 32 |
// List of recent post items |
| 33 |
display: flex; |
| 34 |
flex-direction: column; |
| 35 |
gap: 0.5em; |
| 36 |
margin-bottom: 0; |
| 37 |
|
| 38 |
// The ablog cloud should move horizontally |
| 39 |
&.ablog-cloud { |
| 40 |
flex-flow: row wrap; |
| 41 |
gap: 0.5rem; |
| 42 |
|
| 43 |
// Vertical-align tag clouds |
| 44 |
li { |
| 45 |
// Center the tag cloud items |
| 46 |
display: flex; |
| 47 |
align-items: center; |
| 48 |
} |
| 49 |
} |
| 50 |
} |
| 51 |
} |
| 52 |
|
| 53 |
/** |
| 54 |
* Previous / next buttons at the bottom |
| 55 |
*/ |
| 56 |
.ablog__prev-next { |
| 57 |
font-size: 1.2em; |
| 58 |
display: flex; |
| 59 |
padding: 1rem 0; |
| 60 |
|
| 61 |
// The bottom previous / next arrows |
| 62 |
> span { |
| 63 |
// To ensure that the whole thing fits on one line even if there are long titles |
| 64 |
display: flex; |
| 65 |
max-width: 45%; |
| 66 |
|
| 67 |
// Links within each span have the collection of icon + text |
| 68 |
a { |
| 69 |
display: flex; |
| 70 |
align-items: center; |
| 71 |
margin-left: auto; |
| 72 |
gap: 1rem; |
| 73 |
line-height: 1.5rem; |
| 74 |
|
| 75 |
i::before { |
| 76 |
color: var(--pst-color-text-base); |
| 77 |
} |
| 78 |
} |
| 79 |
} |
| 80 |
|
| 81 |
// The first span is for the previous page and aligns to the left |
| 82 |
span.ablog__prev { |
| 83 |
i.fa-arrow-circle-left::before { |
| 84 |
content: var(--pst-icon-angle-left); |
| 85 |
} |
| 86 |
} |
| 87 |
|
| 88 |
// The second span is just an empty space so we remove it because we're |
| 89 |
// positioning with flex |
| 90 |
span.ablog__spacer { |
| 91 |
display: none; |
| 92 |
} |
| 93 |
|
| 94 |
// The third span is aligned to the right |
| 95 |
span.ablog__next { |
| 96 |
margin-left: auto; |
| 97 |
text-align: right; |
| 98 |
|
| 99 |
i.fa-arrow-circle-right::before { |
| 100 |
content: var(--pst-icon-angle-right); |
| 101 |
} |
| 102 |
} |
| 103 |
} |
| 104 |
|
| 105 |
/** |
| 106 |
* {postlist} directive and posts page |
| 107 |
*/ |
| 108 |
.ablog__collection, |
| 109 |
.postlist { |
| 110 |
padding-left: 0; |
| 111 |
|
| 112 |
.ablog-post { |
| 113 |
list-style: none; |
| 114 |
|
| 115 |
// Post metadata tags (author, links ,etc) should be a bit smaller |
| 116 |
.ablog-archive { |
| 117 |
display: flex; |
| 118 |
flex-flow: row wrap; |
| 119 |
gap: 1rem; |
| 120 |
list-style: none; |
| 121 |
font-size: 0.75rem; |
| 122 |
padding-left: 0; |
| 123 |
} |
| 124 |
|
| 125 |
// Title line should be a bit bigger and bold to stand out |
| 126 |
.ablog-post-title { |
| 127 |
margin-top: 0; |
| 128 |
font-size: 1.25rem; |
| 129 |
|
| 130 |
a { |
| 131 |
font-weight: bold; |
| 132 |
} |
| 133 |
} |
| 134 |
|
| 135 |
// Read more button should be a bit bigger |
| 136 |
.ablog-post-expand { |
| 137 |
margin-bottom: 0.5rem; |
| 138 |
} |
| 139 |
} |
| 140 |
} |