Chris@0: /* $Id: html-elements.css,v 1.1.2.2 2009/02/13 19:42:10 johnalbin Exp $ */ Chris@0: Chris@0: /**** Chris@0: **** HTML ELEMENT STYLING Chris@0: ****/ Chris@0: Chris@0: @import url('fonts.css'); Chris@0: Chris@0: /** fonts **/ Chris@0: /* Chris@0: * Our font size and line height declarations are based on the following ALA Chris@0: * article: Chris@0: * http://www.alistapart.com/articles/howtosizetextincss Chris@0: * Chris@0: * All modern browsrs use a 16px default font size. Specifying the font-size Chris@0: * and line-height in ems (relative to the 16px default font) allows the user Chris@0: * to resize the font in the browser and produces the most consistent results Chris@0: * across different browsers. Chris@0: */ Chris@0: body Chris@0: { Chris@0: font-size: 100%; /* Fixes exaggerated text resizing in IE6 and IE7 */ Chris@0: } Chris@0: Chris@0: a:link, Chris@0: a:visited Chris@0: { Chris@0: color: #be5700; Chris@0: text-decoration: none; Chris@0: } Chris@0: Chris@0: a:hover Chris@0: { Chris@0: text-decoration: underline; Chris@0: } Chris@0: Chris@0: #page Chris@0: { Chris@0: /* Chris@0: * To use a 12px font size on the page, delete the 14px declarations. Chris@0: * to use a 14px font size on the page, delete the 12px declarations. Chris@0: */ Chris@0: /* Chris@0: font-size: 0.8em; Chris@0: line-height: 1.5em; Chris@0: */ Chris@0: /* Use a 12px base font size with a 16px line height */ Chris@0: /* font-size: 0.75em; */ /* 16px x .75 = 12px */ Chris@0: /* line-height: 1.333em;*/ /* 12px x 1.333 = 16px */ Chris@0: Chris@0: /* Use a 14px base font size with a 18px line height */ Chris@0: /* font-size: 0.875em;*/ /* 16px x .875 = 14px */ Chris@0: /* line-height: 1.286em;*/ /* 14px x 1.286 = 18px */ Chris@0: Chris@0: font-size: 0.94em; Chris@0: line-height: 1.3em; Chris@0: } Chris@0: Chris@0: body, caption, th, td, input, textarea, select, option, legend, fieldset, h1, h2, h3, h4, h5, h6 Chris@0: { Chris@0: font-family: GilliusADFNo2, Candara, Tahoma, Verdana, Arial, Helvetica, "Bitstream Vera Sans", sans-serif; Chris@2: /* background: #fdfaf0; */ Chris@2: background: #fdfbf5; Chris@0: color: #3e442c; Chris@0: } Chris@0: Chris@2: .twtr-widget, .twtr-tweets, .twtr-join-conv { Chris@2: font-family: GilliusADFNo2, Candara, Tahoma, Verdana, Arial, Helvetica, "Bitstream Vera Sans", sans-serif !important; Chris@2: line-height: 1.3em !important; Chris@2: } Chris@2: Chris@5: .twtr-tweet-wrap { padding-left: 0 !important; } Chris@5: Chris@2: .twtr-hd { display: none; } Chris@2: .twtr-ft { display: none; } Chris@2: Chris@0: pre, code Chris@0: { Chris@7: /* font-size: 1.1em;*/ /* Monospace fonts can be hard to read */ Chris@7: font-size: 0.95em; Chris@0: font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", monospace; Chris@0: } Chris@0: Chris@0: /** headings **/ Chris@0: Chris@0: h1 Chris@0: { Chris@0: line-height: 1.3em; Chris@0: margin-top: 0; Chris@0: margin-bottom: 0.5em; /* 0.5em is equavalent to 1em in the page's base font. Chris@0: Remember, a margin specified in ems is relative to Chris@0: the element's font-size, not to the pages' base Chris@0: font size. So, for example, if we want a 1em margin Chris@0: (relative to the base font), we have to divide that Chris@0: length by the element's font-size: Chris@0: 1em / 2em = 0.5em */ Chris@0: font-weight: bold; Chris@0: font-size: 1.8em; Chris@0: } Chris@0: Chris@0: h2 Chris@0: { Chris@0: font-size: 1.6em; Chris@0: line-height: 1.3em; Chris@0: margin-top: 0.667em; /* Equivalent to 1em in the page's base font: 1 / 1.5 = 0.667em */ Chris@0: margin-bottom: 0.667em; Chris@0: font-weight: normal; Chris@0: } Chris@0: luisf@1: .block-views h2, .block h2 Chris@0: { Chris@0: font-size: 1.2em; Chris@0: padding-top: 2em; Chris@0: padding-bottom: 0.4em; Chris@0: } Chris@0: luisf@1: .block-inner .content p, .views-field-teaser p Chris@0: { Chris@0: /* Avoid blank line between title and teaser text for recent notes and upcoming events */ Chris@0: margin-top: 0em; Chris@0: } Chris@0: luisf@1: #search-block-form luisf@1: { luisf@1: margin-top: 2em; luisf@1: } luisf@1: luisf@1: #search-block-form label luisf@1: { luisf@1: font-weight: normal; luisf@1: font-size: 1.2em; luisf@1: } luisf@1: Chris@0: h3 Chris@0: { Chris@0: font-size: 1.3em; Chris@0: line-height: 1.3em; Chris@0: margin-top: 0.769em; /* Equivalent to 1em in the page's base font: 1 / 1.3 = 0.769 */ Chris@0: margin-bottom: 0.769em; Chris@0: font-weight: normal; Chris@0: } Chris@0: Chris@0: h4, h5, h6 Chris@0: { Chris@0: font-size: 1.1em; Chris@0: line-height: 1.3em; Chris@0: margin-top: 0.909em; /* Equivalent to 1em in the page's base font: 1 / 1.1 = 0.909 */ Chris@0: margin-bottom: 0.909em; Chris@0: font-weight: normal; Chris@0: } Chris@0: Chris@2: td h3, td h4 { Chris@2: margin-bottom: 0; Chris@2: } Chris@2: Chris@0: /** block-level elements **/ Chris@0: p, ul, ol, dl, pre, table, fieldset, blockquote Chris@0: { Chris@0: margin: 1em 0; Chris@0: } Chris@0: Chris@0: /** lists **/ Chris@0: /* standardize list item indentation */ Chris@0: ul, ol Chris@0: { Chris@0: margin-left: 0; Chris@0: padding-left: 2em; Chris@0: } Chris@0: Chris@0: .block ul, /* Drupal overrides */ Chris@0: .item-list ul Chris@0: { Chris@0: margin: 1em 0; Chris@0: padding: 0 0 0 2em; Chris@0: } Chris@0: Chris@0: ul ul, ul ol, Chris@0: ol ol, ol ul, Chris@0: .block ul ul, .block ul ol, Chris@0: .block ol ol, .block ol ul, Chris@0: .item-list ul ul, .item-list ul ol, Chris@0: .item-list ol ol, .item-list ol ul Chris@0: { Chris@0: margin: 0; Chris@0: } Chris@0: Chris@0: li Chris@0: { Chris@0: margin: 0; Chris@0: padding: 0; Chris@0: } Chris@0: Chris@0: .item-list ul li /* Drupal override */ Chris@0: { Chris@0: margin: 0; Chris@0: padding: 0; Chris@0: list-style: inherit; Chris@0: } Chris@0: Chris@0: ul.menu li, /* Drupal override */ Chris@0: li.expanded, Chris@0: li.collapsed, Chris@0: li.leaf Chris@0: { Chris@0: margin: 0; Chris@0: padding: 0; Chris@0: } Chris@0: Chris@0: ul { list-style-type: disc; } Chris@0: ul ul { list-style-type: circle; } Chris@0: ul ul ul { list-style-type: square; } Chris@0: ul ul ul ul { list-style-type: circle; } Chris@0: ol { list-style-type: decimal; } Chris@0: ol ol { list-style-type: lower-alpha; } Chris@0: ol ol ol { list-style-type: decimal; } Chris@0: Chris@0: dt Chris@0: { Chris@0: margin: 0; Chris@0: padding: 0; Chris@0: } Chris@0: Chris@0: dd Chris@0: { Chris@0: margin: 0 0 0 2em; Chris@0: padding: 0; Chris@0: } Chris@0: Chris@0: /** links **/ Chris@0: /* The order of link states are based on Eric Meyer's article: Chris@0: * http://meyerweb.com/eric/thoughts/2007/06/11/who-ordered-the-link-states Chris@0: */ Chris@0: a:link Chris@0: { Chris@0: } Chris@0: Chris@0: a:visited Chris@0: { Chris@0: } Chris@0: Chris@0: a:hover, Chris@0: a:focus Chris@0: { Chris@0: } Chris@0: Chris@0: a:active Chris@0: { Chris@0: } Chris@0: Chris@0: /** tables **/ Chris@0: /* Override Drupal default CSS */ Chris@0: table Chris@0: { Chris@0: border-collapse: collapse; Chris@0: /* width: 100%; */ /* Prevent cramped-looking tables */ Chris@0: } Chris@0: Chris@0: th, Chris@0: thead th, Chris@0: tbody th Chris@0: { Chris@0: text-align: left; Chris@0: padding-right: 0; Chris@0: border-bottom: none; Chris@0: } Chris@0: Chris@0: tbody Chris@0: { Chris@0: border-top: none; Chris@0: } Chris@0: Chris@0: /** abbreviations **/ Chris@0: abbr Chris@0: { Chris@0: border-bottom: 1px dotted #666; Chris@0: cursor: help; Chris@0: white-space: nowrap; Chris@0: } Chris@0: Chris@0: /* Date-based "abbreviations" show computer-friendly timestamps which are not Chris@0: human-friendly. */ Chris@0: abbr.created Chris@0: { Chris@0: border: none; Chris@0: cursor: auto; Chris@0: white-space: normal; Chris@0: } Chris@0: Chris@0: /** images **/ Chris@0: img Chris@0: { Chris@0: border: 0; Chris@0: } Chris@0: Chris@0: /** horizontal rules **/ Chris@0: hr Chris@0: { Chris@0: height: 1px; Chris@0: border: 1px solid #666; Chris@0: } Chris@0: Chris@0: /** forms **/ Chris@0: form Chris@0: { Chris@0: margin: 0; Chris@0: padding: 0; Chris@0: } Chris@0: Chris@0: fieldset Chris@0: { Chris@0: margin: 1em 0; Chris@0: padding: 0.5em; Chris@0: }