summaryrefslogtreecommitdiff
path: root/style.scss
blob: 69c50654fb02026d033333c6916244904234815a (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. h4,
  58. h5,
  59. h6 {
  60. text-decoration: blink;
  61. }
  62. h2 {
  63. font-weight: normal;
  64. font-size: 1.5em;
  65. }
  66. h3 {
  67. font-size: 1.25em;
  68. font-weight: bold;
  69. }
  70. h2,
  71. h3 {
  72. margin-top: 0;
  73. margin-bottom: 0.1em;
  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. background-color: transparent;
  213. }
  214. #wrapper,
  215. #pagebody {
  216. float: left;
  217. width: 100%;
  218. }
  219. #content {
  220. min-height: 480px;
  221. width: (100% - $blockMid-marginBoth - $blockLeft-fullwidth - $blockRight-fullwidth);
  222. max-width: 72em;
  223. margin: 2% ($blockMid-marginRight + $blockRight-fullwidth) 2% ($blockMid-marginLeft + $blockLeft-fullwidth);
  224. padding: 0;
  225. text-align: left;
  226. background-color: none;
  227. }
  228. .notebox {
  229. float: none;
  230. display: block;
  231. //Overwrite ikiwiki default width:
  232. width: inherit;
  233. max-width: 48em;
  234. margin-right: 2em;
  235. //
  236. color: gray !important;
  237. background-color: none;
  238. margin-left: 0;
  239. text-align: center;
  240. }
  241. img {
  242. float: left;
  243. vertical-align: top;
  244. margin: 0 1em 1em 0;
  245. padding: 0;
  246. max-width: 100%;
  247. height: auto;
  248. }
  249. #content img.deco {
  250. display: block;
  251. clear: both;
  252. float: right;
  253. width: 50%;
  254. max-width: 200px;
  255. margin: 0;
  256. padding: 0 0 4% 4%;
  257. background-color: none;
  258. }
  259. #content img.flex {
  260. max-height: 80px;
  261. width: auto;
  262. display: block;
  263. float: none;
  264. }
  265. #content img.solo {
  266. float: none;
  267. display: block;
  268. padding: 0;
  269. }
  270. #content img.x2470x3783 {
  271. height:3783px;
  272. width: 2470px;
  273. max-width: 2470px;
  274. }
  275. #content img.x1000x750 {
  276. height: 750px;
  277. width: 1000px;
  278. max-width: 1000px;
  279. }
  280. #content img.x108x132 {
  281. height: 132px;
  282. width: 108px;
  283. max-width: 108px;
  284. }
  285. td,
  286. th {
  287. padding: 0 1em 0 0;
  288. }
  289. .inlinepage {
  290. border: 0;
  291. padding: 1em 5%;
  292. margin: 0;
  293. background-color: lightyellow;
  294. }
  295. .inlineheader a {
  296. font-weight: normal;
  297. color: DarkRed;
  298. line-height: 1.5em;
  299. }
  300. .inlinefooter {
  301. @include h5bp-hidden;
  302. }
  303. .inlineheader .author {
  304. @include h5bp-hidden;
  305. }
  306. .sidebar {
  307. @include h5bp-hidden;
  308. // float: left;
  309. // min-height: 480px;
  310. // width: $blockLeft-width;
  311. // padding: $blockLeft-paddingAny;
  312. // margin-top: 2%;
  313. // margin-left: -(100% - $blockLeft-marginLeft);
  314. // margin-bottom: 2%;
  315. // border: none;
  316. // background-color: LightBlue;
  317. // text-align: left;
  318. }
  319. .sidebar ul {
  320. padding-left: 0.5em;
  321. p {
  322. margin: 1em 0;
  323. }
  324. }
  325. .sidebar ul li {
  326. @include no-bullets;
  327. padding: 0;
  328. }
  329. .sidebar ul li,
  330. .sidebar ul li p {
  331. line-height: 1.5em;
  332. }
  333. .sidebar ul li a {
  334. font-weight: normal;
  335. }
  336. .sidebar p {
  337. color: DarkBlue;
  338. }
  339. .sidebar ul li .selflink {
  340. font-weight: bold;
  341. }
  342. .farbar {
  343. float: left;
  344. min-height: 480px;
  345. width: $blockRight-width;
  346. margin-top: 2%;
  347. margin-left: -($blockRight-fullwidth - $blockRight-marginLeft);
  348. margin-bottom: 2%;
  349. padding: $blockRight-paddingAny;
  350. background-color: LightBlue;
  351. text-align: left;
  352. img {
  353. height: auto;
  354. width: 100%;
  355. }
  356. #mc_embed_signup {
  357. background-color: inherit;
  358. font: inherit;
  359. }
  360. }
  361. .farbar p i {
  362. font-size: 0.8em;
  363. line-height: 1em;
  364. }
  365. .farbar .inlinepage img {
  366. @include h5bp-hidden;
  367. }
  368. .farbar h3 a {
  369. color: black;
  370. font-weight: bold;
  371. }
  372. .tags {
  373. @include h5bp-hidden;
  374. }
  375. #backlinks {
  376. @include h5bp-hidden;
  377. }
  378. #footer {
  379. clear: left;
  380. width: 100%;
  381. margin: 2% 0 0;
  382. ul {
  383. @include no-bullets;
  384. padding: 0;
  385. }
  386. // to secure readability with current colors.
  387. img {
  388. height: auto;
  389. float: none;
  390. display: block;
  391. padding: 0;
  392. }
  393. #mc_embed_signup {
  394. background-color: inherit;
  395. font: inherit;
  396. input {
  397. color: Black;
  398. }
  399. .button {
  400. color: DarkBlue;
  401. background-color: LightBlue;
  402. }
  403. }
  404. }
  405. #footer #mc_embed_signup form {
  406. padding: 0;
  407. }
  408. #footer #mc_embed_signup label {
  409. font-size: inherit;
  410. }
  411. #pageinfo {
  412. margin: 0;
  413. border-top: 0;
  414. padding:1em 1em 1em 20px;
  415. background-color: #336699;
  416. color: LightBlue;
  417. a {
  418. color: LightBlue;
  419. &:hover {
  420. color: white;
  421. }
  422. }
  423. }
  424. .pagedate {
  425. margin-top: 0;
  426. }
  427. .pagecopyright,
  428. .pagecopyright P {
  429. margin-top: 0;
  430. margin-bottom: 0;
  431. }
  432. //Responsive design
  433. @media screen and (max-width: 480px) {
  434. .columns {
  435. @include column-count(1);
  436. }
  437. .inlinepage {
  438. margin: 0;
  439. }
  440. }
  441. @media screen and (min-width: 480px) and (max-width: 700px) {
  442. .columns {
  443. @include column-count(2);
  444. }
  445. }
  446. @media screen and (min-width: 701px) {
  447. .columns {
  448. @include column-count(3);
  449. }
  450. }