From 8858f6979c529db37a20e166a22d7950fdb0c35c Mon Sep 17 00:00:00 2001 From: Gabor Kovesdan Date: Tue, 25 Mar 2014 07:04:45 +0000 Subject: [PATCH] - Revert verbatim line numbering changes since they broke callouts and other inline markup PR: docs/187773 Submitted by: Allan Jude --- share/misc/docbook.css | 41 +++++---------------- share/xml/freebsd-xhtml-common.xsl | 59 ------------------------------ 2 files changed, 9 insertions(+), 91 deletions(-) diff --git a/share/misc/docbook.css b/share/misc/docbook.css index 7640353100..28db7b783e 100644 --- a/share/misc/docbook.css +++ b/share/misc/docbook.css @@ -275,46 +275,23 @@ html { text-decoration: underline; } -.screen { - white-space: pre-wrap; +pre.screen { + white-space: pre; + overflow: auto; font-family: monospace; padding: 1ex; background-color: #edc; - border-style: solid; - border-color: #EEB985; - border-width: 0 0 0 2.5em; - border-radius: 6px; - counter-reset: code; + border: 1px solid #ccc; } -.programlisting { - white-space: pre-wrap; +pre.programlisting { + white-space: pre; + overflow: auto; font-family: monospace; padding: 1ex; background-color: #eee; - border-style: solid; - border-color: #BABABA; - border-width: 0 0 0 2.5em; + border: 1px solid #ccc; border-radius: 6px; - counter-reset: code; -} - -span.verbatim { - counter-increment: code; - display: block; - padding: 0 0.5em 0 3.75em; - position: relative; - margin: 0 -0.3em 0 -3.85em; - overflow: hidden; -} - -span.verbatim:before { - width: 3em; - text-align: right; - content: counter(code); - position: absolute; - left: 0; - color: #404040; } @media screen { /* hide from IE3 */ @@ -408,7 +385,7 @@ span.verbatim:before { font-weight: bold; } -.screen strong { +pre.screen strong { font-weight: normal; } diff --git a/share/xml/freebsd-xhtml-common.xsl b/share/xml/freebsd-xhtml-common.xsl index c3d4b9101d..79888f82ef 100644 --- a/share/xml/freebsd-xhtml-common.xsl +++ b/share/xml/freebsd-xhtml-common.xsl @@ -7,7 +7,6 @@ version='1.0' xmlns:str="http://exslt.org/strings" xmlns:db="http://docbook.org/ns/docbook" - xmlns="http://www.w3.org/1999/xhtml" exclude-result-prefixes="db" extension-element-prefixes="str"> @@ -32,7 +31,6 @@ - @@ -294,61 +292,4 @@
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - div - pre - - - - - - - - - - - - - - - - -