This commit is contained in:
Jerry
2023-10-09 19:54:18 +08:00
Unverified
parent 0d40e75589
commit 7923a15e17
8 changed files with 37 additions and 29 deletions
+1
View File
@@ -232,6 +232,7 @@
width: $toc-mobile-width
transition: none
transform: scale(0)
transform-origin: right bottom
&.open
transform: scale(1)
+3 -1
View File
@@ -72,7 +72,9 @@ beautify()
#article-container
word-wrap: break-word
overflow-wrap: break-word
text-align: justify
if hexo-config('text_align_justify')
text-align: justify
a
color: $theme-link-color
+3
View File
@@ -73,6 +73,9 @@
&:last-child
margin-bottom: 0 !important
.img-alt
margin: 5px 0 10px
if $note-icons
&:not(.no-icon)
padding-left: 3em
-2
View File
@@ -595,12 +595,10 @@ document.addEventListener('DOMContentLoaded', function () {
},
'mobile-toc-button': item => { // Show mobile toc
const tocEle = document.getElementById('card-toc')
tocEle.style.transformOrigin = `right ${item.getBoundingClientRect().top + 17}px`
tocEle.style.transition = 'transform 0.3s ease-in-out'
tocEle.classList.toggle('open')
tocEle.addEventListener('transitionend', () => {
tocEle.style.transition = ''
tocEle.style.transformOrigin = ''
}, { once: true })
},
'chat-btn': () => { // Show chat