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

Last change on this file since 952 was 952, checked in by chrisaga, 18 years ago
  • merge branch 1.5 bug 222 correction into BSF
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.4 KB
Line 
1/* $Id: content.css 952 2005-11-24 19:26:31Z chrisaga $ */
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#thePasswordPage #content,
19BODY#theNotificationPage #content
20{
21  margin: 1em;
22}
23
24#content H2 {
25    margin-bottom: 1ex;
26}
27
28#content H3 {
29    margin-bottom: 1ex;
30}
31
32/* Thumbnails customization */
33#content UL.thumbnails SPAN, #content UL.thumbnails SPAN.wrap2 A {
34  width: 140px;                 /* max thumbnail width + 2px */
35}
36#content UL.thumbnails SPAN.wrap2 {
37  height: 140px;                /* max thumbnail height + 2px */
38}
39#content UL.thumbnails SPAN.wrap2 {
40  border: 1px solid #aaaaaa;    /* thumbnails border color and style */
41  -moz-border-radius: 4px;      /* round corners with Geko */
42  border-radius: 4px 4px;       /* round corners with CSS3 compliant browsers */
43}
44#content UL.thumbnails SPAN.wrap2:hover {
45  border-color: yellow;         /* thumbnails border color when mouse cursor is over it */
46}
47#content UL.thumbnails SPAN.thumbLegend {
48  font-size: 80%;               /* font size */
49  height: 3em;                  /* max legend height (don't set auto to be Geko friendly)*/
50  display: block;               /* display: none; if you don't want legend */
51  overflow: hidden;             /* oversized legend is clipped */
52}
53
54/* Thumbnail "elastic" layout */
55#content UL.thumbnails {
56  margin: 0;
57  padding: 0;
58  list-style: none;
59  text-align: center;   /* to center the whole collection in #content */
60}
61#content UL.thumbnails LI { display: inline }
62
63#content UL.thumbnails SPAN.wrap1 {
64  margin: 0 5px 5px 5px;
65  display: table-cell; display: inline-table; display: inline-block;
66  vertical-align: top;          /* OK with Opera and IE6 not Geko */
67  text-align: center;           /* to center the thumbnail and legend in Geko/Opera */
68}
69#content UL.thumbnails SPAN.wrap2 {
70  margin: 0;                    /* important reset the margins */
71  display: table-cell;          /* block prevents vertical-align here */
72  vertical-align: middle;       /* Ok with Opera and Geko not IE6 */
73}
74#content UL.thumbnails SPAN.wrap2 A {
75  display: block;
76  border-bottom: none;
77}
78#content UL.thumbnails IMG {
79  margin-bottom: -4px;  /* why ??? something wrong with Geko and Opera ignored by IE6*/
80}
81
82/* fix IE with another layout */
83* html #content UL.thumbnails SPAN.wrap2 {
84  display: block;
85  position: relative;
86  text-align: left;
87}
88* html #content UL.thumbnails SPAN.wrap2 A {
89  overflow: visible;
90  position: absolute;
91  top: 50%;
92  text-align: center;
93}
94* html #content UL.thumbnails IMG.thumbnail {
95  position: relative;
96  top: -50%;
97}
98
99#content .navigationBar, #content .additional_info {
100    margin: 10px 0;
101    text-align: center;
102}
103
104#content .pageNumberSelected {
105    font-style: italic;
106}
107
108#content .additional_info {
109    font-size: 110%;
110}
111
112#content FORM {
113    text-align: left;
114}
115
116/* content defaults */
117#content dl, dd { margin: 10px; }
118#content dt {
119  margin-bottom: 5px;
120  font-style: italic;
121  font-size: 110%;
122}
123
124/* actions */
125ul.categoryActions {
126  margin: 0 0 0 0;
127  width: auto;
128  padding: 0;
129  text-indent: 0;
130  list-style: none;
131  text-align: center;
132}
133
134#content div.titrePage ul.categoryActions {
135  float: right;
136  text-align: center;
137}
138
139#content ul.categoryActions li {
140  display: inline;
141}
142
143#content ul.categoryActions a img, ul.categoryActions a {
144  border: none;
145}
146
147/* User comments */
148
149#content DIV#comments {
150  padding-left: 5px;
151  padding-right: 5px;
152  -moz-box-sizing: padding-box;
153}
154#content DIV.comment {
155  margin: 0 0 0.5em 0;
156  padding: 0;
157  overflow: hidden; /* these 2 lines ensure the floating child is kept in the DIV */
158  width: 100%;      /* don't ask why. It's a very usefull trick                   */
159}
160
161#content DIV.comment A.illustration {
162  display: block;
163  float: left;
164  margin: 0.5em 0 0 0.5em;
165}
166
167#content DIV.comment P.commentHeader {
168  text-align: right;
169  margin: 0.5em 0.5em 0 0;
170}
171
172#content DIV.comment UL.actions {
173  text-align: center;
174  margin: 0.2em;
175}
176
177#content DIV.comment  UL.actions  LI {
178  display: inline;
179}
180
181#content DIV.comment BLOCKQUOTE {
182  margin: 1em 0.5em 0.5em 150px; /* margin-left corresponds to maximum thumbnail width + ~10px */
183  padding: 0.5em;
184}
185
186/* should be in admin.css ? CSS properties also used in popuphelp */
187
188SPAN.pwgScreen {
189  border-bottom: 1px dotted black;
190}
191
192SPAN.filename:before {
193  content: "[";
194}
195
196SPAN.filename:after {
197  content: "]";
198}
Note: See TracBrowser for help on using the repository browser.