enhancing :target for calendar-eventdays

This commit is contained in:
vv01f 2014-02-28 23:57:50 +01:00
parent 7cbdc603a2
commit d7e96bfeb6
3 changed files with 11 additions and 3 deletions

View File

@ -480,6 +480,11 @@ table.calendar tr td {
padding: .5em
}
/* styling active location.href.hash */
table.calendar tr td:target{
background: #bbb;
}
table.calendar tr td span.day {
font-size: 200%;
font-weight: bold;

View File

@ -79,7 +79,7 @@
</xsl:attribute>
<!-- vv01f: added id to jump to a specific date with links and hashtag liek {$month}-{$day} //-->
<xsl:attribute name="id">
<xsl:value-of select="concat(date:month-in-year($date), '-', date:day-in-month($date))"/>
<xsl:value-of select="concat('eventday-', date:month-in-year($date), '-', date:day-in-month($date))"/>
</xsl:attribute>
<xsl:variable name="ddate">

View File

@ -245,10 +245,13 @@
<xsl:value-of select="$href"/>
</xsl:attribute>
</xsl:if>
<!-- vv01f: added link to a specific date in calndar //-->
<!-- vv01f:
added link to a specific date in calndar
#eventday-* is to be handeled with css
-->
<xsl:if test="string-length($href) = 0">
<xsl:attribute name="href">
<xsl:value-of select="concat('calendar.html#',concat(date:month-in-year(start), '-'), date:day-in-month(start))"/>
<xsl:value-of select="concat('calendar.html#eventday-',concat(date:month-in-year(start), '-'), date:day-in-month(start))"/>
</xsl:attribute>
</xsl:if>