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