Skip to content
Snippets Groups Projects
Commit 0b503b93 authored by Goik Martin's avatar Goik Martin
Browse files

To be included in next xmlmind-8.x release.

parent 729e055b
No related branches found
No related tags found
No related merge requests found
/*
* Copyright (c) 2017 XMLmind Software. All rights reserved.
*
* This file is part of the XMLmind XML Editor project.
* For conditions of distribution and use, see the accompanying legal.txt file.
*
* Block styles for elements other than those found in Simplified DocBook.
*/
/* =====================================
Book structure
===================================== */
qandaset,
set {
display: block;
collapsible: yes;
not-collapsible-head: 1; /* title or info */
}
set > title {
font-size: 2.5em;
margin: 0.25ex 0;
border-width: 4px;
border-style: solid;
border-color: transparent transparent #004080 transparent;
}
@property-value collapserex() collapser(show-level-menu, yes);
qandaset > title:first-child:before,
set > title:first-child:before {
content: collapserex() " ";
}
book {
display: block;
collapsible: yes;
not-collapsible-head: 1;
}
book > title {
font-size: 2.5em;
margin: 0.25ex 0;
border-width: 3px;
border-style: solid;
border-color: transparent transparent #004080 transparent;
}
book > title:first-child:before {
content: collapserex() " ";
}
dedication,
colophon {
display: block;
/* content of dedication has a margin */
}
part,
reference {
display: block;
collapsible: yes;
not-collapsible-head: 1;
}
part > title,
reference > title {
font-size: 2em;
margin: 0.5ex 0;
border-width: 2px;
border-style: solid;
border-color: transparent transparent #004080 transparent;
}
part > title:first-child:before {
content: collapserex() " Part " simple-counter(n-, upper-roman) ": ";
}
reference > title:first-child:before {
content: collapserex() " ";
}
partintro {
display: block;
/* content of partintro has a margin */
}
chapter,
preface {
display: block;
collapsible: yes;
not-collapsible-head: 1;
}
chapter > title,
preface > title {
font-size: 2em;
margin: 0.5ex 0;
border-width: 1px;
border-style: solid;
border-color: transparent transparent #004080 transparent;
}
chapter > title:first-child:before {
content: collapserex() " Chapter " simple-counter(n-, decimal) ": ";
}
preface > title:first-child:before {
content: collapserex() " ";
}
/* -------------------------------------
TOC
------------------------------------- */
toc {
display: block;
/* content of toc has a margin */
}
tocchap,
tocpart {
display: block;
margin: 1.33ex 0;
}
tocfront,
tocback,
tocentry {
display: block;
/* no vertical margins to make it more compact */
}
toclevel1,
toclevel2,
toclevel3,
toclevel4,
toclevel5 {
display: block;
/* no vertical margins to make it more compact */
}
toclevel2,
toclevel3,
toclevel4,
toclevel5 {
margin-left: 4ex;
}
/* -------------------------------------
LOT
------------------------------------- */
lot {
display: block;
/* content of lot has a margin */
}
lotentry {
display: block;
/* no vertical margins to make it more compact */
}
/* -------------------------------------
Glossary
------------------------------------- */
glossary,
glossdiv {
display: block;
/* content of glossary has a margin */
}
glosslist {
display: block;
margin-left: 2ex;
margin-top: 1.33ex;
margin-bottom: 1.33ex;
}
glossentry {
display: block;
/* no vertical margins to make it more compact */
}
glossterm {
display: inline-block;
padding: 1;
border: 1 dotted gray;
}
glossterm[linkend] {
border-color: navy;
}
glossentry > glossterm {
display: inline;
font-weight: bold;
}
glossentry > acronym,
glossentry > abbrev,
glossentry > indexterm,
glossentry > revhistory {
display: block;
margin-left: 4ex;
margin-top: 0;
margin-bottom: 1.33ex;
}
glossdef,
glosssee {
display: block;
margin-left: 4ex;
margin-bottom: 1.33ex;
}
glossdef > *:first-child {
margin-top: 0;
margin-bottom: 0;
}
glossseealso {
display: block;
margin: 1.33ex 0;
}
glosssee:before,
glossseealso:before {
display: inline;
font-size: small;
color: #004080;
}
glosssee:before {
content: "See ";
}
glossseealso:before {
content: "See also ";
}
/* -------------------------------------
Index
------------------------------------- */
index,
toc,
setindex,
indexdiv {
display: block;
/* content of index has a margin */
}
index:empty,
toc:empty {
font-weight: bold;
color: gray;
}
index:empty {
content: "Index";
}
toc:empty {
content: "Contents";
}
indexentry {
display: block;
/* no vertical margins to make it more compact */
}
primaryie,
secondaryie,
tertiaryie,
seeie,
seealsoie {
display: block;
/* no vertical margins to make it more compact */
}
secondaryie {
margin-left: 2ex;
}
tertiaryie {
margin-left: 4ex;
}
seeie,
seealsoie {
margin-left: 6ex;
}
seeie:before,
seealsoie:before {
display: inline;
font-size: small;
color: #004080;
}
seeie:before {
content: "See ";
}
seealsoie:before {
content: "See also ";
}
/* =====================================
Paragraphs
===================================== */
ackno {
display: block;
margin: 1.33ex 0;
}
address {
display: block;
white-space: pre;
margin: 1.33ex 0;
}
street,
pob,
postcode,
city,
state,
country,
phone,
fax,
otheraddr {
display: inline;
}
formalpara {
display: block;
/* content of formalpara has a margin */
}
/* =====================================
Lists
===================================== */
procedure {
display: block;
margin-left: 2ex; /* all lists are slightly indented */
margin-top: 1.33ex;
margin-bottom: 1.33ex;
}
stepalternatives,
substeps {
display: block;
}
stepalternatives > *:first-child,
substeps > *:first-child {
margin-top: 0;
margin-bottom: 0;
}
step {
display: block;
margin-left: 6ex;
}
step > *:first-child {
margin-top: 0;
margin-bottom: 0;
}
step:before {
display: marker;
content: simple-counter(n, decimal) ".";
font-weight: bold;
color: #004080;
}
step step:before {
content: simple-counter(n, lower-alpha) ".";
}
step step step:before {
content: simple-counter(n, decimal) ".";
}
step step step step:before {
content: simple-counter(n, lower-alpha) ".";
}
step step step step step:before {
content: simple-counter(n, decimal) ".";
}
segmentedlist {
display: block;
margin-left: 2ex;
margin-top: 1.33ex;
margin-bottom: 1.33ex;
}
segmentedlist > title {
margin-top: 0;
}
segtitle {
display: inline;
font-weight: bold;
color: #004080;
}
seglistitem {
display: block;
margin: 1.33ex 0;
}
seg {
display: inline;
}
segtitle:before,
seg:before {
content: " ";
}
segtitle:first-child:before,
title + segtitle:before,
seg:first-child:before {
content: "";
}
simplelist { /* also works for type=vert */
display: block;
margin-left: 2ex;
margin-top: 1.33ex;
margin-bottom: 1.33ex;
}
member {
display: block;
}
simplelist[type=inline] > member,
simplelist[type=horiz] > member {
display: inline;
}
simplelist[type=inline] > member:before {
content: ", ";
color: gray;
}
simplelist[type=horiz] > member:before {
content: " ";
}
simplelist[type=inline] > member:first-child:before,
simplelist[type=horiz] > member:first-child:before {
content: "";
}
/* =====================================
Figures
===================================== */
graphic {
display: block;
margin: 1.33ex auto;
}
inlinegraphic {
display: inline;
}
/*
* Replaced content of graphic and inlinegraphic
* is defined in image.imp.
*/
equation,
informalequation {
display: block;
margin: 1.33ex auto;
}
equation > title {
font-style: italic;
font-weight: normal;
text-align: center;
margin: 0; /* content of equation generally already has a margin */
}
mathphrase,
alt {
display: block;
margin: 1.33ex 0;
}
mathphrase {
white-space: pre;
font-family: monospace;
}
alt {
font-size: small;
background-color: #F0F0FF;
}
inlineequation {
display: inline;
}
inlineequation > mathphrase,
inlineequation > alt,
inlineequation > graphic { /* inlineequation > graphic is a DTD bug */
display: inline;
}
screenshot {
display: block;
/* content of screenshot has a margin */
}
screeninfo {
display: block;
margin: 1.33ex 0;
font-size: small;
background-color: #F0F0FF;
text-align: center;
}
/* -------------------------------------
Callouts
------------------------------------- */
mediaobjectco {
display: block;
/* content of mediaobjectco has a margin */
}
graphicco,
imageobjectco,
programlistingco,
screenco {
display: block;
/* content of graphicco has a margin */
}
areaspec,
areaset,
area {
display: tree;
collapsed: yes;
}
co {
display: inline;
content: icon(left-half-disc, 0) simple-counter(n) icon(right-half-disc,0);
color: #004080;
}
coref[linkend$="-1-co"]{
display: inline;
content: icon(left-half-disc, 0) "1" icon(right-half-disc, 0);
color: #004080;
}
coref[linkend$="-2-co"]{
display: inline;
content: icon(left-half-disc, 0) "2" icon(right-half-disc, 0);
color: #004080;
}
coref[linkend$="-3-co"]{
display: inline;
content: icon(left-half-disc, 0) "3" icon(right-half-disc, 0);
color: #004080;
}
coref[linkend$="-4-co"]{
display: inline;
content: icon(left-half-disc, 0) "4" icon(right-half-disc, 0);
color: #004080;
}
coref[linkend$="-5-co"]{
display: inline;
content: icon(left-half-disc, 0) "5" icon(right-half-disc, 0);
color: #004080;
}
coref[linkend$="-6-co"]{
display: inline;
content: icon(left-half-disc, 0) "6" icon(right-half-disc, 0);
color: #004080;
}
coref[linkend$="-7-co"]{
display: inline;
content: icon(left-half-disc, 0) "7" icon(right-half-disc, 0);
color: #004080;
}
coref[linkend$="-8-co"]{
display: inline;
content: icon(left-half-disc, 0) "8" icon(right-half-disc, 0);
color: #004080;
}
coref[linkend$="-9-co"]{
display: inline;
content: icon(left-half-disc, 0) "9" icon(right-half-disc, 0);
color: #004080;
}
coref[linkend$="-10-co"]{
display: inline;
content: icon(left-half-disc, 0) "10" icon(right-half-disc, 0);
color: #004080;
}
coref[linkend$="-11-co"]{
display: inline;
content: icon(left-half-disc, 0) "11 " icon(right-half-disc, 0);
color: #004080;
}
coref[linkend$="-12-co"]{
display: inline;
content: icon(left-half-disc, 0) "12" icon(right-half-disc, 0);
color: #004080;
}
coref {
display: inline;
content: icon(left-half-disc, 0) attr(linkend) icon(right-half-disc, 0);
color: #004080;
}
calloutlist {
display: block;
margin-left: 2ex;
margin-top: 1.33ex;
margin-bottom: 1.33ex;
}
callout {
display: block;
margin-left: 6ex;
margin-top: 1.33ex;
margin-bottom: 1.33ex;
}
callout > *:first-child {
margin-top: 0;
margin-bottom: 0;
}
calloutlist > callout:before {
display: marker;
content: icon(left-half-disc, 0) simple-counter(n) icon(right-half-disc,0);
color: #004080;
}
/* =====================================
Divisions
===================================== */
highlights {
display: block;
margin-bottom: 1.33ex;
background-color: #FFF0FF;
border: thin solid #FFE0FF;
padding: 2px;
}
highlights:before {
display: block;
content: element-label();
font-weight: bold;
color: #E0A0E0;
margin-top: 1.33ex;
}
/* =====================================
Special sections
===================================== */
/* -------------------------------------
Task
------------------------------------- */
task {
display: block;
/* content of task has a margin */
}
tasksummary,
taskprerequisites,
taskrelated,
task > procedure {
display: block;
margin-left: 2ex;
/* content of taskxxx has a margin */
margin-top: 0;
margin-bottom: 0;
}
/* -------------------------------------
Question-and-answer set
------------------------------------- */
qandadiv {
display: block;
/* content of qandaset has a margin */
}
qandaentry {
display: block;
margin: 1.33ex 0;
}
question,
answer {
display: block;
margin-left: 4ex;
/* content of question has a margin */
}
question > *:first-child,
answer > *:first-child {
margin-top: 0;
margin-bottom: 0;
}
question:before,
answer:before {
display: marker;
color: #004080;
font-weight: bold;
}
question:before {
content: "Q:";
}
answer:before {
content: "A:";
}
label {
display: block;
margin: 1.33ex 0;
color: #004080;
font-weight: bold;
}
/* -------------------------------------
Set of messages
------------------------------------- */
msgset {
display: block;
/* content of msgset has a margin */
}
msgentry,
simplemsgentry {
display: block;
margin: 1.33ex 0;
border: thin solid gray;
padding: 2px;
}
msg,
msgmain,
msgsub,
msgrel,
msgtext,
msgexplan,
msginfo {
display: block;
margin-left: 10ex;
/* content of msg has a margin */
}
msg > *:first-child,
msgmain > *:first-child,
msgsub > *:first-child,
msgrel > *:first-child,
msgtext > *:first-child,
msgexplan > *:first-child,
msginfo > *:first-child {
margin-top: 0;
margin-bottom: 0;
}
msg:before,
msgmain:before,
msgsub:before,
msgrel:before,
simplemsgentry > msgtext:before,
msgexplan:before,
msginfo:before {
display: marker;
content: element-label();
font-size: small;
color: #004080;
}
msglevel,
msgorig,
msgaud {
display: inline;
}
msglevel:before,
msgorig:before,
msgaud:before {
content: icon(left-half-disc, 0) element-local-name() " ";
font-size: small;
color: gray;
}
msglevel:after,
msgorig:after,
msgaud:after {
content: icon(right-half-disc, 0);
color: gray;
}
/* -------------------------------------
Bibliography
(complements block2.imp)
------------------------------------- */
bibliocoverage,
bibliorelation,
bibliosource {
display: inline;
}
biblioid,
isbn,
issn,
pubsnumber {
display: inline;
}
citebiblioid {
display: inline;
}
biblioref {
content: attr(linkend) icon(right-link, 0);
vertical-align: middle; /* for the icon */
color: navy;
}
/* -------------------------------------
Meta-information
(complements block2.imp)
------------------------------------- */
artpagenums,
pagenums,
seriesvolnums,
invpartnumber {
display: inline;
}
itermset {
/* Could be block but inline is safer when used in strange places
and when used in meta-info, display is forced to be block. */
display: inline;
}
collab {
display: block; /* can contain affiliation */
margin: 1.33ex 0;
}
collabname {
display: inline;
}
confgroup {
display: block; /* can contain address */
margin: 1.33ex 0;
}
confdates,
conftitle,
confnum,
confsponsor {
display: inline;
}
confdates:after,
conftitle:after,
confnum:after,
confsponsor:after {
content: " ";
}
contractnum,
contractsponsor {
display: inline;
}
publisher {
display: block; /* can contain address */
margin: 1.33ex 0;
}
printhistory {
display: block;
/* content of printhistory has a margin */
}
/* =====================================
Other elements
===================================== */
bridgehead {
display: block;
font-weight: bold;
color: #004080;
margin: 1.33ex 0;
}
bridgehead[renderas=sect1] {
font-size: 1.5em;
margin: .83ex 0;
}
bridgehead[renderas=sect2] {
font-size: 1.3em;
margin: 1ex 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment