jekyll-bulma 0.1 → 0.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: 8c8aacf2025ae3d8907dfe1dd2d801c41ae8cdb5da190dff3e87b2e63adf2a9a
4
- data.tar.gz: 8bde2386410c493ccc99bfa2fcedcde0a9f18f1c83def13d0fbd5d2dfd5b5486
3
+ metadata.gz: a3e0d60c18d43bb5312bcd0cee1431279074feeda3ca0d6822be83b4034ccd09
4
+ data.tar.gz: daf9202d687df9b77ef23a38924ab30cb6ebdb6824b353e69387378fae61c560
5
5
  SHA512:
6
- metadata.gz: c89a1e07651ea5066147a2030c52ecebf26714e60030bc4f5b9ae5acaea95a6688086ccbb7168289184912b88f63c34102f19fe2700ce1401a842c6bc43e49d5
7
- data.tar.gz: f70650ea93363c949b290d530959ec8d47f785f6d2053f5224009cc2eebbd05d89b139bd850bb5ebbcd949e360037d37dec9dc0a4dc4d3016bdf3a4a5de9d903
6
+ metadata.gz: bfaefad9f2360f1817f51146c683f25f65902d3cb3dff55c7a6557db7b4a4309d21d6d70d95ed4f13e0969faf84aebd9963ed39a08d121ef6a79b800d7362a2b
7
+ data.tar.gz: 5aabb433671a07a2973b76da46720561645365c1223ec556f5ffaa890f69b70df394c40a306378a3bf9bbd79ed3d125c6bbefe51645ddb6c7e8d411f6ba47260
@@ -1,26 +1,28 @@
1
1
  <footer class="footer">
2
2
  <div class="columns">
3
3
  <div class="column">
4
- <h1 class="is-title">Meta</h1>
4
+ <h1 class="title is-size-4">Meta</h1>
5
5
  <a href="#">Imprint</a>
6
6
  </div>
7
7
 
8
8
  <div class="column">
9
- <h1 class="is-title">Latest Posts</h1>
10
- {%- for post in site.posts limit:5 -%}
11
- <a href="{{ post.url | prepend: site.baseurl }}">
12
- {{ post.title | truncate: 35 }}
13
- </a>
14
- {%- endfor -%}
9
+ <h1 class="title is-size-4">Latest Posts</h1>
10
+ <ul>
11
+ {%- for post in site.posts limit:5 -%}
12
+ <li href="{{ post.url | prepend: site.baseurl }}">
13
+ {{ post.title | truncate: 35 }}
14
+ </li>
15
+ {%- endfor -%}
16
+ </ul>
15
17
  </div>
16
18
 
17
19
  <div class="column">
18
- <h1 class="is-title">Title</h1>
20
+ <h1 class="title title is-size-4">Title</h1>
19
21
  <a href="#">Link</a>
20
22
  </div>
21
23
 
22
24
  <div class="column">
23
- <h1 class="is-title">Title</h1>
25
+ <h1 class="title title is-size-4">Title</h1>
24
26
  <ul>
25
27
  <li>
26
28
  <span class="icon">
@@ -25,4 +25,6 @@
25
25
  type="application/rss+xml"
26
26
  title="{{ site.title }}"
27
27
  href="{{ '/feed.xml' | prepend: site.baseurl | prepend: site.url }}">
28
+
29
+ <script src="{{ '/assets/js/dropdown.js' | prepend: site.baseurl | prepend: site.url }}"></script>
28
30
  </head>
@@ -4,14 +4,18 @@
4
4
  <img src="https://bulma.io/images/bulma-logo.png" alt="Bulma: a modern CSS framework based on Flexbox" width="112" height="28">
5
5
  </a>
6
6
 
7
- <a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false">
7
+ <a role="button"
8
+ class="navbar-burger"
9
+ data-target="navMenu"
10
+ aria-label="menu"
11
+ aria-expanded="false">
8
12
  <span aria-hidden="true"></span>
9
13
  <span aria-hidden="true"></span>
10
14
  <span aria-hidden="true"></span>
11
15
  </a>
12
16
  </div>
13
17
 
14
- <div class="navbar-menu">
18
+ <div class="navbar-menu" id="navMenu">
15
19
  <div class="navbar-start">
16
20
  <div class="navbar-item">
17
21
  <a href="#">A link</a>
@@ -0,0 +1 @@
1
+ // No presets so far
@@ -6,4 +6,8 @@
6
6
  $font-family-base: Ubuntu, Helvetica, Arial, sans-serif;
7
7
 
8
8
  $spacing-unit: 30px;
9
- @import "bulma", "syntax-highlighting", "font-awesome", "overrides";
9
+ @import "presets",
10
+ "bulma",
11
+ "syntax-highlighting",
12
+ "font-awesome",
13
+ "overrides";
@@ -0,0 +1,13 @@
1
+ document.addEventListener('DOMContentLoaded', function () {
2
+ var $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0);
3
+ if ($navbarBurgers.length > 0) {
4
+ $navbarBurgers.forEach(function ($el) {
5
+ $el.addEventListener('click', function () {
6
+ var target = $el.dataset.target;
7
+ var $target = document.getElementById(target);
8
+ $el.classList.toggle('is-active');
9
+ $target.classList.toggle('is-active');
10
+ });
11
+ });
12
+ }
13
+ });
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-bulma
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: '0.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Haslinger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-06 00:00:00.000000000 Z
11
+ date: 2018-07-08 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
  - _layouts/page.html
70
70
  - _layouts/post.html
71
71
  - _sass/_overrides.scss
72
+ - _sass/_presets.scss
72
73
  - _sass/_syntax-highlighting.scss
73
74
  - _sass/base/_all.sass
74
75
  - _sass/base/generic.sass
@@ -120,6 +121,7 @@ files:
120
121
  - assets/css/main.scss
121
122
  - assets/fonts/ubuntu/ubuntu-v11-latin-ext_latin-regular.woff
122
123
  - assets/fonts/ubuntu/ubuntu-v11-latin-ext_latin-regular.woff2
124
+ - assets/js/dropdown.js
123
125
  - assets/main.scss
124
126
  - assets/webfonts/fa-brands-400.eot
125
127
  - assets/webfonts/fa-brands-400.svg