sort function for Last Contact columns
[plewww.git] / plekit / table / table.css
1 /* $Id$ */
2 table.plekit_table {
3     width: auto;
4     padding: 0;
5     margin: 0 auto 1.5em auto;
6     border-collapse:collapse;
7 /* this used to be hard-wired in the <table> tag, but looks useless now
8     cellpadding:0;
9     cellspacing:0;
10     border:0;    
11     */
12 }
13 table.plekit_table>thead>tr, table.plekit_table>tbody>tr {
14     border-left: 1px solid #C1DAD7; 
15 }    
16 /* remove border for search/pagesize area */
17 table.plekit_table>thead>tr.pagesize_area, table.plekit_table>thead>tr.search_area {
18     border-left: 0px;
19 }    
20 table.plekit_table fieldset {
21     border: 0px; margin: 0px; padding: 0px;
22 }    
23
24 th.plekit_table {
25     font: bold 10px/22px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
26     color: #4f6b72;
27     border-right: 1px solid #C1DAD7;
28     border-bottom: 1px solid #C1DAD7;
29     border-top: 1px solid #C1DAD7;
30     letter-spacing: 1px;
31     text-transform: uppercase;
32     text-align: left;
33     padding: 8px 12px 4px 12px;
34     background: #CAE8EA url(/plekit/icons/tablesort-header.jpg) no-repeat;
35     vertical-align:middle;
36 }
37 table.plekit_table>tbody>tr>td, table.plekit_table textarea, table.plekit_table input [type="text"] {
38     font: normal 11px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
39     border-right: 1px solid #C1DAD7;
40     border-bottom: 1px solid #C1DAD7;
41 }
42 table.plekit_table>tbody>tr>td {
43 /*    padding: 6px 12px 6px 12px; */
44     padding: 4px 8px 4px 8px;
45     color: #4f6b72;
46 }
47 table.plekit_table>tbody>tr>td a {
48     font-weight:normal;
49 }
50
51 th.sortable,
52 th.sortable-text,
53 th.sortable-date,
54 th.sortable-keep,
55 th.sortable-date-dmy,
56 th.sortable-numeric,
57 th.sortable-currency,
58 th.sortable-sortByTwelveHourTimestamp,
59 th.sortable-sortIPAddress,
60 th.sortable-sortEnglishLonghandDateFormat,
61 th.sortable-sortScientificNotation,
62 th.sortable-sortImage,
63 th.sortable-sortFileSize,
64 th.sortable-sortBandwidth,
65 th.sortable-sortLastContact,
66 th.sortable-sortAlphaNumeric,
67 th.sortable-sortEnglishDateTime {
68     cursor:pointer;
69     background: #CAE8EA url(/plekit/icons/tablesort-header-sortable.jpg) no-repeat;
70     padding: 8px 12px 4px 16px;
71 }
72 th.forwardSort {
73     background:#CAE8EA url(/plekit/icons/tablesort-header-down.jpg) no-repeat 0 0;
74 }
75 th.reverseSort {
76     background:#CAE8EA url(/plekit/icons/tablesort-header-up.jpg) no-repeat 0 0;
77 }
78 table thead th.forwardSort a,
79 table thead th.reverseSort a {
80     color:#000;
81     text-decoration:none;
82 }
83 /* rows with odd index */
84 tr.alt {
85     background: #F5FAFA;
86     color: #797268;
87 }
88
89 /* sort columns */
90 /* Poor old Internet Explorer 6 has a bug that means we can't use background images for the table rows
91    as it trys to download the image each and every time that it is used (which means a 1000 row table
92    will produce 1000 http requests for the image in question) */
93 tr[class="alt"]>td {
94     background: #F5FAFA url(/plekit/icons/tablesort-td-alt.jpg) no-repeat;
95 }
96 table.plekit_table>tbody>tr>td [class~="alt"] {
97     background: #edf3f3 url(/plekit/icons/tablesort-col-alt.jpg) no-repeat !important;
98 }
99 /* Poor old Internet Explorer won't see the next two rules either as it doesn't get :first-child */
100 table.bullets1>tbody>tr.alt>td:first-child {
101     background-color: #F5FAFA;
102     background-image: url(/plekit/icons/tablesort-bullet2.gif);
103     background-repeat: no-repeat;
104 }
105 table.bullets1>tbody>tr>td:first-child {
106     background-image: url(/plekit/icons/tablesort-bullet1.gif);
107     background-repeat: no-repeat;
108 }
109
110 /* table decorations */
111 td.search_area {
112     text-align:right;
113     padding-right: 30px;
114     padding-bottom: 5px;
115 }
116 td.pagesize_area {
117     text-align:right;
118     padding-right: 30px;
119     padding-bottom: 5px;
120 }
121 .pagesize_label, .pagesize_input {
122     font-style: oblique;
123     font-size: .5em;
124 }
125 .search_label{
126     font-weight:bold;
127 }
128 .reset {
129     border:1px;
130 }
131
132 /* Pagination list styles */
133 ul.fdtablePaginater {
134     display:table;
135     list-style:none;
136     padding:0;
137     margin:0 auto;
138     text-align:center;
139     height:1.5em;
140     width:auto;
141     margin-bottom:1em;
142 }
143 ul.fdtablePaginater li {
144     display:table-cell;
145     padding-right:4px;
146     color:#666;
147     list-style:none;
148     
149     -moz-user-select:none;
150     -khtml-user-select:none;
151 }
152 ul.fdtablePaginater li a.currentPage {
153     border-color:#a84444 !important;
154     color:#000;
155 }
156 ul.fdtablePaginater li a:active {
157     border-color:#222 !important;
158     color:#222;
159 }
160 ul.fdtablePaginater li a,
161 ul.fdtablePaginater li div {
162     display:block;
163     width:2em;
164     font-size:1em;
165     color:#666;
166     padding:0;
167     margin:0;
168     text-decoration:none;
169     outline:none;
170     border:1px solid #ccc;
171     font-family:georgia, serif;
172 }
173 ul.fdtablePaginater li div {
174     cursor:normal;
175     opacity:.5;
176     filter:alpha(opacity=50);
177 }
178 ul.fdtablePaginater li a span,
179 ul.fdtablePaginater li div span {
180     display:block;
181     line-height:2em;
182     border:1px solid #fff;
183     background:#fff url(/plekit/icons/tablesort-gradient.gif) repeat-x 0 -20px;
184 }
185 ul.fdtablePaginater li a {
186     cursor:pointer;
187 }
188 ul.fdtablePaginater li a:focus {
189     color:#333;
190     text-decoration:none;
191     border-color:#aaa;
192 }
193 .fdtablePaginaterWrap {
194     text-align:center;
195     clear:both;
196     text-decoration:none;
197 }
198 ul.fdtablePaginater li .next-page span,
199 ul.fdtablePaginater li .previous-page span,
200 ul.fdtablePaginater li .first-page span,
201 ul.fdtablePaginater li .last-page span {
202     font-weight:bold !important;
203 }
204 /* Keep the table columns an equal size during pagination */
205 td.sized1 {
206     width:16em;
207     text-align:left;
208 }
209 td.sized2 {
210     width:10em;
211     text-align:left;
212 }
213 td.sized3 {
214     width:7em;
215     text-align:left;
216 }
217 /*
218    tfoot td
219         {
220         text-align:right;
221         font-weight:bold;
222         text-transform:uppercase;
223         letter-spacing:1px;
224         }
225    */
226 #visibleTotal {
227     text-align:center;
228     letter-spacing:auto;
229 }
230 * html ul.fdtablePaginater li div span,
231 * html ul.fdtablePaginater li div span {
232     background:#eee;
233 }
234 tr.invisibleRow {
235     display:none;
236     visibility:hidden;
237 }
238 p.paginationText {
239     font-style:oblique;
240 }
241 p.table_note {
242     font-style:oblique;
243     font-size:0.6em;
244     font-family: georgia;
245     text-align: center;
246 }
247 span.table_note_title {
248     font-weight:bold;
249     font-size:1.5em;
250     font-family: georgia;
251     text-align: center;
252 }
253
254 span.bold {
255     font-weight:bold;
256 }
257
258 /* for IE */
259 ul.fdtablePaginater {display:inline-block;}
260 mul.fdtablePaginater {display:inline;}
261 ul.fdtablePaginater li {float:left;}
262 ul.fdtablePaginater {text-align:center;}
263 /*table.plekit_table { border-bottom:1px solid #C1DAD7; }*/
264
265 .search_input:focus ,.pagesize_input:focus {
266     background-color: #8cd;
267     outline-color: #696;
268 }