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