undo e5abff67bacc8b74659033eaef7d3d8ad49d68d2: CSS-Rollover für Locations mit Link zu Google Maps
This commit is contained in:
parent
e021c1b4fb
commit
571edf5c86
|
@ -251,23 +251,6 @@ pre {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -- Location hints -- */
|
|
||||||
ul.location-hints {
|
|
||||||
display: none;
|
|
||||||
position: fixed;
|
|
||||||
background-color: white;
|
|
||||||
margin: 0;
|
|
||||||
padding: 0.1em 0.3em;
|
|
||||||
border: 2px solid #ebc63c;
|
|
||||||
}
|
|
||||||
ul.location-hints li {
|
|
||||||
list-style-type: none;
|
|
||||||
list-style-image: none;
|
|
||||||
}
|
|
||||||
dl:hover dd ul.location-hints {
|
|
||||||
display: inline;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* -- Upcoming -- */
|
/* -- Upcoming -- */
|
||||||
#upcoming {
|
#upcoming {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
xmlns:atom="http://www.w3.org/2005/Atom"
|
xmlns:atom="http://www.w3.org/2005/Atom"
|
||||||
xmlns:date="http://exslt.org/dates-and-times"
|
xmlns:date="http://exslt.org/dates-and-times"
|
||||||
xmlns:str="http://exslt.org/strings"
|
xmlns:str="http://exslt.org/strings"
|
||||||
exclude-result-prefixes="xsl atom date str">
|
exclude-result-prefixes="xsl atom date">
|
||||||
|
|
||||||
<xsl:template match="pre">
|
<xsl:template match="pre">
|
||||||
<pre><xsl:apply-templates/></pre>
|
<pre><xsl:apply-templates/></pre>
|
||||||
|
@ -260,39 +260,7 @@
|
||||||
<xsl:template match="item/event/location">
|
<xsl:template match="item/event/location">
|
||||||
<dl>
|
<dl>
|
||||||
<dt>Ort</dt>
|
<dt>Ort</dt>
|
||||||
<dd>
|
<dd class="location"><xsl:apply-templates/></dd>
|
||||||
<!-- Extra <span/>, damit die location-hints nicht mit ins
|
|
||||||
Microformat rutschen
|
|
||||||
-->
|
|
||||||
<span class="location">
|
|
||||||
<xsl:apply-templates/>
|
|
||||||
</span>
|
|
||||||
|
|
||||||
<ul class="location-hints">
|
|
||||||
<xsl:variable name="location">
|
|
||||||
<xsl:choose>
|
|
||||||
<!-- Extrem schmutziger Hack:
|
|
||||||
Google Maps versteht keine Raum-Angaben
|
|
||||||
-->
|
|
||||||
<xsl:when test="contains(., 'Raum')">
|
|
||||||
<xsl:value-of select="substring-before(., 'Raum')"/>
|
|
||||||
</xsl:when>
|
|
||||||
<xsl:otherwise>
|
|
||||||
<xsl:value-of select="."/>
|
|
||||||
</xsl:otherwise>
|
|
||||||
</xsl:choose>
|
|
||||||
</xsl:variable>
|
|
||||||
<xsl:variable name="location-encoded"
|
|
||||||
select="str:encode-uri($location, true())"/>
|
|
||||||
<li>
|
|
||||||
<a href="http://maps.google.com/maps?q={$location-encoded}">Google Maps</a>
|
|
||||||
</li>
|
|
||||||
<!-- Hier bitte weitere Anbieter einfügen, wir sind
|
|
||||||
doch nicht Google-zentrisch. Ich habe nur gerade
|
|
||||||
keine akzeptablen gefunden. Astro
|
|
||||||
-->
|
|
||||||
</ul>
|
|
||||||
</dd>
|
|
||||||
</dl>
|
</dl>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user