Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Hiesserich2013-10-11 13:19:50 -0400
committerCarsten Hiesserich2013-10-11 13:21:01 -0400
commite5707085328c1794f5e57f1ae2d47f897a00c5bb (patch)
treed1c548390dd453ab219648c7f5ef5d4e59a5d40c /org.eclipse.vex.docbook
parent1b3bd9303e4b00ed989d187ff0ffa9e5e8f01652 (diff)
downloadorg.eclipse.mylyn.docs.vex-e5707085328c1794f5e57f1ae2d47f897a00c5bb.tar.gz
org.eclipse.mylyn.docs.vex-e5707085328c1794f5e57f1ae2d47f897a00c5bb.tar.xz
org.eclipse.mylyn.docs.vex-e5707085328c1794f5e57f1ae2d47f897a00c5bb.zip
fix docbook inline elements in stylesheet
After the default display is changed to 'block', many Docbook inline elements where displayed incorrect. Change-Id: Id6da1b67ffbbe82cfdd3ad7249324b2e6d274eba Signed-off-by: Carsten Hiesserich <carsten.hie@gmail.com>
Diffstat (limited to 'org.eclipse.vex.docbook')
-rw-r--r--org.eclipse.vex.docbook/styles/docbook-plain.css439
1 files changed, 433 insertions, 6 deletions
diff --git a/org.eclipse.vex.docbook/styles/docbook-plain.css b/org.eclipse.vex.docbook/styles/docbook-plain.css
index c86657d4..248a3fda 100644
--- a/org.eclipse.vex.docbook/styles/docbook-plain.css
+++ b/org.eclipse.vex.docbook/styles/docbook-plain.css
@@ -51,7 +51,7 @@ arg {
display: inline;
}
-article,book,chapter {
+article,book,chapter,colophon {
font-family: "Times New Roman", serif;
font-size: 16px;
display: block;
@@ -303,7 +303,21 @@ code {
}
col {
+ display: inline;
content: 'col';
+ font-size: smaller;
+ background-color: #B0B0B0;
+}
+
+colgroup {
+ display: inline;
+ content: 'colgroup';
+ font-size: smaller;
+ background-color: #B0B0B0;
+}
+
+collab {
+ display: block;
}
colspec {
@@ -324,14 +338,24 @@ computeroutput {
font: smaller "Courier New", monospace;
}
-copyright {
+constant {
display: inline;
+ font-family: "Courier New", monospace;
+}
+
+copyright {
+ display: block;
}
copyright:before {
+ display: inline;
content: 'Copyright (c) ';
}
+coref {
+ display: inline;
+}
+
corpauthor {
display: block;
}
@@ -341,12 +365,17 @@ corpauthor:before {
font-weight: bold;
}
+database {
+ display: inline;
+}
+
date {
display: inline;
}
bookinfo>date:before {
content: 'Date: ';
+ display: inline;
font-weight: bold;
}
@@ -368,6 +397,11 @@ emphasis {
font-style: italic;
}
+emphasis[role="bold"] {
+ display: inline;
+ font-weight: bold;
+}
+
entry {
display: table-cell;
border: thin solid black;
@@ -377,12 +411,32 @@ entrytbl {
display: table;
}
+envar {
+ display: inline;
+}
+
epigraph {
font-style: italic;
display: block;
margin-left: 0.5in;
}
+errorcode {
+ display: inline;
+}
+
+errorname {
+ display: inline;
+}
+
+errortext {
+ display: inline;
+}
+
+errortype {
+ display: inline;
+}
+
example {
display: block;
}
@@ -395,6 +449,11 @@ example title {
example title:before {
content: 'Example: ';
+ display: inline;
+}
+
+exceptionname {
+ display: inline;
}
figure {
@@ -409,6 +468,7 @@ figure title {
figure title:before {
content: 'Figure: ';
+ display: inline;
}
filename {
@@ -420,10 +480,55 @@ firstname {
display: inline;
}
+firstterm {
+ display: inline;
+ font-style: italic;
+}
+
footnote {
display: inline;
}
+foreignphrase {
+ display: inline;
+ font-style: italic;
+}
+
+formalpara {
+ display: block;
+}
+
+formalpara > title {
+ display: inline;
+ font-weight: bold;
+}
+
+formalpara > para {
+ display: inline;
+}
+
+formalpara > title:after {
+ display: inline;
+ content: ' ';
+}
+
+funcdef {
+ display: inline;
+}
+
+funcparams {
+ display: inline;
+}
+
+funcsynopsisinfo {
+ display: block;
+ white-space: pre;
+}
+
+function {
+ display: inline;
+}
+
glossary {
display: block;
}
@@ -478,10 +583,46 @@ graphic {
background-image: attr(fileref);
}
+group {
+ display: inline;
+}
+
+guibutton {
+ display: inline;
+}
+
+guiicon {
+ display: inline;
+}
+
+guilabel {
+ display: inline;
+}
+
+guimenu {
+ display: inline;
+}
+
+guimenuitem {
+ display: inline;
+}
+
+guisubmenu {
+ display: inline;
+}
+
+hardware {
+ display: inline;
+}
+
holder {
display: inline;
}
+holder + holder:before {
+ content: ', ';
+}
+
honorific {
display: inline;
}
@@ -509,6 +650,10 @@ important:before {
color: green;
}
+index {
+ display: block;
+}
+
informalexample {
display: block;
}
@@ -517,6 +662,14 @@ informaltable {
display: table;
}
+initializer {
+ display: inline;
+}
+
+inlineequation {
+ display: inline;
+}
+
inlinegraphic {
display: inline;
background-image: attr(fileref);
@@ -526,6 +679,10 @@ inlinemediaobject {
display: inline;
}
+interfacename {
+ display: inline;
+}
+
isbn {
display: inline;
}
@@ -562,6 +719,24 @@ itermset:before {
font-weight: bold;
}
+keycap {
+ display: inline;
+ font-weight: bold;
+}
+
+keycode {
+ display: inline;
+ font-family: "Courier New", monospace;
+}
+
+keycombo {
+ display: inline;
+}
+
+keysym {
+ display: inline;
+}
+
keyword {
display: inline;
}
@@ -629,6 +804,15 @@ manvolnum:after {
content: ')';
}
+markup {
+ display: inline;
+ white-space: pre;
+}
+
+mathphrase {
+ display: inline;
+}
+
mediaobject {
display: inline;
}
@@ -637,6 +821,37 @@ member {
display: inline;
}
+member + member:before {
+ content: ', ';
+}
+
+menuchoice {
+ display: inline;
+}
+
+methodname {
+ display: inline;
+}
+
+methodparam {
+ display: inline;
+}
+
+modifier {
+ display: inline;
+}
+
+/*
+TODO add support for namespaces in XML.
+modifier[xml:space="preserve"] {
+ white-spave: pre;
+}
+*/
+
+mousebutton {
+ display: inline;
+}
+
note {
border-color: blue;
color: blue;
@@ -647,6 +862,22 @@ note:before {
color: blue;
}
+olink {
+ display: inline;
+}
+
+ooclass {
+ display: inline;
+}
+
+ooexception {
+ display: inline;
+}
+
+oointerface {
+ display: inline;
+}
+
objectinfo {
display: inline;
}
@@ -655,6 +886,20 @@ option {
display: inline;
}
+optional {
+ display: inline;
+}
+
+optional:before {
+ display: inline;
+ content: '[';
+}
+
+optional:after {
+ display: inline;
+ content: ']';
+}
+
orderedlist {
display: block;
list-style-type: decimal;
@@ -681,6 +926,10 @@ othername {
display: inline;
}
+package {
+ display: inline;
+}
+
pagenums {
display: inline;
}
@@ -691,6 +940,14 @@ para {
margin-top: 1em;
}
+paramdef {
+ display: inline;
+}
+
+parameter {
+ display: inline;
+}
+
part {
display: block;
}
@@ -715,11 +972,37 @@ preface {
display: block;
}
-printhistory {
+primary {
display: inline;
+ font-size: smaller;
+ background-color: #B0B0B0;
+}
+
+printhistory {
+ display: block;
}
procedure {
+ display: block;
+}
+
+productname {
+ display: inline;
+}
+productname[class="registered"]:after {
+ display: inline;
+ content: '';
+}
+productname[class="trade"]:after {
+ display: inline;
+ content: '';
+}
+productname[class="copyright"]:before {
+ display: inline;
+ content: '';
+}
+
+productnumber {
display: inline;
}
@@ -746,6 +1029,10 @@ prompt {
display: inline;
}
+property {
+ display: inline;
+}
+
pubdate {
display: block;
}
@@ -784,6 +1071,14 @@ answer {
quote {
display: inline;
}
+quote:before {
+ display: inline;
+ content: '"';
+}
+quote:after {
+ display: inline;
+ content: '"';
+}
releaseinfo {
display: block;
@@ -812,6 +1107,10 @@ replaceable {
font-weight: normal;
}
+returnvalue {
+ display: inline;
+}
+
revhistory {
background-color: #669;
border-spacing: 1px;
@@ -874,6 +1173,38 @@ screenshot {
white-space: pre;
}
+secondary {
+ display: inline;
+ font-size: smaller;
+ background-color: #B0B0B0;
+}
+
+see {
+ display: inline;
+ font-size: smaller;
+ background-color: #B0B0B0;
+}
+
+seealso {
+ display: inline;
+ font-size: smaller;
+ background-color: #B0B0B0;
+}
+
+seealsoie {
+ display: block;
+}
+seealsoie:before {
+ content: 'See also: ';
+}
+
+seeie {
+ display: block;
+}
+seeie:before {
+ content: 'See: ';
+}
+
section,sect1,sect2,sect3,sect4,sect5 {
display: block;
margin-left: 18px;
@@ -883,19 +1214,47 @@ sectioninfo {
display: block;
}
+seriesvolnums {
+ display: inline;
+}
+
+set {
+ display: block;
+}
+
+shortcut {
+ display: inline;
+}
+
sidebar {
display: block;
+ border: 1px solid black;
+}
+
+simpara {
+ display: block;
}
simplelist {
display: inline;
}
+spanspec {
+ display: inline;
+ font-size: smaller;
+ background-color: #B0B0B0;
+}
+
state {
display: inline;
}
step {
+ display: list-item;
+ list-style-type: decimal;
+}
+
+stepalternatives {
display: inline;
}
@@ -904,7 +1263,8 @@ street {
}
substeps {
- display: inline;
+ display: list-item;
+ list-style-type: lower-alpha;
}
subtitle {
@@ -919,10 +1279,16 @@ surname {
}
subscript {
- display: inline;
+ display: inline;
+ font-size: small;
}
superscript {
+ display: inline;
+ font-size: small;
+}
+
+symbolt {
display: inline;
}
@@ -934,6 +1300,17 @@ synopsis {
systemitem {
display: inline;
+ font-family: "Courier New", monospaced;
+}
+
+tag {
+ display: inline;
+}
+tag:before {
+ content: '<';
+}
+tag:after {
+ content: '>';
}
table {
@@ -975,6 +1352,23 @@ th {
font-weight: bold;
}
+termdef {
+ display: inline;
+}
+
+tertiary {
+ display: inline;
+ font-size: smaller;
+ background-color: #B0B0B0;
+}
+
+textdata {
+ /* TODO display referenced text */
+ display: inline;
+ font-size: smaller;
+ background-color: #B0B0B0;
+}
+
tip {
border-color: silver;
color: silver;
@@ -989,6 +1383,10 @@ title {
display: block;
}
+token {
+ display: inline;
+}
+
tr {
display: table-row;
}
@@ -1087,16 +1485,30 @@ trademark {
display: inline;
}
+type {
+ display: inline;
+}
+
ulink {
border-bottom: 1px solid blue;
color: blue;
display: inline;
}
+uri {
+ display: inline;
+ font-style: italic;
+}
+
userinput {
display: inline;
}
+varargs {
+ display: inline;
+ content: '(...)';
+}
+
variablelist {
display: block;
margin-left: 1em;
@@ -1114,14 +1526,25 @@ varlistentry listitem {
margin-left: 3em;
}
-videodata {
+varname {
display: inline;
}
+videodata {
+ display: block;
+ content: 'videodata';
+}
+
videoobject {
display: inline;
}
+void {
+ display: inline;
+ font-family: "Courier New", monospaced;
+ content: 'void';
+}
+
volumenum {
display: inline;
}
@@ -1160,3 +1583,7 @@ xref:before {
year {
display: inline;
}
+
+year + year:before {
+ content: ', ';
+}

Back to the top