_sass/jekyll-zeta.scss in jekyll-zeta-0.6.0 vs _sass/jekyll-zeta.scss in jekyll-zeta-0.7.0
- old
+ new
@@ -4,10 +4,19 @@
$color-blue: #0064c1;
$color-hove: #0064c1;
$color-gray: #9ca3af;
$color-lightGray: #9ca3af;
$color-lightGrayBg: #F0f2f4;
+$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;
+
+$dbgBorder:none;//ssolid 1px red;
+$hmbloksizeW:12px;
+$hmbloksizeH:15.2px;
+$dayGap:1px;
+$hmdaywidth: $dayGap * 52 + $hmbloksizeW * 53;
+$hmmonthWidth:40px;
+$hmmwidth: $hmmonthWidth + $hmdaywidth;
li {
padding: 0.2rem;
}
main{
@@ -328,5 +337,169 @@
.iconchar{
margin-left: 10px;
// filter: grayscale(0.1) brightness(0.6);
font-size: 0.6em;
}
+
+.heatmap{
+ display: grid;
+ grid-template-rows: auto 1fr;
+ grid-template-columns: $hmmonthWidth 1fr;
+ width: $hmmwidth;
+ border: $dbgBorder;
+}
+
+.heatmap-title{
+ color: $color-black;
+ font-size: 1.2rem;
+}
+
+
+.heatmap-month{
+
+ grid-column-start: 2;
+ grid-column-end: 3;
+
+ display: grid;
+ grid-template-columns:repeat(12,1fr);
+
+ width: $hmdaywidth;
+ border: $dbgBorder;
+
+}
+
+
+.heatmap-month-cell{
+ display: flex;
+ align-items: center;
+ justify-content: center;
+
+ font-family: $heatFont;
+ font-size: 0.8rem;
+
+ border: $dbgBorder;
+ height: 12px;
+
+ padding: 0.2em 0;
+
+}
+
+
+.heatmap-week{
+
+ grid-row-start: 2;
+ grid-row-end: 3;
+ display: grid;
+ // grid-template-rows:repeat(4,1fr);
+
+
+ grid-auto-flow: row;
+
+ height: $hmbloksizeW * 7
+}
+
+
+.heatmap-week-cell{
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ padding-right: 10px;
+ font-size: 0.8rem;
+ font-family: $heatFont
+}
+
+.heatmap-day{
+
+ display: grid;
+ grid-template-columns: repeat(53,1fr);
+ grid-template-rows: repeat(7,1fr);
+ grid-auto-flow: column;
+ gap: $dayGap;
+ width: $hmdaywidth;
+}
+
+.heatmap-day-cell{
+
+ border-radius: 2px;
+ // height: 20px;
+ width: $hmbloksizeW;
+ height: $hmbloksizeH;
+}
+
+.heatmap-day-cell a{
+ height: 100%;
+ width: 100%;
+ display: block;
+ white-space: nowrap;
+ overflow:hidden;
+}
+
+.hm-check{
+ background-color: #40c463bb;
+ position: relative;
+ cursor: pointer;
+}
+
+.hm-check2{
+ background-color: #40c463ff;
+ position: relative;
+}
+
+.hm-check-no{
+ background-color: #edebf0;
+}
+
+.heatmap-day-cell:hover{
+ transform: scale(1.3);
+ z-index: 999;
+}
+
+.heatmap-day-cell:hover .hm-tip{
+ display: block;
+}
+
+.hm-tip{
+ position: absolute; /* 让子元素浮动 */
+ bottom: 100%;
+ left: 50%;
+ transform: translateX(-50%);
+ background-color: rgba(0, 0, 0, 0.8);
+ color: white;
+ padding: 10px;
+ border-radius: 5px;
+ z-index: 999;
+
+ width: auto;
+ font-size: 0.8rem;
+ display: none;
+}
+
+.hm-date{
+ color: #fff;
+ text-align: center;
+
+ padding: 0;
+}
+
+.hm-title{
+ color: #fff;
+ white-space: nowrap;
+ overflow:hidden;
+ text-overflow: ellipsis;
+ text-align: left;
+ padding-left:0.5rem;
+
+ max-width: 600px;
+
+}
+
+.hm-tiplink{
+ padding: 0.2rem 0;
+}
+
+.red{
+ background-color: #ee5500;
+}
+
+.border{
+ border:solid 1px red;
+}
\ No newline at end of file