hexo-theme-linen 1.0.43 → 1.0.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div class="post-item" href="<%=url_for(post.path)%>" onclick="onclickPostItem(this)">
|
|
2
|
-
<div class="item-body">
|
|
2
|
+
<div class="item-body<% if (post.thumbnail || post.cover) { %> has-cover<% } %>">
|
|
3
3
|
<% if (post.thumbnail || post.cover) { %>
|
|
4
4
|
<div class="cover-img">
|
|
5
5
|
<img src="<%=url_for(post.thumbnail || post.cover)%>" alt="" loading="lazy" />
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
$font-version: "
|
|
1
|
+
$font-version: "14701164";
|
|
@@ -1722,7 +1722,7 @@ body {
|
|
|
1722
1722
|
height: 2.75em;
|
|
1723
1723
|
}
|
|
1724
1724
|
}
|
|
1725
|
-
a:not([class])
|
|
1725
|
+
a:not([class]) {
|
|
1726
1726
|
color: $green;
|
|
1727
1727
|
font-weight: bold;
|
|
1728
1728
|
text-decoration: none;
|
|
@@ -1736,6 +1736,13 @@ body {
|
|
|
1736
1736
|
vertical-align: middle;
|
|
1737
1737
|
margin-bottom: 0.25em;
|
|
1738
1738
|
}
|
|
1739
|
+
&:empty::after,
|
|
1740
|
+
&:has(img)::after {
|
|
1741
|
+
display: none;
|
|
1742
|
+
}
|
|
1743
|
+
&:has(img):hover {
|
|
1744
|
+
border-bottom: 0;
|
|
1745
|
+
}
|
|
1739
1746
|
&:hover {
|
|
1740
1747
|
opacity: 0.85;
|
|
1741
1748
|
border-bottom: solid 1px $green;
|
|
@@ -1772,8 +1779,7 @@ body {
|
|
|
1772
1779
|
.gt-comment-avatar {
|
|
1773
1780
|
background-color: #f5f5f5;
|
|
1774
1781
|
}
|
|
1775
|
-
.user-mention
|
|
1776
|
-
.gt-comment-body blockquote a:not([class]) {
|
|
1782
|
+
.user-mention {
|
|
1777
1783
|
color: $darkText;
|
|
1778
1784
|
text-decoration: underline;
|
|
1779
1785
|
@include defaultFont;
|
|
@@ -1828,6 +1834,41 @@ body {
|
|
|
1828
1834
|
#recent-posts {
|
|
1829
1835
|
.post-item {
|
|
1830
1836
|
@include postItem;
|
|
1837
|
+
@media (min-width: 901px) {
|
|
1838
|
+
.item-body.has-cover {
|
|
1839
|
+
display: flex;
|
|
1840
|
+
align-items: stretch;
|
|
1841
|
+
gap: 15px;
|
|
1842
|
+
|
|
1843
|
+
&::after {
|
|
1844
|
+
display: none;
|
|
1845
|
+
}
|
|
1846
|
+
|
|
1847
|
+
.cover-img {
|
|
1848
|
+
order: 2;
|
|
1849
|
+
float: none;
|
|
1850
|
+
flex: 0 0 25%;
|
|
1851
|
+
width: 25%;
|
|
1852
|
+
margin-left: 0;
|
|
1853
|
+
}
|
|
1854
|
+
|
|
1855
|
+
.title-excerpt {
|
|
1856
|
+
order: 1;
|
|
1857
|
+
display: flex;
|
|
1858
|
+
min-width: 0;
|
|
1859
|
+
flex: 1 1 0;
|
|
1860
|
+
flex-direction: column;
|
|
1861
|
+
}
|
|
1862
|
+
|
|
1863
|
+
.title-excerpt-text {
|
|
1864
|
+
flex: 1 0 auto;
|
|
1865
|
+
}
|
|
1866
|
+
|
|
1867
|
+
.post-meta {
|
|
1868
|
+
margin-top: auto;
|
|
1869
|
+
}
|
|
1870
|
+
}
|
|
1871
|
+
}
|
|
1831
1872
|
.tags {
|
|
1832
1873
|
@include tags;
|
|
1833
1874
|
margin: 0.25rem 0 -0.5em 0;
|