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