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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 69e9d0e1c1d690401607c1367a5bc466299ad39b138bec2da357e728051de11b
4
- data.tar.gz: fadd0e06e18d3555ceabba16456bfcae609feea59ac9d60e60d311c8ccf53b0f
3
+ metadata.gz: 845bdb2101f37d892526822d4f1c02095273edc124f76233250c59e41cd27076
4
+ data.tar.gz: 978d04a00788d5689721b15c12ed14ee31e3459cf74394fdb4529a271196300c
5
5
  SHA512:
6
- metadata.gz: bcb7c70dcd2aa0c7a7455a15f5c5cf75a4e473a63ff16539825c2651cf25397d7011f95315cf2f80bf5307d6a8ba1f08af5075e76a321a8ee54bcc56a389e1fa
7
- data.tar.gz: bbe0c712aa2bce20a32a6ba998a29dccf93be925dd9427da01b4413fde456305f83363201a1a983a162b85bdf5c8b6ea64affd7c86b1459c43468b24181526f1
6
+ metadata.gz: 71a11c8d9f14ab2557e7493c4da6526221f5ad88188bebbaa6f670d705880c4986cfb5372ac63ec80877fba35747851475e2c1946b23fc2a369c411b05fc6f9b
7
+ data.tar.gz: a27341ad92998af3c41012b145555228614449b374a1603b8f3d5eeca2e7078c22bf1d38527ef53ccae703e4e7c982046ed7e99398ce596357937e53d99b5d45
@@ -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 }}"
@@ -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 {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imdhemy-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mohamad Eldhemy