classic-jekyll-theme 1.7.2 → 1.8.0

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: b01e77dbf15bd1fe5b99b37a621216328fac3c73
4
- data.tar.gz: 6f762ca71a02a3c006c04b2d13584d47491ee62a
3
+ metadata.gz: c704de0479f5e312da02ad959eceb74eb0d11164
4
+ data.tar.gz: 368d4c6d1a51b0b072d0228534a9d4b4bf06075f
5
5
  SHA512:
6
- metadata.gz: 033a9f30a50a2354330b11d451c9b8c3d690fc308c3827e43b64a2032f12304838d0c095c1e011e809148d721eb6ac964601965628826ee98787921928cbb4bd
7
- data.tar.gz: 8709992bc60e83596091c3a18e91f598abd70b3232888456ae15dc6bad3bb3b4403b475afc5488936b07428d15deb567b8029ea74a4542376c8fafb4afe7a5e4
6
+ metadata.gz: 4ec68dc43d4b7ecbc35f9df309a5dd8d5c4bc8e2702927c66fdaf907ca57f9984f9087c1f0e53e4416278ce3013f51cfa36488fbc662af3a018afcdf79da5613
7
+ data.tar.gz: 07e3734883a04221d543ae5ddd0946cb81f7e589fed2a6b6e1a5c7840cea10e45ea9b402fb7837bf98c9b0da98bcad0f8d761cd5711aa22bacaee26c1a1ea308
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Classic-Jekyll-Theme v1.7.2
1
+ # Classic-Jekyll-Theme v1.8.0
2
2
 
3
3
  Welcome to Classic-Jekyll-Theme. This theme centers around one of the most used website structures on the web. A banner, navigation menu (dropdown), (up to) three columns and a footer. The design is fully responsive for three different screen widths: wide, medium and narrow. It is probably best shown in an example:
4
4
 
@@ -30,7 +30,7 @@ Other features:
30
30
 
31
31
  - __Secondary and Tertiary Columns__ can be specified by default and on a page by page basis for presence, location and content.
32
32
 
33
- - __Navigation bar__ is created automatically from the available pages when these have the proper YAML frontmatter. The navigation bar contains the top level menu items, while the submenu items show up as a drop-down menu when the cursor hovers over the corresponding menu item.
33
+ - __Navigation bar with drop-down menu__ is created automatically from the available pages when these have the proper YAML frontmatter. The navigation bar contains the top level menu items, while the submenu items show up as a drop-down menu when the cursor hovers over the corresponding menu item.
34
34
 
35
35
  - __Category pages__ are created semi-automatically; the web designer has to identify the categories for inclusion, but the menu entry and category pages are created automatically.
36
36
 
@@ -54,9 +54,12 @@ Other features:
54
54
 
55
55
  - __Blocked layout support__ Styles and includes support the creation of blocked layout (like product pages). To see an example of blocked pages, see the [http://balancingrock.nl](http://balancingrock.nl) home page.
56
56
 
57
- You can get it from [github](https://github.com/Balancingrock/classic-jekyll-theme) or [rubygems](https://rubygems.org/gems/classic-jekyll-theme).
57
+ - __Enable/disable banner__ The banner at the top of the page can be disabled.
58
58
 
59
- Subscribe to news about this theme (be informed of new releases) by sending a mail to: rien@balancingrock.nl with the subject "classic".
59
+ - __Move banner/menu to main column__ The banner & navigation can be moved to within the main column only. The secondary and tertiary columns will ten run right up to the top of the screen.
60
+
61
+
62
+ You can download it from [github](https://github.com/Balancingrock/classic-jekyll-theme) or install it with [rubygems](https://rubygems.org/gems/classic-jekyll-theme).
60
63
 
61
64
  Like to help out?
62
65
 
@@ -375,6 +378,13 @@ Release 1.7.2
375
378
 
376
379
  - Fixed a bug in the blocked-layout.
377
380
 
381
+ Release 1.8.0
382
+
383
+ - Allow banner area to be removed.
384
+ - Allow banner & menu area to be placed at the top of the main column only.
385
+ - Added controls for setting the top and bottom free room of the column dividers.
386
+
387
+
378
388
  ## Upgrade information
379
389
 
380
390
  ### from 0.2.6 to 1.0.0
@@ -536,6 +546,31 @@ The index for a menu item. If not present, the menu ordering is undetermined. If
536
546
  - Update the version number in the `Gemfile` & delete the `Gemfile.lock` file.
537
547
  - The file `_sass/classic/_support.scss` has been updated.
538
548
 
549
+ ### from 1.7.2 to 1.8.0
550
+
551
+ - Update the version number in the `Gemfile` & delete the `Gemfile.lock` file.
552
+ - In file `_data/setup.yml` added some documentation and a new setting: `navbanner-position`. This setting is described in that file.
553
+ - Added the following new parameters in `_sass/classic-jekyll-theme.scss`:
554
+
555
+ ~~~~
556
+ $column-divider-top-spacing
557
+ $column-divider-bottom-spacing
558
+
559
+ $navbanner-menu-dividers-thickness
560
+ $navbanner-menu-top-divider-disable
561
+
562
+ $navbanner-include-banner
563
+ ~~~~
564
+
565
+
566
+ - In addition the following files have been changed:
567
+
568
+ ~~~~
569
+ _layouts/default.html
570
+ _sass/classic/_formatting.scss
571
+ _sass/classic/_layout.scss
572
+ ~~~~
573
+
539
574
  ## Feedback
540
575
 
541
576
  Comments, bug reports, feature requests and improvements are eagerly anticipated via email: rien@balancingrock.nl.
data/_data/setup.yml CHANGED
@@ -7,19 +7,51 @@
7
7
  # In the narrow display all three columns will be below each other (if present)
8
8
  # If the tertiary column is used, the secondary column *must* also be used.
9
9
 
10
- # Possible values: 'left', 'right' or 'none', other values are illegal.
10
+ # Controls the placing and visibility of the secondary column
11
+ # Values: left | right | none
12
+ # - left: The secondary column appears on the left side of the main column
13
+ # - right: The secondary column appears on the right side of the main column
14
+ # - none: There is no secondary column (note that this also inhibits the tertiary column)
15
+ # Here the default value is defined, pages may override this in their front matter.
16
+ # The secondary column must reside in the "_includes" directory and is called "secondary-column.html"
17
+ # Front matter can specify a different file for the secondary column ("secondary-column-content").
18
+ #
11
19
  secondary-column: left
12
20
 
13
- # Possible values: 'present' or 'none', other values are illegal.
21
+ # Controls visibility of the tertiary column
22
+ # Values: present | none
23
+ # - present: The tertiary column is visible.
24
+ # - none: There is no tertiary column.
25
+ # The tertiary column is always on the opposite side of the main column from the secondary column.
26
+ # Here the default value is defined, pages may override this in their front matter.
27
+ # The tertiary column must reside in the "_includes" directory and is called "tertiary-column.html"
28
+ # Front matter can specify a different file for the tertiary column ("tertiary-column-content").
29
+ #
14
30
  tertiary-column: present
15
31
 
16
- # For the number of posts visible on the home page. Must be > 0.
32
+ # For the number of posts visible on the home page.
33
+ # Value: > 0
34
+ #
17
35
  number-of-posts-on-home-page: 5
18
36
 
19
37
  # For the number of posts titles shown in the 'recent' widget
38
+ # Value: > 0
39
+ #
20
40
  number-of-recent-posts-in-widget: 10
21
41
 
22
42
  # Enables or disables the cookies warning.
43
+ # Values: yes | no
44
+ #
23
45
  enable-cookies-policy: yes
24
46
 
47
+ # Place the navbanner in the main column
48
+ # Values: top | main
49
+ # - top: The navigation banner will be placed above all the columns
50
+ # - main: The navigation banner will be placed inside the main column at the top.
51
+ # This is the default value, it may be overriden by YAML frontmatter.
52
+ #
53
+ # Hint: It may be advantageous to set the $navbanner-include-banner value in the classic-jekyll-theme.scss to 'false' if this value here is set to 'true'.
54
+ #
55
+ navbanner-position: top
56
+
25
57
  # End of file
@@ -3,13 +3,16 @@
3
3
  {% if page.secondary-column-content %}{% assign secondary-column-content = {{ page.secondary-column-content }} %}{% else %}{% assign secondary-column-content = 'secondary-column.html' %}{% endif %}
4
4
  {% if page.tertiary-column %}{% if page.tertiary-column == 'present' %}{% assign tertiary-column = 'present' %}{% endif %}{% else %}{% if site.data.setup.tertiary-column == 'present' %}{% assign tertiary-column = 'present' %}{% endif %}{% endif %}
5
5
  {% if page.tertiary-column-content %}{% assign tertiary-column-content = page.tertiary-column-content %}{% else %}{% assign tertiary-column-content = 'tertiary-column.html' %}{% endif %}
6
+ {% if page.navbanner-position %}{% assign navbanner-position = page.navbanner-position %}{% else %}{% assign navbanner-position = site.data.setup.navbanner-position %}{% endif %}
6
7
  <html>
7
8
 
8
9
  {% include head.html %}
9
10
 
10
11
  <body class="body-panel">
11
12
 
13
+ {% if navbanner-position == 'top' %}
12
14
  <div class="navbanner-panel">{% include navbanner.html %}</div>
15
+ {% endif %}
13
16
 
14
17
  <div class="column-panel">
15
18
 
@@ -32,6 +35,9 @@
32
35
 
33
36
 
34
37
  <div class="primary-column">
38
+ {% if navbanner-position == 'main' %}
39
+ <div class="navbanner-panel">{% include navbanner.html %}</div>
40
+ {% endif %}
35
41
  <main>{{ content }}</main>
36
42
  </div>
37
43
 
@@ -98,8 +98,12 @@ $narrow-vertical-title-shift: 0px; // positive is down, negative is up
98
98
  // Set display to 'none' to get rid of the divider, 'block' to enable the divider
99
99
  $column-divider-color: lighten($grey-color, 30%);
100
100
  $column-divider-display: block; //none;
101
+ $column-divider-top-spacing: $vspacing-unit;
102
+ $column-divider-bottom-spacing: $vspacing-unit;
101
103
  $navbanner-menu-dividers-color: $theme-color;
102
104
  $navbanner-menu-dividers-display: block; //none;
105
+ $navbanner-menu-dividers-thickness: 2px;
106
+ $navbanner-menu-top-divider-disable: false; //true;
103
107
  $footer-divider-color: $theme-color;
104
108
  $footer-divider-display: block; //none;
105
109
  $widget-divider-color: $theme-color;
@@ -111,6 +115,14 @@ $narrow-site-title-font-size: 2 * $base-font-size;
111
115
  $medium-site-title-font-size: 2.5 * $base-font-size;
112
116
  $wide-site-title-font-size: 3.5 * $base-font-size;
113
117
 
118
+ // Include the banner part in the navigation banner (banner contains icon, title and optionally the menu item)
119
+ // Values: true | false
120
+ // - true: Every layout (narrow, medium and wide) shows the banner with icon, title and optional menu symbol.
121
+ // - false: The narrow layout is unaffected, it will still show the banner. The wide layout will no longer show the banner. The medium layout will no longer show the title nor the menu item but will show the menu bar (i.e. it is identical to the wide layout for this setting)
122
+ //
123
+ // Normally this should always be set to 'true'. However when the navbanner is put at the top of the main column instead of above it, then it may make sense to set this to 'false' as (presumably) the secondary column will show a banner kind of thing. Note that the navbanner location setting is done in the _data/setup.yml file.
124
+ $navbanner-include-banner: true;
125
+
114
126
  // Special characters used for menu functions
115
127
  $menu-symbol-code: '\02261'; // Used in narrow and medium banner only
116
128
  $menu-closed-submenu-code: '\021E8'; // Used in narrow when the menu items are visible
@@ -123,7 +135,7 @@ $menu-item-separator: ''; // Default = nothing
123
135
  // center - to center the menu items in the middle of the navigation bar
124
136
  // flex-end - to have them at the right most position possible
125
137
  // for more options, see "justif-content".
126
- $menu-alignment: flex-start;
138
+ $menu-alignment: center;
127
139
 
128
140
  // Navigation menu coloring and sizing
129
141
  $menu-symbol-color: $theme-color;
@@ -115,8 +115,12 @@ body {
115
115
 
116
116
  // Formating for the divider between the banner and menu.
117
117
  .nav-top-divider {
118
- border-top: 2px solid $navbanner-menu-dividers-color;
119
- display: $navbanner-menu-dividers-display;
118
+ border-top: $navbanner-menu-dividers-thickness solid $navbanner-menu-dividers-color;
119
+ @if ($navbanner-menu-top-divider-disable == true) {
120
+ display: none;
121
+ } @else {
122
+ display: $navbanner-menu-dividers-display;
123
+ }
120
124
  }
121
125
 
122
126
  // Formatting for the menu (navigation) area
@@ -211,7 +215,7 @@ body {
211
215
 
212
216
  // Formatting for the divder between menu and column panel.
213
217
  .nav-bottom-divider {
214
- border-top: 2px solid $navbanner-menu-dividers-color;
218
+ border-top: $navbanner-menu-dividers-thickness solid $navbanner-menu-dividers-color;
215
219
  display: $navbanner-menu-dividers-display;
216
220
  }
217
221
  }
@@ -226,9 +230,10 @@ body {
226
230
 
227
231
  .column-panel { background: $column-panel-background; }
228
232
  .secondary-column { @extend .insets; background: $secondary-column-background; }
229
- .primary-column { @extend .insets; background: $primary-column-background; }
233
+ main { @extend .insets; background: $primary-column-background; }
230
234
  .tertiary-column { @extend .insets; background: $tertiary-column-background; }
231
235
 
236
+
232
237
  // This is the element between the column panel and the footer.
233
238
  .footer-divider {
234
239
  display: $footer-divider-display;
@@ -269,9 +274,9 @@ body {
269
274
 
270
275
  // The column dividers
271
276
  .secondary-divider, .tertiary-divider {
272
- margin-top: $vspacing-unit;
277
+ margin-top: $column-divider-top-spacing;
273
278
  margin-left: 0;
274
- margin-bottom: $vspacing-unit;
279
+ margin-bottom: $column-divider-bottom-spacing;
275
280
  margin-right: 0;
276
281
  border-right: 1px solid $column-divider-color;
277
282
  display: $column-divider-display;
@@ -37,14 +37,14 @@
37
37
  flex-wrap: wrap;
38
38
  justify-content: flex-start;
39
39
 
40
- // The title is always visible, though the size of the title depends on the width of the window.
40
+ // The size of the title depends on the width of the window.
41
41
  .navbanner-title {
42
-
42
+
43
43
  // The title area should take up all space not used by the menu label.
44
44
  flex-grow: 1;
45
45
 
46
- // Center the title.
47
- display: flex;
46
+ // Center the title if visible
47
+ @if ($navbanner-include-banner == true) { display: flex; } @else { display: none }
48
48
  justify-content: center;
49
49
  align-items: center;
50
50
  }
@@ -55,8 +55,8 @@
55
55
  // Never grow the menu label (symbol)
56
56
  flex-grow: 0;
57
57
 
58
- // The menu label (symbol) should be centered
59
- display: flex;
58
+ // The menu label (symbol) should be centered if visible
59
+ @if ($navbanner-include-banner == true) { display: flex; } @else { display: none }
60
60
  justify-content: center;
61
61
  align-items: center;
62
62
 
@@ -76,6 +76,9 @@
76
76
 
77
77
  @include narrow-layout {
78
78
 
79
+ // Override visibility of the label
80
+ @if ($navbanner-include-banner == false) { .navbanner-label, .navbanner-title { display: flex; } }
81
+
79
82
  // Disabled items.
80
83
  .navbanner-menu, .nav-bottom-divider, input, .menu-item-separator { display: none; }
81
84
 
@@ -141,10 +144,11 @@
141
144
  // Disabled items
142
145
  .navbanner-menu, input, .menu-item-symbol, .menu-subitem-symbol, .nav-bottom-divider { display: none; }
143
146
 
144
- // Conditionally visible/invisible items (conditionally on the invisible checkbox, i.e. menu symbol)
145
- input:checked ~ {
146
147
 
147
- // Display the menu only when the menu-checkbox (invisible) is checked.
148
+ // Conditional visibility of the menu bar
149
+ @if ($navbanner-include-banner == false) {
150
+
151
+ // Display the menu because the input checkbox (label) in the banner is never visible.
148
152
  .navbanner-menu {
149
153
 
150
154
  // Use flex to enable alignment of the top level menu items
@@ -157,6 +161,25 @@
157
161
  // Also display the bottom divider when the menu is visible.
158
162
  .nav-bottom-divider { display: inline; }
159
163
  }
164
+ @else {
165
+
166
+ // Conditionally visible/invisible items (conditionally on the invisible checkbox, i.e. menu symbol)
167
+ input:checked ~ {
168
+
169
+ // Display the menu only when the menu-checkbox (invisible) is checked.
170
+ .navbanner-menu {
171
+
172
+ // Use flex to enable alignment of the top level menu items
173
+ display: flex;
174
+ flex-direction: row;
175
+ flex-wrap: wrap;
176
+ justify-content: $menu-alignment;
177
+ }
178
+
179
+ // Also display the bottom divider when the menu is visible.
180
+ .nav-bottom-divider { display: inline; }
181
+ }
182
+ }
160
183
 
161
184
  .navbanner-menu {
162
185
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: classic-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.2
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rien
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-05 00:00:00.000000000 Z
11
+ date: 2017-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll-feed