jekyll-theme-open-project 1.1.20 → 1.1.21

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: 748dfb04780261d0c105eb194108a77180d5b84e06e8b9d16e7fcc218efdb5b0
4
- data.tar.gz: 3b9ca0218f3f5322ff65d7c62b6545f15efaf43756135154c528b9d87a378652
3
+ metadata.gz: cb60a7c07b080bc522b89bc0224a2899543441481d40866eff9e7f9f18ce7228
4
+ data.tar.gz: 5f2d4cf1b6e600c0e0445f269097ff35c1094b180c2e5fa4287c2fc470f07f09
5
5
  SHA512:
6
- metadata.gz: 0d72a311c6240b58ab4501d5e27b8f9ecf75bb6088c3551dc245f9de4727dd648a9967252c8d67af67ea5bc3b32f17ea484a5a181a650bb91dcd6cb05a293463
7
- data.tar.gz: 95728b967a74f0e49ea9a685ca10f1acfced314d72ed86d575576b6ab84d9ec13df39ea89973518ad6785906583f3180b8abdfb7032bbe65f1d602193be63151
6
+ metadata.gz: 0150c7c868585c42d816f95b14367347beb03c6ec375fc54148bd5c7187ae3a34d122245eccb45169232a478baab138b64b3161be3e94319dd283a5d4458f50b
7
+ data.tar.gz: 5e64d997fbbe306692a34980c68c91ec9a12ed2bb3ac395c4e62bc95d2fb173860e3a9a38b094e63215a34e70f9d8a7b8253d2e36ceeb3432c6faf47fe493bdf
@@ -2,26 +2,30 @@
2
2
  layout: default
3
3
  ---
4
4
 
5
- {% if site.is_hub %}
6
- {% include index-page-item-filter.html url_tag_prefix="/software/" items=site.all_software tag=page.tag %}
7
- {% endif %}
5
+ {% include index-page-item-filter.html url_tag_prefix="/software/" items=site.all_software tag=page.tag %}
8
6
 
9
7
  <section class="items">
10
8
  {% if site.is_hub %}
11
9
  {% include assets/symbol.svg %}
12
- {% assign items = page.items | default: site.all_software %}
13
- {% for product in items %}
14
- {% include software-card-hub.html item=product item_type='software' %}
10
+ {% endif %}
11
+
12
+ {% if page.tag and page.items %}
13
+ {% for item in page.items %}
14
+ {% include software-card-hub.html item=item item_type='software' %}
15
+ {% endfor %}
16
+ {% elsif site.is_hub %}
17
+ {% for item in site.all_software %}
18
+ {% include software-card-hub.html item=item item_type='software' %}
15
19
  {% endfor %}
16
20
  {% else %}
17
21
  {% if site.num_featured_software > 0 %}
18
- {% for product in site.featured_software %}
19
- {% include software-card-hub.html item=product item_type='software' %}
22
+ {% for item in site.featured_software %}
23
+ {% include software-card-hub.html item=item item_type='software' %}
20
24
  {% endfor %}
21
25
  <hr>
22
26
  {% endif %}
23
- {% for product in site.non_featured_software %}
24
- {% include software-card-hub.html item=product item_type='software' %}
27
+ {% for item in site.non_featured_software %}
28
+ {% include software-card-hub.html item=item item_type='software' %}
25
29
  {% endfor %}
26
30
  {% endif %}
27
31
  </section>
@@ -2,28 +2,30 @@
2
2
  layout: default
3
3
  ---
4
4
 
5
- {% if site.is_hub %}
6
- {% include index-page-item-filter.html url_tag_prefix="/specs/" items=site.all_specs tag=page.tag %}
7
- {% endif %}
5
+ {% include index-page-item-filter.html url_tag_prefix="/specs/" items=site.all_specs tag=page.tag %}
8
6
 
9
- {% assign items = page.items | default: site.all_specs %}
10
- {% assign num_items = items | size %}
11
-
12
- <section class="items {% if num_items < 3 %}one-row{% endif %}">
7
+ <section class="items">
13
8
  {% if site.is_hub %}
14
9
  {% include assets/symbol.svg %}
15
- {% for spec in items %}
16
- {% include software-card-hub.html item=spec item_type='specs' %}
10
+ {% endif %}
11
+
12
+ {% if page.tag and page.items %}
13
+ {% for item in page.items %}
14
+ {% include software-card-hub.html item=item item_type='specs' %}
15
+ {% endfor %}
16
+ {% elsif site.is_hub %}
17
+ {% for item in site.all_specs %}
18
+ {% include software-card-hub.html item=item item_type='specs' %}
17
19
  {% endfor %}
18
20
  {% else %}
19
21
  {% if site.num_featured_specs > 0 %}
20
- {% for spec in site.featured_specs %}
21
- {% include software-card-hub.html item=spec item_type='specs' %}
22
+ {% for item in site.featured_specs %}
23
+ {% include software-card-hub.html item=item item_type='specs' %}
22
24
  {% endfor %}
23
25
  <hr>
24
26
  {% endif %}
25
- {% for spec in site.non_featured_specs %}
26
- {% include software-card-hub.html item=spec item_type='specs' %}
27
+ {% for item in site.non_featured_specs %}
28
+ {% include software-card-hub.html item=item item_type='specs' %}
27
29
  {% endfor %}
28
30
  {% endif %}
29
31
  </section>
@@ -137,11 +137,6 @@ a {
137
137
  text-decoration: none;
138
138
  }
139
139
 
140
- &.featured-item {
141
- background: linear-gradient(135deg, white 0%, rgba($primary-dark-color, 0.2) 100%);
142
- }
143
-
144
- /*
145
140
  &.featured-item::before {
146
141
  content: "👍 featured";
147
142
 
@@ -154,7 +149,6 @@ a {
154
149
  color: white;
155
150
  font-weight: bold;
156
151
  }
157
- */
158
152
 
159
153
  header {
160
154
  > .parent-project {
@@ -323,7 +317,7 @@ a {
323
317
  font-size: 18px;
324
318
  line-height: 1.65;
325
319
 
326
- > p:first-child {
320
+ > p:first-child, > .paragraph:first-child p:only-child {
327
321
  margin-top: 0;
328
322
  }
329
323
 
@@ -331,6 +325,10 @@ a {
331
325
  @include code-snippet();
332
326
  }
333
327
 
328
+ a {
329
+ border-bottom: 1px solid;
330
+ }
331
+
334
332
  pre {
335
333
  @include code-snippet-container();
336
334
  }
@@ -373,6 +371,10 @@ a {
373
371
  margin-top: 1em;
374
372
  margin-bottom: 1em;
375
373
 
374
+ p {
375
+ margin: 0;
376
+ }
377
+
376
378
  th, td {
377
379
  text-align: left;
378
380
  padding: .5em;
@@ -384,6 +386,8 @@ a {
384
386
  }
385
387
  }
386
388
  }
389
+
390
+ @include asciidoc-markup($primary-dark-color);
387
391
  }
388
392
  }
389
393
 
@@ -127,6 +127,58 @@
127
127
  }
128
128
  }
129
129
 
130
+ @mixin asciidoc-markup($highlight-color) {
131
+ // Used for e.g. code listing headings and tip block labels
132
+ .title {
133
+ text-transform: uppercase;
134
+ font-size: 12px;
135
+ border-radius: .25em;
136
+ background-color: $highlight-color;
137
+ color: white;
138
+ font-weight: bold;
139
+ padding: .3em .6em;
140
+ }
141
+
142
+ // Used for tip block labels
143
+ .admonitionblock {
144
+ overflow-x: scroll;
145
+
146
+ table:first-child {
147
+ margin-top: 0;
148
+ }
149
+ table:last-child {
150
+ margin-bottom: 0;
151
+ }
152
+
153
+ td.icon {
154
+ vertical-align: top;
155
+ padding-left: 0;
156
+ }
157
+ .content {
158
+ font-size: 80%;
159
+
160
+ > div:first-child {
161
+ > :first-child {
162
+ margin-top: 0;
163
+ }
164
+ }
165
+ > div:last-child {
166
+ > :last-child {
167
+ margin-bottom: 0;
168
+ }
169
+ &.ulist {
170
+ li:first-child > :first-child {
171
+ margin-top: 0;
172
+ }
173
+ li:last-child > :last-child {
174
+ margin-bottom: 0;
175
+ }
176
+ }
177
+ }
178
+ }
179
+ }
180
+ }
181
+
130
182
  @mixin docs-page($primary-dark-color) {
131
183
  $side-margin: 16px; // for external links
132
184
 
@@ -300,55 +352,7 @@
300
352
  }
301
353
 
302
354
  > .body {
303
- // Used for e.g. code listing headings and tip block labels
304
- .title {
305
- text-transform: uppercase;
306
- font-size: 12px;
307
- border-radius: .25em;
308
- background-color: $primary-dark-color;
309
- color: white;
310
- font-weight: bold;
311
- padding: .3em .6em;
312
- }
313
-
314
- // Used for tip block labels
315
- .admonitionblock {
316
- overflow-x: scroll;
317
-
318
- table:first-child {
319
- margin-top: 0;
320
- }
321
- table:last-child {
322
- margin-bottom: 0;
323
- }
324
-
325
- td.icon {
326
- vertical-align: top;
327
- padding-left: 0;
328
- }
329
- .content {
330
- font-size: 80%;
331
-
332
- > div:first-child {
333
- > :first-child {
334
- margin-top: 0;
335
- }
336
- }
337
- > div:last-child {
338
- > :last-child {
339
- margin-bottom: 0;
340
- }
341
- &.ulist {
342
- li:first-child > :first-child {
343
- margin-top: 0;
344
- }
345
- li:last-child > :last-child {
346
- margin-bottom: 0;
347
- }
348
- }
349
- }
350
- }
351
- }
355
+ @include asciidoc-markup($primary-dark-color);
352
356
  }
353
357
  }
354
358
 
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.1.20
4
+ version: 1.1.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-30 00:00:00.000000000 Z
11
+ date: 2018-10-31 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.1.20
75
+ version: 1.1.21
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.1.20
82
+ version: 1.1.21
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: bundler
85
85
  requirement: !ruby/object:Gem::Requirement