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