summaryrefslogtreecommitdiff
path: root/style.scss
blob: 30860864f37646a3a79f00a74b817ace0e47614d (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: 1em 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. .farbar p i {
  368. font-size: 0.8em;
  369. line-height: 1em;
  370. }
  371. .farbar .inlinepage img {
  372. @include h5bp-hidden;
  373. }
  374. .farbar h3 a {
  375. color: black;
  376. font-weight: bold;
  377. }
  378. .tags {
  379. @include h5bp-hidden;
  380. }
  381. #backlinks {
  382. @include h5bp-hidden;
  383. }
  384. #footer {
  385. clear: left;
  386. width: 100%;
  387. margin: 2% 0 0;
  388. ul {
  389. @include no-bullets;
  390. padding: 0;
  391. }
  392. // to secure readability with current colors.
  393. img {
  394. height: auto;
  395. float: none;
  396. display: block;
  397. padding: 0;
  398. }
  399. #mc_embed_signup {
  400. background-color: inherit;
  401. font: inherit;
  402. input {
  403. color: Black;
  404. }
  405. .button {
  406. color: DarkBlue;
  407. background-color: LightBlue;
  408. }
  409. }
  410. }
  411. #footer #mc_embed_signup form {
  412. padding: 0;
  413. }
  414. #footer #mc_embed_signup label {
  415. font-size: inherit;
  416. }
  417. #pageinfo {
  418. margin: 0;
  419. border-top: 0;
  420. padding:1em 1em 1em 20px;
  421. background-color: #336699;
  422. color: LightBlue;
  423. a {
  424. color: LightBlue;
  425. &:hover {
  426. color: white;
  427. }
  428. }
  429. }
  430. .pagedate {
  431. margin-top: 0;
  432. }
  433. .pagecopyright,
  434. .pagecopyright P {
  435. margin-top: 0;
  436. margin-bottom: 0;
  437. }
  438. //Responsive design
  439. @media screen and (max-width: 480px) {
  440. .columns {
  441. @include column-count(1);
  442. }
  443. .inlinepage {
  444. margin: 0;
  445. }
  446. }
  447. @media screen and (min-width: 480px) and (max-width: 700px) {
  448. .columns {
  449. @include column-count(2);
  450. }
  451. }
  452. @media screen and (min-width: 701px) {
  453. .columns {
  454. @include column-count(3);
  455. }
  456. }