asciidoctor-accelerated-mobile-pages 0.1.2.pre → 0.1.3.pre

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
  SHA1:
3
- metadata.gz: c57e4cab2920c9c3f70bd3de057a4e7a4bbd0c4c
4
- data.tar.gz: ce2710188925ed09304db72f7090dba2fdbfb839
3
+ metadata.gz: d39c87320d744e982c3351afda3d84dd6f71c18e
4
+ data.tar.gz: f9b684dc0d2b18499fcccf33f729d80fbfba41d4
5
5
  SHA512:
6
- metadata.gz: 4273eb8fa14d045284d2d8cc88865d5f49861582203ebc6c71dcead634b02158e7e260499581ef844421f42046a646347800d46297de70213c063ebafbdc7d1b
7
- data.tar.gz: ceaa78ae4fd86d53e2a0d90c341fa4dea08fd92fe66d4d17077cd54d9f5e8d2a5b0ee35dad0981ac7b7496d0f2c893f20dedaa4faa368f5f2cf5ea9490533e6d
6
+ metadata.gz: 1230edd628ff92fb2af53ff0470f6a1a876d277a30279bcf1b2aee9567ffce5bfc7f50802e79fe2bcab9e7e1d29bcb4098c0ece5d01886b419c67fb8aee2e5d6
7
+ data.tar.gz: ac094cd4b16fcdb74eb391ba1dece4e221ea557f99fe111fb3800c5849a5d8950d7bf593adaed65e156edee25bcfac1c3eddd644e35a84b6ee1417983bc511cf
@@ -1,5 +1,5 @@
1
1
  module Asciidoctor
2
2
  module AcceleratedMobilePages
3
- VERSION = '0.1.2.pre'
3
+ VERSION = '0.1.3.pre'
4
4
  end
5
5
  end
@@ -10,12 +10,11 @@
10
10
  - height = "100%"
11
11
 
12
12
  - unless attr(1) == 'background' || attr(1) == "canvas"
13
- figure (id=@id class=roles
14
- style=[("text-align: #{attr :align}" if attr? :align),("float: #{attr :float}" if attr? :float)].compact.join('; '))
13
+ figure (id=@id class=roles)
15
14
  - if attr? :link
16
15
  a.image href=(attr :link)
17
16
  amp-img src=image_uri(attr :target) alt=(attr :alt) width=(width) height=(height) style=((attr? :background) ? "background: #{attr :background}" : nil)
18
17
  - else
19
- amp-img src=image_uri(attr :target) alt=(attr :alt) width=(width) height=(height) style=((attr? :background) ? "background: #{attr :background}" : nil)
18
+ amp-img src=image_uri(attr :target) alt=(attr :alt) width=(width||=1024) height=(height||=768) style=((attr? :background) ? "background: #{attr :background}" : nil)
20
19
  - if title?
21
20
  .title=captioned_title
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asciidoctor-accelerated-mobile-pages
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2.pre
4
+ version: 0.1.3.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fritz Lee