Skip to content

Commit

Permalink
Updated Docbook template stylesheets.
Browse files Browse the repository at this point in the history
  • Loading branch information
amyreese committed Feb 27, 2009
1 parent b70d862 commit 347b869
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 5 deletions.
16 changes: 14 additions & 2 deletions docbook/template/stylesheet.css
@@ -1,6 +1,13 @@
code {
code.CLASSNAME {
}

code.FUNCTION {
background: #EAEAEF;
padding: 2px;
padding: 1px;
}

code.LITERAL {
font-weight: bold;
}

pre.PROGRAMLISTING {
Expand All @@ -9,6 +16,11 @@ pre.PROGRAMLISTING {
padding: 5px;
}

tt.COMMAND {
background: #EAEAEF;
padding: 1px;
}

tt.FILENAME {
color: #B00;
}
35 changes: 32 additions & 3 deletions docbook/template/stylesheet.dsl
Expand Up @@ -770,13 +770,41 @@
;(define %stylesheet-type%
;"text/css")

(define ($classname-seq$ #!optional (sosofo (process-children)))
;; fragments of computer code
(make element gi: "CODE"
attributes: (list
(list "CLASS" (gi)))
sosofo))

(define ($code-seq$ #!optional (sosofo (process-children)))
;; fragments of computer code
(make element gi: "CODE"
attributes: (list
(list "CLASS" (gi)))
sosofo))

(define ($command-seq$ #!optional (sosofo (process-children)))
;; fragments of computer code
(make element gi: "TT"
attributes: (list
(list "CLASS" (gi)))
sosofo))

(define ($function-seq$ #!optional (sosofo (process-children)))
;; fragments of computer code
(make element gi: "CODE"
attributes: (list
(list "CLASS" (gi)))
sosofo))

(define ($literal-seq$ #!optional (sosofo (process-children)))
;; fragments of computer code
(make element gi: "CODE"
attributes: (list
(list "CLASS" (gi)))
sosofo))

(define ($programlisting-seq$ #!optional (sosofo (process-children)))
;; fragments of computer code
(make element gi: "PRE"
Expand Down Expand Up @@ -872,10 +900,11 @@

;Define my own series of fonts for various elements
(element application ($mono-seq$))
(element classname ($classname-seq$))
(element code ($code-seq$))
(element command ($bold-seq$))
(element command ($command-seq$))
(element filename ($mono-seq$))
(element function ($mono-seq$))
(element function ($function-seq$))
(element guibutton ($bold-seq$))
(element guiicon ($bold-seq$))
(element guilabel ($bold-mono-seq$))
Expand All @@ -884,7 +913,7 @@
(element guisubmenu ($bold-seq$))
(element hardware ($bold-mono-seq$))
(element keycap ($bold-seq$))
(element literal ($mono-seq$))
(element literal ($literal-seq$))
(element parameter ($italic-mono-seq$))
(element prompt ($mono-seq$))
(element programlisting ($programlisting-seq$))
Expand Down

0 comments on commit 347b869

Please sign in to comment.