summaryrefslogtreecommitdiff
path: root/css/main.scss
blob: fdceb6f27f60fa277670dec3881939a9cc94b3e5 (plain)
  1. /* @group General styles */
  2. /*
  3. Harmonise v1.3
  4. Resets styles then adds basic typographical styling.
  5. Use as a starting point upon which to build more CSS.
  6. By Clearleft.com
  7. */
  8. /* @group Reset */
  9. @import "toolkit/reset";
  10. /* @group Font families */
  11. body {
  12. font-family: "helvetica neue", arial, helvetica, sans-serif;
  13. }
  14. pre, code, kbd, tt, samp, tt {
  15. font-family: "andale mono", monospace;
  16. }
  17. /* @end */
  18. /* @group Font sizes & margins */
  19. p, ul, ol, dl, address, table, pre, form, fieldset {
  20. font-size: 1em /* 14px */;
  21. margin-bottom: 0.5em;
  22. }
  23. /* size headings using classic scale of 16, 18, 24, 36 */
  24. /* @end */
  25. /* @group Headings */
  26. h1 {
  27. font-size: 2.571em /* 36px */;
  28. line-height:1em /* 36px */;
  29. margin-top:0.1667em /* 6px */;
  30. margin-bottom:0.5833em /* 21px */;
  31. }
  32. h1 span {
  33. font-size: 0.5em;
  34. line-height: 1;
  35. color: #999;
  36. display: block;
  37. margin-bottom: 0.3em;
  38. }
  39. h2, h3 {
  40. font-size:1.143em /* 16px */;
  41. margin-top:0;
  42. padding-bottom: 0.5em;
  43. margin-bottom:0.5em /* 8px */;
  44. text-align: center;
  45. border-bottom: 1px solid #999;
  46. }
  47. h4 {
  48. margin-top:1em /* 21px */;
  49. font-size:1em /* 14px */;
  50. margin-bottom: 0.5em;
  51. }
  52. h5, h6 {
  53. font-size:1em /* 14px */;
  54. margin-bottom: 0.5em;
  55. }
  56. /* @end */
  57. /* @group Lists */
  58. ul {
  59. list-style-type: disc;
  60. margin-left: 1.5em; /* 21px */
  61. }
  62. ol {
  63. list-style-type: decimal;
  64. margin-left: 1.5em; /* 21px */
  65. }
  66. dt {
  67. font-weight: bold;
  68. margin-top: 1.5em; /* 21px */
  69. }
  70. ul ul, ol ol, ol ul, ul ol {
  71. margin-bottom: 0;
  72. }
  73. /* @end */
  74. /* @group Tables */
  75. table {
  76. border-bottom: 1px solid #C7C7C7;
  77. }
  78. caption {
  79. font-weight: bold;
  80. padding-bottom: 0.4375em; /* 7px */
  81. font-size:1.144em; /* 16px */
  82. }
  83. thead th {
  84. border-bottom: 3px solid #C7C7C7;
  85. padding-top: 0;
  86. padding-bottom: 0.5em; /* 7px */
  87. }
  88. tbody {
  89. border-top: 3px solid #C7C7C7; /* not rendered in IE6/7 */
  90. }
  91. tbody tr th, tbody tr td {
  92. border-top: 1px solid #C7C7C7;
  93. }
  94. th, td {
  95. text-align: left;
  96. padding: 0.286em 0.5em 0.214em 0.5em; /* 4px 7px 3px 7px */
  97. }
  98. /* @end */
  99. /* @group Blockquotes */
  100. blockquote {
  101. font-style: italic;
  102. margin:0 0 0 0; /* 21px */
  103. color: #999;
  104. }
  105. p+p+blockquote {
  106. margin-top: 1.5em /* 21px */;
  107. }
  108. blockquote cite,
  109. blockquote em {
  110. font-style: normal;
  111. }
  112. /* @end */
  113. /* @group Other styling */
  114. address {
  115. font-style: normal;
  116. }
  117. ins {
  118. text-decoration: underline;
  119. color: #27AD16;
  120. }
  121. del {
  122. text-decoration: line-through;
  123. color: #B60D10;
  124. }
  125. pre {
  126. white-space: pre;
  127. width: 100%;
  128. font-size: 0.7em;
  129. overflow: hidden;
  130. border-top: 3px double #C7C7C7;
  131. border-bottom: 3px double #C7C7C7;
  132. padding: 0.5em 0;
  133. }
  134. hr {
  135. border: none;
  136. background-color: black;
  137. height: 1px;
  138. }
  139. /* @end */
  140. /* @end */
  141. /* @group Helper styles */
  142. /* @group Forms */
  143. /* @group Containers */
  144. form .container {
  145. margin-bottom: 1.5em; /* 21px */
  146. }
  147. /* @group Fieldsets */
  148. fieldset {
  149. border: 1px solid #ccc;
  150. padding: 0 1.5em 1em 1.5em; /* 0 21px 14px 21px */
  151. }
  152. legend {
  153. font-weight: bold;
  154. }
  155. form fieldset .container {
  156. margin-top: 1em; /* 14px */
  157. margin-bottom:0;
  158. position: relative;
  159. }
  160. /* @end */
  161. /* @end */
  162. /* @group Labels */
  163. label {
  164. font-weight: bold;
  165. cursor: pointer;
  166. }
  167. .meta-label {
  168. font-weight: bold;
  169. margin-bottom: 0;
  170. }
  171. .multi-container label,
  172. .radio-container label,
  173. .checkbox-container label {
  174. font-weight: normal;
  175. }
  176. .radio-container label,
  177. .checkbox-container label {
  178. display: block;
  179. }
  180. .compact label {
  181. display: inline;
  182. }
  183. /* @end */
  184. /* @group Meta */
  185. form .help {
  186. display: block;
  187. color: #777;
  188. font-style: normal;
  189. font-size: 0.857em; /* 12px */
  190. }
  191. /* @end */
  192. /* @group Form controls */
  193. input, textarea, select, button {
  194. font-family: inherit;
  195. font-size: 1em;
  196. line-height: inherit;
  197. }
  198. select {
  199. background-color: #fff; /* fixes bug in Opera which inherits bgcolor from container */
  200. }
  201. textarea,
  202. input[type='text'],
  203. input[type='password'],
  204. select {
  205. border-width: 1px;
  206. border-style: solid;
  207. border-top-color: #999;
  208. border-left-color: #999;
  209. border-bottom-color: #ccc;
  210. border-right-color: #ccc;
  211. padding: 0 1px 1px 1px;
  212. }
  213. textarea:focus,
  214. input[type='text']:focus,
  215. input[type='password']:focus,
  216. select:focus {
  217. border-color: #888;
  218. outline: 2px solid #ffffaa;
  219. }
  220. input.short {
  221. width: 4em;
  222. }
  223. input.medium, textarea.medium {
  224. width: 12em;
  225. }
  226. input.long, textarea.long {
  227. width: 30em;
  228. }
  229. textarea {
  230. width: 99%;
  231. display: block;
  232. }
  233. button {
  234. overflow: visible;
  235. cursor: pointer;
  236. }
  237. .button-container input {
  238. font-weight: bold;
  239. }
  240. .button-container input.cancel {
  241. font-weight: normal;
  242. }
  243. button.link {
  244. border: 0;
  245. padding: 0;
  246. background-color: #fff;
  247. font-weight: normal;
  248. cursor: pointer;
  249. width: auto;
  250. overflow: visible;
  251. }
  252. /* accessibility feature, resize check and radio inputs */
  253. .radio-container input,
  254. .checkbox-container input {
  255. width: 1em;
  256. height: 1em;
  257. }
  258. /* @end */
  259. /* @end */
  260. .amp {
  261. font-family: "Bell MT", "Adobe Caslon Pro", "Goudy Old Style";
  262. font-style: italic;
  263. font-size: 1.3em;
  264. line-height: 0.7;
  265. margin: 0 0.2em 0 0.1em;
  266. }
  267. /* @end */
  268. /* @group Page structure */
  269. #book {
  270. margin: 10px;
  271. overflow: hidden;
  272. }
  273. .page {
  274. width: 241px;
  275. height: 370px;
  276. overflow: hidden;
  277. outline: 1px solid #C7C7C7;
  278. float: left;
  279. margin: 10px;
  280. position: relative;
  281. }
  282. .inner {
  283. margin: 15px;
  284. }
  285. .footer {
  286. position: absolute;
  287. bottom: 15px;
  288. left: 15px;
  289. width: 211px;
  290. }
  291. /* @end */
  292. /* @group Page Components */
  293. /* @group Page Types */
  294. /* class on page */
  295. .lines {
  296. background-image: url(../img/lines.gif);
  297. background-repeat: repeat-y;
  298. background-position: 15px 1em;
  299. }
  300. .squares {
  301. }
  302. .isometric {
  303. }
  304. /* @end */
  305. /* @group Page Elements */
  306. /* @group Todo list */
  307. .todo {
  308. padding-left: 0;
  309. margin-left: 0;
  310. }
  311. .todo li {
  312. border-bottom: 1px solid #C7C7C7;
  313. background-image: url(../img/check.gif);
  314. background-repeat: no-repeat;
  315. background-position: 0 0.3em;
  316. list-style-type: none;
  317. margin: 0.35em 0 0 0;
  318. padding: 0 0 0.35em 15px;
  319. }
  320. /* @end */
  321. .micro p,
  322. .micro h3,
  323. .micro h4,
  324. .micro h5,
  325. .micro h6,
  326. h3.micro,
  327. h4.micro,
  328. h5.micro,
  329. h6.micro,
  330. p.micro,
  331. span.micro {
  332. font-size: 0.7em;
  333. line-height: 1.5em;
  334. display: block;
  335. }
  336. /* @end */
  337. /* @end */
  338. /* @group Overrides */
  339. /* @end */