summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2013-03-22 20:32:28 +0100
committerJan Pokorný <jpokorny@redhat.com>2013-03-22 20:32:28 +0100
commit0c3dfd8a39117fc8e1fd90ab9ab361ec9377ceab (patch)
treed3692292daef6854524647ff0fd6b7fc87530cf6
parentd6e29e7817ad6e171b301c300df9efdf31de7c2f (diff)
downloadontogen-0c3dfd8a39117fc8e1fd90ab9ab361ec9377ceab.tar.gz
ontogen-0c3dfd8a39117fc8e1fd90ab9ab361ec9377ceab.tar.xz
ontogen-0c3dfd8a39117fc8e1fd90ab9ab361ec9377ceab.zip
Fine tuning for images included via examples
- now the width is limited (960px) and the link to the original is provided for convenience Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rw-r--r--ns-schema.xsl3
1 files changed, 2 insertions, 1 deletions
diff --git a/ns-schema.xsl b/ns-schema.xsl
index c41a0f2..6c8a553 100644
--- a/ns-schema.xsl
+++ b/ns-schema.xsl
@@ -629,7 +629,7 @@ if(navigator.userAgent.indexOf('MSIE') != -1) document.getElementById('ie-notice
<xsl:when test="ex:image/foaf:Image">
See <a href="{ex:image/foaf:Image/@rdf:about}"><xsl:value-of select="ex:image/foaf:Image/@rdfs:label"/></a>.
</xsl:when>
- <xsl:otherwise><img src="{ex:image/@rdf:resource}"/></xsl:otherwise>
+ <xsl:otherwise><a href="{ex:image/@rdf:resource}"><img src="{ex:image/@rdf:resource}"/></a></xsl:otherwise>
</xsl:choose>
</p>
</xsl:if>
@@ -1066,6 +1066,7 @@ img.term_status {position:absolute; right:1px}
#ie-notice {background: #efe; padding: 0.5em; display:none}
div.sec {border-top: silver 1px dashed; margin-top: 3em}
div.sec h2 {margin-top: 1em; font-size:1.75em}
+div.sec img {max-width: 960px}
p {line-height: 1.3}
dt.group {font-size:1.6em; color: navy; margin-top:1.5em}
span.legend {font-size:0.7em; float:right; line-height:1; } span.legend span {display:block; float:left; margin:2px; width:4em; height:1em}