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