jekyll-docs-template 0.1.1 → 0.1.2

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: 928bef521f4bdc39acad666514cd05e97f8d23d9c5f6ca5c11842592a3434aee
4
- data.tar.gz: 978c39171c60446e96a6e8c53565210200254cdfec172bafd1d8bd1f0c763f2d
3
+ metadata.gz: 7719393aaa353a6a2f6d0aa3aed46d09439dc050b0c9b2039cd069261603ac59
4
+ data.tar.gz: eda2812b2345f30e1f67625c9cc92687aa1233c881428df8a60bbfd0105357aa
5
5
  SHA512:
6
- metadata.gz: 3cc79a7c730329c450f62c814b4447b17d5c9fe8f4ffb189015d81ce7a7e998d1cf9e6efb621113bb75b58b5fa86895c17bd76954e4aa9c2c53c1831b36cb3bc
7
- data.tar.gz: 9a2101ae5e0bf40f0ff92da5066c92fda06f1acf33ef69d6cbfb5c5d336862bb5b5df95022096db5e429e950f9ffcd705456972da6667eb7ba986f4f1bfc0685
6
+ metadata.gz: 5364dec66b47b43011dc96c456e47b404cd314b0c52759623433459fd53763e20c5674d7d861554d5dda09fbfe9e0adc5fa2961e67d7a58b1a362de46d4f5444
7
+ data.tar.gz: c1b58a0e5cdc19ca9086f46c2adad471bdb815f1fbd18d48f6db84872dfdda1c0fc4c09d80a03833b28b7daeb1192585e278e1e45c53b0308da34424307a442b
@@ -1,4 +1,4 @@
1
- {% if hide_toc != true %}
1
+ {% if site.show_toc %}
2
2
  <button class="btn btn-black toggle-next">
3
3
  {{ site.toc_title | default: 'On this page' }} ▾
4
4
  </button>
@@ -15,36 +15,40 @@
15
15
  <body>
16
16
  <a id="skip-to-content" href="#content">Skip to the content.</a>
17
17
 
18
- <header class="page-header" role="banner">
19
- <h1 class="project-name">
20
- {% if page.url != '/' %}<a href="/">{% endif %}
21
- {{site.title | default: site.github.repository_name}}
22
- {% if page.url != '/' %}</a>{% endif %}
23
- </h1>
24
- <h2 class="project-tagline">{{ site.description | default: site.github.project_tagline }}</h2>
25
- {% if site.github.is_project_page %}
26
- <a href="{{ site.github.repository_url }}" class="btn">View on GitHub</a>
27
- {% endif %}
28
- {% if site.show_downloads %}
29
- <div class="btn-group">
30
- <a href="{{ site.github.zip_url }}" class="btn btn-primary-lt">Download .zip</a>
31
- <a href="{{ site.github.tar_url }}" class="btn btn-primary-lt">Download .tar.gz</a>
18
+ <div>
19
+ <header class="page-header" role="banner">
20
+ <h1 class="project-name">
21
+ {% if page.url != '/' %}<a href="/">{% endif %}
22
+ {{site.title | default: site.github.repository_name}}
23
+ {% if page.url != '/' %}</a>{% endif %}
24
+ </h1>
25
+ <h2 class="project-tagline">{{ site.description | default: site.github.project_tagline }}</h2>
26
+ {% if site.github.is_project_page %}
27
+ <a href="{{ site.github.repository_url }}" class="btn">View on GitHub</a>
28
+ {% endif %}
29
+ {% if site.show_downloads %}
30
+ <div class="btn-group">
31
+ <a href="{{ site.github.zip_url }}" class="btn btn-primary-lt">Download .zip</a>
32
+ <a href="{{ site.github.tar_url }}" class="btn btn-primary-lt">Download .tar.gz</a>
33
+ </div>
34
+ {% endif %}
35
+ </header>
36
+
37
+ <main class="main-content" role="main">
38
+ <div class="main-content-inner">
39
+ <aside class="main-menu">
40
+ {% include global-menu.html %}
41
+ </aside>
42
+ <aside class="contents-table">
43
+ {% include page-contents.html %}
44
+ </aside>
45
+ <div id="content" class="page-content">
46
+ {{ content }}
47
+ {% include gh-edit-btn.html %}
48
+ </div>
32
49
  </div>
33
- {% endif %}
34
- </header>
35
-
36
- <main class="main-content" role="main">
37
- <aside class="main-menu">
38
- {% include global-menu.html %}
39
- </aside>
40
- <aside class="contents-table">
41
- {% include page-contents.html %}
42
- </aside>
43
- <div id="content" class="page-content">
44
- {{ content }}
45
- {% include gh-edit-btn.html %}
46
- </div>
47
- </main>
50
+ </main>
51
+ </div>
48
52
 
49
53
  <footer class="site-footer">
50
54
  {% if site.github.is_project_page %}
data/_sass/base.scss CHANGED
@@ -1,4 +1,5 @@
1
1
  body {
2
+ background-color: $color--primary;
2
3
  width: 100%;
3
4
  }
4
5
 
data/_sass/header.scss CHANGED
@@ -2,7 +2,10 @@
2
2
  background-color: $color--primary;
3
3
  color: $color--primary-lt;
4
4
  padding: calc(3 * #{$global--spacing-vertical}) calc(2 * #{$global--spacing-horizontal});
5
+ position: sticky;
5
6
  text-align: center;
7
+ top: 0;
8
+ z-index: 0;
6
9
 
7
10
  a {
8
11
  color: $color--primary-lt;
data/_sass/main.scss CHANGED
@@ -1,4 +1,11 @@
1
1
  .main-content {
2
+ background-color: white;
3
+ padding: calc(2 * #{$global--spacing-vertical}) $global--spacing-horizontal;
4
+ position: relative;
5
+ z-index: 1;
6
+ }
7
+
8
+ .main-content-inner {
2
9
  display: grid;
3
10
  gap: $global--spacing-vertical;
4
11
  grid-template-areas:
@@ -9,7 +16,6 @@
9
16
  margin-left: auto;
10
17
  margin-right: auto;
11
18
  max-width: 1200px;
12
- padding: calc(2 * #{$global--spacing-vertical}) $global--spacing-horizontal;
13
19
 
14
20
  @include media(desktop) {
15
21
  gap: calc(2 * #{$global--spacing-vertical});
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-docs-template
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Morgan Spencer