summaryrefslogtreecommitdiff
path: root/doc/editor_configs/xmlmind/addon/config/scons/css/structure.css
blob: 95f4610a741d30cd107ae9db984a99b1105c88c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
/*
 * Copyright (c) 2005-2008 Pixware. 
 *
 * This file is part of the XMLmind XML Editor project.
 * For conditions of distribution and use, see the accompanying legal.txt file.
 *
 * Displays the structure (a little more than a TOC) of a DocBook document.
 * Titles inside *info (e.g. sectioninfo) elements are not displayed.
 */

*, 
*:comment,
*:processing-instruction {
    display: none;
}

title {
    display: block;
}

title > * {
    display: inline;
}

set,
book,
part,
reference,
refentry,
preface,
chapter,
article,
appendix,
section,
sect1,
sect2,
sect3,
sect4,
sect5 {
    display: block;
    margin-left: 9ex;
}

set:before,
book:before,
part:before,
reference:before,
refentry:before,
preface:before,
chapter:before,
article:before,
appendix:before,
section:before,
sect1:before,
sect2:before,
sect3:before,
sect4:before,
sect5:before {
    display: marker;
    marker-offset: fill;
    content: element-name();
    font-size: small;
    color: gray;
}

part > title:before { 
    content: simple-counter(n-, upper-roman) " "; 
}

chapter > title:before { 
    content: simple-counter(n-, decimal) " "; 
}

appendix > title:before { 
    content: simple-counter(n-, upper-alpha) " "; 
}

refentry {
    content: xpath("join(.//refname, ', ')");
    color: gray;
}

section > title:before,
sect1 > title:before {
    content: simple-counter(n-) " "; 
}

section section > title:before,
sect2 > title:before { 
    content: simple-counter(nn-) " "; 
}

section section section > title:before,
sect3 > title:before {
    content: simple-counter(nnn-) " "; 
}

section section section section > title:before,
sect4 > title:before { 
    content: simple-counter(nnnn-) " "; 
}

section section section section section > title:before,
sect5 > title:before { 
    content: simple-counter(nnnnn-) " "; 
}

section section section section * section > title:before { 
    content: ""; 
}

setinfo,
setindex,
bookinfo,
dedication,
toc,
lot,
glossary,
bibliography,
index,
colophon,
partinfo,
partintro,
referenceinfo,
prefaceinfo,
chapterinfo,
tocchap,
articleinfo,
appendixinfo,
sectioninfo,
sect1info,
sect2info,
sect3info,
sect4info,
sect5info {
    display: block; 
    content: element-name();
    font-size: small;
    color: gray;
}