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