middleman-sculptor 0.12 → 0.13

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: afbee1fc4594d7919c0c61793b9b1d4d38490a48
4
- data.tar.gz: 0e8ff589606a5dc59fe77bd33d6e4e8ebe1c2291
3
+ metadata.gz: d553c0f6629caf58c7e7c093724bf55a6c5c921b
4
+ data.tar.gz: c00b49dd814a2f54f1aca8b22433729c4ef97197
5
5
  SHA512:
6
- metadata.gz: efa75f39d50a47ac1f16f35e424d38ddc619c8aa16274f5495b46dec98ea8d76a0766e524ff874fed2d98fcfbcc66cb54fc98ae0faca1aa661d4564b3d2c37b9
7
- data.tar.gz: 7331e3e74fb9fcea67c244887f1a878f2309c52f112b0bc0cd8566d45624c200eab82584c7a5c27b3030d8acc3f93c9d02788bf3cbc1c5830e2a33645f998921
6
+ metadata.gz: ebf9105f24d6bf3494f0a56bcd556386b8cd0c36a109807117691d732495dd49c43a7469e024de2d53fd2bd666190e8e1a55ae6496ec7be78645ac9fd74cde66
7
+ data.tar.gz: 3352eb03ccb05b5009452f55ce1d057934cbe98f1d118234725b96ec221b22c1ef1c2cd005978fac5576fc417e07dd758a349141c332a598b0c109ea5d028db7
@@ -25,7 +25,7 @@ button {
25
25
 
26
26
  .glyptotheque {
27
27
  position: relative;
28
- padding: 40px 30px;
28
+ padding: 40px;
29
29
  min-height: 100%;
30
30
  overflow: hidden;
31
31
  background: white;
@@ -80,18 +80,21 @@ button {
80
80
  }
81
81
  }
82
82
 
83
- h1.glypto-title {
84
- margin: -40px -30px 40px;
85
- padding: 40px 30px;
83
+ .glypto-header {
84
+ margin: -40px -40px 40px;
85
+ padding: 40px;
86
86
  background: #ddd;
87
87
  background: linear-gradient(58deg, #ddd, #f6f6f6);
88
88
  box-shadow: inset 0 -10px 0 rgba(black, .13);
89
+
90
+ .glypto-title {
91
+ margin: 0;
92
+ }
89
93
  }
90
94
 
91
95
  .glypto-breadcrumbs {
92
96
  transition: 160ms;
93
- margin: -30px -30px 0;
94
- padding: 0 30px;
97
+ margin-top: -30px;
95
98
  font-weight: bold;
96
99
  font-size: em(12);
97
100
  line-height: 27px;
@@ -113,7 +116,3 @@ h1.glypto-title {
113
116
  text-decoration: underline;
114
117
  }
115
118
  }
116
-
117
- .glypto-nav.s-hidden ~ .glyptotheque > .glypto-breadcrumbs {
118
- padding-left: 40px;
119
- }
@@ -1,9 +1,4 @@
1
- - unless current_page.data.title
2
- - if current_page.metadata.locals[:section]
3
- h1.glypto-title = current_page.metadata.locals.section.title
4
-
5
1
  - resources_for(current_page.url, exclude_indexes: true, sort_by: :nav_order).each do |r|
6
-
7
2
  - current_page.add_metadata({ page: { \
8
3
  title: r.data.title,
9
4
  description: r.data.description,
@@ -1,6 +1,5 @@
1
1
  - if resources_for('/').empty?
2
2
  h1 Site is empty, create some pages
3
3
  - else
4
- h1.glypto-title = site_title
5
4
  - main_sections.each do |section|
6
5
  h2.glypto-title = link_to section.metadata.locals.section.title, section.path
@@ -11,12 +11,17 @@
11
11
  = partial 'glyptotheque/nav'
12
12
 
13
13
  main.glyptotheque
14
- - if current_page.parent
15
- .glypto-breadcrumbs
16
- = link_to current_page.parent.metadata.locals.section.title, current_page.parent.url
17
- - if current_page.data.title
18
- h1.glypto-title = current_page.data.title
19
- = yield
14
+ header.glypto-header
15
+ .glypto-container
16
+ - if current_page.parent
17
+ .glypto-breadcrumbs
18
+ = link_to current_page.parent.metadata.locals.section.title, current_page.parent.url
19
+
20
+ - if current_page.data.title
21
+ h1.glypto-title = current_page.data.title
22
+ - elsif current_page.metadata.locals[:section]
23
+ h1.glypto-title = current_page.metadata.locals.section.title
24
+ .glypto-container = yield
20
25
 
21
26
  javascript:
22
27
  APP_CONTEXT = {
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module Sculptor
3
- VERSION = "0.12"
3
+ VERSION = "0.13"
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.12'
4
+ version: '0.13'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyom Semonov