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