summaryrefslogtreecommitdiff
path: root/style.scss
blob: fb6a15bbbde6c7c2f59a93c49ed78ae8d28db42e (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. line-height: 1.4em;
  55. }
  56. h4,
  57. h5,
  58. h6 {
  59. text-decoration: blink;
  60. }
  61. h2 {
  62. font-weight: normal;
  63. font-size: 1.5em;
  64. }
  65. h3 {
  66. font-size: 1.25em;
  67. font-weight: bold;
  68. }
  69. h1,
  70. h2,
  71. h3 {
  72. margin-top: 1em;
  73. margin-bottom: 0.2em;
  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: none !important;
  242. background-color: lightblue;
  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 2em 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. height: auto;
  259. }
  260. //Small images in tour descriptions, floating in a vertical row, not inflicting on the text content.
  261. #content img.deco {
  262. display: block;
  263. clear: both;
  264. float: right;
  265. width: 20%;
  266. // max-width: 200px;
  267. margin: 0;
  268. padding: 0 0 1em 4%;
  269. background-color: none;
  270. }
  271. //Tiny image strips, designed for lists in a column.
  272. #content img.flex {
  273. max-height: 80px;
  274. width: auto;
  275. display: block;
  276. float: none;
  277. }
  278. //Image pushing text down, below. Fixed width as an experiment.
  279. #content img.solo {
  280. float: none;
  281. display: block;
  282. padding: 0;
  283. width: 500px;
  284. height: auto;
  285. }
  286. //One (concrete) image meant to fill the whole viewport.
  287. #content img.x2470x3783 {
  288. height:3783px;
  289. width: 2470px;
  290. max-width: 2470px;
  291. }
  292. //Not sure what it's for
  293. #content img.x1000x750 {
  294. height: 750px;
  295. width: 1000px;
  296. max-width: 1000px;
  297. }
  298. //Not sure what it's for
  299. #content img.x108x132 {
  300. height: 132px;
  301. width: 108px;
  302. max-width: 108px;
  303. }
  304. //Thumbnails for inline lists on overview pages.
  305. .inlinecontent img.overview {
  306. width: 200px;
  307. height: auto;
  308. }
  309. //Images in inline lists on the blog.
  310. .inlinecontent img.blog {
  311. width: 500px;
  312. display: block;
  313. float: none;
  314. }
  315. td,
  316. th {
  317. padding: 0 1em 0 0;
  318. }
  319. //Form
  320. .fb_label {
  321. display: inline-block;
  322. widht: 8em;
  323. }
  324. .inlinepage {
  325. border: 0;
  326. padding: 1em 5%;
  327. margin: 0;
  328. background-color: lightyellow;
  329. }
  330. .inlineheader a {
  331. font-weight: normal;
  332. color: DarkRed;
  333. line-height: 1.5em;
  334. }
  335. .inlinefooter {
  336. @include h5bp-hidden;
  337. }
  338. .inlineheader .author {
  339. @include h5bp-hidden;
  340. }
  341. .sidebar {
  342. //temporarily hidden
  343. @include h5bp-hidden;
  344. // float: left;
  345. // min-height: 480px;
  346. // width: $blockLeft-width;
  347. // padding: $blockLeft-paddingAny;
  348. // margin-top: 2%;
  349. // margin-left: -(100% - $blockLeft-marginLeft);
  350. // margin-bottom: 2%;
  351. // border: none;
  352. // background-color: LightBlue;
  353. // text-align: left;
  354. }
  355. .farbar {
  356. float: left;
  357. min-height: 480px;
  358. // width: $blockRight-width;
  359. width: 23%;
  360. margin-top: 0;
  361. // margin-left: -($blockRight-fullwidth - $blockRight-marginLeft);
  362. margin-left: -27%;
  363. margin-bottom: 0;
  364. // padding: $blockRight-paddingAny;
  365. padding: 2em 2%;
  366. background-color: LightBlue;
  367. text-align: left;
  368. img {
  369. height: auto;
  370. width: 100%;
  371. }
  372. #mc_embed_signup {
  373. background-color: inherit;
  374. font: inherit;
  375. }
  376. ul {
  377. padding-left: 0.5em;
  378. }
  379. p, ul p {
  380. margin: 1em 0;
  381. color: DarkBlue;
  382. }
  383. ul li {
  384. @include no-bullets;
  385. padding: 0;
  386. line-height: 1.5em;
  387. a {
  388. font-weight: normal;
  389. }
  390. .selflink {
  391. font-weight: bold;
  392. }
  393. }
  394. .inlinepage {
  395. margin: 1em 0;
  396. p {
  397. color: black;
  398. }
  399. }
  400. }
  401. @media screen and (max-width: 480px) {
  402. #content {
  403. width: 96%;
  404. margin: 0;
  405. padding: 0 2%;
  406. }
  407. .columns {
  408. @include column-count(1);
  409. }
  410. .inlinepage {
  411. margin: 0;
  412. }
  413. .farbar {
  414. width: 96%;
  415. margin-left: 0;
  416. }
  417. .sidebar {
  418. float: none;
  419. width: 96%;
  420. margin-left: 0;
  421. }
  422. }
  423. .farbar p i {
  424. font-size: 0.8em;
  425. line-height: 1em;
  426. }
  427. .farbar .inlinepage img {
  428. @include h5bp-hidden;
  429. }
  430. .farbar h3 a {
  431. color: black;
  432. font-weight: bold;
  433. }
  434. .tags {
  435. @include h5bp-hidden;
  436. }
  437. #backlinks {
  438. @include h5bp-hidden;
  439. }
  440. #footer {
  441. clear: left;
  442. width: 100%;
  443. margin: 2% 0 0;
  444. ul {
  445. @include no-bullets;
  446. padding: 0;
  447. }
  448. // to secure readability with current colors.
  449. img {
  450. height: auto;
  451. float: none;
  452. display: block;
  453. padding: 0;
  454. }
  455. #mc_embed_signup {
  456. background-color: inherit;
  457. font: inherit;
  458. input {
  459. color: Black;
  460. }
  461. .button {
  462. color: DarkBlue;
  463. background-color: LightBlue;
  464. }
  465. form {
  466. padding: 0;
  467. }
  468. label {
  469. font-size: inherit;
  470. }
  471. }
  472. }
  473. #pageinfo {
  474. margin: 0;
  475. border-top: 0;
  476. padding:1em 1em 1em 20px;
  477. background-color: #336699;
  478. color: LightBlue;
  479. a {
  480. color: LightBlue;
  481. &:hover {
  482. color: white;
  483. }
  484. }
  485. }
  486. .pagedate {
  487. margin-top: 0;
  488. }
  489. .pagecopyright,
  490. .pagecopyright P {
  491. margin-top: 0;
  492. margin-bottom: 0;
  493. }
  494. //Responsive design
  495. @media screen and (max-width: 480px) {
  496. .columns {
  497. @include column-count(1);
  498. }
  499. .inlinepage {
  500. margin: 0;
  501. }
  502. }
  503. @media screen and (min-width: 480px) and (max-width: 700px) {
  504. .columns {
  505. @include column-count(2);
  506. }
  507. }
  508. @media screen and (min-width: 701px) {
  509. .columns {
  510. @include column-count(3);
  511. }
  512. }