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