添加信笺留言功能

添加信笺留言功能

[新建]\butterfly\layout\includes\page\envelope.pug

#article-container

if top_img === false

h1.page-title= page.title

#maincontent

#form-wrap

img#beforeimg(src='https://cdn.jsdelivr.net/gh/Akilarlxh/Valine-Admin@v1.0/source/img/before.png')

#envelope

form

.formmain

img.headerimg(src=url_for(theme.envelope_comment.cover))

.comments-main

h3.title3=`来自` + config.author + `的留言:`

.comments

each i in theme.envelope_comment.message

div=`${i}`

.bottomcontent

img.bottomimg(src='https://ae01.alicdn.com/kf/U0968ee80fd5c4f05a02bdda9709b041eE.png')

p.bottomhr=`${theme.envelope_comment.bottom}`

img#afterimg(src='https://cdn.jsdelivr.net/gh/Akilarlxh/Valine-Admin@v1.0/source/img/after.png')

!= page.content[新建]\themes\butterfly\source\css\_layout\commentsbar.styl

if hexo-config('envelope_comment.enable')

$hoverHeight = hexo-config('envelope_comment.height') ? convert(hexo-config('envelope_comment.height')) : 1050px

@media screen and (max-width: 600px)

#beforeimg,

#afterimg

display none !important

@media screen and (min-width: 600px)

#article-container

img

margin 0 auto 0rem

#form-wrap

overflow hidden

height 447px

position relative

top 0px

transition all 1s ease-in-out .3s

z-index 0

&:hover

height $hoverHeight

top -200px

#maincontent

width 530px

margin 20px auto 0

#beforeimg

position absolute

bottom 126px

left 0px

background-repeat no-repeat

width 530px

height 317px

z-index -100

pointer-events none

#afterimg

position absolute

bottom -2px

left 0

background-repeat no-repeat

width 530px

height 259px

z-index 100

pointer-events none

#envelope

position relative

overflow visible

width 500px

margin 0px auto

transition all 1s ease-in-out .3s

padding-top 200px

.headerimg

width 100%

overflow hidden

pointer-events none

.formmain

background white

width 95%

max-width 800px

margin auto auto

border-radius 5px

border 1px solid

overflow hidden

-webkit-box-shadow 0px 0px 20px 0px rgba(0, 0, 0, 0.12)

box-shadow 0px 0px 20px 0px rgba(0, 0, 0, 0.18)

.comments-main

padding 5px 20px

.title3

text-decoration none

color $theme-color

text-align center

.comments

text-align center

border-bottom #ddd 1px solid

border-left #ddd 1px solid

padding-bottom 20px

background-color #eee

margin 15px 0px

padding-left 20px

padding-right 20px

border-top #ddd 1px solid

border-right #ddd 1px solid

padding-top 20px

.bottomcontent

text-align center

margin-top 40px

.bottomimg

width 100%

margin 5px auto 5px auto

display block

pointer-events none

.bottomhr

font-size 12px

text-align center

color #999

[data-theme='dark']

.formmain

background rgb(50, 50, 50)

.comments

background rgba(90, 90, 90, 0.8)

````[修改]\themes\butterfly\layout\page.pug

block content

#page

case page.type

when 'tags'

include includes/page/tags.pug

when 'link'

include includes/page/flink.pug

when 'categories'

include includes/page/categories.pug

when 'artitalk'when 'envelope'include includes/page/envelope.pug default include includes/page/default-page.pug

相关文章

设置了301跳转,多久可以生效?
下载bst365

设置了301跳转,多久可以生效?

07-25 阅读: 4136
2025年CPU选购终极指南:英特尔vs AMD如何选?
Win11的两个实用技巧系列之录屏怎么调画质、双屏显示器设置技巧
教你认识主板上的主要芯片
365安卓版

教你认识主板上的主要芯片

08-10 阅读: 9699
没拿过世界杯的球队中,连续进入四强有多难?只有三队做到
速8酒店app
下载bst365

速8酒店app

07-12 阅读: 6548