优化了圆角弧度,增加了藏书shortcodes
This commit is contained in:
parent
111261d496
commit
af9a7f7172
@ -19,7 +19,7 @@
|
||||
font-size: 13px;
|
||||
line-height: 36px;
|
||||
background: var(--primary);
|
||||
border-radius: calc(36px / 2);
|
||||
border-radius: calc(20px / 2);
|
||||
padding: 0 16px;
|
||||
}
|
||||
|
||||
|
@ -399,3 +399,11 @@ img.in-text {
|
||||
display: inline;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
div.book {
|
||||
display: inline-block;
|
||||
padding: 0 1rem;
|
||||
max-width:150px;
|
||||
min-height: 250px;
|
||||
vertical-align: top;
|
||||
}
|
@ -5,7 +5,7 @@
|
||||
--main-width: 720px;
|
||||
--header-height: 60px;
|
||||
--footer-height: 60px;
|
||||
--radius: 16px;
|
||||
--radius: 10px;
|
||||
--theme: rgb(255, 255, 255);
|
||||
--entry: rgb(255, 255, 255);
|
||||
--primary: rgb(30, 30, 30);
|
||||
|
6
layouts/shortcodes/book.html
Normal file
6
layouts/shortcodes/book.html
Normal 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>
|
Loading…
x
Reference in New Issue
Block a user