UNPKG

hexo-theme-reimu

Version:
246 lines (204 loc) 4.54 kB
.post-link position: absolute top: 0 left: 0 width: 100% height: 100% $post-wrap width: 100% height: 230px margin-bottom: 40px position: relative border-radius: post-radius background: var(--color-wrap) display: flex transition: .3s [data-theme="dark"] .post-wrap-left, [data-theme="dark"] .post-wrap-right box-shadow: var(--shadow-card) .post-wrapper border-radius: post-radius transition: .3s .aos-animate transition-property: initial !important @media mq-normal &:hover box-shadow: var(--shadow-card-hover) img will-change: transform @media mq-normal &:hover transform: scale(1.01) img transform: scale(1.05) .post-wrap-right flex-direction: row-reverse .post-wrap-left, .post-wrap-right @extend $post-wrap @media mg-normal flex-direction: column height: 400px .post-info height: 100% width: 100% padding: 20px overflow: hidden box-sizing: border-box .post-meta display: flex justify-content: flex-end margin: 5px 0 span font-size: 14px color: var(--grey-7) margin: 0 8px white-space: nowrap text-overflow: ellipsis overflow: hidden span:before margin: 0 10px @media mg-normal margin: 0 .post-article display: -webkit-box -webkit-box-orient: vertical -webkit-line-clamp: 3 line-clamp: 3 overflow: hidden line-height: 30px font-size: 15px color: var(--grey-7) a color: var(--color-link) $post-cover width: 40% position: relative overflow: hidden min-height: 95px background-color: var(--color-wrap) flex-shrink: 0 pointer-events: none @media mg-normal width: 100% height: 45% img display: block opacity: 0 transition: .2s position: absolute left: 0 top: 0 object-fit: cover width: 100% height: 100% img.lazyloaded opacity: 1 animation: blur .8s forwards .post-cover-left @media mq-normal border-radius: post-radius 0 0 post-radius -webkit-clip-path: polygon(0 0, 92% 0%, 100% 100%, 0% 100%) clip-path: polygon(0 0, 92% 0%, 100% 100%, 0% 100%) @media mg-normal border-radius: post-radius post-radius 0 0 @extend $post-cover .post-cover-right @media mq-normal border-radius: 0 post-radius post-radius 0 -webkit-clip-path: polygon(0 0, 100% 0%, 100% 100%, 8% 100%) clip-path: polygon(0 0, 100% 0%, 100% 100%, 8% 100%) @media mg-normal border-radius: post-radius post-radius 0 0 @extend $post-cover .post-title padding: 20px 0 color: var(--color-link) font-size: 25px letter-spacing: 1px white-space: nowrap overflow: hidden text-overflow: ellipsis transition: color 0.3s .post-sticky position: absolute display: flex justify-content: center align-items: center top: 0 left: 0 width: 70px height: 35px background: var(--color-sticky) color: var(--red-1) font-weight: bold font-size: 15px z-index: 1 transition: .3s border-top-left-radius: post-radius border-bottom-right-radius: post-radius &:before margin-right: 5px if hexo-config('home_categories.enable') .post-categories-wrapper display: flex gap: 40px margin-bottom: 40px flex-wrap: wrap @media mg-normal flex-direction: column &.aos-animate transition-property: initial !important .post-categories-wrap width: calc(50% - 20px) flex-grow: 1 height: 230px position: relative border-radius: post-radius overflow: hidden transition: 1s @media mg-normal width: 100% height: 180px @media mq-normal &:hover transform: scale(1.01) img opacity: 0.6 !important transform: scale(1.05) .post-categories-cover position: relative overflow: hidden height: 100% min-height: 95px flex-shrink: 0 pointer-events: none transition: .6s display: flex flex-direction: column justify-content: center align-items: center background-color: black @media mg-normal width: 100% img display: block opacity: 0 transition: .6s position: absolute left: 0 top: 0 object-fit: cover width: 100% height: 100% img.lazyloaded opacity: .7 animation: blur .8s forwards h2, h3 z-index: 1 color: #fff text-shadow: 0 .2rem .3rem rgba(0, 0, 0, .5) margin: 0 5px h2 font-size: 35px h3 font-size: 20px margin-top: 30px