[yelp-xsl] html: Style updates for links
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-xsl] html: Style updates for links
- Date: Fri, 4 Nov 2011 15:17:37 +0000 (UTC)
commit 3a1196fea9cf3340541efa5370e02d717c3eb1f2
Author: Shaun McCance <shaunm gnome org>
Date: Fri Nov 4 11:17:20 2011 -0400
html: Style updates for links
xslt/common/html.xsl | 22 ++++++++++++++++++----
xslt/mallard/html/mal2html-page.xsl | 11 +++++++----
2 files changed, 25 insertions(+), 8 deletions(-)
---
diff --git a/xslt/common/html.xsl b/xslt/common/html.xsl
index 9c3a3b7..d508d60 100644
--- a/xslt/common/html.xsl
+++ b/xslt/common/html.xsl
@@ -728,7 +728,14 @@ a {
}
a:visited { color: </xsl:text>
<xsl:value-of select="$color.link_visited"/><xsl:text>; }
-a:hover { text-decoration: underline; }
+a:hover {
+ border-bottom: dotted 1px </xsl:text>
+ <xsl:value-of select="$color.blue_border"/><xsl:text>;
+}
+p a {
+ border-bottom: dotted 1px </xsl:text>
+ <xsl:value-of select="$color.blue_border"/><xsl:text>;
+}
a img { border: none; }
</xsl:text>
</xsl:template>
@@ -1068,13 +1075,20 @@ kbd {
<xsl:value-of select="$color.gray_border"/><xsl:text>;
margin: 0 0.2em 0 0.2em;
padding: 0 0.5em 0 0.5em;
- white-space: nowrap
+ white-space: nowrap;
}
kbd.key-Fn {
font-weight: bold;
color: </xsl:text>
<xsl:value-of select="$color.blue_border"/><xsl:text>;
}
+span.key a {
+ border-bottom: none;
+}
+a > kbd {
+ color: </xsl:text><xsl:value-of select="$color.link"/><xsl:text>;
+ border-color: </xsl:text><xsl:value-of select="$color.blue_border"/><xsl:text>;
+}
span.keyseq {
color: </xsl:text>
<xsl:value-of select="$color.text_light"/><xsl:text>;
@@ -1089,8 +1103,8 @@ pre span.prompt {
}
span.sys { font-family: monospace; }
span.var { font-style: italic; }
-div.media-video > div.inner { display: inline-block; text-align: center; }
-div.media-video > div.inner video { margin: 0; }
+div.media-video > div.inner { display: inline-block; text-align: center; }
+div.media-video > div.inner video { margin: 0; }
div.media-controls {
min-width: 24em;
height: 24px;
diff --git a/xslt/mallard/html/mal2html-page.xsl b/xslt/mallard/html/mal2html-page.xsl
index ca89a53..b424e46 100644
--- a/xslt/mallard/html/mal2html-page.xsl
+++ b/xslt/mallard/html/mal2html-page.xsl
@@ -649,17 +649,19 @@ div.mouseovers {
height: 200px;
text-align: center;
margin: 0;
- margin-</xsl:text><xsl:value-of select="$right"/><xsl:text>: 1em;
float: </xsl:text><xsl:value-of select="$left"/><xsl:text>;
}
ul.mouseovers li { margin: 0; }
ul.mouseovers a {
- display: block;
- padding: 4px;
+ display: inline-block;
+ padding: 4px 1.2em 4px 1.2em;
+ border-bottom: none;
}
ul.mouseovers a:hover {
- background: </xsl:text><xsl:value-of select="$color.blue_background"/><xsl:text>;
text-decoration: none;
+ background: </xsl:text><xsl:value-of select="$color.blue_background"/><xsl:text>;
+ -webkit-box-shadow: 1px 1px 2px </xsl:text>
+ <xsl:value-of select="$color.blue_border"/><xsl:text>;
}
ul.mouseovers a img {
display: none;
@@ -705,6 +707,7 @@ a.linkdiv {
display: block;
margin: 0;
padding: 0.5em;
+ border-bottom: none;
}
a.linkdiv:hover {
text-decoration: none;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]