summaryrefslogtreecommitdiff
path: root/style.scss
blob: f50e06e855734c64d02b3e3d33d16dda20214f28 (plain)
  1. @import "h5bp";
  2. @import "../shared/themes/default/ikiwiki";
  3. @import "compass/typography/lists";
  4. // site defaults
  5. @import "compass/typography/vertical_rhythm";
  6. @include h5bp-normalize;
  7. @include establish-baseline;
  8. // patch normalize to fit rhythm
  9. dl,
  10. menu,
  11. ol,
  12. ul {
  13. @include rhythm(1);
  14. }
  15. h1 {
  16. @include adjust-font-size-to(32px);
  17. @include rhythm;
  18. font-weight: normal;
  19. }
  20. h2 {
  21. @include adjust-font-size-to(24px);
  22. @include rhythm;
  23. }
  24. h3 {
  25. @include adjust-font-size-to(16px);
  26. @include rhythm(1);
  27. font-weight: bold;
  28. }
  29. h4,
  30. h5,
  31. h6 {
  32. text-decoration: blink;
  33. }
  34. a {
  35. color: darkblue;
  36. font-weight: normal;
  37. text-decoration: none;
  38. &:hover {
  39. text-decoration: underline;
  40. }
  41. }
  42. p {
  43. @include rhythm;
  44. }
  45. em {
  46. font-weight: bold;
  47. }
  48. ol, ul {
  49. list-style: disc inside none;
  50. }
  51. body {
  52. font-family: Verdana, Helvetica, Sans-serif;
  53. }
  54. @include ikiwiki-images;
  55. @include ikiwiki-pre;
  56. // generic styles
  57. @include ikiwiki-lists;
  58. @include ikiwiki-plugin-img;
  59. @include ikiwiki-feedbutton;
  60. @include ikiwiki-forms;
  61. @include ikiwiki-alignment;
  62. @include ikiwiki-debug;
  63. @include ikiwiki-plugin-highlight;
  64. @include ikiwiki-plugin-color;
  65. // shell
  66. // layout
  67. // layout - main content
  68. div#wrapper,
  69. div#pagebody {
  70. float: left;
  71. width: 100%;
  72. }
  73. div#content {
  74. min-height: rhythm(25);
  75. max-width: 48em;
  76. margin: rhythm() 40% rhythm(2) 20%;
  77. padding: 0;
  78. text-align: left;
  79. background-color: none;
  80. }
  81. div#content IMG {
  82. display: block;
  83. clear: both;
  84. float: right;
  85. width: 50%;
  86. max-width: 200px;
  87. margin-right: -50%;
  88. padding: 0 rhythm() rhythm();
  89. background-color: none;
  90. }
  91. @include ikiwiki-inlinepage;
  92. div.inlinepage {
  93. border: 0;
  94. padding: rhythm(.5);
  95. margin: 0 -1em;
  96. background-color: LightYellow;
  97. }
  98. @include ikiwiki-inlinecontent;
  99. @include ikiwiki-inlineheader;
  100. div.inlinepage SPAN.header a {
  101. @include adjust-font-size-to(14px);
  102. font-weight: normal;
  103. }
  104. div.inlinefooter {
  105. display: none;
  106. }
  107. @include ikiwiki-plugin-comments;
  108. // layout - header
  109. @include ikiwiki-plugin-search;
  110. @include ikiwiki-plugin-po;
  111. div.header {
  112. @include adjust-font-size-to(24px);
  113. padding: 0 0 0 1em;
  114. background-color: LightBlue;
  115. color: LightBlue;
  116. }
  117. .pageheader .actions ul {
  118. @include inline-list;
  119. }
  120. span.author,
  121. div.recentchanges,
  122. span.committype,
  123. div#footer {
  124. @include adjust-font-size-to(8px);
  125. }
  126. div.pageheader span.title {
  127. color: white;
  128. }
  129. span.parentlinks {
  130. display: none;
  131. }
  132. FORM#searchform {
  133. @include adjust-font-size-to(16px, $from-size: 24px);
  134. margin: rhythm(.5) 2em 0 0;
  135. }
  136. div.pageheader div.actions {
  137. background-color: LightBlue;
  138. ul {
  139. border-bottom: none;
  140. }
  141. }
  142. div.actions ul {
  143. padding: rhythm(2/3) 0 rhythm(1/3) 2em;
  144. a {
  145. color: Lightblue;
  146. &:hover {
  147. color: white;
  148. }
  149. }
  150. }
  151. div#topbar,
  152. div.topbar {
  153. height: rhythm(2);
  154. margin: 0;
  155. padding: rhythm() 0;
  156. background-color: LightBlue;
  157. text-align: center;
  158. text-transform: uppercase;
  159. letter-spacing: 1px;
  160. p {
  161. float: left;
  162. }
  163. a {
  164. font-weight: bold;
  165. }
  166. ul {
  167. list-style-type:none;
  168. margin: 0;
  169. padding: 0;
  170. li {
  171. display:inline;
  172. margin: 0 20px;
  173. }
  174. }
  175. }
  176. div#topbar li,
  177. div#topbar ul,
  178. div#topbar ul li,
  179. div#topbar ol,
  180. div#topbar ol li,
  181. div.topbar li,
  182. div.topbar ul,
  183. div.topbar ul li,
  184. div.topbar ol,
  185. div.topbar ol li {
  186. @include adjust-font-size-to(18px);
  187. }
  188. div#topbar img,
  189. div.topbar img {
  190. margin: 0 20px;
  191. }
  192. // layout - footer
  193. @include ikiwiki-footer;
  194. div#footer {
  195. clear: left;
  196. width: 100%;
  197. margin: rhythm() 0 0;
  198. }
  199. @include ikiwiki-pageinfo;
  200. div#pageinfo {
  201. margin: 0;
  202. border-top: 0;
  203. padding: rhythm(.5) 1em rhythm(.5) 20px;
  204. background-color: LightBlue;
  205. }
  206. div.pagedate {
  207. margin-top: 0;
  208. }
  209. @include ikiwiki-tags;
  210. div.tags {
  211. display: none;
  212. }
  213. @include ikiwiki-backlinks;
  214. div#backlinks {
  215. display: none;
  216. }
  217. @include ikiwiki-authorship;
  218. div.pagecopyright,
  219. div.pagecopyright P {
  220. margin-top: 0;
  221. margin-bottom: 0;
  222. }
  223. @include ikiwiki-plugin-trail;
  224. // layout - aside
  225. @include ikiwiki-plugin-sidebar;
  226. div#sidebar,
  227. div.sidebar {
  228. float: left;
  229. min-height: rhythm(25);
  230. width: 14%;
  231. padding: rhythm(.5);
  232. margin-top: rhythm();
  233. margin-left: -98%;
  234. margin-bottom: rhythm();
  235. border: none;
  236. background-color: LightBlue;
  237. text-align: left;
  238. }
  239. div#sidebar ul,
  240. div.sidebar ul {
  241. padding-left: 0.5em;
  242. margin-bottom:0;
  243. margin-top:0;
  244. }
  245. div#sidebar ul li,
  246. div.sidebar ul li {
  247. list-style-type: none;
  248. padding: 0;
  249. }
  250. div#sidebar ul li,
  251. div.sidebar ul li,
  252. div#sidebar ul li p,
  253. div.sidebar ul li p {
  254. margin-bottom: 0;
  255. }
  256. div#sidebar ul li a,
  257. div.sidebar ul li a {
  258. font-weight: normal;
  259. color: black;
  260. &:hover {
  261. color: white;
  262. }
  263. }
  264. div#sidebar ul li SPAN.selflink,
  265. div.sidebar ul li SPAN.selflink {
  266. color: white;
  267. font-weight: bold;
  268. }
  269. div#farbar,
  270. div.farbar {
  271. float: left;
  272. min-height: rhythm(25);
  273. width: 14%;
  274. margin-top: rhythm();
  275. margin-left: -18%;
  276. margin-bottom: rhythm(2);
  277. padding: rhythm(.5);
  278. background-color: LightBlue;
  279. text-align: left;
  280. }
  281. // layout - print styles
  282. @include ikiwiki-site-print;
  283. // modulars
  284. @include ikiwiki-infobox;
  285. @include ikiwiki-notebook;
  286. @include ikiwiki-popup;
  287. @include ikiwiki-plugin-calendar;
  288. @include ikiwiki-plugin-progress;
  289. @include ikiwiki-plugin-map;
  290. @include ikiwiki-plugin-poll;
  291. @include ikiwiki-plugin-pagestats;
  292. @include ikiwiki-plugin-flattr;
  293. @include ikiwiki-blogform;
  294. // section/page specific
  295. @include ikiwiki-plugin-recentchanges;
  296. @include ikiwiki-plugin-editpage;
  297. @include ikiwiki-plugin-attachment;
  298. @include ikiwiki-plugin-openid;