Make day clickable in calendar
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Peter Stuifzand 2021-02-12 21:56:36 +01:00
parent d1858ad849
commit 97b78810c4
2 changed files with 15 additions and 6 deletions

View File

@ -266,12 +266,19 @@ mark {
}
.day a {
position: absolute;
top: 1px;
right: 3px;
font-size: 9pt;
top: 0;
right: 0;
bottom: 0;
left: 0;
color: black;
}
.day span {
.day .day-text {
font-size: 9pt;
text-align: right;
float: right;
margin-right: 3px;
}
.day .day-count {
position: absolute;
width: 100%;
height: 100%;

View File

@ -13,8 +13,10 @@
<div class="day">z</div>
{{ range .Days }}
<div class="{{ .Class }}">
<a href="{{ .URL }}">{{ .Text }}</a>
<span>{{ .Count }}</span>
<a href="{{ .URL }}">
<span class="day-text">{{ .Text }}</span>
<span class="day-count">{{ .Count }}</span>
</a>
</div>
{{ end }}
</div>