hexo-theme-butterfly/source/css/_page/common.styl
Jerry c7318a3793 feat: 添加 artitalk 説説插件
style: 主題文件分類調正
2020-09-16 23:09:34 +08:00

46 lines
891 B
Stylus

.layout_page
display: flex
margin: 0 auto
padding: 2rem 15px
max-width: 1200px
+maxWidth900()
flex-direction: column
+maxWidth768()
padding: 1rem 5px !important
& > div:first-child:not(.recent-posts)
+maxWidth768()
padding: 1.8rem .7rem !important
& > div:first-child
width: 75%
+maxWidth900()
width: 100% !important
// aside
&.hide-aside
max-width: 1000px
& > div
width: 100% !important
.layout_post > #post,
.layout_page > div:first-child:not(.recent-posts)
align-self: flex-start
padding: 50px 40px
border-radius: 8px
background: var(--card-bg)
box-shadow: 0 4px 8px 6px rgba(7, 17, 27, .06)
transition: all .3s
&:hover
box-shadow: 0 4px 12px 12px rgba(7, 17, 27, .15)
if hexo-config('aside.position') == 'left'
+minWidth900()
.layout_page
& > div:first-child
order: 2