summaryrefslogtreecommitdiff
path: root/style.scss
blob: b80c6ec580b034d458999a8385f8661cf00365cf (plain)
  1. @import "partials/base";
  2. @import "h5bp";
  3. @import "compass/typography/links";
  4. @import "compass/typography/lists";
  5. @import "../shared/themes/default/ikiwiki";
  6. // to make responsive functions and columns possible
  7. @import 'h5bp/helpers';
  8. @import 'compass/css3';
  9. // site defaults
  10. @include h5bp-normalize;
  11. @include h5bp-main;
  12. @include ikiwiki-images;
  13. @include ikiwiki-pre;
  14. // generic styles
  15. @include ikiwiki-lists;
  16. @include ikiwiki-feedbutton;
  17. @include ikiwiki-forms;
  18. @include ikiwiki-alignment;
  19. @include ikiwiki-debug;
  20. @include ikiwiki-plugin-highlight;
  21. @include ikiwiki-plugin-color;
  22. // based on ikiwiki-plugin-img
  23. // - img.img styling
  24. // + left-aligned
  25. // + vertical margin
  26. // + line-height
  27. .img caption {
  28. margin: -1em 0 1.5em;
  29. line-height: 175%;
  30. font-size: 80%;
  31. caption-side: bottom;
  32. text-align: left;
  33. }
  34. // shell
  35. // layout
  36. @include ikiwiki-site;
  37. @include ikiwiki-site-print;
  38. // modulars
  39. @include ikiwiki-infobox;
  40. @include ikiwiki-notebook;
  41. @include ikiwiki-popup;
  42. @include ikiwiki-plugin-calendar;
  43. @include ikiwiki-plugin-progress;
  44. @include ikiwiki-plugin-map;
  45. @include ikiwiki-plugin-poll;
  46. @include ikiwiki-plugin-pagestats;
  47. @include ikiwiki-plugin-flattr;
  48. @include ikiwiki-blogform;
  49. // section/page specific
  50. @include ikiwiki-archivepage;
  51. @include ikiwiki-plugin-recentchanges;
  52. @include ikiwiki-plugin-editpage;
  53. @include ikiwiki-plugin-attachment;
  54. @include ikiwiki-plugin-openid;
  55. h1 {
  56. font-weight: normal;
  57. color: DarkRed;
  58. margin-bottom: 0.1em;
  59. line-height: 1.4em;
  60. }
  61. h2,
  62. h3 {
  63. margin-bottom: 0.1em;
  64. }
  65. h4,
  66. h5,
  67. h6 {
  68. text-decoration: blink;
  69. }
  70. h2 {
  71. font-weight: normal;
  72. font-size: 1.4em;
  73. }
  74. h3 {
  75. font-size: 1.1em;
  76. font-weight: bold;
  77. line-height: 1.6em;
  78. }
  79. a {
  80. @include hover-link;
  81. color: darkblue;
  82. font-weight: normal;
  83. }
  84. p {
  85. margin-top: 0.2em;
  86. margin-bottom: 1.2em;
  87. }
  88. i {
  89. display: none;
  90. }
  91. ul {
  92. margin-bottom: 1.2em;
  93. }
  94. blockquote {
  95. font-style: italic;
  96. margin: 1em;
  97. }
  98. body {
  99. margin: 0;
  100. background-color: white;
  101. font-family: sans-serif;
  102. }
  103. .pageheader .title {
  104. display: none;
  105. }
  106. .parentlinks {
  107. display: none;
  108. }
  109. #searchform {
  110. margin: 20px;
  111. }
  112. .pageheader .actions {
  113. position: absolute;
  114. top: 0;
  115. right: 2em;
  116. background-color: transparent;
  117. ul {
  118. @include inline-block-list;
  119. height: 2em; // TODO: figure out if this can be eliminated
  120. }
  121. a {
  122. color: transparent;
  123. &:hover {
  124. color: lightblue;
  125. text-decoration: none;
  126. }
  127. }
  128. }
  129. .author {
  130. font-size: 1em;
  131. line-height: 1.8em;
  132. }
  133. .archivepage {
  134. margin-buttom: 0;
  135. }
  136. .archivepagedate {
  137. display: none;
  138. }
  139. .topbar {
  140. height: 60px;
  141. margin: 0;
  142. padding: 20px 0;
  143. background-color: lightblue;
  144. text-align: center;
  145. text-transform: uppercase;
  146. letter-spacing: 1px;
  147. // position: absolute;
  148. top: 0;
  149. // right: 0;
  150. }
  151. //styling of background image.//
  152. .topbar .imgframe {
  153. @extend .topbar;
  154. position: absolute;
  155. top: 0;
  156. width: 100%;
  157. z-index: -1;
  158. }
  159. .topbar p {
  160. float: left;
  161. }
  162. .topbar a {
  163. font-weight: bold;
  164. &:hover {
  165. text-decoration: none;
  166. }
  167. }
  168. .topbar ul {
  169. @include inline-block-list(20px);
  170. }
  171. .topbar li,
  172. .topbar ul,
  173. .topbar ul li,
  174. .topbar ol,
  175. .topbar ol li {
  176. font-size: 1.1em;
  177. line-height: 2em;
  178. }
  179. .topbar img {
  180. margin: 0 20px;
  181. }
  182. #wrapper,
  183. #pagebody {
  184. float: left;
  185. width: 100%;
  186. }
  187. #content {
  188. float: left;
  189. min-height: 480px;
  190. width: 56%;
  191. max-width: 72em;
  192. margin: 2% 22%;
  193. padding: 0;
  194. text-align: left;
  195. background-color: none;
  196. }
  197. .notebox {
  198. float: none;
  199. display: block;
  200. //Overwrite ikiwiki default width:
  201. width: inherit;
  202. max-width: 48em;
  203. margin-right: 2em;
  204. //
  205. color: gray !important;
  206. background-color: none;
  207. margin-left: 0;
  208. text-align: center;
  209. }
  210. img {
  211. float: left;
  212. vertical-align: top;
  213. margin: 0 1em 1em 0;
  214. padding: 0;
  215. max-width: 100%;
  216. height: auto;
  217. }
  218. #content img.deco {
  219. display: block;
  220. clear: both;
  221. float: right;
  222. width: 50%;
  223. max-width: 200px;
  224. margin: 0;
  225. padding: 0 0 4% 4%;
  226. background-color: none;
  227. }
  228. #content img.solo {
  229. float: none;
  230. display: block;
  231. padding: 0;
  232. }
  233. #content img.x2470x3783 {
  234. height:3783px;
  235. width: 2470px;
  236. max-width: 2470px;
  237. }
  238. #content img.x1000x750 {
  239. height: 750px;
  240. width: 1000px;
  241. max-width: 1000px;
  242. }
  243. #content img.x108x132 {
  244. height: 132px;
  245. width: 108px;
  246. max-width: 108px;
  247. }
  248. td,
  249. th {
  250. padding: 0 1em 0 0;
  251. }
  252. .inlinepage {
  253. border: 0;
  254. padding: 1em 5%;
  255. margin: 0;
  256. background-color: lightyellow;
  257. }
  258. .inlinepage .header a {
  259. font-weight: normal;
  260. color: DarkRed;
  261. line-height: 1.5em;
  262. }
  263. .inlinefooter {
  264. display: none;
  265. }
  266. .inlineheader .author {
  267. display: none;
  268. }
  269. .sidebar {
  270. float: left;
  271. min-height: 480px;
  272. width: 16%;
  273. padding: 1%;
  274. margin-top: 2%;
  275. margin-left: -98%;
  276. margin-bottom: 2%;
  277. border: none;
  278. background-color: LightBlue;
  279. text-align: left;
  280. }
  281. .sidebar ul {
  282. padding-left: 0.5em;
  283. p {
  284. margin: 1em 0;
  285. }
  286. }
  287. .sidebar ul li {
  288. list-style-type: none;
  289. padding: 0;
  290. }
  291. .sidebar ul li,
  292. .sidebar ul li p {
  293. line-height: 1.5em;
  294. }
  295. .sidebar ul li a {
  296. font-weight: normal;
  297. }
  298. .sidebar p {
  299. color: DarkBlue;
  300. }
  301. .sidebar ul li .selflink {
  302. font-weight: bold;
  303. }
  304. .farbar {
  305. float: left;
  306. min-height: 480px;
  307. width: 16%;
  308. margin-top: 2%;
  309. margin-left: -20%;
  310. margin-bottom: 2%;
  311. padding: 1%;
  312. background-color: LightBlue;
  313. text-align: left;
  314. img {
  315. height: auto;
  316. width: 100%;
  317. }
  318. #mc_embed_signup {
  319. background-color: inherit;
  320. font: inherit;
  321. }
  322. }
  323. .farbar p i {
  324. font-size: 0.8em;
  325. line-height: 1em;
  326. }
  327. .farbar .inlinepage img {
  328. display: none;
  329. }
  330. .farbar h3 a {
  331. color: black;
  332. font-weight: bold;
  333. }
  334. .tags {
  335. display: none;
  336. }
  337. #backlinks {
  338. display: none;
  339. }
  340. #footer {
  341. clear: left;
  342. width: 100%;
  343. margin: 2% 0 0;
  344. ul {
  345. list-style-type: none;
  346. padding: 0;
  347. }
  348. img {
  349. height: auto;
  350. float: none;
  351. display: block;
  352. padding: 0;
  353. }
  354. #mc_embed_signup {
  355. background-color: inherit;
  356. font: inherit;
  357. }
  358. }
  359. #footer #mc_embed_signup form {
  360. padding: 0;
  361. }
  362. #footer #mc_embed_signup label {
  363. font-size: inherit;
  364. }
  365. #pageinfo {
  366. margin: 0;
  367. border-top: 0;
  368. padding:1em 1em 1em 20px;
  369. background-color: lightblue;
  370. }
  371. .pagedate {
  372. margin-top: 0;
  373. }
  374. .pagecopyright,
  375. .pagecopyright P {
  376. margin-top: 0;
  377. margin-bottom: 0;
  378. }
  379. //Responsive design
  380. @media screen and (max-width: 480px) {
  381. .columns {
  382. @include column-count(1);
  383. -webkit-column-count: 1; /* Chrome, Safari, Opera */
  384. -moz-column-count: 1; /* Firefox */
  385. column-count: 1;
  386. }
  387. .inlinepage {
  388. margin: 0;
  389. }
  390. }
  391. @media screen and (min-width: 480px) and (max-width: 700px) {
  392. .columns {
  393. @include column-count(2);
  394. -webkit-column-count: 2; /* Chrome, Safari, Opera */
  395. -moz-column-count: 2; /* Firefox */
  396. column-count: 2;
  397. }
  398. }
  399. @media screen and (min-width: 701px) {
  400. .columns {
  401. @include column-count(3);
  402. -webkit-column-count: 3; /* Chrome, Safari, Opera */
  403. -moz-column-count: 3; /* Firefox */
  404. column-count: 3;
  405. }
  406. }