优化了圆角弧度,增加了藏书shortcodes

This commit is contained in:
JohnathanLin 2023-05-02 19:55:11 +08:00
parent 111261d496
commit af9a7f7172
4 changed files with 16 additions and 2 deletions

View File

@ -19,7 +19,7 @@
font-size: 13px; font-size: 13px;
line-height: 36px; line-height: 36px;
background: var(--primary); background: var(--primary);
border-radius: calc(36px / 2); border-radius: calc(20px / 2);
padding: 0 16px; padding: 0 16px;
} }

View File

@ -399,3 +399,11 @@ img.in-text {
display: inline; display: inline;
margin: auto; margin: auto;
} }
div.book {
display: inline-block;
padding: 0 1rem;
max-width:150px;
min-height: 250px;
vertical-align: top;
}

View File

@ -5,7 +5,7 @@
--main-width: 720px; --main-width: 720px;
--header-height: 60px; --header-height: 60px;
--footer-height: 60px; --footer-height: 60px;
--radius: 16px; --radius: 10px;
--theme: rgb(255, 255, 255); --theme: rgb(255, 255, 255);
--entry: rgb(255, 255, 255); --entry: rgb(255, 255, 255);
--primary: rgb(30, 30, 30); --primary: rgb(30, 30, 30);

View File

@ -0,0 +1,6 @@
<div class="book">
<a href="{{ .Get "destUrl" }}" target="_blank">
<img loading="lazy" src="{{ .Get "imgUrl" }}"/>
<span>{{.Get "name"}} </span>
</a>
</div>