summaryrefslogtreecommitdiff
path: root/style.scss
blob: ada2f805d774a4f3eab2cecc2f41ea609b91e830 (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. .pageheader {
  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. .branding {
  129. color: white;
  130. }
  131. .pageheader .title,
  132. .parentlinks {
  133. display: none;
  134. }
  135. #searchform {
  136. @include adjust-font-size-to($baseFontSize, $from-size: $headerFontSize);
  137. margin: rhythm(.5) 2em 0 0;
  138. }
  139. .pageheader .actions {
  140. @include adjust-font-size-to($baseFontSize, $from-size: $headerFontSize);
  141. background-color: LightBlue;
  142. ul {
  143. border-bottom: none;
  144. }
  145. }
  146. .actions ul {
  147. padding: rhythm(2/3) 0 rhythm(1/3) 2em;
  148. a {
  149. color: Lightblue;
  150. &:hover {
  151. color: white;
  152. }
  153. }
  154. }
  155. .topbar {
  156. height: rhythm(2);
  157. margin: 0;
  158. padding: rhythm() 0;
  159. background-color: LightBlue;
  160. text-align: center;
  161. text-transform: uppercase;
  162. letter-spacing: 1px;
  163. p {
  164. float: left;
  165. }
  166. a {
  167. font-weight: bold;
  168. }
  169. ul {
  170. list-style-type:none;
  171. margin: 0;
  172. padding: 0;
  173. li {
  174. display:inline;
  175. margin: 0 20px;
  176. }
  177. }
  178. }
  179. .topbar ul,
  180. .topbar ol,
  181. .topbar li {
  182. @include adjust-font-size-to(18px);
  183. }
  184. .topbar img {
  185. margin: 0 20px;
  186. }
  187. // layout - footer
  188. @include ikiwiki-footer;
  189. #footer {
  190. clear: left;
  191. width: 100%;
  192. margin: rhythm() 0 0;
  193. }
  194. @include ikiwiki-pageinfo;
  195. #pageinfo {
  196. margin: 0;
  197. border-top: 0;
  198. padding: rhythm(.5) 1em rhythm(.5) 20px;
  199. background-color: LightBlue;
  200. }
  201. .pagedate {
  202. margin-top: 0;
  203. }
  204. @include ikiwiki-tags;
  205. .tags {
  206. display: none;
  207. }
  208. @include ikiwiki-backlinks;
  209. #backlinks {
  210. display: none;
  211. }
  212. @include ikiwiki-authorship;
  213. .pagecopyright,
  214. .pagecopyright p {
  215. margin-top: 0;
  216. margin-bottom: 0;
  217. }
  218. @include ikiwiki-plugin-trail;
  219. // layout - aside
  220. @include ikiwiki-plugin-sidebar;
  221. .sidebar,
  222. .farbar {
  223. // @include force-wrap;
  224. overflow: hidden
  225. }
  226. .sidebar {
  227. float: left;
  228. min-height: rhythm(25);
  229. width: 14%;
  230. padding: rhythm(1) rhythm(.5);
  231. margin-top: rhythm();
  232. margin-left: -98%;
  233. margin-bottom: rhythm();
  234. border: none;
  235. background-color: LightBlue;
  236. text-align: left;
  237. }
  238. .sidebar ul {
  239. padding-left: 0.5em;
  240. margin-bottom:0;
  241. margin-top:0;
  242. }
  243. .sidebar li {
  244. list-style-type: none;
  245. padding: 0;
  246. }
  247. .sidebar li,
  248. .sidebar li p {
  249. margin-bottom: 0;
  250. }
  251. .sidebar li a {
  252. font-weight: normal;
  253. color: black;
  254. &:hover {
  255. color: white;
  256. }
  257. }
  258. .sidebar li .selflink {
  259. color: white;
  260. font-weight: bold;
  261. }
  262. .farbar {
  263. float: left;
  264. min-height: rhythm(25);
  265. width: 14%;
  266. margin-top: rhythm();
  267. margin-left: -18%;
  268. margin-bottom: rhythm(2);
  269. padding: rhythm(1) rhythm(.5);
  270. background-color: LightBlue;
  271. text-align: left;
  272. > h3 {
  273. margin: 0;
  274. }
  275. }
  276. .farbar img.img {
  277. height: (rhythm(7) - $base-leader);
  278. width: auto;
  279. }
  280. // layout - print styles
  281. @include ikiwiki-site-print;
  282. // modulars
  283. @include ikiwiki-infobox;
  284. @include ikiwiki-notebook;
  285. @include ikiwiki-popup;
  286. @include ikiwiki-plugin-calendar;
  287. @include ikiwiki-plugin-progress;
  288. @include ikiwiki-plugin-map;
  289. @include ikiwiki-plugin-poll;
  290. @include ikiwiki-plugin-pagestats;
  291. @include ikiwiki-plugin-flattr;
  292. @include ikiwiki-blogform;
  293. // section/page specific
  294. @include ikiwiki-plugin-recentchanges;
  295. @include ikiwiki-plugin-editpage;
  296. @include ikiwiki-plugin-attachment;
  297. @include ikiwiki-plugin-openid;