source: trunk/template/yoga/content.css @ 859

Last change on this file since 859 was 859, checked in by plg, 19 years ago
  • new : template yoga, made by yoDan, helped by chrisaga for integration becomes the official template.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.0 KB
Line 
1/* $Id: content.css 859 2005-09-03 20:01:14Z plg $ */
2#content {
3    margin-left: 24em;
4    margin-right: 1em;
5    margin-bottom: 1em; /* when it's longer than menu bar */
6}
7BODY#theAdminPage #content {
8    margin-left: 14em;
9}
10
11BODY#theCommentsPage #content,
12BODY#theRegisterPage #content,
13BODY#theIdentificationPage #content,
14BODY#theProfilePage #content,
15BODY#theSearchPage #content,
16BODY#theAboutPage #content,
17BODY#thePopuphelpPage #content,
18BODY#theNotificationPage #content
19{
20  margin: 1em;
21}
22
23#content H2 {
24    margin-bottom: 1ex;
25}
26
27#content H3 {
28    margin-bottom: 1ex;
29}
30
31#content UL.thumbnails {
32  margin: 0;
33  padding: 0;
34  list-style: none;
35  text-align: center;   /* to center the whole collection in #content */
36}
37#content UL.thumbnails LI { display: inline }
38
39#content UL.thumbnails SPAN {
40  margin: 0 5px 5px 5px;
41  /*width: 130px;                128px + 2 * 1px if the SPAN has a border of 1px */
42  width: 128px;                 /* we can use the same size as well */
43  display: table-cell; display: inline-table; display: inline-block;
44  vertical-align: top;          /* OK with Opera and IE6 not Geko */
45  text-align: center;           /* to center the thumbnail and legend in Geko/Opera */
46  font-size: 80%;
47}
48#content UL.thumbnails SPAN SPAN {
49  margin: 0;                    /* important reset the margins */
50  border: 1px solid #aaaaaa;
51  width: 128px;                 /* fixed size again */
52  height: 128px;                /* fixed size again */
53  display: table-cell;          /* block prevents vertical-align here */
54  vertical-align: middle;       /* Ok with Opera and Geko not IE6 */
55}
56#content UL.thumbnails SPAN.wrap {
57  border: none;
58  height: auto;         /* important for vertical centering */
59  display: block;       /* important */
60  overflow: hidden;     /* everridden by specific IE6 rule below */
61  margin-top: auto;     /* to make vertical-align work in Geko and Opera */
62  margin-bottom: auto;  /* to make vertical-align work in Geko and Opera */
63}
64#content UL.thumbnails IMG {
65  margin-bottom: -4px;  /* why ??? something wrong with Geko and Opera ignored by IE6*/
66}
67/* fix Geko's lack of good willing in vertical-align: top */
68/* Too dirty : have to find something better */
69/*#content UL.thumbnails>LI>SPAN{*/
70/*  height: 170px;*/    /* unfortunately min-height doesn't work here */
71/*}*/
72
73/* fix IE with another layout */
74* html #content UL.thumbnails SPAN {
75  overflow: hidden;     /* keep it there: not needed by Geko, buggy with Opera */
76}
77* html #content UL.thumbnails SPAN SPAN {
78  position: relative;
79}
80* html #content UL.thumbnails SPAN.wrap {
81  overflow: visible;
82  position: absolute;
83  top: 50%;
84  left: 0px;            /* same as "#content UL.thumbnails SPAN SPAN { padding:" if any*/
85}
86* html #content UL.thumbnails IMG {
87  position: relative;
88  top: -50%;
89}
90
91
92#content .navigationBar, #content .additional_info {
93    margin: 10px 0;
94    text-align: center;
95}
96
97#content .pageNumberSelected {
98    font-style: italic;
99}
100
101#content .additional_info {
102    font-size: 110%;
103}
104
105#content FORM {
106    text-align: left;
107}
108
109/* content defaults */
110#content dl, dd { margin: 10px; }
111#content dt {
112  margin-bottom: 5px;
113  font-style: italic;
114  font-size: 110%;
115}
116
117/* actions */
118ul.categoryActions {
119  text-align: center;
120  margin: 1px 1px 0 0;
121  padding: 0;
122  text-indent: 0;
123}
124
125#content div.titrePage ul.categoryActions {
126  float: right;
127}
128
129#content ul.categoryActions>li {
130  display: inline;
131}
132
133#content ul.categoryActions a img, ul.categoryActions a {
134  border: none;
135}
136
137/* User comments */
138
139#content DIV.comment {
140  margin: 5px;
141  border: 1px solid gray;
142  min-height: 150px; /* maximum thumbnail height */
143}
144
145#content DIV.comment > A.illustration {
146  display: block;
147  position: absolute;
148  margin: 5px;
149}
150
151#content DIV.comment > A.illustration IMG {
152  border: 1px solid gray;
153}
154
155#content DIV.comment P.commentHeader {
156  text-align: right;
157  margin: 0.5em 0.5em 0 0;
158}
159
160#content DIV.comment UL.actions {
161  text-align: center;
162  margin: 0.2em;
163}
164
165#content DIV.comment > UL.actions > LI {
166  display: inline;
167}
168
169#content DIV.comment BLOCKQUOTE {
170  margin: 1em 1em 1em 150px; /* margin-left corresponds to maximum thumbnail width */
171  border: 1px solid #d3d3d3; 
172  border-left: 2px solid gray;
173  padding: 0.5em;
174}
175
Note: See TracBrowser for help on using the repository browser.