summaryrefslogtreecommitdiff
path: root/style.scss
blob: 0027c8ad975087d766f81af5471e48e2a9ac13b0 (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. h4,
  58. h5,
  59. h6 {
  60. text-decoration: blink;
  61. }
  62. h2 {
  63. font-weight: normal;
  64. font-size: 1.5em;
  65. }
  66. h3 {
  67. font-size: 1.25em;
  68. font-weight: bold;
  69. }
  70. h2,
  71. h3 {
  72. margin-top: 0;
  73. margin-bottom: 0.1em;
  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-left: 0.5em;
  131. margin-bottom: 0.5em;
  132. a {
  133. color: black;
  134. &:hover {
  135. color: DarkBlue;
  136. }
  137. }
  138. }
  139. .archivepagedate {
  140. @include h5bp-hidden;
  141. }
  142. .topbar {
  143. height: 13em;
  144. margin: 0;
  145. padding: 0;
  146. background-color: #336699;
  147. text-transform: uppercase;
  148. letter-spacing: 1px;
  149. // position: absolute;
  150. top: 0;
  151. // right: 0;
  152. }
  153. //styling of background image.//
  154. /*
  155. Example use (in topbar.mdwn file!):
  156. <div class="imgframe" style="background-image:url('../tjeneren.jpg')"></div>
  157. */
  158. .topbar .imgframe {
  159. @extend .topbar;
  160. top: 0;
  161. width: 100%;
  162. background-position: center;
  163. }
  164. .topbar p {
  165. margin-top: 0;
  166. margin-bottom: 0;
  167. }
  168. // main menu
  169. .topbar ul {
  170. @include inline-block-list;
  171. position: absolute;
  172. top: 6.25em;
  173. height: 4em;
  174. width: 100%;
  175. font-size: 1.25em;
  176. line-height: 2em;
  177. text-align: center;
  178. li {
  179. a,
  180. .selflink {
  181. @include inline-block;
  182. width: 8em;
  183. padding: 1em .5em;
  184. background-color: #6699cc;
  185. color: white;
  186. font-weight: bold;
  187. &:hover {
  188. background-color: lightblue;
  189. color: #336699;
  190. text-decoration: none;
  191. }
  192. }
  193. }
  194. @media screen and (max-width: 480px) {
  195. top: 9em;
  196. font-size: inherit;
  197. }
  198. @media screen and (min-width: 701px) {
  199. right: 6em;
  200. width: auto;
  201. li {
  202. padding-left: .2em;
  203. padding-right: .2em;
  204. text-align: center;
  205. a,
  206. .selflink {
  207. width: 10em;
  208. padding: 1em;
  209. }
  210. }
  211. }
  212. }
  213. .topbar img {
  214. margin: 1.5em 20px;
  215. background-color: transparent;
  216. }
  217. #wrapper,
  218. #pagebody {
  219. float: left;
  220. width: 100%;
  221. }
  222. #content {
  223. min-height: 480px;
  224. // width: (100% - $blockMid-marginBoth - $blockLeft-fullwidth - $blockRight-fullwidth);
  225. width: 68%;
  226. max-width: 72em;
  227. // margin: 2% ($blockMid-marginRight + $blockRight-fullwidth) 2% ($blockMid-marginLeft + $blockLeft-fullwidth);
  228. margin: 0;
  229. padding: 2em 2%;
  230. text-align: left;
  231. background-color: none;
  232. }
  233. .notebox {
  234. float: none;
  235. display: block;
  236. //Overwrite ikiwiki default width:
  237. width: inherit;
  238. max-width: 48em;
  239. margin-right: 2em;
  240. //
  241. color: gray !important;
  242. background-color: none;
  243. margin-left: 0;
  244. text-align: center;
  245. }
  246. //General image behaviour.
  247. img {
  248. float: left;
  249. vertical-align: top;
  250. margin: 0 1em 1em 0;
  251. padding: 0;
  252. max-width: 100%;
  253. height: auto;
  254. }
  255. //Styling of tall images
  256. img.tall {
  257. width: 300px;
  258. }
  259. //Small images in tour descriptions, floating in a vertical row, not inflicting on the text content.
  260. #content img.deco {
  261. display: block;
  262. clear: both;
  263. float: right;
  264. width: 30%;
  265. max-width: 200px;
  266. margin: 0;
  267. padding: 0 0 1em 4%;
  268. background-color: none;
  269. }
  270. //Tiny image strips, designed for lists in a column.
  271. #content img.flex {
  272. max-height: 80px;
  273. width: auto;
  274. display: block;
  275. float: none;
  276. }
  277. //Image pushing text down, below.
  278. #content img.solo {
  279. float: none;
  280. display: block;
  281. padding: 0;
  282. }
  283. //One (concrete) image meant to fill the whole viewport.
  284. #content img.x2470x3783 {
  285. height:3783px;
  286. width: 2470px;
  287. max-width: 2470px;
  288. }
  289. //Not sure what it's for
  290. #content img.x1000x750 {
  291. height: 750px;
  292. width: 1000px;
  293. max-width: 1000px;
  294. }
  295. //Not sure what it's for
  296. #content img.x108x132 {
  297. height: 132px;
  298. width: 108px;
  299. max-width: 108px;
  300. }
  301. //Thumbnails for inline lists on overview pages.
  302. #inlinecontent img.overview {
  303. width: 200px;
  304. }
  305. //Images in inline lists on the blog.
  306. #inlinecontent img.blog {
  307. width: 500px;
  308. display: block;
  309. float: none;
  310. }
  311. td,
  312. th {
  313. padding: 0 1em 0 0;
  314. }
  315. .inlinepage {
  316. border: 0;
  317. padding: 1em 5%;
  318. margin: 0;
  319. background-color: lightyellow;
  320. }
  321. .inlineheader a {
  322. font-weight: normal;
  323. color: DarkRed;
  324. line-height: 1.5em;
  325. }
  326. .inlinefooter {
  327. @include h5bp-hidden;
  328. }
  329. .inlineheader .author {
  330. @include h5bp-hidden;
  331. }
  332. .sidebar {
  333. //temporarily hidden
  334. @include h5bp-hidden;
  335. // float: left;
  336. // min-height: 480px;
  337. // width: $blockLeft-width;
  338. // padding: $blockLeft-paddingAny;
  339. // margin-top: 2%;
  340. // margin-left: -(100% - $blockLeft-marginLeft);
  341. // margin-bottom: 2%;
  342. // border: none;
  343. // background-color: LightBlue;
  344. // text-align: left;
  345. }
  346. .farbar {
  347. float: left;
  348. min-height: 480px;
  349. // width: $blockRight-width;
  350. width: 23%;
  351. margin-top: 0;
  352. // margin-left: -($blockRight-fullwidth - $blockRight-marginLeft);
  353. margin-left: -27%;
  354. margin-bottom: 0;
  355. // padding: $blockRight-paddingAny;
  356. padding: 2em 2%;
  357. background-color: LightBlue;
  358. text-align: left;
  359. img {
  360. height: auto;
  361. width: 100%;
  362. }
  363. #mc_embed_signup {
  364. background-color: inherit;
  365. font: inherit;
  366. }
  367. ul {
  368. padding-left: 0.5em;
  369. }
  370. p, ul p {
  371. margin: 1em 0;
  372. color: DarkBlue;
  373. }
  374. ul li {
  375. @include no-bullets;
  376. padding: 0;
  377. line-height: 1.5em;
  378. a {
  379. font-weight: normal;
  380. }
  381. .selflink {
  382. font-weight: bold;
  383. }
  384. }
  385. .inlinepage {
  386. margin: 1em 0;
  387. }
  388. }
  389. @media screen and (max-width: 480px) {
  390. #content {
  391. width: 96%;
  392. margin: 0;
  393. padding: 0 2%;
  394. }
  395. .columns {
  396. @include column-count(1);
  397. }
  398. .inlinepage {
  399. margin: 0;
  400. }
  401. .farbar {
  402. width: 96%;
  403. margin-left: 0;
  404. }
  405. .sidebar {
  406. float: none;
  407. width: 96%;
  408. margin-left: 0;
  409. }
  410. }
  411. .farbar p i {
  412. font-size: 0.8em;
  413. line-height: 1em;
  414. }
  415. .farbar .inlinepage img {
  416. @include h5bp-hidden;
  417. }
  418. .farbar h3 a {
  419. color: black;
  420. font-weight: bold;
  421. }
  422. .tags {
  423. @include h5bp-hidden;
  424. }
  425. #backlinks {
  426. @include h5bp-hidden;
  427. }
  428. #footer {
  429. clear: left;
  430. width: 100%;
  431. margin: 2% 0 0;
  432. ul {
  433. @include no-bullets;
  434. padding: 0;
  435. }
  436. // to secure readability with current colors.
  437. img {
  438. height: auto;
  439. float: none;
  440. display: block;
  441. padding: 0;
  442. }
  443. #mc_embed_signup {
  444. background-color: inherit;
  445. font: inherit;
  446. input {
  447. color: Black;
  448. }
  449. .button {
  450. color: DarkBlue;
  451. background-color: LightBlue;
  452. }
  453. form {
  454. padding: 0;
  455. }
  456. label {
  457. font-size: inherit;
  458. }
  459. }
  460. }
  461. #pageinfo {
  462. margin: 0;
  463. border-top: 0;
  464. padding:1em 1em 1em 20px;
  465. background-color: #336699;
  466. color: LightBlue;
  467. a {
  468. color: LightBlue;
  469. &:hover {
  470. color: white;
  471. }
  472. }
  473. }
  474. .pagedate {
  475. margin-top: 0;
  476. }
  477. .pagecopyright,
  478. .pagecopyright P {
  479. margin-top: 0;
  480. margin-bottom: 0;
  481. }
  482. //Responsive design
  483. @media screen and (max-width: 480px) {
  484. .columns {
  485. @include column-count(1);
  486. }
  487. .inlinepage {
  488. margin: 0;
  489. }
  490. }
  491. @media screen and (min-width: 480px) and (max-width: 700px) {
  492. .columns {
  493. @include column-count(2);
  494. }
  495. }
  496. @media screen and (min-width: 701px) {
  497. .columns {
  498. @include column-count(3);
  499. }
  500. }