imdhemy-jekyll-theme 1.3.0 → 1.3.1
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.
- checksums.yaml +4 -4
- data/_includes/post-item.html +1 -1
- data/_sass/components/_core.scss +24 -5
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 845bdb2101f37d892526822d4f1c02095273edc124f76233250c59e41cd27076
|
|
4
|
+
data.tar.gz: 978d04a00788d5689721b15c12ed14ee31e3459cf74394fdb4529a271196300c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 71a11c8d9f14ab2557e7493c4da6526221f5ad88188bebbaa6f670d705880c4986cfb5372ac63ec80877fba35747851475e2c1946b23fc2a369c411b05fc6f9b
|
|
7
|
+
data.tar.gz: a27341ad92998af3c41012b145555228614449b374a1603b8f3d5eeca2e7078c22bf1d38527ef53ccae703e4e7c982046ed7e99398ce596357937e53d99b5d45
|
data/_includes/post-item.html
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{% assign reading_minutes = post.content | number_of_words | divided_by: 200 | at_least: 1 %}
|
|
2
2
|
{% assign read_article_label = site.theme_text.read_article_label | default: "Read article" %}
|
|
3
|
-
<article class="post-card">
|
|
3
|
+
<article class="post-card{% if post.image %} post-card--with-image{% endif %}">
|
|
4
4
|
<!-- thumbnail -->
|
|
5
5
|
{% if post.image %}
|
|
6
6
|
<a href="{{ site.baseurl }}{{ post.url }}"
|
data/_sass/components/_core.scss
CHANGED
|
@@ -1770,16 +1770,35 @@
|
|
|
1770
1770
|
padding: 1.25rem;
|
|
1771
1771
|
}
|
|
1772
1772
|
|
|
1773
|
-
.post-card {
|
|
1773
|
+
.post-card--with-image {
|
|
1774
1774
|
flex-direction: row;
|
|
1775
|
+
align-items: stretch;
|
|
1776
|
+
padding: 0;
|
|
1777
|
+
overflow: hidden;
|
|
1775
1778
|
}
|
|
1776
1779
|
|
|
1777
|
-
.post-card__image {
|
|
1780
|
+
.post-card--with-image .post-card__image {
|
|
1781
|
+
align-self: stretch;
|
|
1782
|
+
flex: 0 0 250px;
|
|
1783
|
+
width: 250px;
|
|
1778
1784
|
min-width: 250px;
|
|
1779
|
-
max-width: 250px;
|
|
1780
|
-
max-height: 250px;
|
|
1781
|
-
margin-right: 1.25rem;
|
|
1782
1785
|
margin-bottom: 0;
|
|
1786
|
+
margin-right: 1.25rem;
|
|
1787
|
+
border-radius: 0;
|
|
1788
|
+
aspect-ratio: auto;
|
|
1789
|
+
}
|
|
1790
|
+
|
|
1791
|
+
.post-card--with-image .post-card__image-el {
|
|
1792
|
+
transform: scale(1.08);
|
|
1793
|
+
transform-origin: center;
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1796
|
+
.post-card--with-image .post-card__image:hover .post-card__image-el {
|
|
1797
|
+
transform: scale(1.14);
|
|
1798
|
+
}
|
|
1799
|
+
|
|
1800
|
+
.post-card--with-image .post-card__content {
|
|
1801
|
+
padding: 1rem 1rem 1rem 0;
|
|
1783
1802
|
}
|
|
1784
1803
|
|
|
1785
1804
|
.post-card__title {
|