source: trunk/template/yoga/thumbnails.css @ 1677

Last change on this file since 1677 was 1518, checked in by chrisaga, 18 years ago

improve caddie display : better checkbox positionning in every tested browsers.

Opera still not perfect , but much better.

  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
Line 
1/* $Id: thumbnails.css 1518 2006-07-29 16:26:52Z chrisaga $ */
2
3/* Thumbnails customization */
4#content UL.thumbnails SPAN.thumbLegend {
5  font-size: 80%;               /* font size */
6  overflow: hidden;             /* oversized legend is clipped */
7}
8
9/* Thumbnail "elastic" layout */
10#content UL.thumbnails {
11  margin: 0;
12  padding: 0;
13  list-style: none;
14  text-align: center;   /* to center the whole collection in #content */
15}
16#content UL.thumbnails LI { display: inline }
17
18#content UL.thumbnails SPAN.wrap1 {
19  margin: 0 5px 5px 5px;
20  display: table-cell; display: inline-table; display: inline-block;
21  vertical-align: top;          /* OK with Opera and IE6 not Geko */
22  text-align: center;           /* to center the thumbnail and legend in Geko/Opera */
23}
24#content UL.thumbnails SPAN.wrap2 {
25  margin: 0;                    /* important reset the margins */
26  display: table-cell;          /* block prevents vertical-align here */
27  vertical-align: middle;       /* Ok with Opera and Geko not IE6 */
28}
29#content UL.thumbnails SPAN.wrap2 A,
30#content UL.thumbnails LABEL {
31  display: block;
32  border-bottom: none;
33}
34#content UL.thumbnails IMG {
35  margin-bottom: -4px;  /* why ??? something wrong with Geko and Opera ignored by IE6*/
36}
37
38/* label and input used for caddie in admin section */
39#content UL.thumbnails LABEL {
40  position: relative;
41}
42
43#content UL.thumbnails INPUT {
44  position: relative;   /* <= Opera can handle relative here */
45  top: -20px;
46}
47:root #content UL.thumbnails INPUT { /* hide from Opera */
48  position: absolute;   /* <= Opera hide 1 checkbox over 2 !!! */
49  left: 2px;
50  top: 2px;
51}
52 
Note: See TracBrowser for help on using the repository browser.