enhancing :target for calendar-eventdays
This commit is contained in:
parent
7cbdc603a2
commit
d7e96bfeb6
|
@ -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;
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue