Skip to content

Commit c12875f

Browse files
Merge branch 'production'
2 parents f40fa6a + c174f62 commit c12875f

File tree

6 files changed

+19
-14
lines changed

6 files changed

+19
-14
lines changed

_includes/toc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{% if enable_toc %}
44
<div class="toc-border-cover z-3"></div>
55
<section id="toc-wrapper" class="invisible position-sticky ps-0 pe-4 pb-4">
6-
<h2 class="panel-heading ps-3 pb-2 mb-0">{{- site.data.locales[include.lang].panel.toc -}}</h2>
6+
<h2 class="panel-heading ps-3 pb-1 mb-0">{{- site.data.locales[include.lang].panel.toc -}}</h2>
77
<nav id="toc"></nav>
88
</section>
99
{% endif %}

_javascript/modules/components/mermaid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function refreshTheme(event) {
1111
const mermaidList = document.getElementsByClassName(MERMAID);
1212

1313
[...mermaidList].forEach((elem) => {
14-
const svgCode = elem.previousSibling.children.item(0).innerHTML;
14+
const svgCode = elem.previousSibling.children.item(0).textContent;
1515
elem.textContent = svgCode;
1616
elem.removeAttribute('data-processed');
1717
});

_sass/pages/_post.scss

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -220,14 +220,11 @@ header {
220220
@-webkit-keyframes fade-up {
221221
from {
222222
opacity: 0;
223-
position: relative;
224-
top: 2rem;
223+
margin-top: 4rem;
225224
}
226225

227226
to {
228227
opacity: 1;
229-
position: relative;
230-
top: 0;
231228
}
232229
}
233230

@@ -247,6 +244,7 @@ header {
247244
%top-cover {
248245
content: '';
249246
display: block;
247+
position: -webkit-sticky;
250248
position: sticky;
251249
top: 0;
252250
width: 100%;
@@ -257,13 +255,16 @@ header {
257255
#toc-wrapper {
258256
top: 0;
259257
transition: top 0.2s ease-in-out;
260-
-webkit-animation: fade-up 0.8s;
261-
animation: fade-up 0.8s;
262258
overflow-y: auto;
263259
max-height: 100vh;
264260
scrollbar-width: none;
265261
margin-top: 2rem;
266262

263+
&:not(.invisible) {
264+
-webkit-animation: fade-up 0.8s;
265+
animation: fade-up 0.8s;
266+
}
267+
267268
ul {
268269
list-style: none;
269270
font-size: 0.85rem;
@@ -275,10 +276,6 @@ header {
275276
margin: 0.4rem 0;
276277
}
277278

278-
&:first-child {
279-
margin-top: 0;
280-
}
281-
282279
a {
283280
padding: 0.2rem 0 0.2rem 1.25rem;
284281
}

docs/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## [7.2.3](https://github.com/cotes2020/jekyll-theme-chirpy/compare/v7.2.2...v7.2.3) (2024-12-15)
4+
5+
### Bug Fixes
6+
7+
* refreshing mermaid theme may fail ([#2113](https://github.com/cotes2020/jekyll-theme-chirpy/issues/2113)) ([2f00d41](https://github.com/cotes2020/jekyll-theme-chirpy/commit/2f00d41861f1b06c2ff7fa4e67e14e647c3c34b0))
8+
* **ui:** gap between TOC entries is inconsistent ([#2119](https://github.com/cotes2020/jekyll-theme-chirpy/issues/2119)) ([1b4e318](https://github.com/cotes2020/jekyll-theme-chirpy/commit/1b4e318dc1cd57da812e11bf69ebb06083c213fc))
9+
* **ui:** slow script loading hides TOC fade-up effect in desktop ([#2120](https://github.com/cotes2020/jekyll-theme-chirpy/issues/2120)) ([e0c3faf](https://github.com/cotes2020/jekyll-theme-chirpy/commit/e0c3fafa470eb12bd04ffdf198018bc28b6de20d))
10+
311
## [7.2.2](https://github.com/cotes2020/jekyll-theme-chirpy/compare/v7.2.1...v7.2.2) (2024-12-06)
412

513
### Bug Fixes

jekyll-theme-chirpy.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Gem::Specification.new do |spec|
44
spec.name = "jekyll-theme-chirpy"
5-
spec.version = "7.2.2"
5+
spec.version = "7.2.3"
66
spec.authors = ["Cotes Chung"]
77
spec.email = ["[email protected]"]
88

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jekyll-theme-chirpy",
3-
"version": "7.2.2",
3+
"version": "7.2.3",
44
"description": "A minimal, responsive, and feature-rich Jekyll theme for technical writing.",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)