middleman-sculptor 0.4 → 0.5

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: 4241c3ebacee7d88b29262ff40fb914833360096
4
- data.tar.gz: 9e0071f681bfe2bab73cc71421ba5bc61539945e
3
+ metadata.gz: ac05e96da8c352e957d78b5417b48faddb1f9d63
4
+ data.tar.gz: 0d75ca31562527120890cb5bea3f4c0c924e4840
5
5
  SHA512:
6
- metadata.gz: 799c0efe5e1b3ec450f719dbeed1c9be45b04efec5f9c7a88170e9e7dbf39f9028393a651868cc94f18ed2005d30c077a5484c3c10c4586e9517b95f3109e867
7
- data.tar.gz: 16b0df59b0837172568a510a21e895a8355f0feaf2929a1cdd21f236436c2dc916c9f8be09fa528c29fb098530130bd71a56235b24f5ac2e991c314003681b60
6
+ metadata.gz: 7246ab3b9e518bb66c1af94ef0797f16f9f5f78b2559c5b36d0b015fef50aeb6906b4353035e59796bb8b21d76e1ce1a176fef939a01b03ae67842e525c333d5
7
+ data.tar.gz: b911fb768413e28ce6bdc8bd9043cdf751e3cd097eced167b3f1eccd1bc974d4af884e03faa1303836a247e41705374503ee0f1f5279b454699d8d482a894c0b
@@ -38,6 +38,7 @@ ready do
38
38
  proxy "#{r.path.sub(r.ext, '')}-#{id}-isolated.html",
39
39
  r.path,
40
40
  layout: 'isolated',
41
+ iframe: model.iframe,
41
42
  id: id
42
43
  end
43
44
  end
@@ -2,9 +2,12 @@
2
2
  background: $light-grey;
3
3
  padding: 10px;
4
4
 
5
- // compensate for first new line
6
- code {
7
- display: inline-block;
8
- margin-top: -1em;
5
+ // compensate for first new line when passing text into `code` helper
6
+ &.css,
7
+ &.scss {
8
+ code {
9
+ display: inline-block;
10
+ margin-top: -1em;
11
+ }
9
12
  }
10
13
  }
@@ -5,7 +5,8 @@ html
5
5
  title = current_page.data.title || yield_content(:page_title) || resource_file(current_page)
6
6
  meta name='viewport' content='width=device-width'
7
7
  = yield_content :stylesheets
8
- = include_stylesheets(current_page.data.stylesheets || current_page.data.stylesheet)
8
+ - if current_resource.metadata.options.iframe
9
+ = include_stylesheets(current_page.data.stylesheets || current_page.data.stylesheet)
9
10
 
10
11
  body class="#{yield_content(:body_class)}"
11
12
  - id = current_resource.metadata.options.id
@@ -15,5 +16,6 @@ html
15
16
 
16
17
  = javascript_include_tag 'iframe-js'
17
18
  = yield_content :javascripts
18
- = include_javascripts(current_page.data.javascripts || current_page.data.javascript)
19
+ - if current_resource.metadata.options.iframe
20
+ = include_javascripts(current_page.data.javascripts || current_page.data.javascript)
19
21
  = yield_content :post_body
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module Sculptor
3
- VERSION = "0.4"
3
+ VERSION = "0.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-sculptor
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.4'
4
+ version: '0.5'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyom Semonov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-17 00:00:00.000000000 Z
11
+ date: 2015-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: middleman-core