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