docs-cambiocds-com-jekyll-theme 1.0.9 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 825d90c943be2115d7656313af07694c070e4a52
4
- data.tar.gz: 52afb6a24a8a16b091ca1aee7ee68eef2985ac7f
3
+ metadata.gz: 011ca5b920ddf6e7fd2784934908afd1e11b2bee
4
+ data.tar.gz: 767c84d6ec4c01956f2e57d99633c470c09c3ec3
5
5
  SHA512:
6
- metadata.gz: 18a73d1c91a1283c87ff37fb0b184e44a7300340ce04c168a1f051b87c3372879118cb72ba5f17be6d684170379ca3aa5f0e7db3688c2920af88008da9c24fac
7
- data.tar.gz: 35a118426c5f213654af3381a3cee84a63481dc8471fcd86e69899c0193a6aa2c4dc9d0ac21440b88ce86347cf8868b99a73b5c52c57ca606b0170b5c510339c
6
+ metadata.gz: d4554ecf056b3e0afeab63c2a8d4abfd7568b38dab5477ea1281686303858aceed6af3eb31c6d6fe706df543bac4e8deeaf2f171e54246f102a8dce88ed9b324
7
+ data.tar.gz: 2ee26a17c02be44bbcb8f1f309030544cef01bb7ddd0cee17d3df4d2797ecc248661c43e32a97371bc0b1b6f950aeff2b0799f52abf5446bd8bbdbf2e4a96bb6
@@ -36,7 +36,7 @@
36
36
  <ul class="navbar-nav mr-auto">
37
37
  <li class="nav-item">
38
38
  <h1>
39
- <a href=".">> {{site.title}}</a>
39
+ <a href="."> > {{site.title}}</a>
40
40
  </h1>
41
41
  </li>
42
42
  </ul>
@@ -55,7 +55,7 @@
55
55
  </nav>
56
56
  <!-- End Nav -->
57
57
  <!-- Main Page Content and Sidebar -->
58
- {% if site.title != page.title %}
58
+ {% if page.title and site.title != page.title %}
59
59
  <h2 id="adocTitle">{{page.title}}</h2>
60
60
  {% endif %}
61
61
  <!-- Main Blog Content -->
@@ -77,6 +77,8 @@
77
77
  <img src="assets/images/CAMBIO_logotype_healthcare_horizontal_RGB_2018.png"/>
78
78
  </div>
79
79
  </footer>
80
- <!--End Footer -->
80
+ <!-- End Footer -->
81
+ <!-- Keep the script at the bottom of the page to avoid issues loading the page -->
82
+ <script src="{{page.root}}assets/js/custom.js"></script>
81
83
  </body>
82
84
  </html>
@@ -15,8 +15,7 @@ h1 {
15
15
  background-image: url("../images/page-header.jpg");
16
16
  background-color: #333333;
17
17
  padding: 3px;
18
- height: 60px;
19
- line-height: 60px;
18
+ height: auto;
20
19
  flex-wrap: wrap;
21
20
  }
22
21
  .navbar-brand {
@@ -29,6 +28,17 @@ h1 {
29
28
  .navbar-brand:hover {
30
29
  color: #FFFFFF;
31
30
  }
31
+ @media only screen and (max-width: 768px) {
32
+ .navbar-brand {
33
+ padding: 0.3125rem 0;
34
+ font-size: 19px;
35
+ }
36
+ }
37
+ @media only screen and (max-width: 768px) {
38
+ .navbar-collapse {
39
+ flex-wrap: wrap;
40
+ }
41
+ }
32
42
  .mr-auto{
33
43
  margin-right: 0px !important;
34
44
  }
@@ -45,6 +55,12 @@ li.nav-item h1 {
45
55
  font-size:1.25rem;
46
56
  font-weight:bold;
47
57
  }
58
+ @media only screen and (max-width: 768px) {
59
+ li.nav-item h1 {
60
+ margin-bottom: 0px;
61
+ margin-top: 0px;
62
+ }
63
+ }
48
64
  li.nav-item h1 a {
49
65
  color: #FFFFFF;
50
66
  font-size: 1.25rem;
@@ -56,9 +72,13 @@ li.nav-item h1 a:hover {
56
72
  color: #FFFFFF;
57
73
  text-decoration: none;
58
74
  }
75
+ @media only screen and (max-width: 768px) {
76
+ li.nav-item h1 a {
77
+ font-size: 19px;
78
+ }
79
+ }
59
80
  h2#adocTitle {
60
81
  max-width: 62.5rem;
61
- margin-top: 5%;
62
82
  margin-right: auto;
63
83
  margin-left: auto;
64
84
  }
@@ -0,0 +1,35 @@
1
+ /* Start of script:
2
+ Calculates the height of the navbar in relation to the AdocTitle tag
3
+ when a document is selected or in relation to the home tag when
4
+ the menu of a project is selected.
5
+ Additionally when the start page index is loaded it assigns a fixed
6
+ height value to the navbar instead.
7
+ */
8
+
9
+ const nav = document.querySelector('nav');
10
+
11
+ function setupNavHeightCalculator(element) {
12
+ return function() {
13
+ const navHeight = nav.clientHeight;
14
+ element.style.marginTop = navHeight + 20 + "px";
15
+ }
16
+ }
17
+
18
+ const adocTitle = document.querySelector('#adocTitle');
19
+ const home = document.querySelector('.home');
20
+ const homeIndex = document.querySelector('.homeIndex');
21
+
22
+ if (adocTitle) {
23
+ const calculateNavHeight = setupNavHeightCalculator(adocTitle)
24
+
25
+ window.addEventListener('resize', calculateNavHeight);
26
+ calculateNavHeight();
27
+ } else if (home) {
28
+ const calculateNavHeight = setupNavHeightCalculator(home)
29
+
30
+ window.addEventListener('resize', calculateNavHeight);
31
+ calculateNavHeight();
32
+ } else if (homeIndex) {
33
+ nav.style.height = '60px';
34
+ }
35
+ //End of script
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docs-cambiocds-com-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - MIG
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-18 00:00:00.000000000 Z
11
+ date: 2019-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -69,6 +69,7 @@ files:
69
69
  - assets/images/CAMBIO_logotype_healthcare_horizontal_RGB_2018.png
70
70
  - assets/images/favicon.png
71
71
  - assets/images/page-header.jpg
72
+ - assets/js/custom.js
72
73
  - assets/js/toc.js
73
74
  - assets/js/vendor/fastclick.js
74
75
  - assets/js/vendor/jquery.cookie.js