summaryrefslogtreecommitdiff
path: root/style.scss
blob: e432da5a557e8c3f5ee7d284c3aab74608e0505d (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,
  43. ul {
  44. list-style: disc inside none;
  45. }
  46. body {
  47. font-family: Verdana, Helvetica, Sans-serif;
  48. }
  49. @include ikiwiki-images;
  50. @include ikiwiki-pre;
  51. // generic styles
  52. @include ikiwiki-lists;
  53. @include ikiwiki-feedbutton;
  54. @include ikiwiki-forms;
  55. @include ikiwiki-alignment;
  56. @include ikiwiki-debug;
  57. @include ikiwiki-plugin-highlight;
  58. @include ikiwiki-plugin-color;
  59. .img caption {
  60. font-size: 80%;
  61. caption-side: bottom;
  62. text-align: center;
  63. }
  64. img.img {
  65. margin: rhythm(.5) 0;
  66. }
  67. // shell
  68. // layout
  69. // layout - main content
  70. #wrapper,
  71. #pagebody {
  72. float: left;
  73. width: 100%;
  74. }
  75. #content {
  76. min-height: rhythm(25);
  77. max-width: 48em;
  78. margin: rhythm() 40% rhythm(2) 20%;
  79. padding: 0;
  80. text-align: left;
  81. background-color: none;
  82. }
  83. #content img {
  84. display: block;
  85. clear: both;
  86. float: right;
  87. width: 50%;
  88. max-width: 200px;
  89. margin-right: -50%;
  90. padding: 0 rhythm() rhythm();
  91. background-color: none;
  92. }
  93. @include ikiwiki-inlinepage;
  94. .inlinepage {
  95. border: 0;
  96. padding: rhythm(.5);
  97. margin: 0 -1em;
  98. background-color: LightYellow;
  99. }
  100. @include ikiwiki-inlinecontent;
  101. @include ikiwiki-inlineheader;
  102. .inlinepage .header a {
  103. @include adjust-font-size-to(14px);
  104. font-weight: normal;
  105. }
  106. .inlinefooter {
  107. display: none;
  108. }
  109. @include ikiwiki-plugin-comments;
  110. // layout - header
  111. @include ikiwiki-plugin-search;
  112. @include ikiwiki-plugin-po;
  113. .header {
  114. @include adjust-font-size-to($headerFontSize);
  115. padding: 0 0 0 1em;
  116. background-color: LightBlue;
  117. color: LightBlue;
  118. }
  119. .pageheader .actions ul {
  120. @include inline-list;
  121. }
  122. .author,
  123. .recentchanges,
  124. .committype,
  125. #footer {
  126. @include adjust-font-size-to(12px);
  127. }
  128. .pageheader .title {
  129. color: white;
  130. }
  131. .parentlinks {
  132. display: none;
  133. }
  134. #searchform {
  135. @include adjust-font-size-to($baseFontSize, $from-size: $headerFontSize);
  136. margin: rhythm(.5) 2em 0 0;
  137. }
  138. .pageheader .actions {
  139. background-color: LightBlue;
  140. ul {
  141. border-bottom: none;
  142. }
  143. }
  144. .actions ul {
  145. padding: rhythm(2/3) 0 rhythm(1/3) 2em;
  146. a {
  147. color: Lightblue;
  148. &:hover {
  149. color: white;
  150. }
  151. }
  152. }
  153. .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. .topbar ul,
  178. .topbar ol,
  179. .topbar li {
  180. @include adjust-font-size-to(18px);
  181. }
  182. .topbar img {
  183. margin: 0 20px;
  184. }
  185. // layout - footer
  186. @include ikiwiki-footer;
  187. #footer {
  188. clear: left;
  189. width: 100%;
  190. margin: rhythm() 0 0;
  191. }
  192. @include ikiwiki-pageinfo;
  193. #pageinfo {
  194. margin: 0;
  195. border-top: 0;
  196. padding: rhythm(.5) 1em rhythm(.5) 20px;
  197. background-color: LightBlue;
  198. }
  199. .pagedate {
  200. margin-top: 0;
  201. }
  202. @include ikiwiki-tags;
  203. .tags {
  204. display: none;
  205. }
  206. @include ikiwiki-backlinks;
  207. #backlinks {
  208. display: none;
  209. }
  210. @include ikiwiki-authorship;
  211. .pagecopyright,
  212. .pagecopyright p {
  213. margin-top: 0;
  214. margin-bottom: 0;
  215. }
  216. @include ikiwiki-plugin-trail;
  217. // layout - aside
  218. @include ikiwiki-plugin-sidebar;
  219. .sidebar,
  220. .farbar {
  221. // @include force-wrap;
  222. overflow: hidden
  223. }
  224. .sidebar {
  225. float: left;
  226. min-height: rhythm(25);
  227. width: 14%;
  228. padding: rhythm(1) rhythm(.5);
  229. margin-top: rhythm();
  230. margin-left: -98%;
  231. margin-bottom: rhythm();
  232. border: none;
  233. background-color: LightBlue;
  234. text-align: left;
  235. }
  236. .sidebar ul {
  237. padding-left: 0.5em;
  238. margin-bottom:0;
  239. margin-top:0;
  240. }
  241. .sidebar li {
  242. list-style-type: none;
  243. padding: 0;
  244. }
  245. .sidebar li,
  246. .sidebar li p {
  247. margin-bottom: 0;
  248. }
  249. .sidebar li a {
  250. font-weight: normal;
  251. color: black;
  252. &:hover {
  253. color: white;
  254. }
  255. }
  256. .sidebar li .selflink {
  257. color: white;
  258. font-weight: bold;
  259. }
  260. .farbar {
  261. float: left;
  262. min-height: rhythm(25);
  263. width: 14%;
  264. margin-top: rhythm();
  265. margin-left: -18%;
  266. margin-bottom: rhythm(2);
  267. padding: rhythm(1) rhythm(.5);
  268. background-color: LightBlue;
  269. text-align: left;
  270. > h3 {
  271. margin: 0;
  272. }
  273. }
  274. .farbar img.img {
  275. height: (rhythm(7) - $base-leader);
  276. width: auto;
  277. }
  278. // layout - print styles
  279. @include ikiwiki-site-print;
  280. // modulars
  281. @include ikiwiki-infobox;
  282. @include ikiwiki-notebook;
  283. @include ikiwiki-popup;
  284. @include ikiwiki-plugin-calendar;
  285. @include ikiwiki-plugin-progress;
  286. @include ikiwiki-plugin-map;
  287. @include ikiwiki-plugin-poll;
  288. @include ikiwiki-plugin-pagestats;
  289. @include ikiwiki-plugin-flattr;
  290. @include ikiwiki-blogform;
  291. // section/page specific
  292. @include ikiwiki-plugin-recentchanges;
  293. @include ikiwiki-plugin-editpage;
  294. @include ikiwiki-plugin-attachment;
  295. @include ikiwiki-plugin-openid;