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