jenstep_theme 0.1.2 → 0.1.3

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
  SHA256:
3
- metadata.gz: 8226a69a37066820a08db8e75ada4b53fff9bbe73cf2453cea8764eb3a17a4b1
4
- data.tar.gz: 499622cf58aa0eb9ea16a4a4cace4d5fd68b8da160d2992ff156a40fc20378fa
3
+ metadata.gz: 10d40598171e9b6d05a3edf0b64a529cffede93b2fef417f88e8217a49ae487f
4
+ data.tar.gz: 6c3d1c28183b5d30326f068d6c12799462af172d73726250f9be15b19e57a1f0
5
5
  SHA512:
6
- metadata.gz: 03c1d31861771b55ae39c20db422db5076adaea40f3ff6e5da663c84e1159793ea44443bea1fe0733c09c1a340ea460ff34ecf782b21290a9d87165371038a12
7
- data.tar.gz: 29037129a5caf37c82d6d88a1ad3a5a73655e584d5494cafa5f6ea23fe5c3192cdb78a54dbf35ddf5db99ad38c22e8413ff4eadcd3dd4e19ff26dfed5d5a4063
6
+ metadata.gz: a72f679b47a61769910c195e72b58d8012f141c2b23e89613fe117ee279d55c2d495d352e94d8d244b6f00d9eeef265409861532ee327e9bf14ce7ad4dc7e971
7
+ data.tar.gz: e3a9e5b3762ddb6a93a9081b6549c6b6cf96322a54251d0071137e2706503b14ad03f7dbbddbf526e63453d16ee94ee2f09818e63d7923435b682c43caa6ce46
@@ -17,12 +17,24 @@
17
17
  </label>
18
18
 
19
19
  <div class="trigger">
20
- {%- for path in page_paths -%}
21
- {%- assign my_page = site.pages | where: "path", path | first -%}
22
- {%- if my_page.title -%}
23
- <a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
24
- {%- endif -%}
25
- {%- endfor -%}
20
+ <ul>
21
+ {% assign links = site.data.navigation %}
22
+ {% for link in links %}
23
+ {% if link.sublinks %}
24
+ <li class="dropdown">
25
+ <a href="{{ site.url }}{{ site.baseurl }}{{ link.url }}">{{ link.title }}</a>
26
+ <div class="dropdown-content">
27
+ {% for sublink in link.sublinks %}
28
+ <a href="{{ site.url }}{{ site.baseurl }}{{ sublink.url }}">{{ sublink.title }}</a>
29
+ {% endfor %}
30
+ </div>
31
+ </li>
32
+ {% else %}
33
+ <li>
34
+ <a href="{{ site.url }}{{ site.baseurl }}{{ link.url }}">{{ link.title }}</a>
35
+ {% endif %}
36
+ {% endfor %}
37
+ </ul>
26
38
  </div>
27
39
  </nav>
28
40
  {%- endif -%}
@@ -12,7 +12,7 @@ $spacing-unit: 30px !default;
12
12
 
13
13
  $text-color: #111 !default;
14
14
  $background-color: #4b4b4b !default;
15
- $brand-color: #2a7ae2 !default;
15
+ $brand-color: #8b0000 !default;
16
16
 
17
17
  $grey-color: #828282 !default;
18
18
  $grey-color-light: lighten($grey-color, 40%) !default;
@@ -11,16 +11,17 @@
11
11
  }
12
12
 
13
13
  .site-title {
14
- @include relative-font-size(1.625);
14
+ @include relative-font-size(2);
15
15
  font-weight: 300;
16
- line-height: $base-line-height * $base-font-size * 2.25;
16
+ line-height: $base-line-height * $base-font-size * 3;
17
17
  letter-spacing: -1px;
18
18
  margin-bottom: 0;
19
19
  float: left;
20
20
 
21
+
21
22
  &,
22
23
  &:visited {
23
- color: $grey-color-dark;
24
+ color: $brand-color;
24
25
  }
25
26
  }
26
27
 
@@ -28,6 +29,67 @@
28
29
  float: right;
29
30
  line-height: $base-line-height * $base-font-size * 2.25;
30
31
 
32
+ ul {
33
+ list-style-type: none;
34
+ margin: 0;
35
+ padding: 0;
36
+ background-color: #333;
37
+ }
38
+
39
+ li {
40
+ float: left;
41
+ border-right: 1px solid #bbb;
42
+ }
43
+
44
+ li:last-child {
45
+ border-right: none;
46
+ }
47
+
48
+ .active {
49
+ background-color: #4CAF50;
50
+ }
51
+
52
+ li a, .dropbtn {
53
+ display: inline-block;
54
+ padding: 14px 16px;
55
+ color: white;
56
+ text-align: center;
57
+ text-decoration: none;
58
+ }
59
+
60
+ li a:hover, .dropdown:hover .dropbtn {
61
+ background-color: $brand-color;
62
+ }
63
+
64
+ li.dropdown {
65
+ display: inline-block;
66
+ }
67
+
68
+ .dropdown-content {
69
+ display: none;
70
+ position: absolute;
71
+ background-color: $grey-color;
72
+ min-width: 160px;
73
+ box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
74
+ z-index: 1;
75
+ }
76
+
77
+ .dropdown-content a {
78
+ color: black;
79
+ padding: 12px 16px;
80
+ text-decoration: none;
81
+ display: block;
82
+ text-align: left;
83
+ }
84
+
85
+ .dropdown-content a:hover {
86
+ background-color: #f1f1f1;
87
+ }
88
+
89
+ .dropdown:hover .dropdown-content {
90
+ display: block;
91
+ }
92
+
31
93
  .nav-trigger {
32
94
  display: none;
33
95
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jenstep_theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jenna Stephens
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-11 00:00:00.000000000 Z
11
+ date: 2021-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll