File tree Expand file tree Collapse file tree
assets/scss/wowchemy/layouts Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ /* ************************************************
2+ * List items
3+ **************************************************/
4+
5+ .view-list-item {
6+ margin-bottom : 1rem ;
7+ }
8+
9+ .pub-icon {
10+ color : rgba (0 , 0 , 0 , 0.54 );
11+ font-size : 0.81em ;
12+ padding-right : 6px ;
13+ }
14+
15+ .view-list-item .article-metadata {
16+ margin-bottom : 0 ;
17+ }
18+
19+ .pub-list-item .pub-abstract {
20+ font-size : 1rem ;
21+ }
22+
23+ .pub-list-item .btn-links {
24+ padding-top : 10px ;
25+ }
26+
27+ /* ************************************************
28+ * Compact (stream) list view
29+ **************************************************/
30+
31+ .media.stream-item :not (:last-child ) {
32+ margin-bottom : 2rem ;
33+ }
34+
35+ .card-simple .article-title ,
36+ .media.stream-item .article-title {
37+ font-size : 1.2rem ;
38+ }
39+
40+ .card-simple .article-style ,
41+ .media.stream-item .article-style {
42+ margin-top : 2px ;
43+ font-size : 0.8rem ;
44+ }
45+
46+ .media.stream-item .stream-meta {
47+ margin-top : 12px ;
48+ }
49+
50+ .media.stream-item img {
51+ max-width : 300px ;
52+ height : auto ;
53+ object-fit : cover ;
54+ }
55+
56+ @media screen and (max-width : 768px ) {
57+ .media.stream-item img {
58+ max-width : 80px ;
59+ }
60+ }
61+
62+ // TODO: refactor HTML to prevent duplicate nested `article-metadata` class from
63+ // li_compact.html > {{partial "page_metadata" ... }}
64+ .stream-meta.article-metadata .article-metadata {
65+ margin-bottom : 0 ;
66+ }
Original file line number Diff line number Diff line change 22title : 最新资讯
33
44# Listing view
5- view : compact
5+ view : card
66
77# Optional banner image (relative to `assets/media/` folder).
88banner :
Original file line number Diff line number Diff line change 7373 {{ end }}
7474
7575 </ div >
76- < div class ="ml-3 ">
76+ < div class ="ml-3 " style =" width: 300px; height: 220px; " >
7777 {{ $resource := partial "blox-core/functions/get_featured_image.html" $item }}
7878 {{ with $resource }}
79- {{ $image := .Resize "300x200 " }}
79+ {{ $image := .Resize "600x400 " }}
8080 {{ if ne $image.MediaType.SubType "gif" }}{{ $image = $image.Process "webp" }}{{ end }}
8181 < a href ="{{$link}} " {{ $target | safeHTMLAttr }} >
8282 < img src ="{{ $image.RelPermalink }} " height ="{{ $image.Height }} " width ="{{ $image.Width }} "
83- alt ="{{ $item.Title }} " loading ="lazy ">
83+ alt ="{{ $item.Title }} " loading ="lazy " >
8484 </ a >
8585 {{end}}
8686 </ div >
You can’t perform that action at this time.
0 commit comments