mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-10-04 06:22:00 +08:00
1. Feature: 可關閉圖片懶加載
2. Feature: 增加頁面排版,可選擇把右邊欄放在左邊 3. Feature: 增加 Note (Bootstrap Callout) (移植於next主題) 4. Feature: 手機上能夠查看TOC 5. Feature: 增加直達評論按鈕 6. Fix: 修復post頁在寬度1024px下的顯示bug 7. Fix: 修復代碼框部分語言沒有顯示正確的代碼語言 8. Fix: 修復設置裏把Disqus註釋掉無法運行的bug
This commit is contained in:
1 parent
49a9995a3d
commit
6cdd19e07f
28 files changed
+631
-173
No files matched your search
@@ -62,7 +62,6 @@ h6
|
||||
position: fixed
|
||||
right: $go-up-right
|
||||
bottom: $go-up-bottom
|
||||
z-index: 100
|
||||
font-size: $sidebar-icon-size
|
||||
opacity: 0
|
||||
cursor: pointer
|
||||
@@ -212,9 +211,8 @@ table
|
||||
|
||||
#rightside
|
||||
right: -38px
|
||||
z-index: 100
|
||||
position: fixed
|
||||
bottom: 50px
|
||||
bottom: 30px
|
||||
padding-bottom: 32px
|
||||
opacity: 0
|
||||
transition: all .2s
|
||||
|
||||
@@ -2,19 +2,19 @@
|
||||
@require "theme"
|
||||
@require "diff"
|
||||
|
||||
languages = "js" "javascript" "python" "ruby" "xml" "html" "css" "perl" "sql" "coffeescript" "java" "scala" "kotlin" "c" "c\+\+" "go" "less" "sass" "scss" "stylus" "styl" "typescript" "ts" "bash" "yml" "yaml" "gradle" "groovy" "ejs" "swig" "markdown"
|
||||
// languages = "js" "javascript" "python" "ruby" "xml" "html" "css" "perl" "sql" "coffeescript" "java" "scala" "kotlin" "c" "c\+\+" "go" "less" "sass" "scss" "stylus" "styl" "typescript" "ts" "bash" "yml" "yaml" "gradle" "groovy" "ejs" "swig" "markdown"
|
||||
wordWrap = !hexo-config("rootConfig.highlight.line_number") && hexo-config("code_word_wrap")
|
||||
|
||||
loopForLanguages()
|
||||
for lang in languages
|
||||
.article-container
|
||||
figure.highlight
|
||||
&{"." + lang}
|
||||
table
|
||||
&:before
|
||||
content: lang
|
||||
// loopForLanguages()
|
||||
// for lang in languages
|
||||
// .article-container
|
||||
// figure.highlight
|
||||
// &{"." + lang}
|
||||
// table
|
||||
// &:before
|
||||
// content: lang
|
||||
|
||||
loopForLanguages()
|
||||
// loopForLanguages()
|
||||
|
||||
// Placeholder: $code-block
|
||||
$code-block
|
||||
@@ -110,7 +110,7 @@ blockquote
|
||||
padding: 0 0.7rem
|
||||
width: 5rem
|
||||
color: $highlight-foreground
|
||||
content: "Code"
|
||||
content: attr(data-content)
|
||||
font-weight: bold
|
||||
font-size: 0.8rem
|
||||
line-height: 1.4rem
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
transition: all .3s
|
||||
background: #fff
|
||||
margin-top: 20px
|
||||
margin-left: 15px
|
||||
overflow: hidden
|
||||
|
||||
&:hover
|
||||
@@ -303,6 +302,14 @@
|
||||
width: 100% !important
|
||||
|
||||
.card_widget
|
||||
margin-left: 0 !important
|
||||
margin-left: 0
|
||||
margin-right: 0
|
||||
|
||||
|
||||
@media screen and (min-width: 900px)
|
||||
#aside_content
|
||||
.card_widget
|
||||
if hexo-config("aside.position") == "right"
|
||||
margin-left: 15px
|
||||
else
|
||||
margin-right: 15px
|
||||
Loaded 3 of 28 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user