/* @group General styles */ /* Harmonise v1.3 Resets styles then adds basic typographical styling. Use as a starting point upon which to build more CSS. By Clearleft.com */ $base-font-size: 11.2px; $base-line-height: (1.2 * $base-font-size); $base-font-family: "helvetica neue", arial, helvetica, sans-serif; /* size headings using classic scale of 16, 18, 24, 36, relative to 14px (original base font size) */ $rel-12-font-size: 12/14 * $base-font-size; $rel-16-font-size: 16/14 * $base-font-size; $rel-18-font-size: 18/14 * $base-font-size; $rel-24-font-size: 24/14 * $base-font-size; $rel-36-font-size: 36/14 * $base-font-size; $h1-font-size: $rel-36-font-size; $h2-font-size: $rel-16-font-size; $h3-font-size: $rel-16-font-size; $h4-font-size: $base-font-size; $h5-font-size: $base-font-size; $h6-font-size: $base-font-size; $front-leadin-font-size: $rel-18-font-size; $caption-font-size: $rel-16-font-size; $meta-font-size: $rel-12-font-size; $ligature-font-size: 1.3 * $base-font-size; $compact-font-size: 0.7 * $base-font-size; /* @group Reset */ @import "normalize"; @include normalize(); /* @group Font families */ pre, code, kbd, tt, samp, tt { font-family: "andale mono", monospace; } /* @end */ /* @group Font sizes & margins */ p, ul, ol, dl, address, table, pre, form, fieldset { @include normalize-font-size($base-font-size); margin-bottom: 0.5em; } /* @end */ /* @group Headings */ h1 { line-height:1em /* 36px */; margin-top:0.1667em /* 6px */; margin-bottom:0.5833em /* 21px */; } h1 span { @include normalize-font-size($front-leadin-font-size, $h1-font-size); line-height: 1; color: #999; display: block; margin-bottom: 0.3em; } h2, h3 { margin-top:0; padding-bottom: 0.5em; margin-bottom:0.5em /* 8px */; text-align: center; border-bottom: 1px solid #999; } h4 { margin-top:1em /* 21px */; margin-bottom: 0.5em; } h5, h6 { margin-bottom: 0.5em; } /* @end */ /* @group Lists */ ul { list-style-type: disc; margin-left: 1.5em; /* 21px */ } ol { list-style-type: decimal; margin-left: 1.5em; /* 21px */ } dt { font-weight: bold; margin-top: 1.5em; /* 21px */ } ul ul, ol ol, ol ul, ul ol { margin-bottom: 0; } /* @end */ /* @group Tables */ table { border-bottom: 1px solid #C7C7C7; } caption { @include normalize-font-size($caption-font-size); font-weight: bold; padding-bottom: 0.4375em; /* 7px */ } thead th { border-bottom: 3px solid #C7C7C7; padding-top: 0; padding-bottom: 0.5em; /* 7px */ } tbody { border-top: 3px solid #C7C7C7; /* not rendered in IE6/7 */ } tbody tr th, tbody tr td { border-top: 1px solid #C7C7C7; } th, td { text-align: left; padding: 0.286em 0.5em 0.214em 0.5em; /* 4px 7px 3px 7px */ } /* @end */ /* @group Blockquotes */ blockquote { font-style: italic; margin:0 0 0 0; /* 21px */ color: #999; } p+p+blockquote { margin-top: 1.5em /* 21px */; } blockquote cite, blockquote em { font-style: normal; } /* @end */ /* @group Other styling */ address { font-style: normal; } ins { text-decoration: underline; color: #27AD16; } del { text-decoration: line-through; color: #B60D10; } pre { @include normalize-font-size($compact-font-size); white-space: pre; width: 100%; overflow: hidden; border-top: 3px double #C7C7C7; border-bottom: 3px double #C7C7C7; padding: 0.5em 0; } hr { border: none; background-color: black; height: 1px; } /* @end */ /* @end */ /* @group Helper styles */ /* @group Forms */ /* @group Containers */ form .container { margin-bottom: 1.5em; /* 21px */ } /* @group Fieldsets */ fieldset { border: 1px solid #ccc; padding: 0 1.5em 1em 1.5em; /* 0 21px 14px 21px */ } legend { font-weight: bold; } form fieldset .container { margin-top: 1em; /* 14px */ margin-bottom:0; position: relative; } /* @end */ /* @end */ /* @group Labels */ label { font-weight: bold; cursor: pointer; } .meta-label { font-weight: bold; margin-bottom: 0; } .multi-container label, .radio-container label, .checkbox-container label { font-weight: normal; } .radio-container label, .checkbox-container label { display: block; } .compact label { display: inline; } /* @end */ /* @group Meta */ form .help { @include normalize-font-size($meta-font-size); display: block; color: #777; font-style: normal; } /* @end */ /* @group Form controls */ input, textarea, select, button { @include normalize-font-size($base-font-size); font-family: inherit; line-height: inherit; } select { background-color: #fff; /* fixes bug in Opera which inherits bgcolor from container */ } textarea, input[type='text'], input[type='password'], select { border-width: 1px; border-style: solid; border-top-color: #999; border-left-color: #999; border-bottom-color: #ccc; border-right-color: #ccc; padding: 0 1px 1px 1px; } textarea:focus, input[type='text']:focus, input[type='password']:focus, select:focus { border-color: #888; outline: 2px solid #ffffaa; } input.short { width: 4em; } input.medium, textarea.medium { width: 12em; } input.long, textarea.long { width: 30em; } textarea { width: 99%; display: block; } button { overflow: visible; cursor: pointer; } .button-container input { font-weight: bold; } .button-container input.cancel { font-weight: normal; } button.link { border: 0; padding: 0; background-color: #fff; font-weight: normal; cursor: pointer; width: auto; overflow: visible; } /* accessibility feature, resize check and radio inputs */ .radio-container input, .checkbox-container input { width: 1em; height: 1em; } /* @end */ /* @end */ .amp { @include normalize-font-size($ligature-font-size); font-family: "Bell MT", "Adobe Caslon Pro", "Goudy Old Style"; font-style: italic; line-height: 0.7; margin: 0 0.2em 0 0.1em; } /* @end */ /* @group Page structure */ #book { margin: 10px; overflow: hidden; } .page { width: 241px; height: 370px; overflow: hidden; outline: 1px solid #C7C7C7; float: left; margin: 10px; position: relative; } .inner { margin: 15px; } .footer { position: absolute; bottom: 15px; left: 15px; width: 211px; } /* @end */ /* @group Page Components */ /* @group Page Types */ /* class on page */ .lines { background-image: url(../img/lines.gif); background-repeat: repeat-y; background-position: 15px 1em; } .squares { } .isometric { } /* @end */ /* @group Page Elements */ /* @group Todo list */ .todo { padding-left: 0; margin-left: 0; } .todo li { border-bottom: 1px solid #C7C7C7; background-image: url(../img/check.gif); background-repeat: no-repeat; background-position: 0 0.3em; list-style-type: none; margin: 0.35em 0 0 0; padding: 0 0 0.35em 15px; } /* @end */ .micro p, .micro h3, .micro h4, .micro h5, .micro h6, h3.micro, h4.micro, h5.micro, h6.micro, p.micro, span.micro { @include normalize-font-size($compact-font-size); line-height: 1.5em; display: block; } /* @end */ /* @end */ /* @group Overrides */ /* @end */