summaryrefslogtreecommitdiff
path: root/style.scss
blob: 86d5a48828eef90318d06908ee2179fac3a14368 (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. h2 {
  57. font-weight: normal;
  58. font-size: 1.5em;
  59. }
  60. h3 {
  61. font-size: 1.25em;
  62. font-weight: bold;
  63. }
  64. h1,
  65. h2,
  66. h3 {
  67. margin-top: 1em;
  68. margin-bottom: 0.2em;
  69. }
  70. a {
  71. @include hover-link;
  72. color: darkblue;
  73. font-weight: normal;
  74. }
  75. ul {
  76. margin-bottom: 1.2em;
  77. }
  78. blockquote {
  79. font-style: italic;
  80. margin: 1em;
  81. }
  82. .pageheader .title {
  83. display: none !important;
  84. visibility: hidden;
  85. }
  86. .parentlinks {
  87. display: none !important;
  88. visibility: hidden;
  89. }
  90. #searchform {
  91. margin: 20px;
  92. }
  93. .pageheader .actions {
  94. position: absolute;
  95. top: 0;
  96. right: 2em;
  97. background-color: transparent;
  98. ul {
  99. @include inline-block-list;
  100. }
  101. a {
  102. color: transparent;
  103. &:hover {
  104. color: lightblue;
  105. text-decoration: none;
  106. }
  107. }
  108. }
  109. .author {
  110. font-size: 1em;
  111. line-height: 1.8em;
  112. }
  113. .archivepage {
  114. margin-left: 0.5em;
  115. margin-bottom: 0.5em;
  116. // a {
  117. // color: black;
  118. // &:hover {
  119. // color: DarkBlue;
  120. // }
  121. // }
  122. }
  123. .archivepagedate {
  124. display: none !important;
  125. visibility: hidden;
  126. }
  127. .topbar {
  128. height: 12.8125em; // main menu font size * (top + height)
  129. background-color: #336699;
  130. text-transform: uppercase;
  131. letter-spacing: 1px;
  132. }
  133. //styling of background image.//
  134. /*
  135. Example use (in topbar.mdwn file!):
  136. <div class="imgframe" style="background-image:url('../tjeneren.jpg')"></div>
  137. */
  138. .topbar .imgframe {
  139. @extend .topbar;
  140. top: 0;
  141. width: 100%;
  142. background-position: center;
  143. }
  144. .topbar p {
  145. margin-top: 0;
  146. margin-bottom: 0;
  147. }
  148. // main menu
  149. .topbar ul {
  150. @include inline-block-list;
  151. position: absolute;
  152. top: 6.25em;
  153. height: 4em;
  154. width: 100%;
  155. font-size: 1.25em;
  156. line-height: 2em;
  157. text-align: center;
  158. li {
  159. a,
  160. .selflink {
  161. @include inline-block;
  162. width: 8em;
  163. padding: 1em .5em;
  164. background-color: #6699cc;
  165. color: white;
  166. font-weight: bold;
  167. &:hover {
  168. background-color: lightblue;
  169. color: #336699;
  170. text-decoration: none;
  171. }
  172. }
  173. }
  174. @media screen and (max-width: 480px) {
  175. top: 9em;
  176. font-size: inherit;
  177. }
  178. @media screen and (min-width: 701px) {
  179. right: 6em;
  180. width: auto;
  181. li {
  182. padding-left: .2em;
  183. padding-right: .2em;
  184. text-align: center;
  185. a,
  186. .selflink {
  187. width: 10em;
  188. padding: 1em;
  189. }
  190. }
  191. }
  192. }
  193. .topbar img {
  194. margin: 1.5em 20px;
  195. background-color: transparent;
  196. }
  197. #wrapper,
  198. #pagebody {
  199. float: left;
  200. width: 100%;
  201. }
  202. #content {
  203. min-height: 480px;
  204. // width: (100% - $blockMid-marginBoth - $blockLeft-fullwidth - $blockRight-fullwidth);
  205. width: 68%;
  206. // margin: 2% ($blockMid-marginRight + $blockRight-fullwidth) 2% ($blockMid-marginLeft + $blockLeft-fullwidth);
  207. margin: 0;
  208. padding: 2em 2%;
  209. text-align: left;
  210. background-color: none;
  211. p {
  212. max-width: 52em;
  213. }
  214. div.deco p {
  215. max-width: unset;
  216. }
  217. }
  218. .notebox {
  219. float: none;
  220. display: block;
  221. //Overwrite ikiwiki default width:
  222. width: inherit;
  223. max-width: 48em;
  224. padding: 1em 2em;
  225. margin-top: 2em;
  226. margin-bottom: 2em;
  227. margin-right: 2em;
  228. border: 0;
  229. //
  230. color: none !important;
  231. background-color: lightblue;
  232. margin-left: 0;
  233. text-align: center;
  234. }
  235. //General image behaviour.
  236. img,
  237. table.img {
  238. float: left;
  239. vertical-align: top;
  240. margin-right: 2em;
  241. padding: 0;
  242. max-width: 100%;
  243. height: auto;
  244. }
  245. table.img td {
  246. padding: 0;
  247. }
  248. table.img img {
  249. margin-right: 0;
  250. }
  251. img {
  252. margin-bottom: 1em;
  253. }
  254. //Styling of tall images
  255. img.tall {
  256. width: 300px;
  257. height: auto;
  258. }
  259. //Small images in tour descriptions, floating in a vertical row, not inflicting on the text content.
  260. img.deco {
  261. display: block;
  262. clear: both;
  263. float: right;
  264. width: 20%;
  265. // max-width: 200px;
  266. margin: 0;
  267. padding: 0 0 1em 4%;
  268. background-color: none;
  269. }
  270. //Tiny image strips, designed for lists in a column.
  271. img.flex {
  272. max-height: 80px;
  273. width: auto;
  274. display: block;
  275. float: none;
  276. }
  277. //Image clearing text.
  278. img.solo,
  279. table.img.solo {
  280. float: none;
  281. clear: both;
  282. display: block;
  283. padding: 0;
  284. width: 500px;
  285. height: auto;
  286. }
  287. //One (concrete) image meant to fill the whole viewport.
  288. img.x2470x3783 {
  289. height:3783px;
  290. width: 2470px;
  291. max-width: 2470px;
  292. }
  293. //Not sure what it's for
  294. img.x1000x750 {
  295. height: 750px;
  296. width: 1000px;
  297. max-width: 1000px;
  298. }
  299. //Not sure what it's for
  300. img.x108x132 {
  301. height: 132px;
  302. width: 108px;
  303. max-width: 108px;
  304. }
  305. //Thumbnails for inline lists on overview pages.
  306. .inlinecontent img.overview {
  307. width: 200px;
  308. height: auto;
  309. }
  310. //Images in inline lists on the blog.
  311. .inlinecontent img.blog {
  312. width: 500px;
  313. display: block;
  314. float: none;
  315. }
  316. td,
  317. th {
  318. padding: 0 1em 0 0;
  319. }
  320. //Form
  321. .fb_label {
  322. display: inline-block;
  323. width: 8em;
  324. }
  325. .inlinepage {
  326. border: 0;
  327. padding: 1em 5%;
  328. margin: 0;
  329. background-color: lightyellow;
  330. }
  331. .inlineheader a {
  332. font-weight: normal;
  333. color: DarkRed;
  334. line-height: 1.5em;
  335. }
  336. .inlinefooter {
  337. display: none !important;
  338. visibility: hidden;
  339. }
  340. .inlineheader .author {
  341. display: none !important;
  342. visibility: hidden;
  343. }
  344. .sidebar {
  345. //temporarily hidden
  346. display: none !important;
  347. visibility: hidden;
  348. // float: left;
  349. // min-height: 480px;
  350. // width: $blockLeft-width;
  351. // padding: $blockLeft-paddingAny;
  352. // margin-top: 2%;
  353. // margin-left: -(100% - $blockLeft-marginLeft);
  354. // margin-bottom: 2%;
  355. // border: none;
  356. // background-color: LightBlue;
  357. // text-align: left;
  358. }
  359. .farbar {
  360. float: left;
  361. min-height: 480px;
  362. // width: $blockRight-width;
  363. width: 23%;
  364. margin-top: 0;
  365. // margin-left: -($blockRight-fullwidth - $blockRight-marginLeft);
  366. margin-left: -27%;
  367. margin-bottom: 0;
  368. // padding: $blockRight-paddingAny;
  369. padding: 2em 2%;
  370. background-color: LightBlue;
  371. text-align: left;
  372. img {
  373. height: auto;
  374. width: 100%;
  375. }
  376. #mc_embed_signup {
  377. background-color: inherit;
  378. font: inherit;
  379. }
  380. ul {
  381. padding-left: 0.5em;
  382. }
  383. p, ul p {
  384. margin: 1em 0;
  385. color: DarkBlue;
  386. }
  387. ul li {
  388. @include no-bullets;
  389. padding: 0;
  390. line-height: 1.7em;
  391. a {
  392. font-weight: normal;
  393. }
  394. .selflink {
  395. font-weight: bold;
  396. }
  397. }
  398. .inlinepage {
  399. margin: 1em 0;
  400. p {
  401. color: black;
  402. }
  403. }
  404. }
  405. @media screen and (max-width: 480px) {
  406. #content {
  407. width: 96%;
  408. margin: 0;
  409. padding: 0 2%;
  410. }
  411. .columns {
  412. @include column-count(1);
  413. }
  414. .inlinepage {
  415. margin: 0;
  416. }
  417. .farbar {
  418. width: 96%;
  419. margin-left: 0;
  420. }
  421. .sidebar {
  422. float: none;
  423. width: 96%;
  424. margin-left: 0;
  425. }
  426. }
  427. .farbar p i {
  428. font-size: 0.8em;
  429. line-height: 1em;
  430. }
  431. .farbar .inlinepage img {
  432. display: none !important;
  433. visibility: hidden;
  434. }
  435. .farbar h3 a {
  436. color: black;
  437. font-weight: bold;
  438. }
  439. .tags {
  440. display: none !important;
  441. visibility: hidden;
  442. }
  443. #backlinks {
  444. display: none !important;
  445. visibility: hidden;
  446. }
  447. #footer {
  448. clear: left;
  449. width: 100%;
  450. margin: 2% 0 0;
  451. ul {
  452. @include no-bullets;
  453. padding: 0;
  454. }
  455. // to secure readability with current colors.
  456. img {
  457. height: auto;
  458. float: none;
  459. display: block;
  460. padding: 0;
  461. }
  462. #mc_embed_signup {
  463. background-color: inherit;
  464. font: inherit;
  465. input {
  466. color: Black;
  467. }
  468. .button {
  469. color: DarkBlue;
  470. background-color: LightBlue;
  471. }
  472. form {
  473. padding: 0;
  474. }
  475. label {
  476. font-size: inherit;
  477. }
  478. }
  479. }
  480. #pageinfo {
  481. margin: 0;
  482. border-top: 0;
  483. padding:1em 1em 1em 20px;
  484. background-color: #336699;
  485. color: LightBlue;
  486. a {
  487. color: LightBlue;
  488. &:hover {
  489. color: white;
  490. }
  491. }
  492. }
  493. .pagedate {
  494. margin-top: 0;
  495. }
  496. .pagecopyright,
  497. .pagecopyright P {
  498. margin-top: 0;
  499. margin-bottom: 0;
  500. }
  501. //Responsive design
  502. @media screen and (max-width: 480px) {
  503. .columns {
  504. @include column-count(1);
  505. }
  506. .inlinepage {
  507. margin: 0;
  508. }
  509. }
  510. @media screen and (min-width: 480px) and (max-width: 700px) {
  511. .columns {
  512. @include column-count(2);
  513. }
  514. }
  515. @media screen and (min-width: 701px) {
  516. .columns {
  517. @include column-count(3);
  518. }
  519. }
  520. .grid {
  521. display: grid;
  522. grid-flow: column;
  523. grid-template-columns: repeat(3, 1fr);
  524. }