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