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

Last change on this file since 948 was 948, checked in by chrisaga, 18 years ago
  • report bug 206 correction and some template improvement from branch 1.5
  • feature 195 : add an "Admin" link under "Home" in the menu bar of the admin page
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.3 KB
Line 
1/* $Id: content.css 948 2005-11-19 23:46:18Z 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.comment {
150  margin: 5px;
151  border: 1px solid gray;
152  min-height: 150px; /* maximum thumbnail height */
153}
154
155#content DIV.comment > A.illustration {
156  display: block;
157  position: absolute;
158  margin: 5px;
159}
160
161#content DIV.comment > A.illustration IMG {
162  border: 1px solid gray;
163}
164
165#content DIV.comment P.commentHeader {
166  text-align: right;
167  margin: 0.5em 0.5em 0 0;
168}
169
170#content DIV.comment UL.actions {
171  text-align: center;
172  margin: 0.2em;
173}
174
175#content DIV.comment > UL.actions > LI {
176  display: inline;
177}
178
179#content DIV.comment BLOCKQUOTE {
180  margin: 1em 1em 1em 150px; /* margin-left corresponds to maximum thumbnail width */
181  border: 1px solid #d3d3d3; 
182  border-left: 2px solid gray;
183  padding: 0.5em;
184}
185
186
187/* should be in admin.css ? CSS properties also used in popuphelp */
188
189SPAN.pwgScreen {
190  border-bottom: 1px dotted black;
191}
192
193SPAN.filename:before {
194  content: "[";
195}
196
197SPAN.filename:after {
198  content: "]";
199}
Note: See TracBrowser for help on using the repository browser.