display up & down sort arrow on bw limits
[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-sortAlphaNumeric,
66 th.sortable-sortEnglishDateTime {
67     cursor:pointer;
68     background: #CAE8EA url(/plekit/icons/tablesort-header-sortable.jpg) no-repeat;
69     padding: 8px 12px 4px 16px;
70 }
71 th.forwardSort {
72     background:#CAE8EA url(/plekit/icons/tablesort-header-down.jpg) no-repeat 0 0;
73 }
74 th.reverseSort {
75     background:#CAE8EA url(/plekit/icons/tablesort-header-up.jpg) no-repeat 0 0;
76 }
77 table thead th.forwardSort a,
78 table thead th.reverseSort a {
79     color:#000;
80     text-decoration:none;
81 }
82 /* rows with odd index */
83 tr.alt {
84     background: #F5FAFA;
85     color: #797268;
86 }
87
88 /* sort columns */
89 /* Poor old Internet Explorer 6 has a bug that means we can't use background images for the table rows
90    as it trys to download the image each and every time that it is used (which means a 1000 row table
91    will produce 1000 http requests for the image in question) */
92 tr[class="alt"]>td {
93     background: #F5FAFA url(/plekit/icons/tablesort-td-alt.jpg) no-repeat;
94 }
95 table.plekit_table>tbody>tr>td [class~="alt"] {
96     background: #edf3f3 url(/plekit/icons/tablesort-col-alt.jpg) no-repeat !important;
97 }
98 /* Poor old Internet Explorer won't see the next two rules either as it doesn't get :first-child */
99 table.bullets1>tbody>tr.alt>td:first-child {
100     background-color: #F5FAFA;
101     background-image: url(/plekit/icons/tablesort-bullet2.gif);
102     background-repeat: no-repeat;
103 }
104 table.bullets1>tbody>tr>td:first-child {
105     background-image: url(/plekit/icons/tablesort-bullet1.gif);
106     background-repeat: no-repeat;
107 }
108
109 /* table decorations */
110 td.search_area {
111     text-align:right;
112     padding-right: 30px;
113     padding-bottom: 5px;
114 }
115 td.pagesize_area {
116     text-align:right;
117     padding-right: 30px;
118     padding-bottom: 5px;
119 }
120 .pagesize_label, .pagesize_input {
121     font-style: oblique;
122     font-size: .5em;
123 }
124 .search_label{
125     font-weight:bold;
126 }
127 .reset {
128     border:1px;
129 }
130
131 /* Pagination list styles */
132 ul.fdtablePaginater {
133     display:table;
134     list-style:none;
135     padding:0;
136     margin:0 auto;
137     text-align:center;
138     height:1.5em;
139     width:auto;
140     margin-bottom:1em;
141 }
142 ul.fdtablePaginater li {
143     display:table-cell;
144     padding-right:4px;
145     color:#666;
146     list-style:none;
147     
148     -moz-user-select:none;
149     -khtml-user-select:none;
150 }
151 ul.fdtablePaginater li a.currentPage {
152     border-color:#a84444 !important;
153     color:#000;
154 }
155 ul.fdtablePaginater li a:active {
156     border-color:#222 !important;
157     color:#222;
158 }
159 ul.fdtablePaginater li a,
160 ul.fdtablePaginater li div {
161     display:block;
162     width:2em;
163     font-size:1em;
164     color:#666;
165     padding:0;
166     margin:0;
167     text-decoration:none;
168     outline:none;
169     border:1px solid #ccc;
170     font-family:georgia, serif;
171 }
172 ul.fdtablePaginater li div {
173     cursor:normal;
174     opacity:.5;
175     filter:alpha(opacity=50);
176 }
177 ul.fdtablePaginater li a span,
178 ul.fdtablePaginater li div span {
179     display:block;
180     line-height:2em;
181     border:1px solid #fff;
182     background:#fff url(/plekit/icons/tablesort-gradient.gif) repeat-x 0 -20px;
183 }
184 ul.fdtablePaginater li a {
185     cursor:pointer;
186 }
187 ul.fdtablePaginater li a:focus {
188     color:#333;
189     text-decoration:none;
190     border-color:#aaa;
191 }
192 .fdtablePaginaterWrap {
193     text-align:center;
194     clear:both;
195     text-decoration:none;
196 }
197 ul.fdtablePaginater li .next-page span,
198 ul.fdtablePaginater li .previous-page span,
199 ul.fdtablePaginater li .first-page span,
200 ul.fdtablePaginater li .last-page span {
201     font-weight:bold !important;
202 }
203 /* Keep the table columns an equal size during pagination */
204 td.sized1 {
205     width:16em;
206     text-align:left;
207 }
208 td.sized2 {
209     width:10em;
210     text-align:left;
211 }
212 td.sized3 {
213     width:7em;
214     text-align:left;
215 }
216 /*
217    tfoot td
218         {
219         text-align:right;
220         font-weight:bold;
221         text-transform:uppercase;
222         letter-spacing:1px;
223         }
224    */
225 #visibleTotal {
226     text-align:center;
227     letter-spacing:auto;
228 }
229 * html ul.fdtablePaginater li div span,
230 * html ul.fdtablePaginater li div span {
231     background:#eee;
232 }
233 tr.invisibleRow {
234     display:none;
235     visibility:hidden;
236 }
237 p.paginationText {
238     font-style:oblique;
239 }
240 p.table_note {
241     font-style:oblique;
242     font-size:0.6em;
243     font-family: georgia;
244     text-align: center;
245 }
246 span.table_note_title {
247     font-weight:bold;
248     font-size:1.5em;
249     font-family: georgia;
250     text-align: center;
251 }
252
253 span.bold {
254     font-weight:bold;
255 }
256
257 /* for IE */
258 ul.fdtablePaginater {display:inline-block;}
259 mul.fdtablePaginater {display:inline;}
260 ul.fdtablePaginater li {float:left;}
261 ul.fdtablePaginater {text-align:center;}
262 /*table.plekit_table { border-bottom:1px solid #C1DAD7; }*/
263
264 .search_input:focus ,.pagesize_input:focus {
265     background-color: #8cd;
266     outline-color: #696;
267 }