summaryrefslogtreecommitdiff
path: root/style.scss
blob: 83c0245ca8f27cf847707ccc563d5f53bd007398 (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: 10em;
  144. margin: 0;
  145. padding: 1.5em 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. position: absolute;
  161. top: 0;
  162. width: 100%;
  163. z-index: -1;
  164. }
  165. .topbar p {
  166. margin-top: 0;
  167. margin-bottom: 0;
  168. }
  169. // main menu
  170. .topbar ul {
  171. @include inline-block-list;
  172. position: absolute;
  173. top: 6.25em;
  174. height: 4em;
  175. width: 100%;
  176. font-size: 1.25em;
  177. line-height: 2em;
  178. text-align: center;
  179. li {
  180. a,
  181. .selflink {
  182. @include inline-block;
  183. width: 8em;
  184. padding: 1em .5em;
  185. background-color: #6699cc;
  186. color: white;
  187. font-weight: bold;
  188. &:hover {
  189. background-color: lightblue;
  190. color: #336699;
  191. text-decoration: none;
  192. }
  193. }
  194. }
  195. @media screen and (max-width: 480px) {
  196. top: 9em;
  197. font-size: inherit;
  198. }
  199. @media screen and (min-width: 701px) {
  200. right: 6em;
  201. width: auto;
  202. li {
  203. padding-left: .2em;
  204. padding-right: .2em;
  205. text-align: center;
  206. a,
  207. .selflink {
  208. width: 10em;
  209. padding: 1em;
  210. }
  211. }
  212. }
  213. }
  214. .topbar img {
  215. margin: 0 20px;
  216. background-color: transparent;
  217. }
  218. #wrapper,
  219. #pagebody {
  220. float: left;
  221. width: 100%;
  222. }
  223. #content {
  224. min-height: 480px;
  225. // width: (100% - $blockMid-marginBoth - $blockLeft-fullwidth - $blockRight-fullwidth);
  226. width: 68%;
  227. max-width: 72em;
  228. // margin: 2% ($blockMid-marginRight + $blockRight-fullwidth) 2% ($blockMid-marginLeft + $blockLeft-fullwidth);
  229. margin: 0;
  230. padding: 2em 2%;
  231. text-align: left;
  232. background-color: none;
  233. }
  234. .notebox {
  235. float: none;
  236. display: block;
  237. //Overwrite ikiwiki default width:
  238. width: inherit;
  239. max-width: 48em;
  240. margin-right: 2em;
  241. //
  242. color: gray !important;
  243. background-color: none;
  244. margin-left: 0;
  245. text-align: center;
  246. }
  247. img {
  248. float: left;
  249. vertical-align: top;
  250. margin: 0 1em 1em 0;
  251. padding: 0;
  252. max-width: 100%;
  253. height: auto;
  254. }
  255. #content img.deco {
  256. display: block;
  257. clear: both;
  258. float: right;
  259. width: 30%;
  260. max-width: 200px;
  261. margin: 0;
  262. padding: 0 0 1em 4%;
  263. background-color: none;
  264. }
  265. #content img.flex {
  266. max-height: 80px;
  267. width: auto;
  268. display: block;
  269. float: none;
  270. }
  271. #content img.solo {
  272. float: none;
  273. display: block;
  274. padding: 0;
  275. }
  276. #content img.x2470x3783 {
  277. height:3783px;
  278. width: 2470px;
  279. max-width: 2470px;
  280. }
  281. #content img.x1000x750 {
  282. height: 750px;
  283. width: 1000px;
  284. max-width: 1000px;
  285. }
  286. #content img.x108x132 {
  287. height: 132px;
  288. width: 108px;
  289. max-width: 108px;
  290. }
  291. td,
  292. th {
  293. padding: 0 1em 0 0;
  294. }
  295. .inlinepage {
  296. border: 0;
  297. padding: 1em 5%;
  298. margin: 0;
  299. background-color: lightyellow;
  300. }
  301. .inlineheader a {
  302. font-weight: normal;
  303. color: DarkRed;
  304. line-height: 1.5em;
  305. }
  306. .inlinefooter {
  307. @include h5bp-hidden;
  308. }
  309. .inlineheader .author {
  310. @include h5bp-hidden;
  311. }
  312. .sidebar {
  313. //temporarily hidden
  314. @include h5bp-hidden;
  315. // float: left;
  316. // min-height: 480px;
  317. // width: $blockLeft-width;
  318. // padding: $blockLeft-paddingAny;
  319. // margin-top: 2%;
  320. // margin-left: -(100% - $blockLeft-marginLeft);
  321. // margin-bottom: 2%;
  322. // border: none;
  323. // background-color: LightBlue;
  324. // text-align: left;
  325. }
  326. .sidebar ul {
  327. padding-left: 0.5em;
  328. p {
  329. margin: 1em 0;
  330. }
  331. }
  332. .sidebar ul li {
  333. @include no-bullets;
  334. padding: 0;
  335. }
  336. .sidebar ul li,
  337. .sidebar ul li p {
  338. line-height: 1.5em;
  339. }
  340. .sidebar ul li a {
  341. font-weight: normal;
  342. }
  343. .sidebar p {
  344. color: DarkBlue;
  345. }
  346. .sidebar ul li .selflink {
  347. font-weight: bold;
  348. }
  349. .farbar {
  350. float: left;
  351. min-height: 480px;
  352. // width: $blockRight-width;
  353. width: 23%;
  354. margin-top: 0;
  355. // margin-left: -($blockRight-fullwidth - $blockRight-marginLeft);
  356. margin-left: -27%;
  357. margin-bottom: 0;
  358. // padding: $blockRight-paddingAny;
  359. padding: 2em 2%;
  360. background-color: LightBlue;
  361. text-align: left;
  362. img {
  363. height: auto;
  364. width: 100%;
  365. }
  366. #mc_embed_signup {
  367. background-color: inherit;
  368. font: inherit;
  369. }
  370. }
  371. @media screen and (max-width: 480px) {
  372. #content {
  373. width: 96%;
  374. margin: 0;
  375. padding: 0 2%;
  376. }
  377. .columns {
  378. @include column-count(1);
  379. }
  380. .inlinepage {
  381. margin: 0;
  382. }
  383. .farbar {
  384. width: 96%;
  385. margin-left: 0;
  386. }
  387. .sidebar {
  388. float: none;
  389. width: 96%;
  390. margin-left: 0;
  391. }
  392. }
  393. .farbar p i {
  394. font-size: 0.8em;
  395. line-height: 1em;
  396. }
  397. .farbar .inlinepage img {
  398. @include h5bp-hidden;
  399. }
  400. .farbar h3 a {
  401. color: black;
  402. font-weight: bold;
  403. }
  404. .tags {
  405. @include h5bp-hidden;
  406. }
  407. #backlinks {
  408. @include h5bp-hidden;
  409. }
  410. #footer {
  411. clear: left;
  412. width: 100%;
  413. margin: 2% 0 0;
  414. ul {
  415. @include no-bullets;
  416. padding: 0;
  417. }
  418. // to secure readability with current colors.
  419. img {
  420. height: auto;
  421. float: none;
  422. display: block;
  423. padding: 0;
  424. }
  425. #mc_embed_signup {
  426. background-color: inherit;
  427. font: inherit;
  428. input {
  429. color: Black;
  430. }
  431. .button {
  432. color: DarkBlue;
  433. background-color: LightBlue;
  434. }
  435. }
  436. }
  437. #footer #mc_embed_signup form {
  438. padding: 0;
  439. }
  440. #footer #mc_embed_signup label {
  441. font-size: inherit;
  442. }
  443. #pageinfo {
  444. margin: 0;
  445. border-top: 0;
  446. padding:1em 1em 1em 20px;
  447. background-color: #336699;
  448. color: LightBlue;
  449. a {
  450. color: LightBlue;
  451. &:hover {
  452. color: white;
  453. }
  454. }
  455. }
  456. .pagedate {
  457. margin-top: 0;
  458. }
  459. .pagecopyright,
  460. .pagecopyright P {
  461. margin-top: 0;
  462. margin-bottom: 0;
  463. }
  464. //Responsive design
  465. @media screen and (max-width: 480px) {
  466. .columns {
  467. @include column-count(1);
  468. }
  469. .inlinepage {
  470. margin: 0;
  471. }
  472. }
  473. @media screen and (min-width: 480px) and (max-width: 700px) {
  474. .columns {
  475. @include column-count(2);
  476. }
  477. }
  478. @media screen and (min-width: 701px) {
  479. .columns {
  480. @include column-count(3);
  481. }
  482. }