Chris@0
|
1 /* $Id: html-elements.css,v 1.1.2.2 2009/02/13 19:42:10 johnalbin Exp $ */
|
Chris@0
|
2
|
Chris@0
|
3 /****
|
Chris@0
|
4 **** HTML ELEMENT STYLING
|
Chris@0
|
5 ****/
|
Chris@0
|
6
|
Chris@0
|
7 @import url('fonts.css');
|
Chris@0
|
8
|
Chris@0
|
9 /** fonts **/
|
Chris@0
|
10 /*
|
Chris@0
|
11 * Our font size and line height declarations are based on the following ALA
|
Chris@0
|
12 * article:
|
Chris@0
|
13 * http://www.alistapart.com/articles/howtosizetextincss
|
Chris@0
|
14 *
|
Chris@0
|
15 * All modern browsrs use a 16px default font size. Specifying the font-size
|
Chris@0
|
16 * and line-height in ems (relative to the 16px default font) allows the user
|
Chris@0
|
17 * to resize the font in the browser and produces the most consistent results
|
Chris@0
|
18 * across different browsers.
|
Chris@0
|
19 */
|
Chris@0
|
20 body
|
Chris@0
|
21 {
|
Chris@0
|
22 font-size: 100%; /* Fixes exaggerated text resizing in IE6 and IE7 */
|
Chris@0
|
23 }
|
Chris@0
|
24
|
Chris@0
|
25 a:link,
|
Chris@0
|
26 a:visited
|
Chris@0
|
27 {
|
Chris@0
|
28 color: #be5700;
|
Chris@0
|
29 text-decoration: none;
|
Chris@0
|
30 }
|
Chris@0
|
31
|
Chris@0
|
32 a:hover
|
Chris@0
|
33 {
|
Chris@0
|
34 text-decoration: underline;
|
Chris@0
|
35 }
|
Chris@0
|
36
|
Chris@0
|
37 #page
|
Chris@0
|
38 {
|
Chris@0
|
39 /*
|
Chris@0
|
40 * To use a 12px font size on the page, delete the 14px declarations.
|
Chris@0
|
41 * to use a 14px font size on the page, delete the 12px declarations.
|
Chris@0
|
42 */
|
Chris@0
|
43 /*
|
Chris@0
|
44 font-size: 0.8em;
|
Chris@0
|
45 line-height: 1.5em;
|
Chris@0
|
46 */
|
Chris@0
|
47 /* Use a 12px base font size with a 16px line height */
|
Chris@0
|
48 /* font-size: 0.75em; */ /* 16px x .75 = 12px */
|
Chris@0
|
49 /* line-height: 1.333em;*/ /* 12px x 1.333 = 16px */
|
Chris@0
|
50
|
Chris@0
|
51 /* Use a 14px base font size with a 18px line height */
|
Chris@0
|
52 /* font-size: 0.875em;*/ /* 16px x .875 = 14px */
|
Chris@0
|
53 /* line-height: 1.286em;*/ /* 14px x 1.286 = 18px */
|
Chris@0
|
54
|
Chris@0
|
55 font-size: 0.94em;
|
Chris@0
|
56 line-height: 1.3em;
|
Chris@0
|
57 }
|
Chris@0
|
58
|
Chris@0
|
59 body, caption, th, td, input, textarea, select, option, legend, fieldset, h1, h2, h3, h4, h5, h6
|
Chris@0
|
60 {
|
Chris@0
|
61 font-family: GilliusADFNo2, Candara, Tahoma, Verdana, Arial, Helvetica, "Bitstream Vera Sans", sans-serif;
|
Chris@2
|
62 /* background: #fdfaf0; */
|
Chris@2
|
63 background: #fdfbf5;
|
Chris@0
|
64 color: #3e442c;
|
Chris@0
|
65 }
|
Chris@0
|
66
|
Chris@2
|
67 .twtr-widget, .twtr-tweets, .twtr-join-conv {
|
Chris@2
|
68 font-family: GilliusADFNo2, Candara, Tahoma, Verdana, Arial, Helvetica, "Bitstream Vera Sans", sans-serif !important;
|
Chris@2
|
69 line-height: 1.3em !important;
|
Chris@2
|
70 }
|
Chris@2
|
71
|
Chris@5
|
72 .twtr-tweet-wrap { padding-left: 0 !important; }
|
Chris@5
|
73
|
Chris@2
|
74 .twtr-hd { display: none; }
|
Chris@2
|
75 .twtr-ft { display: none; }
|
Chris@2
|
76
|
Chris@0
|
77 pre, code
|
Chris@0
|
78 {
|
Chris@7
|
79 /* font-size: 1.1em;*/ /* Monospace fonts can be hard to read */
|
Chris@7
|
80 font-size: 0.95em;
|
Chris@0
|
81 font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", monospace;
|
Chris@0
|
82 }
|
Chris@0
|
83
|
Chris@0
|
84 /** headings **/
|
Chris@0
|
85
|
Chris@0
|
86 h1
|
Chris@0
|
87 {
|
Chris@0
|
88 line-height: 1.3em;
|
Chris@0
|
89 margin-top: 0;
|
Chris@0
|
90 margin-bottom: 0.5em; /* 0.5em is equavalent to 1em in the page's base font.
|
Chris@0
|
91 Remember, a margin specified in ems is relative to
|
Chris@0
|
92 the element's font-size, not to the pages' base
|
Chris@0
|
93 font size. So, for example, if we want a 1em margin
|
Chris@0
|
94 (relative to the base font), we have to divide that
|
Chris@0
|
95 length by the element's font-size:
|
Chris@0
|
96 1em / 2em = 0.5em */
|
Chris@0
|
97 font-weight: bold;
|
Chris@0
|
98 font-size: 1.8em;
|
Chris@0
|
99 }
|
Chris@0
|
100
|
Chris@0
|
101 h2
|
Chris@0
|
102 {
|
Chris@0
|
103 font-size: 1.6em;
|
Chris@0
|
104 line-height: 1.3em;
|
Chris@0
|
105 margin-top: 0.667em; /* Equivalent to 1em in the page's base font: 1 / 1.5 = 0.667em */
|
Chris@0
|
106 margin-bottom: 0.667em;
|
Chris@0
|
107 font-weight: normal;
|
Chris@0
|
108 }
|
Chris@0
|
109
|
luisf@1
|
110 .block-views h2, .block h2
|
Chris@0
|
111 {
|
Chris@0
|
112 font-size: 1.2em;
|
Chris@0
|
113 padding-top: 2em;
|
Chris@0
|
114 padding-bottom: 0.4em;
|
Chris@0
|
115 }
|
Chris@0
|
116
|
luisf@1
|
117 .block-inner .content p, .views-field-teaser p
|
Chris@0
|
118 {
|
Chris@0
|
119 /* Avoid blank line between title and teaser text for recent notes and upcoming events */
|
Chris@0
|
120 margin-top: 0em;
|
Chris@0
|
121 }
|
Chris@0
|
122
|
luisf@1
|
123 #search-block-form
|
luisf@1
|
124 {
|
luisf@1
|
125 margin-top: 2em;
|
luisf@1
|
126 }
|
luisf@1
|
127
|
luisf@1
|
128 #search-block-form label
|
luisf@1
|
129 {
|
luisf@1
|
130 font-weight: normal;
|
luisf@1
|
131 font-size: 1.2em;
|
luisf@1
|
132 }
|
luisf@1
|
133
|
Chris@0
|
134 h3
|
Chris@0
|
135 {
|
Chris@0
|
136 font-size: 1.3em;
|
Chris@0
|
137 line-height: 1.3em;
|
Chris@0
|
138 margin-top: 0.769em; /* Equivalent to 1em in the page's base font: 1 / 1.3 = 0.769 */
|
Chris@0
|
139 margin-bottom: 0.769em;
|
Chris@0
|
140 font-weight: normal;
|
Chris@0
|
141 }
|
Chris@0
|
142
|
Chris@0
|
143 h4, h5, h6
|
Chris@0
|
144 {
|
Chris@0
|
145 font-size: 1.1em;
|
Chris@0
|
146 line-height: 1.3em;
|
Chris@0
|
147 margin-top: 0.909em; /* Equivalent to 1em in the page's base font: 1 / 1.1 = 0.909 */
|
Chris@0
|
148 margin-bottom: 0.909em;
|
Chris@0
|
149 font-weight: normal;
|
Chris@0
|
150 }
|
Chris@0
|
151
|
Chris@2
|
152 td h3, td h4 {
|
Chris@2
|
153 margin-bottom: 0;
|
Chris@2
|
154 }
|
Chris@2
|
155
|
Chris@0
|
156 /** block-level elements **/
|
Chris@0
|
157 p, ul, ol, dl, pre, table, fieldset, blockquote
|
Chris@0
|
158 {
|
Chris@0
|
159 margin: 1em 0;
|
Chris@0
|
160 }
|
Chris@0
|
161
|
Chris@0
|
162 /** lists **/
|
Chris@0
|
163 /* standardize list item indentation */
|
Chris@0
|
164 ul, ol
|
Chris@0
|
165 {
|
Chris@0
|
166 margin-left: 0;
|
Chris@0
|
167 padding-left: 2em;
|
Chris@0
|
168 }
|
Chris@0
|
169
|
Chris@0
|
170 .block ul, /* Drupal overrides */
|
Chris@0
|
171 .item-list ul
|
Chris@0
|
172 {
|
Chris@0
|
173 margin: 1em 0;
|
Chris@0
|
174 padding: 0 0 0 2em;
|
Chris@0
|
175 }
|
Chris@0
|
176
|
Chris@0
|
177 ul ul, ul ol,
|
Chris@0
|
178 ol ol, ol ul,
|
Chris@0
|
179 .block ul ul, .block ul ol,
|
Chris@0
|
180 .block ol ol, .block ol ul,
|
Chris@0
|
181 .item-list ul ul, .item-list ul ol,
|
Chris@0
|
182 .item-list ol ol, .item-list ol ul
|
Chris@0
|
183 {
|
Chris@0
|
184 margin: 0;
|
Chris@0
|
185 }
|
Chris@0
|
186
|
Chris@0
|
187 li
|
Chris@0
|
188 {
|
Chris@0
|
189 margin: 0;
|
Chris@0
|
190 padding: 0;
|
Chris@0
|
191 }
|
Chris@0
|
192
|
Chris@0
|
193 .item-list ul li /* Drupal override */
|
Chris@0
|
194 {
|
Chris@0
|
195 margin: 0;
|
Chris@0
|
196 padding: 0;
|
Chris@0
|
197 list-style: inherit;
|
Chris@0
|
198 }
|
Chris@0
|
199
|
Chris@0
|
200 ul.menu li, /* Drupal override */
|
Chris@0
|
201 li.expanded,
|
Chris@0
|
202 li.collapsed,
|
Chris@0
|
203 li.leaf
|
Chris@0
|
204 {
|
Chris@0
|
205 margin: 0;
|
Chris@0
|
206 padding: 0;
|
Chris@0
|
207 }
|
Chris@0
|
208
|
Chris@0
|
209 ul { list-style-type: disc; }
|
Chris@0
|
210 ul ul { list-style-type: circle; }
|
Chris@0
|
211 ul ul ul { list-style-type: square; }
|
Chris@0
|
212 ul ul ul ul { list-style-type: circle; }
|
Chris@0
|
213 ol { list-style-type: decimal; }
|
Chris@0
|
214 ol ol { list-style-type: lower-alpha; }
|
Chris@0
|
215 ol ol ol { list-style-type: decimal; }
|
Chris@0
|
216
|
Chris@0
|
217 dt
|
Chris@0
|
218 {
|
Chris@0
|
219 margin: 0;
|
Chris@0
|
220 padding: 0;
|
Chris@0
|
221 }
|
Chris@0
|
222
|
Chris@0
|
223 dd
|
Chris@0
|
224 {
|
Chris@0
|
225 margin: 0 0 0 2em;
|
Chris@0
|
226 padding: 0;
|
Chris@0
|
227 }
|
Chris@0
|
228
|
Chris@0
|
229 /** links **/
|
Chris@0
|
230 /* The order of link states are based on Eric Meyer's article:
|
Chris@0
|
231 * http://meyerweb.com/eric/thoughts/2007/06/11/who-ordered-the-link-states
|
Chris@0
|
232 */
|
Chris@0
|
233 a:link
|
Chris@0
|
234 {
|
Chris@0
|
235 }
|
Chris@0
|
236
|
Chris@0
|
237 a:visited
|
Chris@0
|
238 {
|
Chris@0
|
239 }
|
Chris@0
|
240
|
Chris@0
|
241 a:hover,
|
Chris@0
|
242 a:focus
|
Chris@0
|
243 {
|
Chris@0
|
244 }
|
Chris@0
|
245
|
Chris@0
|
246 a:active
|
Chris@0
|
247 {
|
Chris@0
|
248 }
|
Chris@0
|
249
|
Chris@0
|
250 /** tables **/
|
Chris@0
|
251 /* Override Drupal default CSS */
|
Chris@0
|
252 table
|
Chris@0
|
253 {
|
Chris@0
|
254 border-collapse: collapse;
|
Chris@0
|
255 /* width: 100%; */ /* Prevent cramped-looking tables */
|
Chris@0
|
256 }
|
Chris@0
|
257
|
Chris@0
|
258 th,
|
Chris@0
|
259 thead th,
|
Chris@0
|
260 tbody th
|
Chris@0
|
261 {
|
Chris@0
|
262 text-align: left;
|
Chris@0
|
263 padding-right: 0;
|
Chris@0
|
264 border-bottom: none;
|
Chris@0
|
265 }
|
Chris@0
|
266
|
Chris@0
|
267 tbody
|
Chris@0
|
268 {
|
Chris@0
|
269 border-top: none;
|
Chris@0
|
270 }
|
Chris@0
|
271
|
Chris@0
|
272 /** abbreviations **/
|
Chris@0
|
273 abbr
|
Chris@0
|
274 {
|
Chris@0
|
275 border-bottom: 1px dotted #666;
|
Chris@0
|
276 cursor: help;
|
Chris@0
|
277 white-space: nowrap;
|
Chris@0
|
278 }
|
Chris@0
|
279
|
Chris@0
|
280 /* Date-based "abbreviations" show computer-friendly timestamps which are not
|
Chris@0
|
281 human-friendly. */
|
Chris@0
|
282 abbr.created
|
Chris@0
|
283 {
|
Chris@0
|
284 border: none;
|
Chris@0
|
285 cursor: auto;
|
Chris@0
|
286 white-space: normal;
|
Chris@0
|
287 }
|
Chris@0
|
288
|
Chris@0
|
289 /** images **/
|
Chris@0
|
290 img
|
Chris@0
|
291 {
|
Chris@0
|
292 border: 0;
|
Chris@0
|
293 }
|
Chris@0
|
294
|
Chris@0
|
295 /** horizontal rules **/
|
Chris@0
|
296 hr
|
Chris@0
|
297 {
|
Chris@0
|
298 height: 1px;
|
Chris@0
|
299 border: 1px solid #666;
|
Chris@0
|
300 }
|
Chris@0
|
301
|
Chris@0
|
302 /** forms **/
|
Chris@0
|
303 form
|
Chris@0
|
304 {
|
Chris@0
|
305 margin: 0;
|
Chris@0
|
306 padding: 0;
|
Chris@0
|
307 }
|
Chris@0
|
308
|
Chris@0
|
309 fieldset
|
Chris@0
|
310 {
|
Chris@0
|
311 margin: 1em 0;
|
Chris@0
|
312 padding: 0.5em;
|
Chris@0
|
313 }
|