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