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