source: trunk/gsdl/images/style.css@ 11777

Last change on this file since 11777 was 11777, checked in by kjdon, 18 years ago

some changes (mostly by shaoqun) to make the page banner nicer. hopefully no more bis space between banner and nav bar, nice green box on page title and collection title (if no collection image)

  • Property svn:keywords set to Author Date Id Revision
File size: 5.3 KB
Line 
1/* default stylesheet for greenstone. */
2
3body {
4 background: #ffffff;
5 color: #000000;
6}
7
8/* bg image set in style macro */
9body.bgimage { }
10
11a:link { color: #006666; }
12
13a:hover { color: #cc9900; }
14
15a:visited { color: #666633; }
16
17img.link { border: 0; }
18
19/* for unesco/human info etc logos on home page */
20img.logo {
21 border: 0;
22 float: right;
23 margin-left: 10px;
24}
25
26
27/* this contains everything - all the other divs */
28#page {
29 margin-left: 80px;
30 margin-right: 30px;
31}
32
33
34#banner {
35 margin-bottom: 5px;
36}
37/* this div contains the bannerlinks and bannertitle paragraphs */
38div.pageinfo {
39 float: right;
40 text-align: right;
41 padding: 0;
42 margin:0;
43 width: 50%;
44}
45
46/* home, help, preferences links */
47p.bannerlinks {
48 font-family: sans-serif, arial, helvetica;
49 font-size: 10pt;
50 font-weight: bold;
51}
52
53/* the title set by the receptionist based on the page action */
54p.bannertitle {
55 font-family: sans-serif, arial, helvetica;
56 font-size: 24px;
57 font-weight: bold;
58 margin-left: 20px 0 0 0;
59 text-transform: lowercase;
60 white-space: nowrap;
61}
62
63
64/* the image for the collection, shown in the banner */
65div.collectimage {
66 text-align: left;
67 #height: 100%; /* for IE5/6 to make containing div the full height */
68 float: left;
69 width: 50%;
70}
71/* make sure this is shown under the other divs (which may be floating) */
72div.bannerextra {
73 clear: both;
74}
75
76
77/* blankiconbar */
78div.section p.bar {
79 text-align: center;
80}
81
82
83
84/* bg image set in style macro */
85div.navbar {
86 min-width: 500px;
87 white-space: nowrap;
88 font-family: sans-serif, arial, helvetica;
89 font-size: 10pt;
90 font-weight: bold;
91 text-transform: lowercase;
92 border: 0;
93 width: 100%; /* for ns4 */
94}
95
96
97/* bg image set in style macro */
98div.divbar { /* for "select a collection" */
99 font-family: arial;
100 font-size: 10pt;
101 font-weight: bold;
102 border: 0;
103 width: 100%; /* for ns4 */
104}
105
106
107p.navbar { /* opt navbar text inside a divbar div */
108 text-align: center;
109 margin: 0;
110}
111
112span.collectiontitle {
113 position: relative;
114 margin: 0 0 0 -47px;
115
116}
117span.collectiontitlebackground {
118 background: #96c19b;
119 padding: 8px 4px 14px 50px;
120 margin: 0;
121
122}
123span.bannertitle{
124 position: relative;
125 padding: 8px 4px 14px 0;
126 margin: 0 -50px 0 0;
127}
128
129span.bannertitlebackground {
130 background: #96c19b;
131 padding: 8px 4px 14px 50px;
132 margin: 0;
133}
134
135/* bg image set in style macro */
136span.navlink {
137 vertical-align: top;
138 padding: 0 10px;
139}
140
141
142/* bg image set in style macro */
143span.navlink_sel {
144 vertical-align: top;
145 padding: 0 10px;
146}
147
148/* bg image set in style macro */
149span.navlink:hover { }
150
151span.navlink a {
152 color: black;
153 text-decoration: none;
154}
155span.navlink a:visited {
156 color: black;
157}
158
159/* for the nav_ns4.dm macro only (for netscape4 support) */
160span.navlink_ns4 {
161 background-color: #e8d9b1;
162}
163span.navlink_sel_ns4 {
164 background-color: #96c19b;
165}
166
167/* ns4 doesn't support :hover? */
168span.navlink_ns4 a:hover {
169}
170
171span.highlight {
172 background: #ffff77;
173}
174
175/* content inside the pages */
176img.icon { border: 0; }
177
178div.queryform {
179 text-align: center;
180}
181span.textselect { white-space: nowrap; }
182
183div.document {
184 padding-top: 5px;
185}
186div.documenttext { clear: both; } /* come after any floating divs */
187
188div.warning { /* eg expanding more than 10 sections in table of contents */
189}
190div.warning div.buttons { float: right; } /* continue button */
191
192div.heading_image { float: left; } /* optional cover image */
193div.heading_title { font-size: 14pt; } /* alternate to cover image */
194div.document div.buttons {
195 /* anything that holds buttons... toc_buttons but also continue button */
196 width: 100px; /* each button (inside its own div) can overflow this */
197}
198div#toc_buttons { /* expand/contract etc "buttons" */
199 clear: left; /* don't put next to another float on our left-hand side */
200 float: left;
201 margin-right: 5px;
202 margin-bottom: 5px;
203}
204div.button {
205 font-size: 11px;
206 font-weight: bold;
207 line-height: 1.2em;
208 /*background: #ffeecc; */
209 background: #f7e7c5;
210 margin: 1px;
211 border: 1px solid #eeddbb;
212 text-align: center;
213 vertical-align: middle;
214 height: 30px; /* IE6 and NS4 treat width/height as min-width/min-height */
215 width: 110px;
216}
217*>div.button { /* for other browsers - IE6 doesn't apply this */
218 height: auto;
219 width: auto;
220 min-height: 30px;
221 min-width: 110px;
222}
223span.button {}
224span.button a { text-decoration: none; color: black; }
225span.button a:hover { /* IE6 doesn't do :hover for things that aren't <A> */
226 background: #eeddbb;
227}
228
229div.section p {
230 text-align: justify;
231}
232
233/* for the home page - auto-generated _homeextra_ macro */
234table.collections {
235 width: 100%;
236 max-width: 800px;
237 text-align: center;
238 /* centres a block element for gecko and opera. (IE 5.5 needs parent
239 * text-align) */
240 margin-left:auto; margin-right:auto;
241}
242
243/* collections that have a logo should have a border around them */
244table.collections img {
245 border: 1px solid;
246}
247
248/* collector bar */
249table.collectorbar {
250 text-align: center;
251 vertical-align: middle;
252}
253
254td.collectorbargreen {
255 background-color: #96BE9C;
256}
257td.collectorbaryellow {
258 background-color: #EEE8AA;
259}
260td.collectorbargrey {
261 background-color: #D3D3D3;
262}
263
264table.collectorbar a {
265 color: black;
266 text-decoration: none;
267}
268
269table.collectorbar a:visited {
270 color: black;
271}
272
273
274span.date_list_year {
275 font-weight: bold;
276}
277span.date_list_month {
278 font-weight: bold;
279}
280
281
Note: See TracBrowser for help on using the repository browser.