jekyll-theme-consulting 0.10.12 → 0.10.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/banner.html +5 -1
- data/_includes/header.html +5 -1
- data/_includes/navigation.html +1 -1
- data/_sass/main/components/_button.scss +8 -4
- data/_sass/main/components/_features.scss +11 -3
- data/_sass/main/components/_horizontal-tabs.scss +1 -1
- data/_sass/main/components/_pagination.scss +10 -2
- data/_sass/main/components/_vertical-tabs.scss +1 -1
- data/assets/js/main.js +10 -2
- data/assets/js/main.min.js +1 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a6600521ce6e7494c29f654c29b8643e9e2521452c46d067e0c6e2e8ee3c47e
|
4
|
+
data.tar.gz: 68c745888d1cee38dfefbc68dcbdc90ade1c8220b9b6eb25e82b440d77f024b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 201436f58c2613941ed786337b18f2d031df5072d7ddb9a907b4b9c245d665ac941ccd949c98895e332a6e16fe27b127fcc4cd92537c71309b22cd606fb97200
|
7
|
+
data.tar.gz: fe25037362e642e821d56fbc3efaeaf40b70a86a07fdd751d1c5501ed40719f837f339b066efba0ad8076a2b391a2e39e4f5e365c63d9a416e9cd7e874660d8e
|
data/_includes/banner.html
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
<!-- Banner -->
|
2
|
-
<section id="banner"
|
2
|
+
<section id="banner"
|
3
|
+
{%- if include.style -%}
|
4
|
+
class="{{ include.style.class | default: '' }}"
|
5
|
+
style="background-image: url({{ include.style.image | absolute_url }}); background-position: {{ include.style.position | default: 'center' }} -5em; background-size: {{ include.style.size | default: '100% auto' }};"
|
6
|
+
{% endif %}>
|
3
7
|
<div class="content">
|
4
8
|
<header>
|
5
9
|
<h1>{{ include.title }}</h1>
|
data/_includes/header.html
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
<!-- Header -->
|
2
|
-
<header id="header"
|
2
|
+
<header id="header"
|
3
|
+
{%- if include.style -%}
|
4
|
+
class="{{ include.style.class | default: '' }}"
|
5
|
+
style="background-image: url({{ include.style.image | absolute_url }}); background-position: {{ include.style.position | default: 'center' }} top; background-size: {{ include.style.size | default: '100% auto' }};"
|
6
|
+
{% endif %}>
|
3
7
|
<a href="{{ '' | absolute_url }}" class="logo">
|
4
8
|
<span class="title">
|
5
9
|
<strong>{{ include.title }}</strong>
|
data/_includes/navigation.html
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
<ul>
|
9
9
|
{%- for subitem in item.menu -%}
|
10
10
|
<li {% if subitem.url == page.url %} class="current" {% endif %}>
|
11
|
-
<a href="{{ subitem.url | absolute_url }}">{{ subitem.title }}</a>
|
11
|
+
<a href="{{ subitem.url | absolute_url }}" class="scrolly">{{ subitem.title }}</a>
|
12
12
|
</li>
|
13
13
|
{%- endfor -%}
|
14
14
|
</ul>
|
@@ -30,11 +30,13 @@ button,
|
|
30
30
|
white-space: nowrap;
|
31
31
|
|
32
32
|
&:hover {
|
33
|
-
background-color:
|
33
|
+
background-color: _palette(accent);
|
34
|
+
color: _palette(accent-cp) !important;
|
34
35
|
}
|
35
36
|
|
36
37
|
&:active {
|
37
|
-
background-color:
|
38
|
+
background-color: _palette(accent);
|
39
|
+
color: _palette(accent-cp) !important;
|
38
40
|
}
|
39
41
|
|
40
42
|
&.icon {
|
@@ -63,11 +65,13 @@ button,
|
|
63
65
|
color: _palette(bg) !important;
|
64
66
|
|
65
67
|
&:hover {
|
66
|
-
background-color:
|
68
|
+
background-color: _palette(accent-cp);
|
69
|
+
color: _palette(accent) !important;
|
67
70
|
}
|
68
71
|
|
69
72
|
&:active {
|
70
|
-
background-color:
|
73
|
+
background-color: _palette(accent-cp);
|
74
|
+
color: _palette(accent) !important;
|
71
75
|
}
|
72
76
|
}
|
73
77
|
|
@@ -112,7 +112,7 @@
|
|
112
112
|
color: _palette(accent-cp) !important;
|
113
113
|
}
|
114
114
|
|
115
|
-
.content h3 {
|
115
|
+
.content h3, .content p {
|
116
116
|
color: _palette(accent) !important;
|
117
117
|
}
|
118
118
|
|
@@ -124,6 +124,14 @@
|
|
124
124
|
|
125
125
|
/* Inverted */
|
126
126
|
|
127
|
-
.inverted .features article
|
128
|
-
|
127
|
+
.inverted .features article {
|
128
|
+
.content h3, .content p {
|
129
|
+
color: _palette(fg-inverted);
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
133
|
+
.inverted .features article:hover {
|
134
|
+
.content h3, .content p {
|
135
|
+
color: _palette(accent-cp) !important;
|
136
|
+
}
|
129
137
|
}
|
@@ -32,13 +32,21 @@ ul.pagination {
|
|
32
32
|
color: _palette(bg) !important;
|
33
33
|
|
34
34
|
&:hover {
|
35
|
-
background-color:
|
35
|
+
background-color: _palette(accent-cp);
|
36
|
+
color: _palette(accent) !important;
|
36
37
|
}
|
37
38
|
|
38
39
|
&:active {
|
39
|
-
background-color:
|
40
|
+
background-color: _palette(accent-cp);
|
41
|
+
color: _palette(accent) !important;
|
40
42
|
}
|
41
43
|
}
|
44
|
+
|
45
|
+
&:hover {
|
46
|
+
background-color: _palette(accent);
|
47
|
+
color: _palette(accent-cp) !important;
|
48
|
+
}
|
49
|
+
|
42
50
|
}
|
43
51
|
|
44
52
|
&:first-child {
|
data/assets/js/main.js
CHANGED
@@ -127,6 +127,8 @@
|
|
127
127
|
var $a = $(this),
|
128
128
|
href = $a.attr('href'),
|
129
129
|
target = $a.attr('target');
|
130
|
+
pathname = $a.length > 0 ? $a[0].pathname : "";
|
131
|
+
hash = href.split('#').length > 1 ? href.split("#")[1] : "";
|
130
132
|
|
131
133
|
// Prevent default.
|
132
134
|
event.preventDefault();
|
@@ -144,8 +146,14 @@
|
|
144
146
|
|
145
147
|
if (target == '_blank')
|
146
148
|
window.open(href);
|
147
|
-
else
|
148
|
-
|
149
|
+
else {
|
150
|
+
// Prevent reloading if the page is the same
|
151
|
+
if (pathname && hash && pathname == window.location.pathname) {
|
152
|
+
document.getElementById(hash).scrollIntoView({behavior: "smooth", block: "start", inline: "nearest"});
|
153
|
+
}
|
154
|
+
else
|
155
|
+
window.location.href = href;
|
156
|
+
}
|
149
157
|
|
150
158
|
}, 500);
|
151
159
|
|
data/assets/js/main.min.js
CHANGED
@@ -1,6 +1 @@
|
|
1
|
-
(function($){var $window=$(window),$head=$(
|
2
|
-
$('.image.object').each(function(){var $this=$(this),$img=$this.children('img');$img.css('opacity','0');$this.css('background-image','url("'+$img.attr('src')+'")').css('background-size',$img.css('object-fit')?$img.css('object-fit'):'cover').css('background-position',$img.css('object-position')?$img.css('object-position'):'center');});var $sidebar=$('#sidebar'),$sidebar_inner=$sidebar.children('.inner');$sidebar.addClass('inactive');if(browser.os=='android'&&browser.name=='chrome')
|
3
|
-
$('<style>#sidebar .inner::-webkit-scrollbar { display: none; }</style>').appendTo($head);$('#sidebar-toggle-button').on('click',function(event){event.preventDefault();event.stopPropagation();$sidebar.toggleClass('inactive');});$('#sidebar-search-button').on('click',function(event){event.preventDefault();event.stopPropagation();$sidebar.toggleClass('inactive');});$('.scrolly-middle').scrolly({speed:1000,anchor:'middle'});$('.scrolly').scrolly({speed:3000,offset:function(){return(breakpoints.active('<=mobile')?70:190);}});$sidebar.on('click','a',function(event){var $a=$(this),href=$a.attr('href'),target=$a.attr('target');event.preventDefault();event.stopPropagation();if(!href||href=='#'||href=='')
|
4
|
-
return;$sidebar.addClass('inactive');setTimeout(function(){if(target=='_blank')
|
5
|
-
window.open(href);else
|
6
|
-
window.location.href=href;},500);});$sidebar.on('click touchend touchstart touchmove',function(event){event.stopPropagation();});$body.on('click touchend',function(event){$sidebar.addClass('inactive');});$sidebar_inner.data('locked',0).css('position','').css('top','');var $menu=$('#menu'),$menu_openers=$menu.children('ul').find('.opener');$menu_openers.each(function(){var $this=$(this);$this.on('click',function(event){event.preventDefault();$menu_openers.not($this).removeClass('active');$this.toggleClass('active');$window.triggerHandler('resize.sidebar-lock');});});})(jQuery);
|
1
|
+
(function($){var $window=$(window),$head=$("head"),$body=$("body");breakpoints({xlarge:["1281px","1680px"],large:["981px","1280px"],medium:["737px","980px"],small:["481px","736px"],xsmall:["361px","480px"],xxsmall:[null,"360px"],"xlarge-to-max":"(min-width: 1681px)","small-to-xlarge":"(min-width: 481px) and (max-width: 1680px)"});$window.on("load",function(){window.setTimeout(function(){$body.removeClass("is-preload")},100)});var resizeTimeout;$window.on("resize",function(){$body.addClass("is-resizing");clearTimeout(resizeTimeout);resizeTimeout=setTimeout(function(){$body.removeClass("is-resizing")},100)});if(!browser.canUse("object-fit")||browser.name=="safari")$(".image.object").each(function(){var $this=$(this),$img=$this.children("img");$img.css("opacity","0");$this.css("background-image",'url("'+$img.attr("src")+'")').css("background-size",$img.css("object-fit")?$img.css("object-fit"):"cover").css("background-position",$img.css("object-position")?$img.css("object-position"):"center")});var $sidebar=$("#sidebar"),$sidebar_inner=$sidebar.children(".inner");$sidebar.addClass("inactive");if(browser.os=="android"&&browser.name=="chrome")$("<style>#sidebar .inner::-webkit-scrollbar { display: none; }</style>").appendTo($head);$("#sidebar-toggle-button").on("click",function(event){event.preventDefault();event.stopPropagation();$sidebar.toggleClass("inactive")});$("#sidebar-search-button").on("click",function(event){event.preventDefault();event.stopPropagation();$sidebar.toggleClass("inactive")});$(".scrolly-middle").scrolly({speed:1e3,anchor:"middle"});$(".scrolly").scrolly({speed:3e3,offset:function(){return breakpoints.active("<=mobile")?70:190}});$sidebar.on("click","a",function(event){var $a=$(this),href=$a.attr("href"),target=$a.attr("target");pathname=$a.length>0?$a[0].pathname:"";hash=href.split("#").length>1?href.split("#")[1]:"";event.preventDefault();event.stopPropagation();if(!href||href=="#"||href=="")return;$sidebar.addClass("inactive");setTimeout(function(){if(target=="_blank")window.open(href);else{if(pathname&&hash&&pathname==window.location.pathname){document.getElementById(hash).scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}else window.location.href=href}},500)});$sidebar.on("click touchend touchstart touchmove",function(event){event.stopPropagation()});$body.on("click touchend",function(event){$sidebar.addClass("inactive")});$sidebar_inner.data("locked",0).css("position","").css("top","");var $menu=$("#menu"),$menu_openers=$menu.children("ul").find(".opener");$menu_openers.each(function(){var $this=$(this);$this.on("click",function(event){event.preventDefault();$menu_openers.not($this).removeClass("active");$this.toggleClass("active");$window.triggerHandler("resize.sidebar-lock")})})})(jQuery);
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-consulting
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Moodule
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-02-
|
11
|
+
date: 2021-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|