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