summaryrefslogtreecommitdiff
path: root/style.scss
blob: dbc0190136d561e1a570298e4b8c6eff96d8ddcb (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. h2,
  58. h3 {
  59. margin-bottom: 0.1em;
  60. }
  61. h4,
  62. h5,
  63. h6 {
  64. text-decoration: blink;
  65. }
  66. h2 {
  67. font-weight: normal;
  68. font-size: 1.4em;
  69. }
  70. h3 {
  71. font-size: 1.1em;
  72. font-weight: bold;
  73. line-height: 1.6em;
  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. display: none;
  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. display: none;
  101. }
  102. .parentlinks {
  103. display: none;
  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-buttom: 0;
  131. }
  132. .archivepagedate {
  133. display: none;
  134. }
  135. .topbar {
  136. height: 5em;
  137. margin: 0;
  138. padding: 1.5em 0;
  139. background-color: lightblue;
  140. text-align: center;
  141. text-transform: uppercase;
  142. letter-spacing: 1px;
  143. // position: absolute;
  144. top: 0;
  145. // right: 0;
  146. }
  147. //styling of background image.//
  148. .topbar .imgframe {
  149. @extend .topbar;
  150. position: absolute;
  151. top: 0;
  152. width: 100%;
  153. z-index: -1;
  154. }
  155. .topbar p {
  156. float: left;
  157. }
  158. .topbar a {
  159. font-weight: bold;
  160. &:hover {
  161. text-decoration: none;
  162. }
  163. }
  164. .topbar ul {
  165. @include inline-block-list(20px);
  166. }
  167. .topbar li,
  168. .topbar ul,
  169. .topbar ul li,
  170. .topbar ol,
  171. .topbar ol li {
  172. font-size: 1.1em;
  173. line-height: 2em;
  174. }
  175. .topbar img {
  176. margin: 0 20px;
  177. }
  178. #wrapper,
  179. #pagebody {
  180. float: left;
  181. width: 100%;
  182. }
  183. #content {
  184. float: left;
  185. min-height: 480px;
  186. width: 56%;
  187. max-width: 72em;
  188. margin: 2% 22%;
  189. padding: 0;
  190. text-align: left;
  191. background-color: none;
  192. }
  193. .notebox {
  194. float: none;
  195. display: block;
  196. //Overwrite ikiwiki default width:
  197. width: inherit;
  198. max-width: 48em;
  199. margin-right: 2em;
  200. //
  201. color: gray !important;
  202. background-color: none;
  203. margin-left: 0;
  204. text-align: center;
  205. }
  206. img {
  207. float: left;
  208. vertical-align: top;
  209. margin: 0 1em 1em 0;
  210. padding: 0;
  211. max-width: 100%;
  212. height: auto;
  213. }
  214. #content img.deco {
  215. display: block;
  216. clear: both;
  217. float: right;
  218. width: 50%;
  219. max-width: 200px;
  220. margin: 0;
  221. padding: 0 0 4% 4%;
  222. background-color: none;
  223. }
  224. #content img.solo {
  225. float: none;
  226. display: block;
  227. padding: 0;
  228. }
  229. #content img.x2470x3783 {
  230. height:3783px;
  231. width: 2470px;
  232. max-width: 2470px;
  233. }
  234. #content img.x1000x750 {
  235. height: 750px;
  236. width: 1000px;
  237. max-width: 1000px;
  238. }
  239. #content img.x108x132 {
  240. height: 132px;
  241. width: 108px;
  242. max-width: 108px;
  243. }
  244. td,
  245. th {
  246. padding: 0 1em 0 0;
  247. }
  248. .inlinepage {
  249. border: 0;
  250. padding: 1em 5%;
  251. margin: 0;
  252. background-color: lightyellow;
  253. }
  254. .inlinepage .header a {
  255. font-weight: normal;
  256. color: DarkRed;
  257. line-height: 1.5em;
  258. }
  259. .inlinefooter {
  260. display: none;
  261. }
  262. .inlineheader .author {
  263. display: none;
  264. }
  265. .sidebar {
  266. float: left;
  267. min-height: 480px;
  268. width: 16%;
  269. padding: 1%;
  270. margin-top: 2%;
  271. margin-left: -98%;
  272. margin-bottom: 2%;
  273. border: none;
  274. background-color: LightBlue;
  275. text-align: left;
  276. }
  277. .sidebar ul {
  278. padding-left: 0.5em;
  279. p {
  280. margin: 1em 0;
  281. }
  282. }
  283. .sidebar ul li {
  284. list-style-type: none;
  285. padding: 0;
  286. }
  287. .sidebar ul li,
  288. .sidebar ul li p {
  289. line-height: 1.5em;
  290. }
  291. .sidebar ul li a {
  292. font-weight: normal;
  293. }
  294. .sidebar p {
  295. color: DarkBlue;
  296. }
  297. .sidebar ul li .selflink {
  298. font-weight: bold;
  299. }
  300. .farbar {
  301. float: left;
  302. min-height: 480px;
  303. width: 16%;
  304. margin-top: 2%;
  305. margin-left: -20%;
  306. margin-bottom: 2%;
  307. padding: 1%;
  308. background-color: LightBlue;
  309. text-align: left;
  310. img {
  311. height: auto;
  312. width: 100%;
  313. }
  314. #mc_embed_signup {
  315. background-color: inherit;
  316. font: inherit;
  317. }
  318. }
  319. .farbar p i {
  320. font-size: 0.8em;
  321. line-height: 1em;
  322. }
  323. .farbar .inlinepage img {
  324. display: none;
  325. }
  326. .farbar h3 a {
  327. color: black;
  328. font-weight: bold;
  329. }
  330. .tags {
  331. display: none;
  332. }
  333. #backlinks {
  334. display: none;
  335. }
  336. #footer {
  337. clear: left;
  338. width: 100%;
  339. margin: 2% 0 0;
  340. ul {
  341. list-style-type: none;
  342. padding: 0;
  343. }
  344. img {
  345. height: auto;
  346. float: none;
  347. display: block;
  348. padding: 0;
  349. }
  350. #mc_embed_signup {
  351. background-color: inherit;
  352. font: inherit;
  353. }
  354. }
  355. #footer #mc_embed_signup form {
  356. padding: 0;
  357. }
  358. #footer #mc_embed_signup label {
  359. font-size: inherit;
  360. }
  361. #pageinfo {
  362. margin: 0;
  363. border-top: 0;
  364. padding:1em 1em 1em 20px;
  365. background-color: lightblue;
  366. }
  367. .pagedate {
  368. margin-top: 0;
  369. }
  370. .pagecopyright,
  371. .pagecopyright P {
  372. margin-top: 0;
  373. margin-bottom: 0;
  374. }
  375. //Responsive design
  376. @media screen and (max-width: 480px) {
  377. .columns {
  378. @include column-count(1);
  379. -webkit-column-count: 1; /* Chrome, Safari, Opera */
  380. -moz-column-count: 1; /* Firefox */
  381. column-count: 1;
  382. }
  383. .inlinepage {
  384. margin: 0;
  385. }
  386. }
  387. @media screen and (min-width: 480px) and (max-width: 700px) {
  388. .columns {
  389. @include column-count(2);
  390. -webkit-column-count: 2; /* Chrome, Safari, Opera */
  391. -moz-column-count: 2; /* Firefox */
  392. column-count: 2;
  393. }
  394. }
  395. @media screen and (min-width: 701px) {
  396. .columns {
  397. @include column-count(3);
  398. -webkit-column-count: 3; /* Chrome, Safari, Opera */
  399. -moz-column-count: 3; /* Firefox */
  400. column-count: 3;
  401. }
  402. }