jekyll-theme-open-project 1.0.0.rc2 → 1.0.0.rc3

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
  SHA1:
3
- metadata.gz: 97235d0ae3af0dbcb51d717fa65f10cbf38abe65
4
- data.tar.gz: 36b5483f5100f294a04f1007881767ef27b086bb
3
+ metadata.gz: 788953cc36031982e184c52ca83c3491efb199d6
4
+ data.tar.gz: 2ddb1ea7b99126a7dd725b58c8f745b78d0859f6
5
5
  SHA512:
6
- metadata.gz: 225a2c5d4582a5c21aa72981a968f48db56762462ba05eaa4a115b9be0b197c92a74e5f62a14af23131812b095bbf584e7f492a162c5683e899801a4db06eaf4
7
- data.tar.gz: 8e5234591f81427d3aea49c3618ce1330eaac5618d8e5eb0ca00de55c2f07c92aff9ecf606e60020c63105a7719a5ca761a5909b2db279ab8cdcc113333f8a45
6
+ metadata.gz: 6733041cf40760816231f85be359729c2270cdaf68882e5f88fe7c3476f828256151fd6c229673e3080fa425a59c421a6b3df230e63da493de5b2ee55e901e7f
7
+ data.tar.gz: 28e06f2577621970b8d0b3d1cb961fec1003d125496148c5cc796a2b13dff525372a78d1fe40226bb2837e4e9c278912a580710937fd7bfd84e0e7f313e88700
@@ -4,60 +4,88 @@
4
4
  {% assign item_docs = include.items | where_exp: "item", "item.url contains docs_base_url" %}
5
5
  {% assign nav = item_docs | where_exp: "item", "item.path contains 'docs/navigation'" | first %}
6
6
 
7
- {% assign product_data = include.items | where_exp: "item", "item.url == product_base_url" | first %}
7
+ {% assign item_data = include.items | where_exp: "item", "item.url == product_base_url" | first %}
8
8
 
9
- {% assign num_sections = nav.sections | size %}
10
- {% if num_sections > 0 %}
11
9
  <nav class="nav-sidebar">
12
10
  <header class="sidebar-header">
13
11
  {% if include.item_type == 'software' and page.url != product_base_url %}
14
12
  <div class="logo-container" role="presentation">
15
13
  {% include software-symbol.html item_id=page.id %}
16
14
  </div>
17
- <h3 class="title"><a href="{{ product_base_url | relative_url }}">{{ product_data.title }}</a></h3>
15
+ <h3 class="title">
16
+ <a href="{{ product_base_url | relative_url }}">{{ item_data.title }}</a>
17
+ </h3>
18
18
  {% else %}
19
- <h3 class="title">Docs</h3>
19
+ <h3 class="title">
20
+ <a href="{{ include.item_type | append: "/" | relative_url }}">
21
+ &larr;
22
+ {% if include.item_type == 'software' %}
23
+ Software
24
+ {% else if include.item_type == 'specs' %}
25
+ Specifications
26
+ {% endif %}
27
+ </a>
28
+ </h3>
20
29
  {% endif %}
21
30
  </header>
22
31
 
23
- {% for section in nav.sections %}
24
- <h4 class="section-title">{{ section.name }}</h4>
25
- <ul class="section-items">
26
- {% for item in section.items %}
27
- {% assign link = docs_base_url | append: item | append: "/" %}
28
- {% assign linked_page = include.items | where_exp: "item", "item.url contains link" | first %}
29
-
30
- {% if page.url != link and linked_page %}
32
+ <section class="external-links">
33
+ {% if include.item_type == 'software' and item_data.repo_url or item_data.docs_url %}
34
+ <ul class="section-items">
35
+ {% if item_data.repo_url %}
36
+ <li class="item">
37
+ <a href="{{ item_data.repo_url }}">Source Repository</a> {% endif %}
38
+ {% if item_data.docs_url %}
31
39
  <li class="item">
32
- <a href="{{ link | relative_url }}">
33
- {{ linked_page.title }}
34
- </a>
35
- </li>
40
+ <a href="{{ item_data.docs_url }}">Documentation</a> {% endif %}
41
+ </ul>
42
+ {% else if include.item_type == 'specs' and item_data.rfc_id or item_data.ietf_datatracker_id or item_data.source_url %}
43
+ <ul class="section-items">
44
+ {% if item_data.rfc_id %}
45
+ <li class="item">
46
+ <a href="http://ietf.org/html/rfc{{ item_data.rfc_id }}">IETF RFC {{ item_data.rfc_id }}</a> {% endif %}
47
+ {% if item_data.ietf_datatracker_id %}
48
+ <li class="item">
49
+ <a href="https://datatracker.ietf.org/doc/{{ item_data.ietf_datatracker_id }}{% if page.ietf_datatracker_ver %}-{{ page.ietf_datatracker_ver }}{% endif %}">IETF document</a> {% endif %}
50
+ {% if item_data.source_url %}
51
+ <li class="item">
52
+ <a href="{{ item_data.source_url }}">Source Markup</a> {% endif %}
53
+ </ul>
54
+ {% endif %}
55
+ </section>
36
56
 
37
- {% else %}
38
- {% if page.url == link %}
39
- <li class="item selected">
40
- <span>
41
- {{ linked_page.title }}
42
- </span>
43
- </li>
57
+ {% for section in nav.sections %}
58
+ <section>
59
+ <h4 class="section-title">{{ section.name }}</h4>
60
+ <ul class="section-items">
61
+ {% for item in section.items %}
62
+ {% assign link = docs_base_url | append: item | append: "/" %}
63
+ {% assign linked_page = include.items | where_exp: "item", "item.url contains link" | first %}
44
64
 
65
+ {% if page.url != link and linked_page %}
66
+ <li class="item">
67
+ <a href="{{ link | relative_url }}">
68
+ {{ linked_page.title }}
69
+ </a>
45
70
  {% else %}
46
- <li class="item disabled">
47
- <span>
48
- {{ item }}
49
- </span>
50
- </li>
51
-
71
+ {% if page.url == link %}
72
+ <li class="item selected">
73
+ <span>
74
+ {{ linked_page.title }}
75
+ </span>
76
+ {% else %}
77
+ <li class="item disabled">
78
+ <span>
79
+ {{ item }}
80
+ </span>
81
+ {% endif %}
52
82
  {% endif %}
53
- {% endif %}
54
-
55
- {% assign link = "" %}
56
- {% endfor %}
57
- </ul>
83
+ {% assign link = "" %}
84
+ {% endfor %}
85
+ </ul>
86
+ </section>
58
87
  {% endfor %}
59
88
  </nav>
60
- {% endif %}
61
89
 
62
90
  <article>
63
91
  <header>
@@ -73,31 +101,6 @@
73
101
 
74
102
  <div role="presentation">
75
103
  <h3 class="lead">{{ page.description }}</h3>
76
-
77
- {% if page.repo_url or page.docs_url %}
78
- <div class="meta">
79
- <ul>
80
- {% if page.repo_url %}
81
- <li>
82
- <a href="{{ page.repo_url }}">Source code repository</a> {% endif %}
83
- {% if page.docs_url %}
84
- <li>
85
- <a href="{{ page.docs_url }}">Documentation</a> {% endif %}
86
- </ul>
87
- </div>
88
- {% else if page.rfc_id or page.ietf_datatracker_id or page.source_url %}
89
- <ul>
90
- {% if page.rfc_id %}
91
- <li>
92
- <a href="http://ietf.org/html/rfc{{ page.rfc_id }}">IETF RFC {{ page.rfc_id }}</a> {% endif %}
93
- {% if page.ietf_datatracker_id %}
94
- <li>
95
- <a href="https://datatracker.ietf.org/doc/{{ page.ietf_datatracker_id }}{% if page.ietf_datatracker_ver %}-{{ page.ietf_datatracker_ver }}{% endif %}">IETF document</a> {% endif %}
96
- {% if page.source_url %}
97
- <li>
98
- <a href="{{ page.source_url }}">Source markup</a> {% endif %}
99
- </ul>
100
- {% endif %}
101
104
  </div>
102
105
  </header>
103
106
 
@@ -466,6 +466,9 @@ body.project {
466
466
  .title {
467
467
  flex: 1;
468
468
  line-height: 1;
469
+ font-weight: normal;
470
+ font-size: 15px;
471
+
469
472
  a:link, a:visited {
470
473
  color: #444;
471
474
  }
@@ -480,48 +483,71 @@ body.project {
480
483
  }
481
484
  }
482
485
 
483
- > .section-title {
484
- font-size: 20px;
485
- font-weight: bold;
486
- margin: 0;
487
- line-height: 1.8;
488
- }
486
+ > section {
487
+ margin-bottom: 15px;
489
488
 
490
- > .section-items {
491
- list-style: none;
492
- margin: 0 0 15px 0;
493
- padding: 0;
494
- line-height: 2;
489
+ &.external-links {
490
+ $side-margin: 16px;
495
491
 
496
- > .item {
497
- font-size: 15px;
498
- font-weight: normal;
492
+ margin-left: -$side-margin;
499
493
 
500
- &.disabled {
501
- span {
502
- $disabled-label-width: 50px;
503
- opacity: 0.5;
504
- position: relative;
505
-
506
- &:before {
507
- opacity: 0.4;
508
- position: absolute;
509
- width: $disabled-label-width;
510
- left: -$disabled-label-width;;
511
- content: "TBD";
512
- font-weight: bold;
513
- }
514
- }
515
- }
516
- &.selected {
517
- span {
494
+ > .section-items > .item {
495
+ margin-bottom: 10px;
496
+ margin-right: $side-margin;
497
+
498
+ a {
499
+ background-color: #F7F7F7;
500
+ display: block;
518
501
  font-weight: bold;
519
- color: $primary-dark-color;
502
+ padding: 4px 0 4px $side-margin;
503
+ border-radius: 10px;
520
504
  }
521
505
  }
522
- a {
523
- &:link, &:hover, &:visited {
524
- color: #444;
506
+ }
507
+
508
+ > .section-title {
509
+ font-size: 20px;
510
+ font-weight: bold;
511
+ margin: 0;
512
+ line-height: 1.8;
513
+ }
514
+
515
+ > .section-items {
516
+ list-style: none;
517
+ margin: 0;
518
+ padding: 0;
519
+ line-height: 2;
520
+
521
+ > .item {
522
+ font-size: 15px;
523
+ font-weight: normal;
524
+
525
+ &.disabled {
526
+ span {
527
+ $disabled-label-width: 50px;
528
+ opacity: 0.5;
529
+ position: relative;
530
+
531
+ &:before {
532
+ opacity: 0.4;
533
+ position: absolute;
534
+ width: $disabled-label-width;
535
+ left: -$disabled-label-width;;
536
+ content: "TBD";
537
+ font-weight: bold;
538
+ }
539
+ }
540
+ }
541
+ &.selected {
542
+ span {
543
+ font-weight: bold;
544
+ color: $primary-dark-color;
545
+ }
546
+ }
547
+ a {
548
+ &:link, &:hover, &:visited {
549
+ color: #444;
550
+ }
525
551
  }
526
552
  }
527
553
  }
@@ -115,7 +115,7 @@ body > .underlay > footer {
115
115
  &:first-child {
116
116
  margin-right: 10px;
117
117
 
118
- &, &:link, &:hover, &:visited {
118
+ &, &:link, &:visited {
119
119
  color: white;
120
120
  background-color: rgba(white, 0.32);
121
121
  }
@@ -123,11 +123,16 @@ body > .underlay > footer {
123
123
  &:last-child {
124
124
  margin-right: 0;
125
125
 
126
- &, &:link, &:hover, &:visited {
126
+ &, &:link, &:visited {
127
127
  color: $primary-dark-color;
128
128
  background-color: white;
129
129
  }
130
130
  }
131
+
132
+ transition: box-shadow .2s ease-out;
133
+ &:hover {
134
+ box-shadow: 0 0 0 4px rgba(black, 0.2);
135
+ }
131
136
  }
132
137
  }
133
138
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-open-project
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc2
4
+ version: 1.0.0.rc3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.