bay_jekyll_theme 1.0.11 → 1.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
  SHA256:
3
- metadata.gz: 841a30f0f812c5c7eaecf9b6876d9241a8e41a77a0cfa2122ac8809b378fe472
4
- data.tar.gz: 72b3a8251b9b3cbb299ddb38ed103446b1a2d861f2c868f1bed07093c676907b
3
+ metadata.gz: 8b569c6203e2a1f7d8d731cbad82073cf5968c302c731e75de0522c43d168975
4
+ data.tar.gz: 9cb2b0bb20036436b5cacd3016b07ef0b5ea14333de25173dcfb1e5cbb42a853
5
5
  SHA512:
6
- metadata.gz: 7c420949c967ed55868476b4e220bf2cfd3afff3adf89ecb51b60737552b29742a89aa315ca60ed02e952baef06eb37597ea06ca506edd8e158e49290c8d6009
7
- data.tar.gz: bf1dff56ce0ed16736d6ac02e324caa563f7d0044de20026bdc1b64068e18a29c4bdff0e2a1bf7dde324ec1d4a7f25d480256bbf2206432099a8dd152b81601c
6
+ metadata.gz: 98d0d2b1eeb1d6b5c8a9cfb945395f1fa2f34fa408c75853fc3c00c9a67f83b6dcce6ea70dced0393b7e5f3e975b3c089257c9f444ffc906d09d6c5bd1b4d761
7
+ data.tar.gz: 7c2f2db01ebf0381b2e45fe2db0e7739a9205c61fb4d862d66f1ac5a62952a1bfa7902e0f44bdb3503c9aa45f410f7a0a6ce68ef344298cfb37da439b4bc9b9c
data/README.md CHANGED
@@ -117,6 +117,11 @@ Your website is ready!
117
117
 
118
118
  ### Development
119
119
 
120
+ #### Run development instance (with hot-reload)
121
+ ```sh
122
+ bundle exec jekyll serve
123
+ ```
124
+
120
125
  #### Build and publish the gem
121
126
  ```sh
122
127
  gem build bay_jekyll_theme.gemspec
@@ -7,7 +7,7 @@
7
7
  <nav class="site-nav">
8
8
  <a href="#" class="menu-icon"></a>
9
9
 
10
- <div class="trigger">
10
+ <div class="menu">
11
11
  {% for page in site.header.pages %}
12
12
  {% if page.slug and page.slug != "" and page.slug != nil %}
13
13
  {% assign page_link = page.slug %}
@@ -113,7 +113,7 @@ h4 {
113
113
  a {
114
114
  color: $brand-color;
115
115
  text-decoration: none;
116
- //
116
+ //
117
117
  // &:visited {
118
118
  // color: darken($brand-color, 15%);
119
119
  // }
@@ -5,7 +5,7 @@
5
5
  display: block;
6
6
  float: left;
7
7
 
8
- @include media-query($on-palm) {
8
+ @include media-query($on-mobile) {
9
9
  display: block;
10
10
  float: none;
11
11
  color: #333;
@@ -8,7 +8,7 @@
8
8
  padding-top: 10px;
9
9
  padding-bottom: 10px;
10
10
 
11
- @include media-query($on-palm) {
11
+ @include media-query($on-mobile) {
12
12
  padding-top: 0;
13
13
  padding-bottom: 0;
14
14
  }
@@ -34,6 +34,7 @@
34
34
  * Site nav
35
35
  */
36
36
  .site-nav {
37
+ z-index: 10;
37
38
  float: right;
38
39
  line-height: 56px;
39
40
 
@@ -51,7 +52,7 @@
51
52
  }
52
53
  }
53
54
 
54
- @include media-query($on-palm) {
55
+ @include media-query($on-mobile) {
55
56
  position: absolute;
56
57
  top: 12px;
57
58
  right: 24px;
@@ -69,20 +70,15 @@
69
70
  padding-top: 4px;
70
71
  text-align: center;
71
72
 
72
- background: #ffffff url(/assets/img/menu.png) 6px 4px no-repeat;
73
+ background: #ffffff url($base-url + '/assets/img/menu.png') 6px 4px no-repeat;
73
74
  }
74
75
 
75
- .trigger {
76
+ .menu {
76
77
  clear: both;
77
78
  display: none;
78
79
  background-color: #ffffff;
79
80
  min-width: 10em;
80
- }
81
-
82
- &:hover .trigger {
83
- display: block;
84
81
  padding-bottom: 5px;
85
- background-color: #ffffff;
86
82
  }
87
83
 
88
84
  .page-link {
@@ -100,7 +96,7 @@
100
96
  border-top: 1px solid $grey-color-light;
101
97
  padding: $spacing-unit 0;
102
98
 
103
- @include media-query($on-palm) {
99
+ @include media-query($on-mobile) {
104
100
  padding-top: 10px;
105
101
  }
106
102
  }
@@ -141,7 +137,7 @@
141
137
  color: $grey-color;
142
138
  }
143
139
 
144
- @include media-query($on-palm) {
140
+ @include media-query($on-mobile) {
145
141
  .footer-col {
146
142
  float: none;
147
143
  width: 100%;
@@ -9,7 +9,7 @@
9
9
 
10
10
  font-family: $base-font-family;
11
11
 
12
- @include media-query($on-palm) {
12
+ @include media-query($on-mobile) {
13
13
  font-size: 34px;
14
14
  }
15
15
  }
@@ -24,7 +24,7 @@
24
24
  position: relative;
25
25
  top: -0.3em;
26
26
 
27
- @include media-query($on-palm) {
27
+ @include media-query($on-mobile) {
28
28
  font-size: 24px;
29
29
  }
30
30
  }
@@ -40,7 +40,7 @@
40
40
  h2 {
41
41
  font-size: 32px;
42
42
 
43
- @include media-query($on-palm) {
43
+ @include media-query($on-mobile) {
44
44
  font-size: 28px;
45
45
  }
46
46
  }
@@ -48,7 +48,7 @@
48
48
  h3 {
49
49
  font-size: 26px;
50
50
 
51
- @include media-query($on-palm) {
51
+ @include media-query($on-mobile) {
52
52
  font-size: 22px;
53
53
  }
54
54
  }
@@ -56,7 +56,7 @@
56
56
  h4 {
57
57
  font-size: 20px;
58
58
 
59
- @include media-query($on-palm) {
59
+ @include media-query($on-mobile) {
60
60
  font-size: 18px;
61
61
  }
62
62
  }
@@ -3,7 +3,7 @@
3
3
  border: #ccc 1px solid;
4
4
  margin-left: 20px;
5
5
 
6
- @include media-query($on-palm) {
6
+ @include media-query($on-mobile) {
7
7
  float: none;
8
8
  margin-bottom: 20px;
9
9
  margin-left: 0px;
@@ -14,7 +14,7 @@
14
14
  font-size: 12px;
15
15
  line-height: 30px;
16
16
 
17
- @include media-query($on-palm) {
17
+ @include media-query($on-mobile) {
18
18
  font-size: 14px;
19
19
  line-height: 38px;
20
20
  }
@@ -5,6 +5,8 @@
5
5
  @charset "utf-8";
6
6
 
7
7
  // Our variables
8
+ $base-url: "{{ site.baseurl }}";
9
+
8
10
  $base-font-family: Charter, Georgia, Helvetica, Arial, sans-serif;
9
11
  $base-font-size: 14px;
10
12
  $small-font-size: $base-font-size * 0.875;
@@ -20,7 +22,7 @@ $grey-color: #828282;
20
22
  $grey-color-light: lighten($grey-color, 40%);
21
23
  $grey-color-dark: darken($grey-color, 25%);
22
24
 
23
- $on-palm: 500px;
25
+ $on-mobile: 500px;
24
26
  $on-laptop: 800px;
25
27
 
26
28
  @mixin media-query($device) {
@@ -1,11 +1,28 @@
1
+ /**
2
+ * Menu
3
+ */
4
+ $("a.menu-icon").on("click", function(event) {
5
+ var w = $(".menu");
6
+
7
+ w.css({
8
+ display: w.css("display") === "none"
9
+ ? "block"
10
+ : "none"
11
+ });
12
+ });
13
+
14
+ /**
15
+ * Wechat widget
16
+ */
1
17
  function moveWidget(event) {
2
- var w = $("#wechat-widget");
3
- w.css({ left: event.pageX - 25, top: event.pageY - w.height() - 60 });
18
+ $("#wechat-widget").css({
19
+ left: event.pageX - 25,
20
+ top: event.pageY - w.height() - 60
21
+ });
4
22
  }
5
23
 
6
24
  $("a#wechat-link").on("mouseenter", function(event) {
7
- var w = $("#wechat-widget");
8
- w.css({ display: "block" });
25
+ $("#wechat-widget").css({ display: "block" });
9
26
  moveWidget(event);
10
27
  });
11
28
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bay_jekyll_theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.11
4
+ version: 1.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eliott Vincent
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-01 00:00:00.000000000 Z
11
+ date: 2020-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -93,6 +93,7 @@ files:
93
93
  - assets/img/title.png
94
94
  - assets/img/title@2x.png
95
95
  - assets/img/wechat-qr-code.png
96
+ - assets/img/wechat-qr-code@2x.png
96
97
  - assets/img/work/sand.png
97
98
  - assets/img/work/sand@2x.png
98
99
  - assets/img/work/water.png