[yelp-xsl] Removed and fixed some browser-specific CSS



commit 131c6be2d4eef2e64426de4f5874bf3014a9fac6
Author: Shaun McCance <shaunm gnome org>
Date:   Sat Apr 23 19:01:41 2011 -0400

    Removed and fixed some browser-specific CSS

 xslt/common/html.xsl                  |   28 ++--------------------------
 xslt/docbook/html/db2html-callout.xsl |    2 ++
 xslt/docbook/html/db2html-css.xsl     |    8 +-------
 xslt/mallard/html/mal2html-page.xsl   |    9 ---------
 4 files changed, 5 insertions(+), 42 deletions(-)
---
diff --git a/xslt/common/html.xsl b/xslt/common/html.xsl
index 11c8f1c..51c225e 100644
--- a/xslt/common/html.xsl
+++ b/xslt/common/html.xsl
@@ -605,10 +605,6 @@ ul, ol, dl { margin: 0; padding: 0; }
 li {
   margin: 1em 0 0 0;
   margin-</xsl:text><xsl:value-of select="$left"/><xsl:text>: 2.4em;
-  -webkit-margin-start: 2.4em;
-  -webkit-margin-end: 0;
-  -moz-margin-start: 2.4em;
-  -moz-margin-end: 0;
   padding: 0;
 }
 li:first-child { margin-top: 0; }
@@ -618,10 +614,6 @@ dt + dt { margin-top: 0; }
 dd {
   margin: 0.2em 0 0 0;
   margin-</xsl:text><xsl:value-of select="$left"/><xsl:text>: 1.44em;
-  -webkit-margin-start: 1.44em;
-  -webkit-margin-end: 0;
-  -moz-margin-start: 1.44em;
-  -moz-margin-end: 0;
 }
 ol.compact li { margin-top: 0.2em; }
 ul.compact li { margin-top: 0.2em; }
@@ -781,10 +773,6 @@ div.code {
 }
 div.figure {
   margin-</xsl:text><xsl:value-of select="$left"/><xsl:text>: 1.72em;
-  -webkit-margin-start: 1.72em;
-  -webkit-margin-end: 0;
-  -moz-margin-start: 1.72em;
-  -moz-margin-end: 0;
   padding: 4px;
   color: </xsl:text>
     <xsl:value-of select="$color.text_light"/><xsl:text>;
@@ -912,20 +900,8 @@ ol.steps .steps {
   border: none;
   background-color: none;
 }
-li.steps {
-  margin-</xsl:text><xsl:value-of select="$left"/><xsl:text>: 1.44em;
-  -webkit-margin-start: 1.44em;
-  -webkit-margin-end: 0;
-  -moz-margin-start: 1.44em;
-  -moz-margin-end: 0;
-}
-li.steps li.steps {
-  margin-</xsl:text><xsl:value-of select="$left"/><xsl:text>: 2.4em;
-  -webkit-margin-start: 2.4em;
-  -webkit-margin-end: 0;
-  -moz-margin-start: 2.4em;
-  -moz-margin-end: 0;
-}
+li.steps { margin-</xsl:text><xsl:value-of select="$left"/><xsl:text>: 1.44em; }
+li.steps li.steps { margin-</xsl:text><xsl:value-of select="$left"/><xsl:text>: 2.4em; }
 div.synopsis > div.inner > div.contents, div.synopsis > pre.contents {
   padding: 0.5em 1em 0.5em 1em;
   border-top: solid 1px;
diff --git a/xslt/docbook/html/db2html-callout.xsl b/xslt/docbook/html/db2html-callout.xsl
index d462ccf..12473ed 100644
--- a/xslt/docbook/html/db2html-callout.xsl
+++ b/xslt/docbook/html/db2html-callout.xsl
@@ -117,7 +117,9 @@ span.co {
   padding-left: 0.4em; padding-right: 0.4em;
   border: solid 1px </xsl:text>
   <xsl:value-of select="$db2html.co.border_color"/><xsl:text>;
+  border-radius: 8px;
   -moz-border-radius: 8px;
+  -webkit-border-radius: 8px;
   background-color: </xsl:text>
   <xsl:value-of select="$db2html.co.background_color"/><xsl:text>;
   color: </xsl:text>
diff --git a/xslt/docbook/html/db2html-css.xsl b/xslt/docbook/html/db2html-css.xsl
index 8fd85b1..8a47c9a 100644
--- a/xslt/docbook/html/db2html-css.xsl
+++ b/xslt/docbook/html/db2html-css.xsl
@@ -159,13 +159,7 @@ dl.indexdiv dt { margin-top: 0; }
 dl.indexdiv dd { margin-top: 0; margin-bottom: 0; }
 dl.setindex dt { margin-top: 0; }
 dl.setindex dd { margin-top: 0; margin-bottom: 0; }
-div.simplelist {
-  margin-</xsl:text><xsl:value-of select="$left"/><xsl:text>: 1.72em;
-  -webkit-margin-start: 1.72em;
-  -webkit-margin-end: 0;
-  -moz-margin-start: 1.72em;
-  -moz-margin-end: 0;
-}
+div.simplelist { margin-</xsl:text><xsl:value-of select="$left"/><xsl:text>: 1.72em; }
 div.simplelist table { margin-left: 0; border: none; }
 div.simplelist td {
   padding: 0.5em;
diff --git a/xslt/mallard/html/mal2html-page.xsl b/xslt/mallard/html/mal2html-page.xsl
index 9e8291d..c1fe5ae 100644
--- a/xslt/mallard/html/mal2html-page.xsl
+++ b/xslt/mallard/html/mal2html-page.xsl
@@ -1209,10 +1209,6 @@ td.twocolumnright {
   width: 52%; vertical-align: top;
   margin: 0; padding: 0;
   padding-</xsl:text><xsl:value-of select="$left"/><xsl:text>: 1em;
-  -webkit-padding-start: 1em;
-  -webkit-padding-end: 0;
-  -moz-padding-start: 1em;
-  -moz-padding-end: 0;
 }
 
 div.desc a {
@@ -1234,7 +1230,6 @@ div.linkdiv div.desc {
 div.linkdiv {
   margin: 0;
   padding: 0.5em;
-  -moz-border-radius: 6px;
   border: solid 1px </xsl:text>
     <xsl:value-of select="$color.background"/><xsl:text>;
 }
@@ -1275,10 +1270,6 @@ li.tree { margin: 0; padding: 0; }
 li.tree div { margin: 0; padding: 0; }
 ul.tree ul.tree {
   margin-</xsl:text><xsl:value-of select="$left"/><xsl:text>: 1.44em;
-  -webkit-margin-start: 1.44em;
-  -webkit-margin-end: 0;
-  -moz-margin-start: 1.44em;
-  -moz-margin-end: 0;
 }
 div.tree-lines ul.tree { margin-left: 0; }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]