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