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
|
/*
* Copyright (c) 2005-2009 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 both HTML and CALS tables (DocBook 4.3+).
*/
@import "table.imp";
/*
* "black" is the color used to draw a border around the table and its cells
* based on values of attributes such as frame, rowsep and colsep.
*
* "rgb(238,238,224)" (a very light gray) is the color used to draw
* a border around each cell whether the cell actually has borders or not.
* Remove this parameter if this ``cell footprint'' disturbs you.
*
* For more information about table support for DocBook, see
* XMLmind XML Editor - Configuration and Deployment.
*/
@extension "com.xmlmind.xmleditext.docbook.TableSupport black rgb(238,238,224)";
/*
* Real DocBook tables (CALS) contain (graphic+|mediaobject+|tgroup+)
* not (tbody+|tr+).
*/
table:contains-element(tr),
table:contains-element(tbody),
informaltable:contains-element(tr),
informaltable:contains-element(tbody) {
display: table;
border-style: solid;
border-width: 1;
margin-top: 1.33ex;
margin-bottom: 1.33ex;
}
table:contains-element(tr) > caption,
table:contains-element(tbody) > caption,
informaltable:contains-element(tr) > caption,
informaltable:contains-element(tbody) > caption {
display: table-caption;
color: #004080;
font-style: italic;
font-weight: normal;
text-align: center;
margin: 2px 2ex 2px 2ex;
}
colgroup {
display: table-column-group;
collapsed: yes;
}
col {
display: table-column;
collapsed: yes;
}
/*
* thead, tbody, tfoot, already properly styled in table.imp.
*/
table:contains-element(tbody) > thead,
table:contains-element(tbody) > tfoot {
/*
* In CALS tables, header and footer rows are often presented
* in an alternate typographic style, such as boldface.
* There is no such processing expectation for HTML tables.
* Explicitly use th instead of td when boldface is needed.
*/
font-weight: normal;
}
tr {
display: table-row;
background-color: inherit; /*e.g. from read-only tbody*/
}
td,
th {
display: table-cell;
background-color: inherit; /*e.g. from read-only row*/
border-style: solid;
border-width: 1;
padding: 2;
}
th {
font-weight: bold;
}
@media print {
colgroup,
col {
display: none;
}
}
|