Files
hexo-theme-butterfly/source/css/_global/index.styl
Jerry 2eb15123f9 1. 更改手機頁面的menu和toc的顯示方式和顯示特效(ipad也能看TOC)
1. 更改手機頁面的menu和toc的顯示方式和顯示特效(ipad也能看TOC)
3. 可設置複製時,内容自動加上版權信息
4. 可修改tag的top_img
5. 可修改category的top_img
6. 可修改valine的背景
7. archives頁UI優化
8. ICP增加icon #37
9. 可設置主頁top_img的高度
10. 可設置主頁site-info的位置
11. category頁和tag頁的UI可以設置與主頁UI一樣 #31
12. 主頁subtitle可設置多個句子(不再限制2個) #37
13. 設置menu時,頭尾添加空格不受影響
14. 調整post頁的佈局
15. 书签添加icon
16. 公告icon效果
17. 首頁歸檔模塊,可設置數量限制,會顯示'查看更多'按鈕
18. 右下角按鈕調整。
19. 修复文章cover隨機图片生成,同一篇文章,不同地方的cover顯示不一样的bug
20. 修復gitalk語言設置無效的bug #35
21. 修復post頁面,當沒有設置word count時,閲讀量前有'|"
22. 修复sub-menu在safari的显示问题
23. 修复tags页评论居中问题
24. 修复header a hover 白色问题
25. 修復夜間模式下footer的顔色bug
26. 修復英文語言下,書簽英文顯示不完整的問題
2019-09-24 02:09:51 +08:00

187 lines
3.0 KiB
Stylus

html
height: 100%
font-size: $rem
body
position: relative
display: flex
flex-direction: column
min-height: 100%
background: #fff
color: $font-black
font-size: $font-size
font-family: $font-family
line-height: $text-line-height
if !hexo-config('copy.enable')
user-select: none
-moz-user-select: none
-webkit-user-select: none
-ms-user-select: none
*::-webkit-scrollbar
width: 8px
height: 8px
*::-webkit-scrollbar-thumb
background: $light-blue
*::-webkit-scrollbar-track
background-color: transparent
#web_bg
background: $web-bg
height: 100%
width: 100%
background-size: cover
position: fixed
z-index: -999
background-attachment: local
background-repeat: no-repeat
background-position: center
h1,
h2,
h3,
h4,
h5,
h6
position: relative
margin: 0.2rem 0
color: lighten($font-color, 15%)
font-weight: bold
code
font-size: inherit !important
#content-outer
flex: 1 auto
*
box-sizing: border-box
#content-inner
.img-alt
text-decoration: none
color: $a-link-color
#toggle-sidebar
position: fixed
bottom: $sidebar-icon-top
left: $sidebar-icon-left
z-index: 100
font-size: $sidebar-icon-size
cursor: pointer
transition: all 0.2s
opacity: 0
hr
position: relative
margin: 2rem auto
width: calc(100% - 4px)
border: 2px dashed $pale-blue
background: $white
&:hover
&:before
left: calc(95% - 20px)
&:before
position: absolute
top: $hr-icon-top
left: 5%
z-index: 1
color: $light-blue
content: $hr-icon
font: normal normal normal 14px / 1 FontAwesome
font-size: 20px
transition: all 1s ease-in-out
// collapse/expand beautify
details
padding: 0.3rem
border: 2px solid darken($light-grey, 10%)
summary
color: $theme-color
// set <caption> of <figure> to center-align
// use class="not-code" to avoid conflicts because code also use <figure> tag
.not-code
margin: 0.5em
padding: 0.5em
border: thin silver solid
text-align: center
table
overflow: auto
width: 100%
border-spacing: 0
border-collapse: collapse
thead
background: alpha($a-link-color, 10%)
th,
td
padding: 0.3rem 0.6rem
border: 1px solid darken($light-grey, 10%)
vertical-align: top
*::selection
background: $selection
color: $pale-grey
.full_page #site-title,
.full_page #site-sub-title,
#site-name,
#aside_content .author-info__name,
#aside_content .author-info__description
font-family: $site-name-font
.is_right
text-align: right
.is_left
text-align: left
.is_center
text-align: center
.is_visible
display: block !important
.is_invisible
display: none !important
.is_hidden
overflow: hidden
.pull-left
float: left
.pull-right
float: right
.fireworks
position: fixed
z-index: -1
pointer-events: none
//
img[src=""],img:not([src])
opacity: 0
#body-wrap
transition: all .3s
@media screen and (max-width: $bg)
i#toggle-sidebar,
#sidebar
display: none
body
padding-left: 0 !important