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