jekyll-zeta 0.9.4 → 0.9.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/heatmap.js +7 -2
- data/_sass/heatmap.scss +23 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 317509866b194e90a96989f42923c7d1b476b062a8fe63b0e35077477c85b4f0
|
4
|
+
data.tar.gz: c544ecaf3a8e2a4513f0e8a59cde4b78412987d8e71134c99008b8bfcd247c77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
}
|
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;
|