summaryrefslogtreecommitdiff
path: root/style.scss
blob: 18294501537dbc9f0f4000b5b3e6c32d783cef22 (plain)
  1. @import "partials/base";
  2. @import "h5bp";
  3. @import "compass";
  4. @import "../shared/themes/default/ikiwiki";
  5. // site defaults
  6. @include h5bp-normalize;
  7. @include h5bp-main;
  8. @include ikiwiki-images;
  9. @include ikiwiki-pre;
  10. // generic styles
  11. @include ikiwiki-lists;
  12. @include ikiwiki-feedbutton;
  13. @include ikiwiki-forms;
  14. @include ikiwiki-alignment;
  15. @include ikiwiki-debug;
  16. @include ikiwiki-plugin-highlight;
  17. @include ikiwiki-plugin-color;
  18. // based on ikiwiki-plugin-img
  19. // - img.img styling
  20. // + left-aligned
  21. // + vertical margin
  22. // + line-height
  23. .img caption {
  24. margin: -1em 0 1.5em;
  25. line-height: 175%;
  26. font-size: 80%;
  27. caption-side: bottom;
  28. text-align: left;
  29. }
  30. // shell
  31. // layout
  32. @include ikiwiki-site;
  33. @include ikiwiki-site-print;
  34. // modulars
  35. @include ikiwiki-infobox;
  36. @include ikiwiki-notebook;
  37. @include ikiwiki-popup;
  38. @include ikiwiki-plugin-calendar;
  39. @include ikiwiki-plugin-progress;
  40. @include ikiwiki-plugin-map;
  41. @include ikiwiki-plugin-poll;
  42. @include ikiwiki-plugin-pagestats;
  43. @include ikiwiki-plugin-flattr;
  44. @include ikiwiki-blogform;
  45. // section/page specific
  46. @include ikiwiki-archivepage;
  47. @include ikiwiki-plugin-recentchanges;
  48. @include ikiwiki-plugin-editpage;
  49. @include ikiwiki-plugin-attachment;
  50. @include ikiwiki-plugin-openid;
  51. h1 {
  52. font-weight: normal;
  53. color: DarkRed;
  54. margin-bottom: 0.1em;
  55. line-height: 1.4em;
  56. }
  57. h2,
  58. h3 {
  59. margin-bottom: 0.1em;
  60. }
  61. h4,
  62. h5,
  63. h6 {
  64. text-decoration: blink;
  65. }
  66. h2 {
  67. font-weight: normal;
  68. font-size: 1.4em;
  69. }
  70. h3 {
  71. font-size: 1.1em;
  72. font-weight: bold;
  73. line-height: 1.6em;
  74. }
  75. a {
  76. @include hover-link;
  77. color: darkblue;
  78. font-weight: normal;
  79. }
  80. p {
  81. margin-top: 0.2em;
  82. margin-bottom: 1.2em;
  83. }
  84. i {
  85. @include h5bp-hidden;
  86. }
  87. ul {
  88. margin-bottom: 1.2em;
  89. }
  90. blockquote {
  91. font-style: italic;
  92. margin: 1em;
  93. }
  94. body {
  95. margin: 0;
  96. background-color: white;
  97. font-family: sans-serif;
  98. }
  99. .pageheader .title {
  100. @include h5bp-hidden;
  101. }
  102. .parentlinks {
  103. @include h5bp-hidden;
  104. }
  105. #searchform {
  106. margin: 20px;
  107. }
  108. .pageheader .actions {
  109. position: absolute;
  110. top: 0;
  111. right: 2em;
  112. background-color: transparent;
  113. ul {
  114. @include inline-block-list;
  115. height: 2em; // TODO: figure out if this can be eliminated
  116. }
  117. a {
  118. color: transparent;
  119. &:hover {
  120. color: lightblue;
  121. text-decoration: none;
  122. }
  123. }
  124. }
  125. .author {
  126. font-size: 1em;
  127. line-height: 1.8em;
  128. }
  129. .archivepage {
  130. margin-buttom: 0;
  131. }
  132. .archivepagedate {
  133. @include h5bp-hidden;
  134. }
  135. .topbar {
  136. height: 5em;
  137. margin: 0;
  138. padding: 1.5em 0;
  139. background-color: lightblue;
  140. text-align: center;
  141. text-transform: uppercase;
  142. letter-spacing: 1px;
  143. // position: absolute;
  144. top: 0;
  145. // right: 0;
  146. }
  147. //styling of background image.//
  148. .topbar .imgframe {
  149. @extend .topbar;
  150. position: absolute;
  151. top: 0;
  152. width: 100%;
  153. z-index: -1;
  154. }
  155. .topbar p {
  156. float: left;
  157. }
  158. .topbar a {
  159. font-weight: bold;
  160. &:hover {
  161. text-decoration: none;
  162. }
  163. }
  164. .topbar ul {
  165. @include inline-block-list(20px);
  166. }
  167. .topbar li {
  168. font-size: 1.25em;
  169. line-height: 2em;
  170. }
  171. .topbar img {
  172. margin: 0 20px;
  173. }
  174. #wrapper,
  175. #pagebody {
  176. float: left;
  177. width: 100%;
  178. }
  179. #content {
  180. float: left;
  181. min-height: 480px;
  182. width: 56%;
  183. max-width: 72em;
  184. margin: 2% 22%;
  185. padding: 0;
  186. text-align: left;
  187. background-color: none;
  188. }
  189. .notebox {
  190. float: none;
  191. display: block;
  192. //Overwrite ikiwiki default width:
  193. width: inherit;
  194. max-width: 48em;
  195. margin-right: 2em;
  196. //
  197. color: gray !important;
  198. background-color: none;
  199. margin-left: 0;
  200. text-align: center;
  201. }
  202. img {
  203. float: left;
  204. vertical-align: top;
  205. margin: 0 1em 1em 0;
  206. padding: 0;
  207. max-width: 100%;
  208. height: auto;
  209. }
  210. #content img.deco {
  211. display: block;
  212. clear: both;
  213. float: right;
  214. width: 50%;
  215. max-width: 200px;
  216. margin: 0;
  217. padding: 0 0 4% 4%;
  218. background-color: none;
  219. }
  220. #content img.solo {
  221. float: none;
  222. display: block;
  223. padding: 0;
  224. }
  225. #content img.x2470x3783 {
  226. height:3783px;
  227. width: 2470px;
  228. max-width: 2470px;
  229. }
  230. #content img.x1000x750 {
  231. height: 750px;
  232. width: 1000px;
  233. max-width: 1000px;
  234. }
  235. #content img.x108x132 {
  236. height: 132px;
  237. width: 108px;
  238. max-width: 108px;
  239. }
  240. td,
  241. th {
  242. padding: 0 1em 0 0;
  243. }
  244. .inlinepage {
  245. border: 0;
  246. padding: 1em 5%;
  247. margin: 0;
  248. background-color: lightyellow;
  249. }
  250. .inlinepage .header a {
  251. font-weight: normal;
  252. color: DarkRed;
  253. line-height: 1.5em;
  254. }
  255. .inlinefooter {
  256. @include h5bp-hidden;
  257. }
  258. .inlineheader .author {
  259. @include h5bp-hidden;
  260. }
  261. .sidebar {
  262. float: left;
  263. min-height: 480px;
  264. width: 16%;
  265. padding: 1%;
  266. margin-top: 2%;
  267. margin-left: -98%;
  268. margin-bottom: 2%;
  269. border: none;
  270. background-color: LightBlue;
  271. text-align: left;
  272. }
  273. .sidebar ul {
  274. padding-left: 0.5em;
  275. p {
  276. margin: 1em 0;
  277. }
  278. }
  279. .sidebar ul li {
  280. @include no-bullets;
  281. padding: 0;
  282. }
  283. .sidebar ul li,
  284. .sidebar ul li p {
  285. line-height: 1.5em;
  286. }
  287. .sidebar ul li a {
  288. font-weight: normal;
  289. }
  290. .sidebar p {
  291. color: DarkBlue;
  292. }
  293. .sidebar ul li .selflink {
  294. font-weight: bold;
  295. }
  296. .farbar {
  297. float: left;
  298. min-height: 480px;
  299. width: 16%;
  300. margin-top: 2%;
  301. margin-left: -20%;
  302. margin-bottom: 2%;
  303. padding: 1%;
  304. background-color: LightBlue;
  305. text-align: left;
  306. img {
  307. height: auto;
  308. width: 100%;
  309. }
  310. #mc_embed_signup {
  311. background-color: inherit;
  312. font: inherit;
  313. }
  314. }
  315. .farbar p i {
  316. font-size: 0.8em;
  317. line-height: 1em;
  318. }
  319. .farbar .inlinepage img {
  320. @include h5bp-hidden;
  321. }
  322. .farbar h3 a {
  323. color: black;
  324. font-weight: bold;
  325. }
  326. .tags {
  327. @include h5bp-hidden;
  328. }
  329. #backlinks {
  330. @include h5bp-hidden;
  331. }
  332. #footer {
  333. clear: left;
  334. width: 100%;
  335. margin: 2% 0 0;
  336. ul {
  337. @include no-bullets;
  338. padding: 0;
  339. }
  340. img {
  341. height: auto;
  342. float: none;
  343. display: block;
  344. padding: 0;
  345. }
  346. #mc_embed_signup {
  347. background-color: inherit;
  348. font: inherit;
  349. }
  350. }
  351. #footer #mc_embed_signup form {
  352. padding: 0;
  353. }
  354. #footer #mc_embed_signup label {
  355. font-size: inherit;
  356. }
  357. #pageinfo {
  358. margin: 0;
  359. border-top: 0;
  360. padding:1em 1em 1em 20px;
  361. background-color: lightblue;
  362. }
  363. .pagedate {
  364. margin-top: 0;
  365. }
  366. .pagecopyright,
  367. .pagecopyright P {
  368. margin-top: 0;
  369. margin-bottom: 0;
  370. }
  371. //Responsive design
  372. @media screen and (max-width: 480px) {
  373. .columns {
  374. @include column-count(1);
  375. }
  376. .inlinepage {
  377. margin: 0;
  378. }
  379. }
  380. @media screen and (min-width: 480px) and (max-width: 700px) {
  381. .columns {
  382. @include column-count(2);
  383. }
  384. }
  385. @media screen and (min-width: 701px) {
  386. .columns {
  387. @include column-count(3);
  388. }
  389. }