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 +4 -4
- data/README.md +20 -0
- data/_includes/notification.html +16 -9
- data/assets/js/app.js +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f232fd057dd498ec6325bd0827437aac550e270c38207adfd8a84b5de645d7fa
|
4
|
+
data.tar.gz: cf08e009f691f0681af4c11ef179657b6bb90b07960e90805e6e63c4b5cc5c0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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**
|
data/_includes/notification.html
CHANGED
@@ -1,10 +1,17 @@
|
|
1
|
-
<div
|
2
|
-
<
|
3
|
-
|
4
|
-
<
|
5
|
-
|
6
|
-
<
|
7
|
-
|
8
|
-
|
9
|
-
|
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>
|
data/assets/js/app.js
CHANGED
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.
|
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-
|
11
|
+
date: 2020-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|