summaryrefslogtreecommitdiff
path: root/doc/editor_configs/xmlmind/addon/config/scons/css/table.imp
blob: 0b444bba1c47ea9c2e17709eb065a420781c2a6c (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
/*
 * 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.
 *
 * Partial styles for DocBook tables. Requires an @extension.
 * DO NOT IMPORT THIS FILE: INSTEAD @import cals_table.imp OR 
 * @import html_cals_table.imp.
 */

table,
informaltable {
    display: block;
    margin: 1.33ex 0; 
}
          
table > title {
    display: block;
    font-style: italic; 
    font-weight: normal;
    text-align: center; 
    /* keep margin because tgroup has no margin */
}

colspec,
spanspec {
    display: table-column;
    collapsed: yes;
}

tgroup {
    display: table; 
    border-style: solid;
    border-width: 1;
}

thead,
tfoot {
    display: table-row-group;
    font-weight: bold; 
}
       
thead {
    background-color: #F0F0F0;
}

tfoot {
    background-color: #E0E0E0;
}
       
tbody {
    display: table-row-group;
    background-color: inherit; /*e.g. from read-only tgroup*/
}

row {
    display: table-row;
    background-color: inherit; /*e.g. from read-only tbody*/
}
          
entry {
    display: table-cell; 
    background-color: inherit; /*e.g. from read-only row*/
    border-style: solid;
    border-width: 1;
    padding: 2; 
}

entry > *:first-child {
    margin-top: 0; 
    margin-bottom: 0; 
}

entrytbl {
    display: subtable;
    background-color: inherit; /*e.g. from read-only row*/
    border-style: solid;
    border-width: 1;
}
          
@media print {
    colspec, 
    spanspec {
        display: none; 
    }
}