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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1957aa5f25ef5c71f99cdb4c05b1b09ce5d16ce0d5fa30449b763c76caa0e83b
4
- data.tar.gz: 1f922041332b13dc33fb3b468476d9a5f953683975adbf7f62d177d0799a1eae
3
+ metadata.gz: 0a6600521ce6e7494c29f654c29b8643e9e2521452c46d067e0c6e2e8ee3c47e
4
+ data.tar.gz: 68c745888d1cee38dfefbc68dcbdc90ade1c8220b9b6eb25e82b440d77f024b2
5
5
  SHA512:
6
- metadata.gz: 3e5d659a4bbafc1c55178b0d7be7c44ddbcb6a23432b535b7513e3e3c91f9eb39efd9b010534f7ee28aae585508808cb4f1e3999a414c0fe84b6bf6ab9b2feb6
7
- data.tar.gz: 428df3ed3f091b4842d68c291c7dbec732572026fc9f9adb00d0a2d043e183aa5c9cc836dbe02ea482760fb9e156cfffc43d3d5070b59675f589065d8358f6e9
6
+ metadata.gz: 201436f58c2613941ed786337b18f2d031df5072d7ddb9a907b4b9c245d665ac941ccd949c98895e332a6e16fe27b127fcc4cd92537c71309b22cd606fb97200
7
+ data.tar.gz: fe25037362e642e821d56fbc3efaeaf40b70a86a07fdd751d1c5501ed40719f837f339b066efba0ad8076a2b391a2e39e4f5e365c63d9a416e9cd7e874660d8e
@@ -1,5 +1,9 @@
1
1
  <!-- Banner -->
2
- <section id="banner" {% if include.style %}class="{{ include.style.class | default: '' }}" style="background-image: url({{ include.style.image | absolute_url }});"{% endif %}>
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>
@@ -1,5 +1,9 @@
1
1
  <!-- Header -->
2
- <header id="header" {% if include.style %}class="{{ include.style.class | default: '' }}" style="background-image: url({{ include.style.image | absolute_url }});"{% endif %}>
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>
@@ -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: transparentize(_palette(accent), 0.95);
33
+ background-color: _palette(accent);
34
+ color: _palette(accent-cp) !important;
34
35
  }
35
36
 
36
37
  &:active {
37
- background-color: transparentize(_palette(accent), 0.85);
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: lighten(_palette(accent), 3);
68
+ background-color: _palette(accent-cp);
69
+ color: _palette(accent) !important;
67
70
  }
68
71
 
69
72
  &:active {
70
- background-color: darken(_palette(accent), 3);
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 .content p {
128
- color: _palette(fg-inverted);
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
  }
@@ -65,7 +65,7 @@
65
65
 
66
66
  .horizontal-tabset > label:hover,
67
67
  .horizontal-tabset > input[type="radio"]:focus + label {
68
- color: _palette(accent);
68
+ color: _palette(accent) !important;
69
69
  }
70
70
 
71
71
  .horizontal-tabset > label:hover::after,
@@ -32,13 +32,21 @@ ul.pagination {
32
32
  color: _palette(bg) !important;
33
33
 
34
34
  &:hover {
35
- background-color: lighten(_palette(accent), 3);
35
+ background-color: _palette(accent-cp);
36
+ color: _palette(accent) !important;
36
37
  }
37
38
 
38
39
  &:active {
39
- background-color: darken(_palette(accent), 3);
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 {
@@ -74,7 +74,7 @@
74
74
 
75
75
  .vertical-tabset label:hover,
76
76
  .vertical-tabset input[type="radio"]:focus + label {
77
- color: _palette(accent);
77
+ color: _palette(accent) !important;
78
78
  }
79
79
 
80
80
  .vertical-tabset label:hover::after,
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
- window.location.href = href;
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
 
@@ -1,6 +1 @@
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')
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.12
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-09 00:00:00.000000000 Z
11
+ date: 2021-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll