From 2585ec5bc1fd6cf2f898fc52fcdfe2eee630f3e8 Mon Sep 17 00:00:00 2001 From: Jirka Kosek Date: Tue, 16 May 2006 20:23:58 +0000 Subject: [PATCH] Improved display of programlistings (language attribute is shown as a label) --- docbook/relaxng/docbook/howto/howto.css | 18 +++++ .../relaxng/docbook/howto/stylesheets/fo.xsl | 22 +++++- .../docbook/howto/stylesheets/html.xsl | 74 ++++++++++++++++++- 3 files changed, 112 insertions(+), 2 deletions(-) diff --git a/docbook/relaxng/docbook/howto/howto.css b/docbook/relaxng/docbook/howto/howto.css index 902d03c09..06311c511 100644 --- a/docbook/relaxng/docbook/howto/howto.css +++ b/docbook/relaxng/docbook/howto/howto.css @@ -36,3 +36,21 @@ dl { margin-left: 3em; .screen, .programlisting { background-color: silver; padding: 4px; } .menuchoice, .guimenu, .guisubmenu, .guimenuitem { font-weight: bold; } .guibutton { background-color: silver; padding: 2px; } + +/* programlisting types */ +.programlisting, +.programlistingco, +.screen { padding-left: 14pt; } + +.rolelabel { + position: absolute; + margin-left: -14pt; + background-color: #606060; + color: white; + line-height: 1; + font-family: sans-serif; + font-weight: bold; + text-align: center; + padding: 1px; + font-size: smaller; + text-transform: uppercase } diff --git a/docbook/relaxng/docbook/howto/stylesheets/fo.xsl b/docbook/relaxng/docbook/howto/stylesheets/fo.xsl index 43761b397..d45beb2ca 100644 --- a/docbook/relaxng/docbook/howto/stylesheets/fo.xsl +++ b/docbook/relaxng/docbook/howto/stylesheets/fo.xsl @@ -3,7 +3,9 @@ xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.0"> - + + +final @@ -128,4 +130,22 @@ + + + + + + 1.5em + + + + + + + + + + + diff --git a/docbook/relaxng/docbook/howto/stylesheets/html.xsl b/docbook/relaxng/docbook/howto/stylesheets/html.xsl index 92ca454fa..3ea9edfc5 100644 --- a/docbook/relaxng/docbook/howto/stylesheets/html.xsl +++ b/docbook/relaxng/docbook/howto/stylesheets/html.xsl @@ -2,7 +2,9 @@ - + + +final @@ -157,4 +159,74 @@ + + + + + + + + + + + + The shade.verbatim parameter is deprecated. + Use CSS instead, + + + for example: pre. + + { background-color: #E0E0E0; } + + + + + + + + +
+        
+	
+	  
+	
+      
+
+ +
+        
+	
+      
+
+
+
+ + + + + + + + + + + + + + + + + + + +
+ + + +
+
+
-- 2.40.0