jekyll-theme-open-project 1.3.3 → 1.3.4

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: 70b462c8b4d537139b15f735ddb01d47a61908d253f411a1a06a765363276801
4
- data.tar.gz: 2e8cf0edb54dd0d7b7e3baf38603db67b8a508315ad1c2889d4ab17544617368
3
+ metadata.gz: b4dcd33aba82235dfb9006a73ec08312b707d24b8aaf02004a48d9c8f9a39b60
4
+ data.tar.gz: c0e916d4e6898e541b438619c974d1e70c1e884cb0a89cbdaea0328f6e97b9ed
5
5
  SHA512:
6
- metadata.gz: 33b3f68ced09c8a98722ac28729230ee523872db0a36e05ec994ee74471066187168a074a217ff159249a74464c8230e4a7f0fe3c89f0e9eb3f1c89830ee35d2
7
- data.tar.gz: eac25c2cb207a09fe82bb0e0938942e14ba65620756b74c16d649357ccd45ff216b791cb71f9bf08d5fcbdb11565d67e18551fcba7bf094e41338eafd76c2f23
6
+ metadata.gz: b0870bba7d5b1229926777e61c1d0016743981aef0710d8a524137847250a4debfa77cbcea5462df809ef19dba9dada90df9304f13d4d8ae701713247f6e7289
7
+ data.tar.gz: 3cc202cc0740c816bb587f00b21a66738f925c13c14c8faecb8201780e10abd333e9e410e6610327b4536de8c16afb42ac55622bab90cb2cfed1a7c93c4d40d9
@@ -19,12 +19,22 @@
19
19
 
20
20
  {% assign num_top_items = num_software + num_posts %}
21
21
 
22
+ {% if num_posts > 0 %}
23
+ <section class="featured-posts">
24
+ <h2 class="title">From the <a href="/blog/">Blog</a></h2>
25
+
26
+ <div class="items">
27
+ {% for item in posts | limit: site.max_featured_posts %}
28
+ {% include post-card.html post=item %}
29
+ {% endfor %}
30
+ </div>
31
+ </section>
32
+ {% endif %}
33
+
22
34
  <div class="underlay top-background">
23
- {% if num_top_items > 1 %}
24
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none">
25
- <polygon fill="white" points="0,0 100,0 100,60 0,100"/>
26
- </svg>
27
- {% endif %}
35
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none">
36
+ <polygon fill="white" points="0,0 100,0 100,60 0,100"/>
37
+ </svg>
28
38
 
29
39
  {% if num_software > 0 %}
30
40
  <section class="software">
@@ -67,53 +77,41 @@
67
77
  </section>
68
78
  {% endif %}
69
79
 
70
- {% if num_posts > 0 %}
71
- <section class="featured-posts">
72
- <h2 class="title">From the <a href="/blog/">Blog</a></h2>
80
+ {% if num_specs > 0 %}
81
+ <section class="specs">
82
+ <h2 class="title">
83
+ {% if num_featured_specs >= num_specs or num_specs <= site.max_featured_specs %}
84
+ Open Specifications
85
+ {% else %}
86
+ Featured Specifications
87
+ <a class="more-link"
88
+ href="/specs/" title="See all {{ site.title }} specs">(see&nbsp;all)</a>
89
+ {% endif %}
90
+ </h2>
73
91
 
74
92
  <div class="items">
75
- {% for item in posts | limit: site.max_featured_posts %}
76
- {% include post-card.html post=item %}
93
+ {% for item in specs | limit: site.max_featured_specs %}
94
+ <a class="item" href="{{ item.url }}" role="article">
95
+ <header>
96
+ <h3 class="title">{{ item.title }}</h3>
97
+ </header>
98
+
99
+ <p class="body">
100
+ {{ item.description }}
101
+ </p>
102
+
103
+ <footer class="meta">
104
+ {% include tag-list.html tags=item.tags item_type="specs" %}
105
+
106
+ {% if item.last_update %}
107
+ <section class="last-update">
108
+ Last update: {{ item.last_update | date: "%d/%m/%Y" }}
109
+ </section>
110
+ {% endif %}
111
+ </footer>
112
+ </a>
77
113
  {% endfor %}
78
114
  </div>
79
115
  </section>
80
116
  {% endif %}
81
117
  </div>
82
-
83
- {% if num_specs > 0 %}
84
- <section class="specs">
85
- <h2 class="title">
86
- {% if num_featured_specs >= num_specs or num_specs <= site.max_featured_specs %}
87
- Open Specifications
88
- {% else %}
89
- Featured Specifications
90
- <a class="more-link"
91
- href="/specs/" title="See all {{ site.title }} specs">(see&nbsp;all)</a>
92
- {% endif %}
93
- </h2>
94
-
95
- <div class="items">
96
- {% for item in specs | limit: site.max_featured_specs %}
97
- <a class="item" href="{{ item.url }}" role="article">
98
- <header>
99
- <h3 class="title">{{ item.title }}</h3>
100
- </header>
101
-
102
- <p class="body">
103
- {{ item.description }}
104
- </p>
105
-
106
- <footer class="meta">
107
- {% include tag-list.html tags=item.tags item_type="specs" %}
108
-
109
- {% if item.last_update %}
110
- <section class="last-update">
111
- Last update: {{ item.last_update | date: "%d/%m/%Y" }}
112
- </section>
113
- {% endif %}
114
- </footer>
115
- </a>
116
- {% endfor %}
117
- </div>
118
- </section>
119
- {% endif %}
@@ -43,6 +43,9 @@ main {
43
43
  /* Generic */
44
44
 
45
45
  .layout--home > & {
46
+ > section {
47
+ z-index: 1;
48
+ }
46
49
  > .underlay {
47
50
  > svg {
48
51
  display: none;
@@ -73,7 +76,7 @@ main {
73
76
  }
74
77
  }
75
78
 
76
- > .underlay > .featured-posts {
79
+ > .featured-posts {
77
80
  @extend .main-section;
78
81
 
79
82
  .items {
@@ -129,7 +132,6 @@ main {
129
132
  .layout--post > &,
130
133
  .layout--spec > &,
131
134
  .layout--project-index > &,
132
- .layout--home > &,
133
135
  .docs-page > & {
134
136
  padding-bottom: 50px;
135
137
 
@@ -138,6 +140,14 @@ main {
138
140
  }
139
141
  }
140
142
 
143
+ .layout--home > & {
144
+ padding-bottom: 50px;
145
+
146
+ @media screen and (min-width: $bigscreen-breakpoint) {
147
+ padding-bottom: 0;
148
+ }
149
+ }
150
+
141
151
  .layout--spec-index > &,
142
152
  .layout--software-index > & {
143
153
  > .filter-header {
@@ -268,6 +278,11 @@ main {
268
278
  }
269
279
 
270
280
  @media screen and (min-width: $bigscreen-breakpoint) {
281
+ box-sizing: border-box;
282
+ flex-basis: calc( 100%/#{$featured-cols-narrow} - #{$gutter} );
283
+ margin-bottom: $gutter;
284
+ }
285
+ @media screen and (min-width: $widescreen-breakpoint) {
271
286
  box-sizing: border-box;
272
287
  flex-basis: calc( 100%/#{$featured-cols} - #{$gutter} );
273
288
  margin-bottom: $gutter;
@@ -564,7 +579,7 @@ main {
564
579
  }
565
580
 
566
581
  &.layout--home > main > .underlay > .software,
567
- &.layout--home > main > .specs,
582
+ &.layout--home > main > .underlay > .specs,
568
583
  &.layout--software-index > main,
569
584
  &.layout--spec-index > main {
570
585
  > .items {
@@ -624,7 +639,7 @@ main {
624
639
  }
625
640
 
626
641
  &.layout--home > main > .underlay > .software,
627
- &.layout--home > main > .specs {
642
+ &.layout--home > main > .underlay > .specs {
628
643
  @extend .main-section;
629
644
 
630
645
  .items {
@@ -151,6 +151,11 @@
151
151
  }
152
152
  }
153
153
 
154
+ // Small text
155
+ span.small {
156
+ font-size: 80%;
157
+ }
158
+
154
159
  // Callouts
155
160
  .conum {
156
161
  color: $primary-dark-color;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-open-project
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.3
4
+ version: 1.3.4
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-02-24 00:00:00.000000000 Z
11
+ date: 2019-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: 1.3.3
75
+ version: 1.3.4
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - '='
81
81
  - !ruby/object:Gem::Version
82
- version: 1.3.3
82
+ version: 1.3.4
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: bundler
85
85
  requirement: !ruby/object:Gem::Requirement