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