jekyll-zeta 0.7.5.1 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_config.yml +1 -0
- data/_includes/archive_list.html +16 -4
- data/_includes/head.html +2 -4
- data/_includes/heatmap.html +38 -9
- data/_includes/heatmap.js +9 -20
- data/_includes/home.html +5 -6
- data/_includes/navbar_left.html +39 -0
- data/_includes/page_frame_left.html +20 -0
- data/_layouts/archive.html +3 -3
- data/_layouts/default.html +7 -1
- data/_layouts/heatmap.html +1 -1
- data/_sass/common.scss +336 -0
- data/_sass/heatmap.scss +175 -0
- data/_sass/jekyll-zeta-left.scss +99 -0
- data/_sass/jekyll-zeta.scss +10 -500
- data/assets/css/left.scss +6 -0
- data/assets/image/avartar.png +0 -0
- data/assets/image/avartar2.png +0 -0
- data/index.html +2 -0
- metadata +10 -2
data/_sass/heatmap.scss
ADDED
@@ -0,0 +1,175 @@
|
|
1
|
+
|
2
|
+
$hmbloksizeH:13px;
|
3
|
+
$dayGap:1px;
|
4
|
+
$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;
|
5
|
+
|
6
|
+
.heatmap{
|
7
|
+
display: grid;
|
8
|
+
grid-template-rows: auto 1fr;
|
9
|
+
grid-template-columns: auto 1fr;
|
10
|
+
max-width: 640px;
|
11
|
+
}
|
12
|
+
|
13
|
+
.heatmap-title{
|
14
|
+
color: $color-black;
|
15
|
+
font-size: 1.6rem;
|
16
|
+
font-weight: 600;
|
17
|
+
padding:3rem 0rem 0.2rem 0;
|
18
|
+
}
|
19
|
+
|
20
|
+
|
21
|
+
.heatmap-month{
|
22
|
+
|
23
|
+
grid-column-start: 2;
|
24
|
+
grid-column-end: 3;
|
25
|
+
|
26
|
+
display: grid;
|
27
|
+
grid-template-columns: repeat(12,1fr);
|
28
|
+
|
29
|
+
border: $dbgBorder;
|
30
|
+
|
31
|
+
}
|
32
|
+
|
33
|
+
|
34
|
+
.heatmap-month-cell{
|
35
|
+
display: flex;
|
36
|
+
align-items: center;
|
37
|
+
justify-content: center;
|
38
|
+
|
39
|
+
font-family: $heatFont;
|
40
|
+
font-size: 0.8rem;
|
41
|
+
|
42
|
+
height: 12px;
|
43
|
+
|
44
|
+
padding: 0.2em 0;
|
45
|
+
|
46
|
+
}
|
47
|
+
|
48
|
+
|
49
|
+
.heatmap-week{
|
50
|
+
|
51
|
+
grid-row-start: 2;
|
52
|
+
grid-row-end: 3;
|
53
|
+
display: grid;
|
54
|
+
// grid-template-rows:repeat(4,1fr);
|
55
|
+
|
56
|
+
|
57
|
+
grid-auto-flow: row;
|
58
|
+
height: $hmbloksizeH * 7 + $dayGap * 6;
|
59
|
+
}
|
60
|
+
|
61
|
+
|
62
|
+
.heatmap-week-cell{
|
63
|
+
display: flex;
|
64
|
+
align-items: center;
|
65
|
+
justify-content: center;
|
66
|
+
padding-right: 0.2em;
|
67
|
+
font-size: 0.8rem;
|
68
|
+
font-family: $heatFont
|
69
|
+
}
|
70
|
+
|
71
|
+
.heatmap-day{
|
72
|
+
|
73
|
+
display: grid;
|
74
|
+
grid-template-columns: repeat(53,1fr);
|
75
|
+
grid-template-rows: repeat(7,1fr);
|
76
|
+
grid-auto-flow: column;
|
77
|
+
gap: $dayGap;
|
78
|
+
}
|
79
|
+
|
80
|
+
.heatmap-day-cell{
|
81
|
+
|
82
|
+
border-radius: 2px;
|
83
|
+
// height: 20px;
|
84
|
+
// width: $hmbloksizeW;
|
85
|
+
height: $hmbloksizeH;
|
86
|
+
}
|
87
|
+
|
88
|
+
.heatmap-day-cell a{
|
89
|
+
height: 100%;
|
90
|
+
width: 100%;
|
91
|
+
display: block;
|
92
|
+
white-space: nowrap;
|
93
|
+
overflow:hidden;
|
94
|
+
}
|
95
|
+
|
96
|
+
|
97
|
+
.hm-check-nodata{
|
98
|
+
background-color: #93d5dc;
|
99
|
+
}
|
100
|
+
|
101
|
+
.hm-check{
|
102
|
+
background-color: #40c463bb;
|
103
|
+
position: relative;
|
104
|
+
cursor: pointer;
|
105
|
+
}
|
106
|
+
|
107
|
+
.hm-check2{
|
108
|
+
background-color: #40c463ff;
|
109
|
+
position: relative;
|
110
|
+
}
|
111
|
+
|
112
|
+
.hm-check-no-a{
|
113
|
+
background-color: #edebf0;;
|
114
|
+
}
|
115
|
+
|
116
|
+
|
117
|
+
.hm-check-no-b{
|
118
|
+
background-color: #edebf0aa;
|
119
|
+
}
|
120
|
+
|
121
|
+
.heatmap-day-cell:hover{
|
122
|
+
transform: scale(1.3);
|
123
|
+
z-index: 999;
|
124
|
+
}
|
125
|
+
|
126
|
+
.heatmap-day-cell:hover .hm-tip{
|
127
|
+
display: block;
|
128
|
+
}
|
129
|
+
|
130
|
+
.hm-tip{
|
131
|
+
position: absolute; /* 让子元素浮动 */
|
132
|
+
bottom: 100%;
|
133
|
+
left: 50%;
|
134
|
+
transform: translateX(-50%);
|
135
|
+
background-color: rgba(0, 0, 0, 0.8);
|
136
|
+
color: white;
|
137
|
+
padding: 10px;
|
138
|
+
border-radius: 5px;
|
139
|
+
z-index: 999;
|
140
|
+
|
141
|
+
width: auto;
|
142
|
+
font-size: 0.8rem;
|
143
|
+
display: none;
|
144
|
+
}
|
145
|
+
|
146
|
+
.hm-date{
|
147
|
+
color: #fff;
|
148
|
+
text-align: center;
|
149
|
+
|
150
|
+
padding: 0;
|
151
|
+
}
|
152
|
+
|
153
|
+
.hm-title{
|
154
|
+
color: #fff;
|
155
|
+
white-space: nowrap;
|
156
|
+
overflow:hidden;
|
157
|
+
text-overflow: ellipsis;
|
158
|
+
text-align: left;
|
159
|
+
padding-left:0.5rem;
|
160
|
+
|
161
|
+
max-width: 600px;
|
162
|
+
|
163
|
+
}
|
164
|
+
|
165
|
+
.hm-tiplink{
|
166
|
+
padding: 0.2rem 0;
|
167
|
+
}
|
168
|
+
|
169
|
+
.red{
|
170
|
+
background-color: #ee5500;
|
171
|
+
}
|
172
|
+
|
173
|
+
.border{
|
174
|
+
border:solid 1px red;
|
175
|
+
}
|
@@ -0,0 +1,99 @@
|
|
1
|
+
@import "common";
|
2
|
+
@import "heatmap";
|
3
|
+
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
$contentWidth:52rem;
|
8
|
+
$siderbarW:8rem;
|
9
|
+
body{
|
10
|
+
font-size: 1.25rem;
|
11
|
+
}
|
12
|
+
|
13
|
+
|
14
|
+
body{
|
15
|
+
padding: 0;
|
16
|
+
}
|
17
|
+
|
18
|
+
|
19
|
+
.w {
|
20
|
+
margin:auto;
|
21
|
+
max-width:$contentWidth ;
|
22
|
+
padding-left: 2rem;
|
23
|
+
padding-right: 2rem;
|
24
|
+
padding-top: 4rem ;
|
25
|
+
padding-bottom: 4rem ;
|
26
|
+
word-wrap: break-word;
|
27
|
+
background-color: white;
|
28
|
+
|
29
|
+
}
|
30
|
+
|
31
|
+
|
32
|
+
.sidebar{
|
33
|
+
|
34
|
+
height: 100%;
|
35
|
+
padding-right: 1rem;
|
36
|
+
padding-top: 6rem;
|
37
|
+
position: fixed;
|
38
|
+
top: 0;
|
39
|
+
width: $siderbarW;
|
40
|
+
right: calc(50% + #{$contentWidth} / 2 );
|
41
|
+
|
42
|
+
}
|
43
|
+
|
44
|
+
.sidecontent{
|
45
|
+
// position: absolute;
|
46
|
+
left: 2rem;
|
47
|
+
bottom: 2rem;
|
48
|
+
|
49
|
+
}
|
50
|
+
|
51
|
+
.sidetitle{
|
52
|
+
font-size: 1.2rem;
|
53
|
+
font-weight: 600;
|
54
|
+
}
|
55
|
+
|
56
|
+
.navul {
|
57
|
+
padding: 0;
|
58
|
+
display:block;
|
59
|
+
font-weight: 700;
|
60
|
+
align-items: center;
|
61
|
+
}
|
62
|
+
|
63
|
+
|
64
|
+
.navli{
|
65
|
+
padding: 1rem 0;
|
66
|
+
}
|
67
|
+
|
68
|
+
nav{
|
69
|
+
text-align: end;
|
70
|
+
padding-right: 2rem;
|
71
|
+
}
|
72
|
+
|
73
|
+
|
74
|
+
.rightsidecontent{
|
75
|
+
margin:auto;
|
76
|
+
max-width: $contentWidth + $siderbarW ;
|
77
|
+
|
78
|
+
padding-left: $siderbarW ;
|
79
|
+
// justify-content: center;
|
80
|
+
}
|
81
|
+
|
82
|
+
|
83
|
+
// @media screen and (max-width: 90000px){
|
84
|
+
// $siderbarW:0;
|
85
|
+
// .navul{
|
86
|
+
// display: flex;
|
87
|
+
// }
|
88
|
+
// .sidebar{
|
89
|
+
|
90
|
+
// padding-right: 1rem;
|
91
|
+
// padding-top: 6rem;
|
92
|
+
// width: $siderbarW;
|
93
|
+
|
94
|
+
// }
|
95
|
+
|
96
|
+
// }
|
97
|
+
|
98
|
+
|
99
|
+
|