/*
 * Copyright (c) 2006-2013 Pixware SARL. 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.
 *
 * Styles which are specific to DocBook 5.0 and 5.1.
 */

@namespace "http://docbook.org/ns/docbook";
@namespace db5 "http://docbook.org/ns/docbook";
@namespace xlink "http://www.w3.org/1999/xlink";

@import url(xxe-config:common/css/object.imp);
@import url(docbook-config:css/docbook.css);
@import url(ebnf.imp);
@import url(math.imp);

/* Do not report an error if the "MathML support" add-on 
   has not been installed. */
@import url(---mathml-config:docbook5/mathml_support.imp);

acknowledgements {
    display: block;
    /* content of acknowledgments has a margin */
}

info  {
    display: block; 
    margin: 1.33ex 0;
    border: thin solid #C0F8F8;
    background-color: #E0F8F8;
    padding: 0.5em;
    border-radius: 0.5em;
}

info > * {
    display: block;
    text-align: left; /* Reset paragraph styles */
    font: normal normal 1em sans-serif;
    color: black;
    margin-left: 18ex;
    margin-right: 0;
    margin-top: 1.33ex;
    margin-bottom: 1.33ex;
}

info > *:first-child { /* nicer */
    margin-top: 0;
    margin-bottom: 0;
}

info > *:before {
    display: marker; 
    content: element-label();
    font: normal normal small sans-serif;
    color: #004080;
}

info > *:after {
    content: "";
}

info > title {
    font-size: 1.3em;
    font-weight: bold;
    color: #004080;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    margin-bottom: 1ex;
}

info > title:before {
    content: "";
}

cover {
    display: block;
    margin-top: 1.33ex;
    margin-bottom: 1.33ex;
}

person,
org {
    display: block; /* can contain address */
    margin-top: 1.33ex;
    margin-bottom: 1.33ex;
}

tocdiv {
    display: block;
    margin-left: 4ex;
}

xref[xlink|href] {
    content: icon(left-link) attr(xlink|href);
}

link[xlink|href][xlink|role="http://docbook.org/xlink/role/olink"]:after {
    content: icon(left-link) attr(xlink|href);
}

tag {
    font-family: monospace;
}

tag:before,
tag:after {
    color: gray;
}

tag[class=attvalue]:before {
    content: '"';
}
tag[class=attvalue]:after {
    content: '"';
}

tag[class=starttag]:before,
tag[class=emptytag]:before {
    content: "<";
}
tag[class=endtag]:before {
    content: "</";
}
tag[class=endtag]:after,
tag[class=starttag]:after {
    content: ">";
}
tag[class=emptytag]:after {
    content: "/>";
}

tag[class=pi]:before,
tag[class=xmlpi]:before {
    content: "<?";
}
tag[class=pi]:after,
tag[class=xmlpi]:after {
    content: "?>";
}

tag[class=comment]:before {
    content: "<!--";
}
tag[class=comment]:after {
    content: "-->";
}

tag[class=paramentity]:before {
    content: "%";
}
tag[class=genentity]:before {
    content: "&";
}
tag[class=numcharref]:before {
    content: "&#";
}
tag[class=paramentity]:after,
tag[class=genentity]:after,
tag[class=numcharref]:after {
    content: ";";
}

modifier {
    white-space: pre;
}

topic > info:first-child,
example > info:first-child,
figure > info:first-child,
table > info:first-child,
appendix > info:first-child,
article > info:first-child,
book > info:first-child,
chapter > info:first-child,
part > info:first-child,
preface > info:first-child,
reference > info:first-child,
section > info:first-child,
set > info:first-child {
    margin-left: 20px;
}

topic > info:first-child:before,
example > info:first-child:before,
figure > info:first-child:before,
table > info:first-child:before,
appendix > info:first-child:before,
article > info:first-child:before,
book > info:first-child:before,
chapter > info:first-child:before,
part > info:first-child:before,
preface > info:first-child:before,
reference > info:first-child:before,
section > info:first-child:before,
set > info:first-child:before {
    content: collapser();
    display: marker;
}

/*
 * topic
 *
 * A topic is not numbered. It has a distinctive title/info color and 
 * a distinctive collapser. Outside info, its title is underlined.
 */

topic {
    display: block;
    collapsible: yes;
    not-collapsible-head: 1; /* title or info */
}

topic > info {
    border-color: #F0D0FF;
    background-color: #F0E0FF;
}

topic > info:first-child:before,
topic > title:first-child:before {
    content: collapser(collapsed-icon, icon(pop-right), 
                       expanded-icon, icon(pop-down),
                       color, rgb(85,26,139)) " ";
}

topic > title,
topic > info > title {
    color: rgb(85,26,139);
    font-size: 1.5em; 
    margin: 0.83ex 0;
}

topic > title {
    border-width: 1px;
    border-style: solid;
    border-color: transparent transparent rgb(85,26,139) transparent;
}

/*
 * multimediaparam
 */

multimediaparam {
    display: block;
    property-group: object-properties(#F0F0F0);
}

multimediaparam:before {
    property-group: object-before-properties(#F0F0F0); 
}

multimediaparam::attribute {
    property-group: object-attribute-properties(); 
}
