middleman-sculptor 0.11 → 0.12

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
  SHA1:
3
- metadata.gz: 20eeb36c34a004304ecc3b9d6c3b70c1afbe6f29
4
- data.tar.gz: 5b984ab17ceae5e7401c5617de4567ff503b55e2
3
+ metadata.gz: afbee1fc4594d7919c0c61793b9b1d4d38490a48
4
+ data.tar.gz: 0e8ff589606a5dc59fe77bd33d6e4e8ebe1c2291
5
5
  SHA512:
6
- metadata.gz: 8ab67254fa7f251cba319721380fe00ccdd157d32af59dd8ce5d428a67dde8cb0d982dffc3ca10e4da099b81c5929a8833248b5f10e18071cdfc85690ccdec64
7
- data.tar.gz: eacf4007c94887fa40c42433ebdb09cc2c3c981da402cdbdaf445c4c0321bbf6b1d0a5484cf7be8d042a7a788cad6377fb46fb6cd7f1d09cec33b66929b54e1f
6
+ metadata.gz: efa75f39d50a47ac1f16f35e424d38ddc619c8aa16274f5495b46dec98ea8d76a0766e524ff874fed2d98fcfbcc66cb54fc98ae0faca1aa661d4564b3d2c37b9
7
+ data.tar.gz: 7331e3e74fb9fcea67c244887f1a878f2309c52f112b0bc0cd8566d45624c200eab82584c7a5c27b3030d8acc3f93c9d02788bf3cbc1c5830e2a33645f998921
@@ -1,7 +1,7 @@
1
1
  @import 'pygments/github';
2
2
 
3
3
  .glypto-model {
4
- $_transition: 400ms ease-out 300ms;
4
+ $_transition: 400ms ease-out 700ms;
5
5
 
6
6
  transition: $_transition;
7
7
  margin: 30px -10px 20px;
@@ -39,8 +39,16 @@
39
39
  position: relative;
40
40
  padding: 1px;
41
41
 
42
- &:hover + .glypto-model-utils {
42
+ & + .glypto-model-utils {
43
43
  transition: $_transition;
44
+ transition-delay: 0;
45
+
46
+ &:hover {
47
+ transition: 120ms ease-out;
48
+ }
49
+ }
50
+
51
+ &:hover + .glypto-model-utils {
44
52
  opacity: 0;
45
53
  }
46
54
 
@@ -3,4 +3,4 @@
3
3
  - else
4
4
  h1.glypto-title = site_title
5
5
  - main_sections.each do |section|
6
- h2 = link_to section.metadata.locals.name, section.path
6
+ h2.glypto-title = link_to section.metadata.locals.section.title, section.path
@@ -3,11 +3,12 @@ html
3
3
  head
4
4
  meta charset='utf-8'
5
5
  title
6
- - if current_page.metadata.locals[:name]
7
- => current_page.metadata.locals[:name]
6
+ - current_section = current_page.metadata.locals[:section]
7
+ - if current_section
8
+ => current_section.title
8
9
  - else
9
10
  => current_page.data.title || yield_content(:page_title) || resource_file(current_page)
10
- - if current_page.data.title || current_page.metadata.locals[:name]
11
+ - if current_page.data.title || current_section
11
12
  | › #{site_title}
12
13
  meta name='viewport' content='width=device-width'
13
14
  = yield_content :stylesheets
@@ -3,11 +3,12 @@ html ng-app=(yield_content(:ng_app))
3
3
  head
4
4
  meta charset='utf-8'
5
5
  title
6
- - if current_page.metadata.locals[:name]
7
- => current_page.metadata.locals[:name]
6
+ - current_section = current_page.metadata.locals[:section]
7
+ - if current_section
8
+ => current_section.title
8
9
  - else
9
10
  => current_page.data.title || yield_content(:page_title) || resource_file(current_page)
10
- - if current_page.data.title || current_page.metadata.locals[:name]
11
+ - if current_page.data.title || current_section
11
12
  | › #{site_title}
12
13
  meta name='viewport' content='width=device-width'
13
14
  = stylesheet_link_tag '//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css'
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module Sculptor
3
- VERSION = "0.11"
3
+ VERSION = "0.12"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-sculptor
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.11'
4
+ version: '0.12'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyom Semonov