summaryrefslogtreecommitdiff
path: root/style.scss
blob: fe3f5fd9a479e7e4157dee60f4fc56347753681e (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. @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-buttom: 0;
  131. }
  132. .archivepagedate {
  133. @include h5bp-hidden;
  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. font-size: 1.25em;
  169. line-height: 2em;
  170. }
  171. .topbar img {
  172. margin: 0 20px;
  173. }
  174. #wrapper,
  175. #pagebody {
  176. float: left;
  177. width: 100%;
  178. }
  179. #content {
  180. min-height: 480px;
  181. width: (100% - $blockMid-marginBoth - $blockLeft-fullwidth - $blockRight-fullwidth);
  182. max-width: 72em;
  183. margin: 2% ($blockMid-marginRight + $blockRight-fullwidth) 2% ($blockMid-marginLeft + $blockLeft-fullwidth);
  184. padding: 0;
  185. text-align: left;
  186. background-color: none;
  187. }
  188. .notebox {
  189. float: none;
  190. display: block;
  191. //Overwrite ikiwiki default width:
  192. width: inherit;
  193. max-width: 48em;
  194. margin-right: 2em;
  195. //
  196. color: gray !important;
  197. background-color: none;
  198. margin-left: 0;
  199. text-align: center;
  200. }
  201. img {
  202. float: left;
  203. vertical-align: top;
  204. margin: 0 1em 1em 0;
  205. padding: 0;
  206. max-width: 100%;
  207. height: auto;
  208. }
  209. #content img.deco {
  210. display: block;
  211. clear: both;
  212. float: right;
  213. width: 50%;
  214. max-width: 200px;
  215. margin: 0;
  216. padding: 0 0 4% 4%;
  217. background-color: none;
  218. }
  219. #content img.solo {
  220. float: none;
  221. display: block;
  222. padding: 0;
  223. }
  224. #content img.x2470x3783 {
  225. height:3783px;
  226. width: 2470px;
  227. max-width: 2470px;
  228. }
  229. #content img.x1000x750 {
  230. height: 750px;
  231. width: 1000px;
  232. max-width: 1000px;
  233. }
  234. #content img.x108x132 {
  235. height: 132px;
  236. width: 108px;
  237. max-width: 108px;
  238. }
  239. td,
  240. th {
  241. padding: 0 1em 0 0;
  242. }
  243. .inlinepage {
  244. border: 0;
  245. padding: 1em 5%;
  246. margin: 0;
  247. background-color: lightyellow;
  248. }
  249. .inlineheader a {
  250. font-weight: normal;
  251. color: DarkRed;
  252. line-height: 1.5em;
  253. }
  254. .inlinefooter {
  255. @include h5bp-hidden;
  256. }
  257. .inlineheader .author {
  258. @include h5bp-hidden;
  259. }
  260. .sidebar {
  261. float: left;
  262. min-height: 480px;
  263. width: $blockLeft-width;
  264. padding: $blockLeft-paddingAny;
  265. margin-top: 2%;
  266. margin-left: -(100% - $blockLeft-marginLeft);
  267. margin-bottom: 2%;
  268. border: none;
  269. background-color: LightBlue;
  270. text-align: left;
  271. }
  272. .sidebar ul {
  273. padding-left: 0.5em;
  274. p {
  275. margin: 1em 0;
  276. }
  277. }
  278. .sidebar ul li {
  279. @include no-bullets;
  280. padding: 0;
  281. }
  282. .sidebar ul li,
  283. .sidebar ul li p {
  284. line-height: 1.5em;
  285. }
  286. .sidebar ul li a {
  287. font-weight: normal;
  288. }
  289. .sidebar p {
  290. color: DarkBlue;
  291. }
  292. .sidebar ul li .selflink {
  293. font-weight: bold;
  294. }
  295. .farbar {
  296. float: left;
  297. min-height: 480px;
  298. width: $blockRight-width;
  299. margin-top: 2%;
  300. margin-left: -($blockRight-fullwidth - $blockRight-marginLeft);
  301. margin-bottom: 2%;
  302. padding: $blockRight-paddingAny;
  303. background-color: LightBlue;
  304. text-align: left;
  305. img {
  306. height: auto;
  307. width: 100%;
  308. }
  309. #mc_embed_signup {
  310. background-color: inherit;
  311. font: inherit;
  312. }
  313. }
  314. .farbar p i {
  315. font-size: 0.8em;
  316. line-height: 1em;
  317. }
  318. .farbar .inlinepage img {
  319. @include h5bp-hidden;
  320. }
  321. .farbar h3 a {
  322. color: black;
  323. font-weight: bold;
  324. }
  325. .tags {
  326. @include h5bp-hidden;
  327. }
  328. #backlinks {
  329. @include h5bp-hidden;
  330. }
  331. #footer {
  332. clear: left;
  333. width: 100%;
  334. margin: 2% 0 0;
  335. ul {
  336. @include no-bullets;
  337. padding: 0;
  338. }
  339. img {
  340. height: auto;
  341. float: none;
  342. display: block;
  343. padding: 0;
  344. }
  345. #mc_embed_signup {
  346. background-color: inherit;
  347. font: inherit;
  348. }
  349. }
  350. #footer #mc_embed_signup form {
  351. padding: 0;
  352. }
  353. #footer #mc_embed_signup label {
  354. font-size: inherit;
  355. }
  356. #pageinfo {
  357. margin: 0;
  358. border-top: 0;
  359. padding:1em 1em 1em 20px;
  360. background-color: lightblue;
  361. }
  362. .pagedate {
  363. margin-top: 0;
  364. }
  365. .pagecopyright,
  366. .pagecopyright P {
  367. margin-top: 0;
  368. margin-bottom: 0;
  369. }
  370. //Responsive design
  371. @media screen and (max-width: 480px) {
  372. .columns {
  373. @include column-count(1);
  374. }
  375. .inlinepage {
  376. margin: 0;
  377. }
  378. }
  379. @media screen and (min-width: 480px) and (max-width: 700px) {
  380. .columns {
  381. @include column-count(2);
  382. }
  383. }
  384. @media screen and (min-width: 701px) {
  385. .columns {
  386. @include column-count(3);
  387. }
  388. }