jekyll-zeta 0.5.6 → 0.7.0
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 +4 -4
- data/_includes/heatmap.html +47 -0
- data/_includes/heatmap.js +152 -0
- data/_includes/home.html +8 -1
- data/_layouts/about.html +15 -0
- data/_layouts/archive.html +6 -1
- data/_layouts/heatmap.html +6 -0
- data/_layouts/tags.html +1 -1
- data/_sass/jekyll-zeta.scss +261 -11
- data/assets/css/main.scss +1 -1
- data/assets/image/dots.png +0 -0
- data/assets/image/dots.svg +5 -0
- metadata +9 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 876e7942584b994072aeaa3fc358c3b47fff1c0bac8eac64ef2953c46e290c48
|
4
|
+
data.tar.gz: 1db22eb75758adfe1782f9caa3f0dc05ccb09555867c6845ce4b614256f83ade
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c2503c2fd75b2ca75292e846d83cd195d449d68313a4e8ea940c005060f655da359cc5096bb507922e3887a36698411aac17affcd0ea04dcc6e5f122531e302
|
7
|
+
data.tar.gz: ee2d481bd243157e9ae83e2914919dec871d45a92a2f9da52834784831ba2fdbf0d27368e58d084307a81d6216eed81bd3003b6d648da63e42994d08ffc5b58c
|
@@ -0,0 +1,47 @@
|
|
1
|
+
{%- if include.collection -%}
|
2
|
+
{%- assign posts = include.collection -%}
|
3
|
+
{%- else -%}
|
4
|
+
{%- assign posts = site.posts -%}
|
5
|
+
{%- endif -%}
|
6
|
+
|
7
|
+
{%- assign jsstr='' -%}
|
8
|
+
{%- for post in posts limit: include.limit -%}
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
{%- capture url -%}
|
13
|
+
{{ post.url | relative_url }}
|
14
|
+
{%- endcapture -%}
|
15
|
+
|
16
|
+
{%- capture postdate -%}
|
17
|
+
{{ post.date | date: '%Y-%m-%d' }}
|
18
|
+
{%- endcapture -%}
|
19
|
+
|
20
|
+
|
21
|
+
{%- capture jsstr -%}
|
22
|
+
|
23
|
+
{{ jsstr | append: url | append:"\x01" | append: post.title | append:"\x01" | append: postdate | append:"\n" }}
|
24
|
+
{%- endcapture -%}
|
25
|
+
{%- endfor -%}
|
26
|
+
<div>
|
27
|
+
<span class="heatmap-title">{{ heatMapTitle | site.theme_config.heatMapTitle }}</span>
|
28
|
+
<div class='heatmap' id="heatmap">
|
29
|
+
|
30
|
+
|
31
|
+
</div>
|
32
|
+
</div>
|
33
|
+
<script >
|
34
|
+
(function(){
|
35
|
+
var _GALLPOSTSTR = "{{jsstr}}";
|
36
|
+
{%- assign MothStr = site.theme_config.heatMapMonth -%}
|
37
|
+
{%- assign HeatMapShowWeek = site.theme_config.heatMapShowWeek -%}
|
38
|
+
|
39
|
+
{%- assign HeatMapType = site.theme_config.heatMapType -%}
|
40
|
+
|
41
|
+
|
42
|
+
var _HeatMapType = "{{ HeatMapType | default:'1' }}"
|
43
|
+
var _MonthStr = '{{ MothnStr | default: "Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec" }}'
|
44
|
+
var _showWeek = '{{ HeatMapShowWeek | default: "Mon Wed Fri" }}';
|
45
|
+
{% include heatmap.js %}
|
46
|
+
})()
|
47
|
+
</script>
|
@@ -0,0 +1,152 @@
|
|
1
|
+
;(function(){
|
2
|
+
|
3
|
+
var Map = {}
|
4
|
+
var arr1 = _GALLPOSTSTR.split("\n")
|
5
|
+
arr1.forEach(element => {
|
6
|
+
var post = element.split('\x01')
|
7
|
+
|
8
|
+
var url = post[0]
|
9
|
+
var title = post[1]
|
10
|
+
var date = post[2]
|
11
|
+
if (date && title && url) {
|
12
|
+
var arrDatePost = Map[date]
|
13
|
+
if (!arrDatePost ) {
|
14
|
+
arrDatePost = []
|
15
|
+
Map[date] = arrDatePost;
|
16
|
+
}
|
17
|
+
arrDatePost.push({title,url})
|
18
|
+
}
|
19
|
+
|
20
|
+
});
|
21
|
+
|
22
|
+
|
23
|
+
var Father = document.getElementById("heatmap");
|
24
|
+
|
25
|
+
const Frag = document.createDocumentFragment();
|
26
|
+
|
27
|
+
const monthEle = document.createElement("div");
|
28
|
+
monthEle.className = "heatmap-month";
|
29
|
+
Frag.appendChild(monthEle);
|
30
|
+
const monthStr = _MonthStr.split(" ");
|
31
|
+
|
32
|
+
var dateEnd = new Date();
|
33
|
+
|
34
|
+
{%- comment -%}
|
35
|
+
if(_HeatMapType == '1'){
|
36
|
+
dateEnd = new Date()
|
37
|
+
}else if(_HeatMapType == '2'){
|
38
|
+
|
39
|
+
let chooseddate = ''
|
40
|
+
for (const key in Map) {
|
41
|
+
if (Object.prototype.hasOwnProperty.call(Map, key)) {
|
42
|
+
const element = Map[key];
|
43
|
+
if(element){
|
44
|
+
if(key && key > chooseddate){
|
45
|
+
chooseddate = key
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
dateEnd = new Date(chooseddate)
|
52
|
+
console.log(chooseddate,dateEnd,typeof chooseddate)
|
53
|
+
|
54
|
+
}else{
|
55
|
+
dateEnd = new Date()
|
56
|
+
}
|
57
|
+
|
58
|
+
{% endcomment %}
|
59
|
+
|
60
|
+
var nowM = dateEnd.getMonth();
|
61
|
+
var nowWeek = dateEnd.getDay();
|
62
|
+
var endStamp = dateEnd.getTime()
|
63
|
+
|
64
|
+
for (var i = 0; i < monthStr.length; i++) {
|
65
|
+
var m = document.createElement("span");
|
66
|
+
m.className = "heatmap-month-cell";
|
67
|
+
m.innerHTML = `${monthStr[(i + nowM + 1) % 12]}`;
|
68
|
+
monthEle.appendChild(m);
|
69
|
+
}
|
70
|
+
|
71
|
+
const weekEle = document.createElement("div");
|
72
|
+
weekEle.className = "heatmap-week";
|
73
|
+
const WeekStr = _showWeek.split(" ");
|
74
|
+
|
75
|
+
for (var i = 0; i < WeekStr.length; i++) {
|
76
|
+
var m = document.createElement("div");
|
77
|
+
m.className = "heatmap-week-cell";
|
78
|
+
m.innerHTML = `<span>${WeekStr[i]}</span>`;
|
79
|
+
weekEle.appendChild(m);
|
80
|
+
}
|
81
|
+
|
82
|
+
Frag.appendChild(weekEle);
|
83
|
+
|
84
|
+
const dayEle = document.createElement("div");
|
85
|
+
|
86
|
+
dayEle.className = "heatmap-day";
|
87
|
+
|
88
|
+
const ColumnsCount = 53;
|
89
|
+
const RowCount = 7;
|
90
|
+
|
91
|
+
var firstDateDayDiff = (ColumnsCount - 1) * RowCount + nowWeek;
|
92
|
+
|
93
|
+
|
94
|
+
console.log(nowWeek, firstDateDayDiff);
|
95
|
+
|
96
|
+
for (let c = 0; c < ColumnsCount; c++) {
|
97
|
+
for (let r = 0; r < RowCount; r++) {
|
98
|
+
if (r > nowWeek && c == ColumnsCount - 1) {
|
99
|
+
break
|
100
|
+
}
|
101
|
+
const i = c * RowCount + r ;
|
102
|
+
const date = new Date(endStamp - (firstDateDayDiff - i) * 3600000 * 24);
|
103
|
+
const month = date.getMonth() + 1
|
104
|
+
let dateStr = `${date.getFullYear()}-${month < 10 ? '0' + month : month}-${date.getDate() < 10 ? '0' + date.getDate() : date.getDate() }`
|
105
|
+
|
106
|
+
var m = document.createElement("span");
|
107
|
+
const arrPostInOneDay = Map[dateStr]
|
108
|
+
m.classList = `heatmap-day-cell ${!arrPostInOneDay ? 'hm-check-no':arrPostInOneDay.length > 1 ? 'hm-check2' : 'hm-check' }`
|
109
|
+
|
110
|
+
|
111
|
+
if (arrPostInOneDay ) {
|
112
|
+
var isDirectly = arrPostInOneDay.length == 1
|
113
|
+
var tip = document.createElement("div");
|
114
|
+
|
115
|
+
if (isDirectly) {
|
116
|
+
var lnk = document.createElement('a');
|
117
|
+
lnk.href = arrPostInOneDay[0].url
|
118
|
+
m.appendChild(lnk)
|
119
|
+
}
|
120
|
+
|
121
|
+
tip.className = "hm-tip";
|
122
|
+
var desc = ''
|
123
|
+
arrPostInOneDay.forEach(element => {
|
124
|
+
|
125
|
+
var lnk = document.createElement('a');
|
126
|
+
lnk.className = 'hm-tiplink'
|
127
|
+
lnk.href = element.url
|
128
|
+
tip.appendChild(lnk)
|
129
|
+
|
130
|
+
var t = document.createElement('span')
|
131
|
+
t.className = 'hm-date'
|
132
|
+
t.innerText = dateStr.substring(5);
|
133
|
+
lnk.appendChild(t);
|
134
|
+
|
135
|
+
|
136
|
+
var t2 = document.createElement('span')
|
137
|
+
t2.className = 'hm-title'
|
138
|
+
t2.innerText = element.title
|
139
|
+
lnk.appendChild(t2);
|
140
|
+
|
141
|
+
});
|
142
|
+
m.appendChild(tip);
|
143
|
+
|
144
|
+
}
|
145
|
+
dayEle.appendChild(m);
|
146
|
+
}
|
147
|
+
}
|
148
|
+
|
149
|
+
|
150
|
+
Frag.appendChild(dayEle);
|
151
|
+
Father.append(Frag);
|
152
|
+
})()
|
data/_includes/home.html
CHANGED
@@ -1,9 +1,16 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
|
4
|
+
{%- include heatmap.html -%}
|
5
|
+
|
6
|
+
|
1
7
|
{%- assign titlelen = page.title.size -%}
|
2
8
|
{%- if titlelen > 0 -%}
|
3
9
|
<h2>{{ page.title }}</h2>
|
4
10
|
{%- endif -%}
|
5
11
|
{%-assign nextPage = site.paginate_path | replace: ':num', '2' -%}
|
6
12
|
|
13
|
+
|
7
14
|
{%
|
8
15
|
include post_list.html
|
9
16
|
limit=site.paginate
|
@@ -12,4 +19,4 @@
|
|
12
19
|
show_more_url= nextPage
|
13
20
|
-%}
|
14
21
|
|
15
|
-
{{ content }}
|
22
|
+
{{ content }}
|
data/_layouts/about.html
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
|
6
|
+
{%- if page.heatmap -%}
|
7
|
+
{%- include heatmap.html -%}
|
8
|
+
{%- endif -%}
|
9
|
+
|
10
|
+
{%- assign titlelen = page.title.size -%}
|
11
|
+
{%- if titlelen > 0 -%}
|
12
|
+
<!-- <h2>{{ page.title }}</h2> -->
|
13
|
+
{%- endif -%}
|
14
|
+
|
15
|
+
{{ content }}
|
data/_layouts/archive.html
CHANGED
@@ -1,9 +1,14 @@
|
|
1
1
|
---
|
2
2
|
layout: default
|
3
3
|
---
|
4
|
+
|
5
|
+
|
6
|
+
{%- if page.heatmap -%}
|
7
|
+
{%- include heatmap.html -%}
|
8
|
+
{%- endif -%}
|
4
9
|
{%- assign titlelen = page.title.size -%}
|
5
10
|
{%- if titlelen > 0 -%}
|
6
|
-
<h2>{{ page.title }}</h2>
|
11
|
+
<!-- <h2>{{ page.title }}</h2> -->
|
7
12
|
{%- endif -%}
|
8
13
|
|
9
14
|
{%-assign posts = site.posts-%}
|
data/_layouts/tags.html
CHANGED
data/_sass/jekyll-zeta.scss
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
|
1
2
|
$color-red: #FF0000;
|
2
3
|
$color-black: #333;
|
3
4
|
$color-blue: #0064c1;
|
@@ -5,6 +6,15 @@ $color-hove: #0064c1;
|
|
5
6
|
$color-gray: #9ca3af;
|
6
7
|
$color-lightGray: #9ca3af;
|
7
8
|
$color-lightGrayBg: #F0f2f4;
|
9
|
+
$heatFont:Georgia,"Nimbus Roman No9 L","Songti SC",STSong,"AR PL New Sung","AR PL SungtiL GB",NSimSun,SimSun,"TW\-Sung","WenQuanYi Bitmap Song","AR PL UMing CN","AR PL UMing HK","AR PL UMing TW","AR PL UMing TW MBE",sans-serif;
|
10
|
+
|
11
|
+
$dbgBorder:none;//ssolid 1px red;
|
12
|
+
$hmbloksizeW:12px;
|
13
|
+
$hmbloksizeH:15.2px;
|
14
|
+
$dayGap:1px;
|
15
|
+
$hmdaywidth: $dayGap * 52 + $hmbloksizeW * 53;
|
16
|
+
$hmmonthWidth:40px;
|
17
|
+
$hmmwidth: $hmmonthWidth + $hmdaywidth;
|
8
18
|
li {
|
9
19
|
padding: 0.2rem;
|
10
20
|
}
|
@@ -14,10 +24,24 @@ main{
|
|
14
24
|
}
|
15
25
|
body{
|
16
26
|
font-family: monospace;
|
17
|
-
font-size: 1.
|
27
|
+
font-size: 1.15rem;
|
18
28
|
// background-color: #fafafa;
|
19
29
|
margin: 0;
|
20
30
|
|
31
|
+
// &::before{
|
32
|
+
// content: "";
|
33
|
+
// position: fixed;
|
34
|
+
// left: 0;
|
35
|
+
// right: 0;
|
36
|
+
// top: 0;
|
37
|
+
// bottom: 0;
|
38
|
+
|
39
|
+
// // background-image: url(../image/bg-2.png) ;
|
40
|
+
// // background-color: #fffef8 ;//#fffef9;
|
41
|
+
// z-index: -1;
|
42
|
+
// // filter: grayscale(0.8);
|
43
|
+
// // opacity: 0.9;
|
44
|
+
// }
|
21
45
|
}
|
22
46
|
|
23
47
|
article{
|
@@ -25,7 +49,7 @@ article{
|
|
25
49
|
}
|
26
50
|
.w {
|
27
51
|
margin: auto;
|
28
|
-
max-width:
|
52
|
+
max-width: 960px;
|
29
53
|
padding: 2em ;
|
30
54
|
word-wrap: break-word;
|
31
55
|
background-color: white;
|
@@ -35,7 +59,7 @@ article{
|
|
35
59
|
code.highlighter-rouge {
|
36
60
|
color: $color-black;
|
37
61
|
background: $color-lightGrayBg;
|
38
|
-
border-radius:
|
62
|
+
border-radius: 5px;
|
39
63
|
padding: 0 5px;
|
40
64
|
margin: 5px;
|
41
65
|
}
|
@@ -47,7 +71,7 @@ code {
|
|
47
71
|
}
|
48
72
|
|
49
73
|
div.highlighter-rouge code {
|
50
|
-
border-radius:
|
74
|
+
border-radius: 10px;
|
51
75
|
display: block;
|
52
76
|
overflow: auto;
|
53
77
|
padding: 1rem;
|
@@ -61,12 +85,28 @@ img {
|
|
61
85
|
|
62
86
|
blockquote {
|
63
87
|
font-style: italic;
|
64
|
-
border-left: 5px solid
|
88
|
+
border-left: 5px solid $color-lightGray;
|
65
89
|
color: #999;
|
90
|
+
// padding: 2rem 0.25rem .25rem 0.25rem;
|
66
91
|
padding: 15px;
|
67
92
|
margin: 3em 0;
|
68
93
|
background-color: $color-lightGrayBg;
|
69
94
|
|
95
|
+
|
96
|
+
// &::before{
|
97
|
+
// content: "";
|
98
|
+
// display: block;
|
99
|
+
// background: url(../image/quote.svg) no-repeat 50% 50%;
|
100
|
+
// width: 27px;
|
101
|
+
// height: 20px;
|
102
|
+
// position: absolute;
|
103
|
+
// z-index: 1;
|
104
|
+
|
105
|
+
// margin-left: -10px;
|
106
|
+
// margin-top: -24px;
|
107
|
+
// opacity: 0.1;
|
108
|
+
|
109
|
+
// }
|
70
110
|
}
|
71
111
|
|
72
112
|
blockquote p {
|
@@ -92,15 +132,31 @@ td {
|
|
92
132
|
tr:nth-child(even){
|
93
133
|
background-color: #f5f5f5;
|
94
134
|
}
|
95
|
-
|
135
|
+
|
136
|
+
// hr {
|
137
|
+
// margin-top: 2rem;
|
138
|
+
// margin-bottom: 2rem;
|
139
|
+
|
140
|
+
|
141
|
+
// border: 0;
|
142
|
+
// padding: 3px;
|
143
|
+
|
144
|
+
// background: repeating-linear-gradient(135deg, #000 0px, #000 1px, transparent 1px, transparent 5px);
|
145
|
+
// }
|
96
146
|
|
97
147
|
hr{
|
98
|
-
border: none;
|
99
148
|
margin: 2rem 0;
|
100
149
|
border:none;
|
101
150
|
text-align: center;
|
102
151
|
color: $color-gray;
|
103
152
|
border-bottom: $color-lightGray dashed 1px;
|
153
|
+
|
154
|
+
|
155
|
+
// &:before { content: '/////' }
|
156
|
+
// &:after { content: '/////' }
|
157
|
+
// &[data-content] {
|
158
|
+
// content: 'xxxxxx';
|
159
|
+
// }
|
104
160
|
}
|
105
161
|
|
106
162
|
|
@@ -109,6 +165,7 @@ a {
|
|
109
165
|
color: $color-blue;
|
110
166
|
}
|
111
167
|
|
168
|
+
|
112
169
|
.w > h1>a {
|
113
170
|
color: $color-black;
|
114
171
|
}
|
@@ -117,6 +174,22 @@ a {
|
|
117
174
|
color: $color-black;
|
118
175
|
}
|
119
176
|
|
177
|
+
|
178
|
+
|
179
|
+
nav{
|
180
|
+
/* 关键样式 */
|
181
|
+
background-color: transparent;
|
182
|
+
background-image: radial-gradient(transparent 1px, #ffffff 1px);
|
183
|
+
background-size: 4px 4px;
|
184
|
+
backdrop-filter: saturate(50%) blur(10px);
|
185
|
+
/* 这个只是固定在页面上面 */
|
186
|
+
position: sticky;
|
187
|
+
top: 0px;
|
188
|
+
|
189
|
+
align-content: center;
|
190
|
+
z-index: 1000;
|
191
|
+
}
|
192
|
+
|
120
193
|
.navul {
|
121
194
|
padding: 0;
|
122
195
|
display: flex;
|
@@ -170,7 +243,7 @@ time {
|
|
170
243
|
.pagebar {
|
171
244
|
margin-top: 2rem;
|
172
245
|
display: flex;
|
173
|
-
float: right;
|
246
|
+
// float: right;
|
174
247
|
align-items: baseline;
|
175
248
|
}
|
176
249
|
|
@@ -237,12 +310,25 @@ input[type="button"]:hover{
|
|
237
310
|
color: white;
|
238
311
|
}
|
239
312
|
|
240
|
-
|
313
|
+
|
241
314
|
pre{
|
242
315
|
white-space: pre-wrap; /* 保留空白字符,但是允许自动换行 */
|
243
316
|
overflow-wrap: break-word; /* 在单词内允许换行 */
|
244
317
|
}
|
245
318
|
|
319
|
+
pre>code{
|
320
|
+
background-color: #1e131eff;
|
321
|
+
color: #e7e7b1;
|
322
|
+
box-shadow: 0px 0px 8px #000;
|
323
|
+
}
|
324
|
+
|
325
|
+
pre>code::before {
|
326
|
+
content: url('../image/dots.svg');
|
327
|
+
display: block;
|
328
|
+
margin-top:-1rem;
|
329
|
+
}
|
330
|
+
|
331
|
+
|
246
332
|
img{
|
247
333
|
max-width: 80%;
|
248
334
|
|
@@ -250,6 +336,170 @@ img{
|
|
250
336
|
|
251
337
|
.iconchar{
|
252
338
|
margin-left: 10px;
|
253
|
-
filter:
|
254
|
-
font-size: 0.
|
339
|
+
// filter: grayscale(0.1) brightness(0.6);
|
340
|
+
font-size: 0.6em;
|
255
341
|
}
|
342
|
+
|
343
|
+
.heatmap{
|
344
|
+
display: grid;
|
345
|
+
grid-template-rows: auto 1fr;
|
346
|
+
grid-template-columns: $hmmonthWidth 1fr;
|
347
|
+
width: $hmmwidth;
|
348
|
+
border: $dbgBorder;
|
349
|
+
}
|
350
|
+
|
351
|
+
.heatmap-title{
|
352
|
+
color: $color-black;
|
353
|
+
font-size: 1.2rem;
|
354
|
+
}
|
355
|
+
|
356
|
+
|
357
|
+
.heatmap-month{
|
358
|
+
|
359
|
+
grid-column-start: 2;
|
360
|
+
grid-column-end: 3;
|
361
|
+
|
362
|
+
display: grid;
|
363
|
+
grid-template-columns:repeat(12,1fr);
|
364
|
+
|
365
|
+
width: $hmdaywidth;
|
366
|
+
border: $dbgBorder;
|
367
|
+
|
368
|
+
}
|
369
|
+
|
370
|
+
|
371
|
+
.heatmap-month-cell{
|
372
|
+
display: flex;
|
373
|
+
align-items: center;
|
374
|
+
justify-content: center;
|
375
|
+
|
376
|
+
font-family: $heatFont;
|
377
|
+
font-size: 0.8rem;
|
378
|
+
|
379
|
+
border: $dbgBorder;
|
380
|
+
height: 12px;
|
381
|
+
|
382
|
+
padding: 0.2em 0;
|
383
|
+
|
384
|
+
}
|
385
|
+
|
386
|
+
|
387
|
+
.heatmap-week{
|
388
|
+
|
389
|
+
grid-row-start: 2;
|
390
|
+
grid-row-end: 3;
|
391
|
+
display: grid;
|
392
|
+
// grid-template-rows:repeat(4,1fr);
|
393
|
+
|
394
|
+
|
395
|
+
grid-auto-flow: row;
|
396
|
+
|
397
|
+
height: $hmbloksizeW * 7
|
398
|
+
}
|
399
|
+
|
400
|
+
|
401
|
+
.heatmap-week-cell{
|
402
|
+
display: flex;
|
403
|
+
align-items: center;
|
404
|
+
justify-content: center;
|
405
|
+
padding-right: 10px;
|
406
|
+
font-size: 0.8rem;
|
407
|
+
font-family: $heatFont
|
408
|
+
}
|
409
|
+
|
410
|
+
.heatmap-day{
|
411
|
+
|
412
|
+
display: grid;
|
413
|
+
grid-template-columns: repeat(53,1fr);
|
414
|
+
grid-template-rows: repeat(7,1fr);
|
415
|
+
grid-auto-flow: column;
|
416
|
+
gap: $dayGap;
|
417
|
+
width: $hmdaywidth;
|
418
|
+
}
|
419
|
+
|
420
|
+
.heatmap-day-cell{
|
421
|
+
|
422
|
+
border-radius: 2px;
|
423
|
+
// height: 20px;
|
424
|
+
width: $hmbloksizeW;
|
425
|
+
height: $hmbloksizeH;
|
426
|
+
}
|
427
|
+
|
428
|
+
.heatmap-day-cell a{
|
429
|
+
height: 100%;
|
430
|
+
width: 100%;
|
431
|
+
display: block;
|
432
|
+
white-space: nowrap;
|
433
|
+
overflow:hidden;
|
434
|
+
}
|
435
|
+
|
436
|
+
.hm-check{
|
437
|
+
background-color: #40c463bb;
|
438
|
+
position: relative;
|
439
|
+
cursor: pointer;
|
440
|
+
}
|
441
|
+
|
442
|
+
.hm-check2{
|
443
|
+
background-color: #40c463ff;
|
444
|
+
position: relative;
|
445
|
+
}
|
446
|
+
|
447
|
+
.hm-check-no{
|
448
|
+
background-color: #edebf0;
|
449
|
+
}
|
450
|
+
|
451
|
+
.heatmap-day-cell:hover{
|
452
|
+
transform: scale(1.3);
|
453
|
+
z-index: 999;
|
454
|
+
}
|
455
|
+
|
456
|
+
.heatmap-day-cell:hover .hm-tip{
|
457
|
+
display: block;
|
458
|
+
}
|
459
|
+
|
460
|
+
.hm-tip{
|
461
|
+
position: absolute; /* 让子元素浮动 */
|
462
|
+
bottom: 100%;
|
463
|
+
left: 50%;
|
464
|
+
transform: translateX(-50%);
|
465
|
+
background-color: rgba(0, 0, 0, 0.8);
|
466
|
+
color: white;
|
467
|
+
padding: 10px;
|
468
|
+
border-radius: 5px;
|
469
|
+
z-index: 999;
|
470
|
+
|
471
|
+
width: auto;
|
472
|
+
font-size: 0.8rem;
|
473
|
+
display: none;
|
474
|
+
}
|
475
|
+
|
476
|
+
.hm-date{
|
477
|
+
color: #fff;
|
478
|
+
text-align: center;
|
479
|
+
|
480
|
+
padding: 0;
|
481
|
+
}
|
482
|
+
|
483
|
+
.hm-title{
|
484
|
+
color: #fff;
|
485
|
+
white-space: nowrap;
|
486
|
+
overflow:hidden;
|
487
|
+
text-overflow: ellipsis;
|
488
|
+
text-align: left;
|
489
|
+
padding-left:0.5rem;
|
490
|
+
|
491
|
+
max-width: 600px;
|
492
|
+
|
493
|
+
}
|
494
|
+
|
495
|
+
.hm-tiplink{
|
496
|
+
padding: 0.2rem 0;
|
497
|
+
}
|
498
|
+
|
499
|
+
.red{
|
500
|
+
background-color: #ee5500;
|
501
|
+
}
|
502
|
+
|
503
|
+
.border{
|
504
|
+
border:solid 1px red;
|
505
|
+
}
|
data/assets/css/main.scss
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-zeta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vitock
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -68,14 +68,18 @@ files:
|
|
68
68
|
- _includes/encrypted.html
|
69
69
|
- _includes/goat_counter.html
|
70
70
|
- _includes/head.html
|
71
|
+
- _includes/heatmap.html
|
72
|
+
- _includes/heatmap.js
|
71
73
|
- _includes/home.html
|
72
74
|
- _includes/main.css
|
73
75
|
- _includes/menu_item.html
|
74
76
|
- _includes/navbar.html
|
75
77
|
- _includes/paginate.html
|
76
78
|
- _includes/post_list.html
|
79
|
+
- _layouts/about.html
|
77
80
|
- _layouts/archive.html
|
78
81
|
- _layouts/default.html
|
82
|
+
- _layouts/heatmap.html
|
79
83
|
- _layouts/home.html
|
80
84
|
- _layouts/page.html
|
81
85
|
- _layouts/paginate.html
|
@@ -84,6 +88,8 @@ files:
|
|
84
88
|
- _layouts/tags.html
|
85
89
|
- _sass/jekyll-zeta.scss
|
86
90
|
- assets/css/main.scss
|
91
|
+
- assets/image/dots.png
|
92
|
+
- assets/image/dots.svg
|
87
93
|
- assets/image/lock.svg
|
88
94
|
- assets/js/mouse_coords.js
|
89
95
|
- index.html
|
@@ -106,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
112
|
- !ruby/object:Gem::Version
|
107
113
|
version: '0'
|
108
114
|
requirements: []
|
109
|
-
rubygems_version: 3.3.
|
115
|
+
rubygems_version: 3.3.27
|
110
116
|
signing_key:
|
111
117
|
specification_version: 4
|
112
118
|
summary: A clean fast, minimalist Jekyll theme.
|