summaryrefslogtreecommitdiff
path: root/style.scss
blob: ccdcffc545213b7eedcff44721709249080613c8 (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. height: 150px;
  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. .inlineheader a {
  255. font-weight: normal;
  256. color: DarkRed;
  257. line-height: 1.5em;
  258. }
  259. .inlinefooter {
  260. @include h5bp-hidden;
  261. }
  262. .inlineheader .author {
  263. @include h5bp-hidden;
  264. }
  265. .sidebar {
  266. float: left;
  267. min-height: 480px;
  268. width: $blockLeft-width;
  269. padding: $blockLeft-paddingAny;
  270. margin-top: 2%;
  271. margin-left: -(100% - $blockLeft-marginLeft);
  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. @include no-bullets;
  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: $blockRight-width;
  304. margin-top: 2%;
  305. margin-left: -($blockRight-fullwidth - $blockRight-marginLeft);
  306. margin-bottom: 2%;
  307. padding: $blockRight-paddingAny;
  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. @include h5bp-hidden;
  325. }
  326. .farbar h3 a {
  327. color: black;
  328. font-weight: bold;
  329. }
  330. .tags {
  331. @include h5bp-hidden;
  332. }
  333. #backlinks {
  334. @include h5bp-hidden;
  335. }
  336. #footer {
  337. clear: left;
  338. width: 100%;
  339. margin: 2% 0 0;
  340. ul {
  341. @include no-bullets;
  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. }
  380. .inlinepage {
  381. margin: 0;
  382. }
  383. }
  384. @media screen and (min-width: 480px) and (max-width: 700px) {
  385. .columns {
  386. @include column-count(2);
  387. }
  388. }
  389. @media screen and (min-width: 701px) {
  390. .columns {
  391. @include column-count(3);
  392. }
  393. }