summaryrefslogtreecommitdiff
path: root/style.scss
blob: ac7a92a930aea7ba6e601d34bc66e4a144bc7613 (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: 80px;
  223. width: auto;
  224. display: block;
  225. float: none;
  226. }
  227. #content img.solo {
  228. float: none;
  229. display: block;
  230. padding: 0;
  231. }
  232. #content img.x2470x3783 {
  233. height:3783px;
  234. width: 2470px;
  235. max-width: 2470px;
  236. }
  237. #content img.x1000x750 {
  238. height: 750px;
  239. width: 1000px;
  240. max-width: 1000px;
  241. }
  242. #content img.x108x132 {
  243. height: 132px;
  244. width: 108px;
  245. max-width: 108px;
  246. }
  247. td,
  248. th {
  249. padding: 0 1em 0 0;
  250. }
  251. .inlinepage {
  252. border: 0;
  253. padding: 1em 5%;
  254. margin: 0;
  255. background-color: lightyellow;
  256. }
  257. .inlineheader a {
  258. font-weight: normal;
  259. color: DarkRed;
  260. line-height: 1.5em;
  261. }
  262. .inlinefooter {
  263. @include h5bp-hidden;
  264. }
  265. .inlineheader .author {
  266. @include h5bp-hidden;
  267. }
  268. .sidebar {
  269. float: left;
  270. min-height: 480px;
  271. width: $blockLeft-width;
  272. padding: $blockLeft-paddingAny;
  273. margin-top: 2%;
  274. margin-left: -(100% - $blockLeft-marginLeft);
  275. margin-bottom: 2%;
  276. border: none;
  277. background-color: LightBlue;
  278. text-align: left;
  279. }
  280. .sidebar ul {
  281. padding-left: 0.5em;
  282. p {
  283. margin: 1em 0;
  284. }
  285. }
  286. .sidebar ul li {
  287. @include no-bullets;
  288. padding: 0;
  289. }
  290. .sidebar ul li,
  291. .sidebar ul li p {
  292. line-height: 1.5em;
  293. }
  294. .sidebar ul li a {
  295. font-weight: normal;
  296. }
  297. .sidebar p {
  298. color: DarkBlue;
  299. }
  300. .sidebar ul li .selflink {
  301. font-weight: bold;
  302. }
  303. .farbar {
  304. float: left;
  305. min-height: 480px;
  306. width: $blockRight-width;
  307. margin-top: 2%;
  308. margin-left: -($blockRight-fullwidth - $blockRight-marginLeft);
  309. margin-bottom: 2%;
  310. padding: $blockRight-paddingAny;
  311. background-color: LightBlue;
  312. text-align: left;
  313. img {
  314. height: auto;
  315. width: 100%;
  316. }
  317. #mc_embed_signup {
  318. background-color: inherit;
  319. font: inherit;
  320. }
  321. }
  322. .farbar p i {
  323. font-size: 0.8em;
  324. line-height: 1em;
  325. }
  326. .farbar .inlinepage img {
  327. @include h5bp-hidden;
  328. }
  329. .farbar h3 a {
  330. color: black;
  331. font-weight: bold;
  332. }
  333. .tags {
  334. @include h5bp-hidden;
  335. }
  336. #backlinks {
  337. @include h5bp-hidden;
  338. }
  339. #footer {
  340. clear: left;
  341. width: 100%;
  342. margin: 2% 0 0;
  343. ul {
  344. @include no-bullets;
  345. padding: 0;
  346. }
  347. img {
  348. height: auto;
  349. float: none;
  350. display: block;
  351. padding: 0;
  352. }
  353. #mc_embed_signup {
  354. background-color: inherit;
  355. font: inherit;
  356. }
  357. }
  358. #footer #mc_embed_signup form {
  359. padding: 0;
  360. }
  361. #footer #mc_embed_signup label {
  362. font-size: inherit;
  363. }
  364. #pageinfo {
  365. margin: 0;
  366. border-top: 0;
  367. padding:1em 1em 1em 20px;
  368. background-color: lightblue;
  369. }
  370. .pagedate {
  371. margin-top: 0;
  372. }
  373. .pagecopyright,
  374. .pagecopyright P {
  375. margin-top: 0;
  376. margin-bottom: 0;
  377. }
  378. //Responsive design
  379. @media screen and (max-width: 480px) {
  380. .columns {
  381. @include column-count(1);
  382. }
  383. .inlinepage {
  384. margin: 0;
  385. }
  386. }
  387. @media screen and (min-width: 480px) and (max-width: 700px) {
  388. .columns {
  389. @include column-count(2);
  390. }
  391. }
  392. @media screen and (min-width: 701px) {
  393. .columns {
  394. @include column-count(3);
  395. }
  396. }