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