mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2025-09-15 12:58:48 +08:00
334 lines
5.5 KiB
Stylus
334 lines
5.5 KiB
Stylus
#post-title
|
|
font-size: 1.4rem
|
|
|
|
&.plain
|
|
margin-bottom: 0.3rem
|
|
border-bottom: 1px solid $light-grey
|
|
cursor: pointer
|
|
transition: all 0.2s ease-in-out
|
|
|
|
&:hover
|
|
border-bottom: 1px solid $light-blue
|
|
color: $light-blue
|
|
|
|
#post
|
|
overflow: hidden
|
|
|
|
&-meta
|
|
text-shadow: 0.1rem 0.1rem 0.2rem rgba(0, 0, 0, 0.15)
|
|
|
|
#post-meta
|
|
color: $grey
|
|
|
|
a
|
|
text-decoration: none
|
|
|
|
i.fa.fa-comment-o
|
|
margin-right: 0.2rem
|
|
|
|
#top-container
|
|
position: relative
|
|
margin-bottom: 1rem
|
|
background-color: $light-blue
|
|
background-attachment: local
|
|
background-position: center
|
|
background-size: cover
|
|
height: 19rem
|
|
|
|
&:before
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
display: block;
|
|
content: '';
|
|
width: 100%;
|
|
height: 100%;
|
|
opacity: 0.5;
|
|
background-color: #394245;
|
|
background-image: linear-gradient(234deg, #394245 0%, #000 100%);
|
|
|
|
&.no-bg
|
|
$bg-svg += ""
|
|
background-color: $light-blue
|
|
background-image: url($bg-svg) !important
|
|
background-size: auto
|
|
|
|
&.plain
|
|
margin-bottom: 1rem
|
|
height: 56px
|
|
|
|
a
|
|
color: $light-grey
|
|
text-decoration: none
|
|
transition: all 0.3s ease-out
|
|
|
|
&:hover
|
|
color: $white
|
|
|
|
#top-img
|
|
padding: 0
|
|
border: none
|
|
|
|
#site-name
|
|
font-weight: bold
|
|
cursor: pointer
|
|
|
|
#post-info
|
|
width: 100%
|
|
color: $light-grey
|
|
text-align: left
|
|
padding-left: 8%
|
|
position: absolute
|
|
bottom: 1.5rem
|
|
|
|
#post-title
|
|
text-shadow: 0.1rem 0.1rem 0.2rem rgba(0, 0, 0, 0.15)
|
|
font-size: 1.5rem
|
|
|
|
i.fa.fa-angle-right
|
|
margin: 0 0.3rem 0 0.2rem
|
|
|
|
.post-meta
|
|
&__separator
|
|
margin: 0 0.3rem
|
|
|
|
&__icon
|
|
margin-right: 0.2rem
|
|
|
|
&__tags
|
|
display: inline-block
|
|
width: fit-content
|
|
margin: 0.4rem 0.4rem 0.4rem 0
|
|
padding: 0rem 0.6rem
|
|
border: 1px solid $light-blue
|
|
border-radius: 0.6rem
|
|
background: $white
|
|
color: $light-blue
|
|
text-decoration: none
|
|
font-size: 12px
|
|
cursor: pointer
|
|
transition: all 0.2s ease-in-out
|
|
|
|
&:hover
|
|
background: $light-blue
|
|
color: $white
|
|
|
|
.layout
|
|
margin: 0 auto
|
|
max-width: 1000px
|
|
|
|
#post-content
|
|
margin-bottom: 1rem
|
|
|
|
ol,
|
|
ul
|
|
margin-top: 0.4rem
|
|
counter-reset: li
|
|
|
|
p
|
|
margin: 0
|
|
|
|
ol,
|
|
ul
|
|
padding-left: 0.5rem
|
|
|
|
li
|
|
position: relative
|
|
margin: 0.3rem 0
|
|
padding-left: 0.3rem
|
|
|
|
a
|
|
color: $a-link-color
|
|
transition: all 0.2s
|
|
|
|
&:hover
|
|
color: $light-blue
|
|
text-decoration: none
|
|
|
|
&#site-name
|
|
text-decoration: none
|
|
|
|
a.fancybox
|
|
outline: none
|
|
|
|
&:focus
|
|
outline: none
|
|
|
|
display: inline-block
|
|
width: 100%
|
|
text-align: center
|
|
text-decoration: none
|
|
|
|
img
|
|
padding: $img-border-padding
|
|
max-width: 100%
|
|
transition: all 0.2s
|
|
|
|
&:hover
|
|
box-shadow: 0 0 8px 0 rgba(232, 237, 250, 0.6), 0 2px 4px 0 rgba(232, 237, 250, 0.5)
|
|
|
|
.code-area-wrap
|
|
position: relative
|
|
|
|
.fa-clipboard
|
|
position: absolute
|
|
top: 0.4rem
|
|
right: 10px
|
|
z-index: 1
|
|
color: $highlight-aqua
|
|
cursor: pointer
|
|
transition: color 0.2s
|
|
|
|
&:hover
|
|
color: darken($highlight-aqua, 20%)
|
|
|
|
.copy-notice
|
|
position: absolute
|
|
top: 0
|
|
right: 0
|
|
z-index: 1
|
|
background: darken($highlight-background, 5)
|
|
color: $highlight-aqua
|
|
opacity: 0
|
|
|
|
.post-copyright
|
|
position: relative
|
|
margin-bottom: 0.4rem
|
|
padding: 0.5rem 0.8rem
|
|
border: 1px solid $light-grey
|
|
transition: box-shadow 0.3s ease-in-out
|
|
|
|
&:before
|
|
position: absolute
|
|
top: t = 0.5rem
|
|
right: t
|
|
width: w = 0.8rem
|
|
height: w
|
|
border-radius: w
|
|
background: $light-blue
|
|
content: ""
|
|
|
|
&:after
|
|
position: absolute
|
|
top: t = 0.7rem
|
|
right: t
|
|
width: w = 0.4rem
|
|
height: w
|
|
border-radius: w
|
|
background: $white
|
|
content: ""
|
|
|
|
&:hover
|
|
box-shadow: 0 0 8px 0 rgba(232, 237, 250, 0.6), 0 2px 4px 0 rgba(232, 237, 250, 0.5)
|
|
|
|
&-meta
|
|
color: $light-blue
|
|
font-weight: bold
|
|
|
|
&-info
|
|
a
|
|
word-break: break-word
|
|
|
|
.post-adv
|
|
margin: 1rem 0
|
|
|
|
@media screen and (max-width: $sm)
|
|
.layout
|
|
margin: 0 30px
|
|
width: auto
|
|
|
|
#top-container
|
|
// background-attachment: local
|
|
|
|
#post-title
|
|
font-size: 1rem
|
|
|
|
#post-title
|
|
font-size: 1.1rem
|
|
|
|
|
|
@media screen and (min-width: $md)
|
|
.layout
|
|
width: $content-large-width
|
|
|
|
|
|
|
|
.katex-wrap
|
|
overflow: auto
|
|
if hexo-config("katex") && hexo-config("katex.hide_scrollbar")
|
|
&::-webkit-scrollbar
|
|
display: none
|
|
|
|
|
|
// 文章字體
|
|
#post-content p {
|
|
font-size: 1.1em
|
|
}
|
|
|
|
#post-content ol, #post-content ul {
|
|
font-size: 1em
|
|
}
|
|
|
|
|
|
|
|
@media screen and (max-width: 900px)
|
|
.layout
|
|
margin: 0 15px
|
|
width: auto
|
|
|
|
|
|
|
|
|
|
.layout_post
|
|
padding: 50px
|
|
-webkit-box-shadow: 0 4px 8px 6px rgba(7,17,27,0.06)
|
|
box-shadow: 0 4px 8px 6px rgba(7,17,27,0.06)
|
|
border-radius: 8px
|
|
-webkit-transition: all 0.3s
|
|
-moz-transition: all 0.3s
|
|
-o-transition: all 0.3s
|
|
-ms-transition: all 0.3s
|
|
transition: all 0.3s
|
|
background: #fff
|
|
margin-top: 40px
|
|
margin-bottom: 40px
|
|
|
|
&:hover
|
|
-webkit-box-shadow: 0 4px 12px 12px rgba(7,17,27,0.15)
|
|
box-shadow: 0 4px 12px 12px rgba(7,17,27,0.15)
|
|
|
|
img
|
|
margin:0 auto
|
|
display:block
|
|
|
|
|
|
|
|
.tag_share
|
|
display: block
|
|
|
|
.post-meta__tag-list
|
|
display: inline-block
|
|
|
|
.post_share
|
|
width: fit-content;
|
|
display: inline-block;
|
|
float: right;
|
|
margin: 0.4rem 0
|
|
|
|
.social-share
|
|
font-size: 12px
|
|
|
|
.social-share .social-share-icon
|
|
width: 26px;
|
|
height: 26px;
|
|
font-size: 15px;
|
|
line-height: 25px;
|
|
|
|
.social-share a
|
|
margin: 0 4px;
|
|
|
|
|
|
#post
|
|
a
|
|
text-decoration: none
|
|
color: $light-blue |