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