提交 673591e7 编写于 作者: 郭维嘉

fix:优化封面效果

上级 f00203e1
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
href="{{ .Params.Link }}" href="{{ .Params.Link }}"
class="card p-4 md:w-1/3 sm:mb-4 mb-6 hover:shadow-xl hover:bg-gray-400 transition duration-200 ease-in rounded-lg {{ lower .Section }}" class="card p-4 md:w-1/3 sm:mb-4 mb-6 hover:shadow-xl hover:bg-gray-400 transition duration-200 ease-in rounded-lg {{ lower .Section }}"
> >
<div class="rounded-lg h-64 overflow-hidden relative"> <div class="rounded-lg h-64 overflow-hidden card-item relative">
{{ if (or .Params.Image .CurrentSection.Params.Image) }} {{ if (or .Params.Image .CurrentSection.Params.Image) }}
<img <img
alt="{{ .Title }}" alt="{{ .Title }}"
......
...@@ -15,6 +15,11 @@ ...@@ -15,6 +15,11 @@
href="css/tailwind.min.css" href="css/tailwind.min.css"
rel="stylesheet" rel="stylesheet"
/> />
<link
type="text/css"
href="css/index.css"
rel="stylesheet"
/>
<style> <style>
@font-face { @font-face {
font-family: "Bree Serif"; font-family: "Bree Serif";
......
.card-item .object-cover {
filter: brightness(0.6) blur(1px);
transition: all 0.2s;
}
.card-item:hover .object-cover {
transform: scale(1.02);
filter: brightness(0.6);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册