bulma-clean-theme 0.9.1 → 0.9.2

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: a22759881c56ee79be3fa1ae67957044ccc68b4754372f2ee716dac227da6478
4
- data.tar.gz: 9815893be1fd2952dab4db36eb11a85cd14437219c36a1fa6ed05be9fbccd2fd
3
+ metadata.gz: f3c61d847f693897cdbfddf0da1554a22a53eed4d4824e560c8747e9ab360ba0
4
+ data.tar.gz: c618eddbb02cad70ac06b8428ed398a345d9e0d79e2197d94345ee52196bd2fa
5
5
  SHA512:
6
- metadata.gz: 7a5be72f27ea377e38efa66bddad991a83b4024f87a14c31f110c20f3a1bbea7181c11616920f22a5d9460999f5ad707ba7c52720cf27d9696bed513b0c25fd5
7
- data.tar.gz: 324b9660f804d6e2ec1a1b353efa70d643d70393b357a4ddabe7a1dd8561c3c43a43388c3eeda51857e6f620b1a8e14bdf0836ec4c84248343f2726a467d5502
6
+ metadata.gz: 9d544f037cb07a00c4f21049c73da0a3d586ee67486180bca86de7393bd760e4c392e91ba441e26010417bce43386631048d96f59313b1ef0636fc042d1a109e
7
+ data.tar.gz: 176fd2160f4189f21ae5646b56fb8693a1bf76d9b9405c78f6dc6095973a09f9adeda903fa3a5f7c81295e7ca8083e4a7227b55c1a972fdafd1fdebe7fd5faf9
data/README.md CHANGED
@@ -529,11 +529,13 @@ Start by creating a gallery data file using the below format, for example `my_ga
529
529
  - title: Image Gallery Title
530
530
  images:
531
531
  - link: https://via.placeholder.com/800x450
532
+ large_link: https://via.placeholder.com/1200x675
532
533
  alt: The alt text for the image
533
534
  description: |-
534
535
  The image description can be written in **markdown** if required
535
536
  ratio: is-16by9
536
537
  - link: https://via.placeholder.com/800x600
538
+ large_link: https://via.placeholder.com/1200x675
537
539
  alt: The alt text for the image
538
540
  description: The image description
539
541
  ratio: is-4by3
@@ -542,6 +544,7 @@ Start by creating a gallery data file using the below format, for example `my_ga
542
544
  * If a ratio is not provided it will default to 16 by 9. Use [Bulma image](https://bulma.io/documentation/elements/image/) classes to define the image ratio required.
543
545
  * The description can be plain text or it can be markdown if required.
544
546
  * The alt will be used as the images alt text.
547
+ * The large_link displays in a modal when the image is clicked
545
548
 
546
549
  #### Displaying the gallery
547
550
 
@@ -9,9 +9,7 @@
9
9
  <div class="column is-4-desktop is-6-tablet">
10
10
  <div class="card">
11
11
  <div class="card-image">
12
- <figure class="image {{ image.ratio | default: is-16by9 }}">
13
- <img src="{{ image.link | absolute_url }}" alt="{{ image.alt }}">
14
- </figure>
12
+ {% include image-modal.html ratio=image.ratio link=image.link alt=image.alt large_link=image.large_link %}
15
13
  </div>
16
14
  <div class="card-content">
17
15
  <div class="content">
@@ -6,6 +6,7 @@
6
6
  <link rel="shortcut icon" type="image/png"
7
7
  {% if site.favicon %} href="{{ site.favicon | relative_url }}" {% else %} href="{{ site.baseurl }}/favicon.png" {% endif %}
8
8
  />
9
+ <script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.7.0/dist/alpine.min.js" defer></script>
9
10
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5/css/all.min.css">
10
11
  {% unless site.hide_share_buttons %}
11
12
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma-social@1/bin/bulma-social.min.css">
@@ -0,0 +1,18 @@
1
+ <div x-data="{ open: false }">
2
+ <a @click="open = true" title="View large image">
3
+ <figure class="image {{ include.ratio | default: is-16by9 }}">
4
+ <img src="{{ include.link | absolute_url }}" alt="{{ include.alt }}">
5
+ </figure>
6
+ </a>
7
+ <div class="modal" :class="{ 'is-active': open }">
8
+ <div class="modal-background" @click="open = false"></div>
9
+ <div class="modal-content">
10
+ {% if include.large_link %}
11
+ <img src="{{ include.large_link | absolute_url }}" alt="{{ include.alt }}">
12
+ {% else %}
13
+ <img src="{{ include.link | absolute_url }}" alt="{{ include.alt }}">
14
+ {% endif %}
15
+ </div>
16
+ <button class="modal-close is-large" aria-label="close" @click="{ open = false }"></button>
17
+ </div>
18
+ </div>
@@ -20,4 +20,10 @@ div.highlight {
20
20
 
21
21
  .hero-darken {
22
22
  background-color: rgba($hero-darken, 0.5);
23
+ }
24
+
25
+ .content {
26
+ figure {
27
+ margin: 0;
28
+ }
23
29
  }
@@ -7,6 +7,8 @@ $primary: #188eac !default;
7
7
  $tabs-link-active-color: $primary;
8
8
  $tabs-link-active-border-bottom-color: $primary;
9
9
 
10
+ $modal-content-width: 800px;
11
+
10
12
  @import "../node_modules/bulma/bulma.sass";
11
13
  $hero-darken: $dark !default;
12
14
 
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.9.1
4
+ version: 0.9.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-09-23 00:00:00.000000000 Z
11
+ date: 2020-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -155,6 +155,7 @@ files:
155
155
  - _includes/head.html
156
156
  - _includes/header.html
157
157
  - _includes/hero.html
158
+ - _includes/image-modal.html
158
159
  - _includes/latest-posts.html
159
160
  - _includes/menubar.html
160
161
  - _includes/pagination.html