jekyll-theme-isotc211 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6d65a5465bf7a5248e1ffb8289b43defbc1ac59051acae07127a1134872da5d6
4
- data.tar.gz: 52420d829d3050ab546388f9b98b3ec56c9ce36c5a31dbf4f786c522b2c020a0
3
+ metadata.gz: 648b52e3cb050dbc2261025ec9f928a1eb6ebf1b4987845448da7b002b392d1d
4
+ data.tar.gz: 2708bf15dcc00822b810fd4148fe4cd8abc6965d038adb93116d11eae6df1161
5
5
  SHA512:
6
- metadata.gz: 694626f3d46d6b78a2ea123e64424b52a4d0a88bf865a44d65b26042b2a7f4950564bd42108f29f39095a4fe9c2463b6d344d179264c04882358a23c74c00a72
7
- data.tar.gz: 5b241541263e3be7271d112fcd60470d3bf20925f7babe3dec0b2f8122c6dd0a788fc6770297a812310437e6f985f9f9b7524e4ca02c6e32b299eba38e9c976d
6
+ metadata.gz: a089f2c6231b93500cb413b42d54753b5203e2267b20e2ea6111425d0be36bd1e8615d36c8fef01b04423240fd28f8d3e33d1dcffe2776cf6a98e403938c5a7d
7
+ data.tar.gz: be82f897bb606168f78a1abc393025e2991ec104d0fde547328bbea2d59c83f79718a757b53ae7d9be5fcdca48aef89b0f07a29c429c6ba64728e7355d5d5061
data/_layouts/home.html CHANGED
@@ -13,7 +13,17 @@ bodyClass: home
13
13
 
14
14
  <div class="items">
15
15
  {% for post in site.posts %}
16
- <article class="news-item-card">
16
+
17
+ <article class="
18
+ news-item-card
19
+ {% if post.illustration %}news-item--with-illustration{% endif %}">
20
+
21
+ {% if post.illustration %}
22
+ <div class="illustration-container">
23
+ <img src="{{ post.illustration | relative_url }}">
24
+ </div>
25
+ {% endif %}
26
+
17
27
  <h3 class="title"><a href="{{ post.url | relative_url }}">{{ post.title }}</a></h3>
18
28
  <div class="excerpt">{{ post.excerpt }}</div>
19
29
  </article>
data/_layouts/post.html CHANGED
@@ -6,4 +6,10 @@ bodyClass: post
6
6
 
7
7
  <h2>{{ page.title }}</h2>
8
8
 
9
+ {% if page.illustration %}
10
+ <div class="illustration">
11
+ <img src="{{ page.illustration | relative_url }}">
12
+ </div>
13
+ {% endif %}
14
+
9
15
  {{ content }}
data/_sass/home.scss CHANGED
@@ -35,6 +35,31 @@ body.home {
35
35
  background: #fff;
36
36
  margin-right: 1em;
37
37
 
38
+ &.news-item--with-illustration {
39
+ position: relative;
40
+
41
+ .title, .excerpt {
42
+ margin-left: 155px;
43
+ }
44
+
45
+ .illustration-container {
46
+ position: absolute;
47
+ top: 0; left: 0; bottom: 0;
48
+ width: 155px;
49
+ overflow: hidden;
50
+
51
+ img {
52
+ display: block;
53
+ width: 300px;
54
+ height: auto;
55
+ position: absolute;
56
+ top: 50%;
57
+ left: 50%;
58
+ transform: translateY(-50%) translateX(-50%);
59
+ }
60
+ }
61
+ }
62
+
38
63
  .title {
39
64
  font-weight: normal;
40
65
  a {
@@ -59,3 +59,4 @@ html {
59
59
  @import 'offsets';
60
60
  @import 'main';
61
61
  @import 'home';
62
+ @import 'post';
data/_sass/post.scss ADDED
@@ -0,0 +1,17 @@
1
+ body.post {
2
+ > main {
3
+ margin-bottom: 1em;
4
+ }
5
+
6
+ .illustration {
7
+ margin-bottom: 1em;
8
+
9
+ img {
10
+ display: block;
11
+ width: 100%;
12
+ @media screen and (min-width: $bigscreenBreakpoint) {
13
+ width: 85%;
14
+ }
15
+ }
16
+ }
17
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-isotc211
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-13 00:00:00.000000000 Z
11
+ date: 2019-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -146,6 +146,7 @@ files:
146
146
  - _sass/main.scss
147
147
  - _sass/normalize.scss
148
148
  - _sass/offsets.scss
149
+ - _sass/post.scss
149
150
  - assets/logo-iso-noninverted.svg
150
151
  - assets/logo-iso.svg
151
152
  - assets/logo-ribose.svg