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 { .day a {
position: absolute; position: absolute;
top: 1px; top: 0;
right: 3px; right: 0;
font-size: 9pt; bottom: 0;
left: 0;
color: black; color: black;
} }
.day span { .day .day-text {
font-size: 9pt;
text-align: right;
float: right;
margin-right: 3px;
}
.day .day-count {
position: absolute; position: absolute;
width: 100%; width: 100%;
height: 100%; height: 100%;

View File

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