jekyll-zeta 0.9.4 → 0.9.4.1

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: 7f5b7a9cb09e5360ed8f9eccc4b379b66fd3ccb90d72c9e4be56f58713967780
4
- data.tar.gz: 071a4840f57b37af0ed8e740930899e1c2ddf5987d239b1d8d5b51ee4045c30d
3
+ metadata.gz: 317509866b194e90a96989f42923c7d1b476b062a8fe63b0e35077477c85b4f0
4
+ data.tar.gz: c544ecaf3a8e2a4513f0e8a59cde4b78412987d8e71134c99008b8bfcd247c77
5
5
  SHA512:
6
- metadata.gz: 54d558bae02171320c3bc98c0969f38d1353dae74e189be0be26468dfa84bf1fc9a0ad2452ed1d6b8286f3d5ff68b5c73675ac77e5d1e0782975daadf0e06005
7
- data.tar.gz: 26ae3613a849a15a4e9079de4183c5df9923394d2f82256773eb6a855ff1f220d20b1517d7dfa26abfe1ea0ece7fdb187093fae135ca7dfc1d20f443240442c0
6
+ metadata.gz: 497c78ded3a2d0b56bf29e49cd35a4c279ae3304c3fa865f346a0886cc38952ccc86874a0f1728061a83d99f85851a312cc9c40d38bdf1c9dcd4db43a66821af
7
+ data.tar.gz: 7b7cfd7b8c551564f61f931079e28b90bbc3cf1a2ec81f0b73443c9b8a17bffb24b378933fd6c2a6705337d4785eae4c43f58ac8d128a4abdd0e4cae31df54e8
data/_includes/heatmap.js CHANGED
@@ -16,6 +16,7 @@
16
16
  return `${t.getFullYear()}-${m < 10 ? "0" + m : m}-${d < 10 ? "0" + d : d}`;
17
17
  }
18
18
 
19
+ const todayYmd = date2ymd(new Date())
19
20
  const strictMod = endYear && endYear.length == 4;
20
21
  const maxDateYmd = `${endYear}-12-31`
21
22
  const dateEnd =
@@ -191,13 +192,17 @@
191
192
  let hideblock = false
192
193
  if (strictMod) {
193
194
  hideblock = dateKeyYmd <= minYmd;
194
-
195
195
  }
196
196
 
197
+ let isFuture = dateKeyYmd > todayYmd;
198
+
197
199
  const dayCell = dayCells[idxOfDay];
198
200
  if (hideblock) {
199
201
  dayCell.classList = 'heatmap-day-cell hm-check-notyet'
200
- }else{
202
+ } if(isFuture){
203
+ dayCell.classList = parseInt(dateKeyYmd.substring(5, 7)) % 2 == 1 ? 'heatmap-day-cell hm-check-future-b' : 'heatmap-day-cell hm-check-future-a'
204
+ }
205
+ else{
201
206
 
202
207
  const nobg =
203
208
  parseInt(dateKeyYmd.substring(5, 7)) % 2 == 1
data/_sass/heatmap.scss CHANGED
@@ -124,6 +124,29 @@ $heatFont:Georgia,"Nimbus Roman No9 L","Songti SC",STSong,"AR PL New Sung","AR P
124
124
  visibility: hidden;
125
125
  }
126
126
 
127
+
128
+ $bh:2px;
129
+ .hm-check-future-b{
130
+ background:repeating-linear-gradient(
131
+ 45deg, /* 斜条纹角度 */
132
+ #edebf0aa, /* 第一种颜色 */
133
+ #edebf0aa $bh, /* 第一种颜色的宽度 */
134
+ #ffffff $bh , /* 第二种颜色的起点 */
135
+ #ffffff $bh * 2 /* 第二种颜色的宽度 */
136
+ )
137
+ }
138
+
139
+
140
+ .hm-check-future-a{
141
+ background:repeating-linear-gradient(
142
+ 45deg, /* 斜条纹角度 */
143
+ #ffffff, /* 第一种颜色 */
144
+ #ffffff $bh, /* 第一种颜色的宽度 */
145
+ #edebf0 $bh , /* 第二种颜色的起点 */
146
+ #edebf0 $bh * 2 /* 第二种颜色的宽度 */
147
+ )
148
+ }
149
+
127
150
  .heatmap-day-cell:hover{
128
151
  transform: scale(1.3);
129
152
  z-index: 999;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-zeta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
4
+ version: 0.9.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - vitock