mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-16 18:50:53 +08:00
2. Feature: 可設置夜間模式作爲默認樣式 3. Feature: 可設置是否顯示code language名稱 4. Feature: 可設置是否展開或關閉代碼框 5. Feature: 可設置背景圖片/顔色 6. Feature: 可設置是否顯示footer背景 7. Feature: 增加 canvas-nest.js 8. Feature: 頭像可設置效果(轉圈圈) 9. Feature: menu可設置分組 9. Fix: 優化打賞和搜索打開特效 10. Fix: 優化sidebar的打開特效,避免與文章頁特效不同步 11. Fix: 適配**hexo-blog-encrypt**,現在可以顯示toc 12. Fix: 修復設置不顯示評論時,直達評論按鈕沒有消失的bug 13. Fix: 修復post頁底欄,當沒有顯示評論,不顯示TOC,評論和toc都不顯示 這三種狀態下按鈕的bug 14. Fix: 修復代碼框左右滑動時,代碼名字跟著滑動的bug 15. Fix: 其他page頁標題的字體顯示 16. Fix: 修復當設置開啓canvas_ribbons,進入網站會先顯示canvas_ribbons的bug 17. Fix: 完善夜間模式下,字體顯示問題 18. Fix: 修復代碼框 複製 和 代碼名 z-index bug #25 19. Fix: 完善阅读模式
301 lines
6.0 KiB
Stylus
301 lines
6.0 KiB
Stylus
if hexo-config("nightshift") && hexo-config("nightshift.enable")
|
|
.night-mode
|
|
#sidebar
|
|
background: #2d3035 !important
|
|
box-shadow: -0.25rem 0 0.25rem #2d3035 !important
|
|
|
|
&::-webkit-scrollbar-thumb
|
|
background: lighten(#2d3035,5)
|
|
|
|
if hexo-config("local_search") && hexo-config("local_search.enable")
|
|
#local-search
|
|
background: #2d3035
|
|
.local-search-box--input
|
|
background: #2d3035
|
|
color: #99a9bf
|
|
|
|
.search-result-title
|
|
color: #99a9bf
|
|
if hexo-config("algolia_search.enable")
|
|
#algolia-search
|
|
background: #2d3035
|
|
.ais-search-box--input
|
|
background: #2d3035
|
|
color: #99a9bf
|
|
|
|
#algolia-search-results
|
|
.algolia-hit-item-link
|
|
color: #99a9bf !important
|
|
|
|
h1, h2, h3, h4, h5, h6
|
|
color: #99a9bf
|
|
|
|
.article-container code
|
|
background: #616a6b
|
|
color: #99a9bf
|
|
|
|
// 評論
|
|
#vcomment
|
|
p,a,textarea,.vemoji-btn,.vpreview-btn,input,path,.vcount,.vnum,.vtime,.vsys,.vsys,.vnick
|
|
color: #99a9bf !important
|
|
|
|
.vsys
|
|
background: rgb(97, 106, 107) !important
|
|
|
|
.vbtn
|
|
background: rgb(45, 48, 53) !important
|
|
color: #99a9bf !important
|
|
border: 1px solid #99a9bf
|
|
|
|
.vwrap
|
|
border: 1px solid #99a9bf
|
|
|
|
input
|
|
border-bottom: 1px dashed #616a6b
|
|
|
|
.vh
|
|
border-bottom: 1px dashed #616a6b
|
|
|
|
pre
|
|
background-color: #2d3035
|
|
border: 1px solid #99a9bf
|
|
|
|
.vcontent.expand:before
|
|
background: linear-gradient(180deg,hsla(0, 0%, 0%, 0),hsl(218, 8%, 19%))
|
|
|
|
.vcontent.expand:after
|
|
background: hsla(204, 5%, 22%, 1)
|
|
|
|
.recent-post-item .article-title
|
|
color: #99a9bf
|
|
|
|
#page-header
|
|
&.fixed
|
|
background: #2d3035
|
|
box-shadow: 0 5px 6px -5px rgba(133,133,133,0)
|
|
|
|
a,
|
|
.toggle-menu,
|
|
#site-name
|
|
color: #99a9bf
|
|
|
|
blockquote
|
|
border-left: 0.2rem solid #7A5353
|
|
color: #99a9bf
|
|
background-color: #2f3d49
|
|
|
|
hr
|
|
background: 0
|
|
border: 2px dashed #616A6B
|
|
&:before
|
|
color: #99a9bf
|
|
|
|
.post-meta__tags
|
|
background: 0
|
|
border: 1px solid #99a9bf
|
|
color: #99a9bf
|
|
|
|
|
|
.post-copyright
|
|
border: 1px solid #99a9bf
|
|
|
|
*
|
|
color: #99a9bf
|
|
|
|
.article-container .highlight
|
|
background-color: #1B2631
|
|
.code pre
|
|
background-color: #1B2631
|
|
|
|
.gutter pre
|
|
background: #1C2833
|
|
|
|
|
|
&:after
|
|
background: rgb(27, 38, 59)
|
|
|
|
table
|
|
&:after,.copy-notice
|
|
background: rgb(27, 38, 59)
|
|
|
|
&::-webkit-scrollbar-thumb
|
|
background: lighten(#1B2631,10)
|
|
|
|
.copy-notice
|
|
background: rgb(27, 38, 59)
|
|
|
|
.post-cards,.md-links-item
|
|
a
|
|
color: #99a9bf
|
|
|
|
.aplayer
|
|
color: #000000
|
|
filter: brightness(0.6)
|
|
|
|
.article-sort-item__title
|
|
color: #99a9bf
|
|
|
|
.category-list
|
|
a
|
|
color: #99a9bf
|
|
|
|
|
|
|
|
.translate_chn_to_cht,
|
|
.nightshift,
|
|
#readmode,
|
|
#to_comment
|
|
background-color: #2d3035 !important
|
|
|
|
img
|
|
filter: brightness(0.6)
|
|
|
|
.layout_post
|
|
background:#2d3035
|
|
|
|
canvas
|
|
display: none !important
|
|
|
|
#aside_content
|
|
.card_widget
|
|
background:#2d3035 !important
|
|
.headline,
|
|
.length_num,
|
|
.aside_post_title,
|
|
.aside_category_list_link,
|
|
.archive-list-link,
|
|
.social-icon
|
|
color: #99a9bf !important
|
|
|
|
#bookmark-it
|
|
background: #616a6b !important
|
|
|
|
#archive,
|
|
.tag-cloud,
|
|
#tag,
|
|
.category-content,
|
|
#category,
|
|
#page,
|
|
.flink
|
|
background:#2d3035
|
|
|
|
#nav,
|
|
#top-container,
|
|
footer
|
|
&::before
|
|
content: ""
|
|
position: absolute
|
|
top: 0
|
|
bottom: 0
|
|
left: 0
|
|
right: 0
|
|
background-color: rgba(0,0,0,.6)
|
|
|
|
.layout_page
|
|
.post-meta__date,
|
|
.article-meta__separator,
|
|
.article-meta__categories,
|
|
i
|
|
color: #99a9bf
|
|
|
|
#site-info .blogtitle,
|
|
span.subtitle,
|
|
#site-title,
|
|
#post-info .posttitle,
|
|
#post-info #post-meta,
|
|
#site-social-icons i,
|
|
#top-container a,
|
|
#footer,
|
|
#footer a,
|
|
#page-header a
|
|
color: rgba(238,238,238,.6)
|
|
|
|
//打賞 分享
|
|
.post-reward
|
|
.reward-buttom
|
|
background-color: #616a6b
|
|
.post_share
|
|
filter: brightness(0.6)
|
|
img
|
|
filter: brightness(1)
|
|
|
|
&::-webkit-scrollbar-thumb
|
|
background: lighten(#2d3035,5)
|
|
|
|
|
|
#post_bottom
|
|
background: #2d3035
|
|
box-shadow: 0 -5px 6px -5px rgba(133,133,133,0)
|
|
|
|
i
|
|
color: #99a9bf !important
|
|
|
|
#toc_mobile
|
|
background: #2d3035
|
|
|
|
a
|
|
color: #99a9bf !important
|
|
|
|
#web_bg
|
|
background-color: #2d3032
|
|
|
|
#hbe-security
|
|
label
|
|
color: #99a9bf !important
|
|
input
|
|
background-color: #616a6b
|
|
|
|
|
|
@media screen and (max-width: 768px)
|
|
.night-mode
|
|
color: #99a9bf
|
|
background-color: rgb(45, 48, 53)
|
|
|
|
#page-header
|
|
.menus
|
|
background: #2d3035
|
|
|
|
.headline
|
|
color: #99a9bf !important
|
|
|
|
.length_num
|
|
color: darken(#99a9bf,10) !important
|
|
a
|
|
color: #99a9bf !important
|
|
.menu-icon-first,
|
|
.menu-icon-second,
|
|
.menu-icon-third
|
|
background-color: #99a9bf !important
|
|
|
|
|
|
@media screen and (min-width: 768px)
|
|
.night-mode
|
|
color: #99a9bf
|
|
background-color: #2d3032
|
|
|
|
.recent-post-item
|
|
background: #2d3035 !important
|
|
|
|
#page-header
|
|
.menus_item_child
|
|
background-color: #2d3035 !important
|
|
|
|
&:before
|
|
border-color: transparent transparent #2d3035 !important
|
|
|
|
li
|
|
a
|
|
color: #99a9bf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|