summaryrefslogtreecommitdiff
path: root/doc/editor_configs/xmlmind/addon/config/scons/css/collapsible.imp
blob: 443f9907ccdb3212ff654aee36933893437ad85b (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
/*
 * Copyright (c) 2003-2007 Pixware. 
 *
 * This file is part of the XMLmind XML Editor project.
 * For conditions of distribution and use, see the accompanying legal.txt file.
 *
 * Styles for making sections and blocks with titles collapsible. 
 */

set,
book,
part,
reference,
chapter,
preface,
article,
sect1,
sect2,
sect3,
sect4,
section,
appendix,
figure,
example,
table {
    collapsible: yes;
    not-collapsible-head: 1; /* title or metainfo */
}

figure {
    collapsed-content: url(icons/figure.png);
    collapsed-content-align: center;
}

example {
    collapsed-content: url(icons/para.png);
    collapsed-content-align: center;
}

table {
    collapsed-content: url(icons/table.png);
    collapsed-content-align: center;
}

set > title:first-child:before,
book > title:first-child:before,
reference > title:first-child:before,
preface > title:first-child:before,
article > title:first-child:before,
figure > title:before,
example > title:before,
table > title:before {
    content: collapser() " ";
}

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

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

sect1 > title:first-child:before { 
    content: collapser() " " simple-counter(n-) " "; 
}

sect2 > title:first-child:before { 
    content: collapser() " " simple-counter(nn-) " "; 
}

sect3 > title:first-child:before { 
    content: collapser() " " simple-counter(nnn-) " "; 
}

sect4 > title:first-child:before { 
    content: collapser() " " simple-counter(nnnn-) " "; 
}

section > title:first-child:before { 
    content: collapser() " " simple-counter(n-) " "; 
}

section section > title:first-child:before { 
    content: collapser() " " simple-counter(nn-) " "; 
}

section section section > title:first-child:before { 
    content: collapser() " " simple-counter(nnn-) " "; 
}

section section section section > title:first-child:before { 
    content: collapser() " " simple-counter(nnnn-) " "; 
}

section section section * section > title:first-child:before { 
    content: ""; 
}
      
appendix > title:first-child:before { 
    content: collapser() " Appendix " simple-counter(n-, upper-alpha) ": "; 
}

appendixinfo:first-child,
articleinfo:first-child,
bookinfo:first-child,
chapterinfo:first-child,
partinfo:first-child,
prefaceinfo:first-child,
referenceinfo:first-child,
sect1info:first-child,
sect2info:first-child,
sect3info:first-child,
sect4info:first-child,
sectioninfo:first-child,
setinfo:first-child {
    margin-left: 20px;
}

appendixinfo:first-child:before,
articleinfo:first-child:before,
bookinfo:first-child:before,
chapterinfo:first-child:before,
partinfo:first-child:before,
prefaceinfo:first-child:before,
referenceinfo:first-child:before,
sect1info:first-child:before,
sect2info:first-child:before,
sect3info:first-child:before,
sect4info:first-child:before,
sectioninfo:first-child:before,
setinfo:first-child:before {
    content: collapser();
    display: marker;
}