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