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