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