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

Last change on this file since 1177 was 1136, checked in by chrisaga, 18 years ago
  • Improve thumbnailCategories display : This new display looks quite good with both themes.

Handle long category description with automatic scrollbars.
Got rid of the hr.separation which mess the display sometimes.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 6.0 KB
Line 
1/* $Id: content.css 1136 2006-04-09 10:53:14Z chrisaga $ */
2#content {
3    margin-right: 1em;
4    margin-bottom: 1em; /* when it's longer than menu bar */
5}
6
7BODY#theCommentsPage #content,
8BODY#theRegisterPage #content,
9BODY#theIdentificationPage #content,
10BODY#theProfilePage #content,
11BODY#theSearchPage #content,
12BODY#theAboutPage #content,
13BODY#thePopuphelpPage #content,
14BODY#thePasswordPage #content,
15BODY#theNotificationPage #content,
16BODY#theTagsPage #content,
17BODY#theNBMPage #content
18{
19  margin: 1em;
20}
21
22#content H3 {
23    margin-bottom: 1ex;
24}
25
26#content H2 { margin-bottom: 3px;} /*<- for IE otherwise calendar select is displaced to middle of page*/
27
28#content H3 {
29    text-align: center;
30}
31
32/* Thumbnails customization */
33#content UL.thumbnails SPAN.thumbLegend {
34  font-size: 80%;               /* font size */
35  height: 3em;                  /* max legend height (don't set auto to be Geko friendly)*/
36  overflow: hidden;             /* oversized legend is clipped */
37}
38
39/* Thumbnail "elastic" layout */
40#content UL.thumbnails {
41  margin: 0;
42  padding: 0;
43  list-style: none;
44  text-align: center;   /* to center the whole collection in #content */
45}
46#content UL.thumbnails LI { display: inline }
47
48#content UL.thumbnails SPAN.wrap1 {
49  margin: 0 5px 5px 5px;
50  display: table-cell; display: inline-table; display: inline-block;
51  vertical-align: top;          /* OK with Opera and IE6 not Geko */
52  text-align: center;           /* to center the thumbnail and legend in Geko/Opera */
53}
54#content UL.thumbnails SPAN.wrap2 {
55  margin: 0;                    /* important reset the margins */
56  display: table-cell;          /* block prevents vertical-align here */
57  vertical-align: middle;       /* Ok with Opera and Geko not IE6 */
58}
59#content UL.thumbnails SPAN.wrap2 A {
60  display: block;
61  border-bottom: none;
62}
63#content UL.thumbnails IMG {
64  margin-bottom: -4px;  /* why ??? something wrong with Geko and Opera ignored by IE6*/
65}
66
67/* fix IE with another layout */
68* html #content UL.thumbnails SPAN.wrap2 {
69  display: block;
70  position: relative;
71  text-align: left;
72}
73* html #content UL.thumbnails SPAN.wrap2 A {
74  overflow: visible;
75  position: absolute;
76  top: 50%;
77  text-align: center;
78}
79* html #content UL.thumbnails IMG.thumbnail {
80  position: relative;
81  top: -50%;
82}
83
84#content .navigationBar, #content .additional_info {
85    margin: 10px 0;
86    text-align: center;
87}
88
89#content .pageNumberSelected {
90    font-style: italic;
91}
92
93#content .additional_info {
94    font-size: 110%;
95}
96
97#content FORM {
98    text-align: left;
99}
100
101/* content defaults */
102#content DL, DD { margin: 10px; }
103#content DT {
104  margin-bottom: 5px;
105  font-style: italic;
106  font-size: 110%;
107}
108
109/* actions */
110UL.categoryActions {
111  margin: 0 2px;
112  width: auto;
113  padding: 0;
114  text-indent: 0;
115  list-style: none;
116  text-align: center;
117}
118
119#content DIV.titrePage UL.categoryActions {
120  float: right;
121  text-align: center;
122}
123
124#content DIV.titrePage {
125  padding: 0 0 3px;
126}
127
128#content UL.categoryActions LI {
129  display: inline;
130}
131
132#content UL.categoryActions A IMG, UL.categoryActions A {
133  border: none;
134  margin-bottom: -5px;
135}
136
137/* User comments */
138
139#content DIV#comments {
140  padding-left: 5px;
141  padding-right: 5px;
142  -moz-box-sizing: padding-box;
143}
144#content DIV.comment {
145  margin: 0 0 0.5em 0;
146  padding: 0;
147  overflow: hidden; /* these 2 lines ensure the floating child is kept in the DIV */
148  width: 100%;      /* don't ask why. It's a very usefull trick                   */
149}
150
151#content DIV.comment A.illustration {
152  display: block;
153  float: left;
154  margin: 0.5em 0 0 0.5em;
155}
156
157#content DIV.comment P.commentHeader {
158  text-align: right;
159  margin: 0.5em 0.5em 0 0;
160}
161
162#content DIV.comment UL.actions {
163  text-align: center;
164  margin: 0.2em;
165}
166
167#content DIV.comment BLOCKQUOTE {
168  margin-top: 1em;
169  margin-right: 0.5em;
170  margin-bottom: 150px;
171  padding: 0.5em;
172}
173
174/* should be in admin.css ? CSS properties also used in popuphelp */
175
176SPAN.pwgScreen {
177  border-bottom: 1px dotted black;
178}
179
180SPAN.filename:before {
181  content: "[";
182}
183
184SPAN.filename:after {
185  content: "]";
186}
187
188
189/* begin chronology/calendar elements*/
190#content DIV.calendarViews {
191  display: block;
192  float: right;
193  margin: 2px 0 0;
194}
195
196#content DIV.calendarBar { margin: 8px 4px; }
197
198SPAN.calItem, SPAN.calItemEmpty {
199  font-weight: bold;
200  margin: 0 1px;
201}
202
203SPAN.calItem A { border:0 }
204
205#content DIV.calendarCalBar {
206  margin: 10px 10px;
207  text-align: left;
208}
209
210SPAN.calCalHead {
211  font-weight: bold;
212  font-size: 110%;
213  margin: 0 2px;
214}
215
216SPAN.calCal { margin: 0 2px; }
217
218/* nice looking month calendar*/
219TABLE.calMonth {
220  border: none;
221  border-collapse: collapse;
222  margin-bottom: 10px;  /*<-IE ignores this */
223}
224
225TD.calDayCellFull, TD.calDayCellEmpty, TD.calDayCellBlank {
226  text-align:left;
227  vertical-align: top;
228  font: bold 18px Arial, Helvetica, sans-serif;
229}
230
231TD.calDayHead { font: bold 12px Arial, Helvetica, sans-serif; }
232
233DIV.calImg {
234  overflow: hidden;
235  vertical-align: bottom;
236  z-index: 1;
237  position: relative; /*<- this required by IE*/
238}
239
240.calImg img {
241  position: relative;
242  border: 0;
243}
244
245.calBackDate {
246  padding-left: 4px;
247  padding-top: 0px;
248  z-index: 2;
249  position: absolute;
250  text-align: left;
251  vertical-align: top;
252}
253
254.calForeDate {
255  padding-left: 5px;
256  padding-top: 1px;
257  z-index: 3;
258  position: absolute;
259  text-align: left;
260  vertical-align: top;
261}
262
263/* Category thumbnails on main page, CSS code inspired from MOD subcatify */
264#content UL.thumbnailCategories {
265  margin: 0;
266  padding: 0;
267  list-style: none;
268  text-align: center;
269  overflow: hidden;
270  width: 100%;
271}
272
273* html #content UL.thumbnailCategories {
274  width: 99%; /* buggy IE box model */
275}
276
277#content UL.thumbnailCategories LI {
278  margin:0;
279  padding:0;
280  float:left;
281}
282
283#content DIV.thumbnailCategory {
284  display:block;
285  padding: 2px 0px 0px 2px;
286  margin: 5px;
287}
288
289#content DIV.thumbnailCategory DIV.description {
290  font-size: 90%;
291  overflow: auto;
292  width: inherit;
293}
294
295#content DIV.thumbnailCategory DIV.description H3 {
296  text-align: left;
297  background: transparent;
298  margin: 0;
299  padding: 0.1em;
300  font-size: 120%;
301}
302
303#content DIV.thumbnailCategory DIV.description P {
304  margin: 0;
305}
306
307#content DIV.thumbnailCategory DIV.illustration {
308  text-align: left;
309  margin: 2px 0 2px 2px;
310  float: left;
311}
Note: See TracBrowser for help on using the repository browser.