bulma-clean-theme 0.10.1 → 0.10.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: d810060e0eec98758c417783dd55371be2a45bb153181abd275d5dd5c652b237
4
- data.tar.gz: 7dc31995e73b1924ebeca83c2a7ebb3cce43ca6463be9c39539f2b453c64a4d4
3
+ metadata.gz: f232fd057dd498ec6325bd0827437aac550e270c38207adfd8a84b5de645d7fa
4
+ data.tar.gz: cf08e009f691f0681af4c11ef179657b6bb90b07960e90805e6e63c4b5cc5c0d
5
5
  SHA512:
6
- metadata.gz: c853f3b596c4b0a8658251a52e9dd601b4f04c7910cd1b7705f69de0282354ce7a70e805c70ccbd9da255e80f0b67a037205843346b534ea0a6f7cde4e432523
7
- data.tar.gz: 168f4189d2ef90b0cacc141e1b96a969ae9ccc87c0533c3c474557024a3cf274819a5dfafb55c5871d6fcd0a3f24bb9a8d8e1bd2d728a7ac6abfcf3de251aae9
6
+ metadata.gz: 1899a1de634f68a62e54c062f7e0bd91062cd552974c67002eabf2a1561fd43957c7c23bfcbe117ffe511143e393d5cc1310b43e2d1336c0bb16e74454aba6b8
7
+ data.tar.gz: 558daf78f29574898616a0b727b987d57524cf833ceca3779aa12bbc57fa357cd39a786a868ae52831df1f4bf38036a921d047457ce8db0555e2bfd61cdaab55
data/README.md CHANGED
@@ -277,6 +277,26 @@ You can include a notification in a page or post using the below include. The me
277
277
  {% include notification.html message="This is the message for the notification" %}
278
278
  ```
279
279
 
280
+ #### Dismissible Notifications
281
+
282
+ To set a notification to be dismissible, set dismissible to 'true'
283
+
284
+ ```liquid
285
+ {% include notification.html
286
+ message="This notification is dismissable"
287
+ dismissable="true" %}
288
+ ```
289
+
290
+ #### Iconless Notifications
291
+
292
+ Omit the icon by setting icon to 'false'
293
+
294
+ ```liquid
295
+ {% include notification.html
296
+ message="This notification does not have an icon."
297
+ icon="false" %}
298
+ ```
299
+
280
300
  ### Google Analytics
281
301
 
282
302
  **New in 0.2**
@@ -1,10 +1,17 @@
1
- <div class="notification {{ include.status | default: 'is-warning' }}" markdown="0">
2
- <article class="media">
3
- <div class="media-left">
4
- <span class="icon"><i class="{{ include.icon | default: 'fas fa-exclamation-circle' }} fa-lg"></i></span>
5
- </div>
6
- <div class="media-content">
7
- <div class="content">{{ include.message | markdownify }}</div>
8
- </div>
9
- </article>
1
+ <div x-data="{visible: true}" markdown="0">
2
+ <div class="notification {{ include.status | default: 'is-warning' }}" x-show.transition.duration.300ms="visible">
3
+ {% if include.dismissable %}
4
+ <button class="delete" x-on:click="visible = false"></button>
5
+ {% endif %}
6
+ <article class="media">
7
+ {% unless include.icon %}
8
+ <div class="media-left">
9
+ <span class="icon"><i class="{{ include.icon | default: 'fas fa-exclamation-circle' }} fa-lg"></i></span>
10
+ </div>
11
+ {% endunless %}
12
+ <div class="media-content">
13
+ <div class="content">{{ include.message | markdownify }}</div>
14
+ </div>
15
+ </article>
16
+ </div>
10
17
  </div>
@@ -21,5 +21,5 @@ document.addEventListener('DOMContentLoaded', () => {
21
21
  });
22
22
  });
23
23
  }
24
-
24
+
25
25
  });
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bulma-clean-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - chrisrhymes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-28 00:00:00.000000000 Z
11
+ date: 2020-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll