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