enhancing :target for calendar-eventdays
This commit is contained in:
parent
7cbdc603a2
commit
d7e96bfeb6
|
@ -480,6 +480,11 @@ table.calendar tr td {
|
||||||
padding: .5em
|
padding: .5em
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* styling active location.href.hash */
|
||||||
|
table.calendar tr td:target{
|
||||||
|
background: #bbb;
|
||||||
|
}
|
||||||
|
|
||||||
table.calendar tr td span.day {
|
table.calendar tr td span.day {
|
||||||
font-size: 200%;
|
font-size: 200%;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
|
|
@ -79,7 +79,7 @@
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<!-- vv01f: added id to jump to a specific date with links and hashtag liek {$month}-{$day} //-->
|
<!-- vv01f: added id to jump to a specific date with links and hashtag liek {$month}-{$day} //-->
|
||||||
<xsl:attribute name="id">
|
<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:attribute>
|
||||||
|
|
||||||
<xsl:variable name="ddate">
|
<xsl:variable name="ddate">
|
||||||
|
|
|
@ -245,10 +245,13 @@
|
||||||
<xsl:value-of select="$href"/>
|
<xsl:value-of select="$href"/>
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</xsl:if>
|
</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:if test="string-length($href) = 0">
|
||||||
<xsl:attribute name="href">
|
<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:attribute>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue