summaryrefslogtreecommitdiff
path: root/lib/grappelli/media/css/tables.css
blob: 836ff911dbc97dc6d741d80bd2c71c0e35b10d70 (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



/*  Basic Table Settings
------------------------------------------------------------------------------------------------------ */

table {
    margin: 0;
    padding: 0;
    border-spacing: none;
}
td, th {
    vertical-align: top;
    padding: 10px 10px 9px;
    font-size: 11px;
    line-height: 15px;
}
th {
    text-align: left;
    font-size: 12px;
    font-weight: bold;
}


/*  Thead ................................................... */

thead th,
tfoot td {
    padding: 5px 10px;
    font-size: 11px;
    line-height: 12px;
    font-weight: normal;
}
thead th.sorted {
    font-weight: bold;
}
thead th a {
    position: relative;
    display: block;
    margin: -5px -10px -4px;
    padding: 4px 10px 4px;
    height: 100% !important;
    white-space: nowrap;
}
thead th.ascending a:after {
    content: url('../img/icons/icon-th-ascending.png');
}
thead th.descending a:after {
    content: url('../img/icons/icon-th-descending.png');
}


/*  Tbody ................................................... */

thead th.optional {
    font-weight: normal !important;
}
tr.row-label td {
    margin-top: -1px;
    padding-top: 2px;
    padding-bottom: 0;
    font-size: 9px;
}



/*  Table XFull
------------------------------------------------------------------------------------------------------ */

table.xfull {
    width: 100%;
}



/*  Changelist Table
------------------------------------------------------------------------------------------------------ */

#changelist table {
    position: relative;
    margin: -1px !important;
}

#changelist form table tbody td, #changelist form table tbody th {
    padding-top: 10px;
    padding-bottom: 9px;
    line-height: 16px;
}



/*  Orderable Tables
------------------------------------------------------------------------------------------------------ */

table.orderable tbody tr td:hover {
    cursor: move;
}

table.orderable tbody tr td:first-child {
    padding-left: 14px;
    background-image: url(../img/admin/nav-bg-grabber.gif);
    background-repeat: repeat-y;
}

table.orderable-initalized .order-cell, body>tr>td.order-cell {
    display: none;
}



/*  Change History
------------------------------------------------------------------------------------------------------ */

table#change-history {
    width: 100%;
}
table#change-history tbody th {
    width: 150px;
}



/*  Documentation
------------------------------------------------------------------------------------------------------ */

.model-index table {
    width: 100%;
}
.model-index table th {
    padding: 7px 10px 8px;
}



/*  Other Classes
------------------------------------------------------------------------------------------------------ */

table .nowrap {
    white-space: nowrap;
}