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