GeSHi/CSS

From Christoph's Personal Wiki
Revision as of 17:47, 17 December 2005 by Christoph (Talk | contribs) (Started article)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Clear Left

basic.css

<css> @import url("positioning.css?2"); @import url("typography.css?"); @import url("colour.css?"); /*\*//*/

 @import "ie5mac.css";

/**/ </css>

positioning.css

<css>

  • {

margin: 0; padding: 0; }

body { padding: 20px 0 30px 0; }

h1 { margin: 25px 8% 15px 37%; clear: both; }

h2 {

 margin-top: 0.8em;
 clear: left; /* woo hoo!*/

}

h3 {

 margin-top: 1em;

}

  1. header,#content {

position: relative; width: 100%; overflow: hidden; }

  1. header #logo {

position: relative; float: left; width: 27%; left: 4%; padding-top: 50px; }

  1. header #logo img {

display: block; }

  1. header #phone {

position: relative; float: right; clear: right; width: 50%; right: 2%; padding-bottom: 30px; }

  1. header #highlight {

position: relative; float: right; padding-top: 10px; right: 8%; width: 55%; }

  1. header #highlight.testimonial {

background-image: url("/images/quote_open.gif"); background-position: 25px 0; background-repeat: no-repeat; }

  1. header #highlight.testimonial blockquote {

padding-left: 55px; padding-right: 25px; background-image: url("/images/quote_close.gif"); background-position: bottom right; background-repeat: no-repeat; }

  1. header #highlight .credit {

padding-top: 15px; }

  1. maincontent {

position: relative; float: right; width: 55%; right: 8%; }

.intro p,#maincontent .intro p { padding: 20px 35px 20px 25px; } h1,

  1. maincontent p,
  2. maincontent h2,
  3. maincontent h3,
  4. maincontent h4,
  5. maincontent ul,
  6. maincontent ol,
  7. maincontent dl,
  8. maincontent table,
  9. maincontent legend {

padding: 0 25px; }

  1. sidebar {

position: relative; float: left; width: 27%; left: 4%; }

  1. sidebar #navigation {

position: relative; overflow: visible; }

  1. sidebar #navigation ul {

position: static; }

  1. sidebar #navigation ul li {

display: inline; }

  1. sidebar #navigation li a,#sidebar #navigation li span {

display: block; padding: 5px 30px; }

  1. footer {

padding: 3em 0; margin: 25px 8% 15px 37%; clear: both; }

  1. footer * {

text-align: center; }

  1. footer li {

display:inline; }

.download img { float: left; padding-right: 14px; } .download p { padding-left: 40px; }

.mugshot { width: 25%; float: left; padding: 3px; margin-right: 3%; margin-bottom: 2%; }

.groupshot { width: 100%; clear: both; padding: 3px; }

label,.error { display: block; } .error { margin-left: -25px; padding-left: 25px; }

  1. eventSummary {

padding-top: 1em !important; padding-bottom: 1em !important; margin-bottom: 1em !important; }

  1. eventSummary dt, #eventSummary dd {

padding: 0 !important; margin: 0 !important; }

  1. eventSummary dt {

width: 4em; float: left; clear: left; }

.conferencePic { width: 100%; clear: both; padding: 3px; }

.buyNow { margin-left: 1em; vertical-align: middle; } </css>

typography.css

<css>

  • {

font-weight: normal; font-style: normal; text-decoration: none; text-align: left; text-indent: 0; }

body { font-family: "Myriad Pro","Myriad Web","Lucida Grande","Trebuchet MS","Tahoma","Helvetica","Arial",sans-serif; }

body * { font-size: 100.01%; line-height: 1.5; }

img,fieldset { border: 0; }

a { text-decoration: underline; }

h1 { font-size: 2.4em; letter-spacing: -0.05em; line-height: 1.0; } h2 { font-size: 1.8em; line-height: 1.0; } h3,dt { font-size: 1.2em; } h4,legend { font-size: 1.1em; }

strong { font-weight: bold; }

span.company,span.company span { font-weight: bold; }

  1. header #phone {

text-align: right; font-size: 1.2em; }

  1. header #highlight blockquote p {

font-style: italic; text-align: justify; }

  1. header #highlight .credit {

text-align: right; font-size: .9em; }

  1. maincontent .intro,.intro {

font-size: 1.2em; }

  1. maincontent .intro p,.intro p {

line-height: 1.4; }

  1. maincontent p,
  2. maincontent dd,
  3. maincontent table,
  4. maincontent ul {

margin-bottom: 1.3em; }

  1. sidebar #navigation ul {

list-style: none; }

  1. sidebar #navigation li {

font-size: 1.2em; line-height: 1.0; text-transform: uppercase; }

  1. sidebar #navigation li a {

text-decoration: none; }

  1. sidebar #navigation li a.here {

font-weight: bold; }

  1. sidebar .feature {

font-size: .9em; }

  1. sidebar h3 a {

text-decoration: none; }

  1. footer {

font-size: .9em; }

  1. footer li {

list-style: none; }

  1. eventSummary dt {

font-size: 1em; font-weight: bold; } </css>

color.css

<css> body { background: #fff url("/images/body_bg.gif") top repeat-x; color: #333; }

a:link { color: #369; } a:visited { color: #969; } a:hover { color: #c60; } a:active { color: #930; }

h1,h2,h3,h4,legend { color: #8a1; }

span.company { color: #333; } span.company span { color: #8a1; }

.note { background: #ffc; }

  1. header {

color: #666; }

  1. header #phone .tel {

color: #8a1; }

.intro { background: #FEECA9 url("/images/note_cnr_ne.gif") top right no-repeat; } .intro p { background: transparent url("/images/note_cnr_sw.gif") bottom left no-repeat; }

  1. sidebar #navigation {

color: #666; background: #F1F6E4 url("/images/nav_cnr_ne.gif") top right no-repeat; }

  1. sidebar #navigation ul {

background: transparent url("/images/nav_cnr_sw.gif") bottom left no-repeat; }

  1. sidebar #navigation ul li.first {

background: transparent url("/images/nav_cnr_nw.gif") top left no-repeat; }

  1. sidebar #navigation ul li.last {

background: transparent url("/images/nav_cnr_se.gif") bottom right no-repeat; }

  1. sidebar #navigation ul li a,#sidebar #navigation ul li span {

border-bottom: 1px dotted #ccc; }

  1. sidebar #navigation ul li.last a,#sidebar #navigation ul li.last span {

border-bottom-color: #fff; }

  1. sidebar #navigation ul li a,#sidebar h3 a {

color: #8a1; }

  1. sidebar #navigation ul li a:hover,#sidebar h3 a:hover {

color: #790; }

.mugshot,.groupshot,.conferencePic { background-color: #eee; border: 1px solid #aaa; } </css>

ie5mac.css

<css>

  1. header #logo,
  2. sidebar {

margin-left: 4%; }

  1. header #phone {

margin-right: 2%; }

  1. highlight,
  2. maincontent {

margin-right: 8%; }

  1. header,#content {

overflow: hidden; } </css>