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