summaryrefslogtreecommitdiff
path: root/style.scss
blob: aac4367043a8eebe9d1d31a52541c38dbc60b99d (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. background-color: transparent;
  161. }
  162. .topbar p {
  163. margin-top: 0;
  164. margin-bottom: 0;
  165. }
  166. // main menu
  167. .topbar ul {
  168. @include inline-block-list;
  169. position: absolute;
  170. top: 6.25em;
  171. height: 4em;
  172. width: 100%;
  173. font-size: 1.25em;
  174. line-height: 2em;
  175. text-align: center;
  176. li {
  177. a,
  178. .selflink {
  179. @include inline-block;
  180. width: 8em;
  181. padding: 1em .5em;
  182. background-color: #6699cc;
  183. color: white;
  184. font-weight: bold;
  185. &:hover {
  186. background-color: lightblue;
  187. color: #336699;
  188. text-decoration: none;
  189. }
  190. }
  191. }
  192. @media screen and (max-width: 480px) {
  193. top: 9em;
  194. font-size: inherit;
  195. }
  196. @media screen and (min-width: 701px) {
  197. right: 6em;
  198. width: auto;
  199. li {
  200. padding-left: .2em;
  201. padding-right: .2em;
  202. text-align: center;
  203. a,
  204. .selflink {
  205. width: 10em;
  206. padding: 1em;
  207. }
  208. }
  209. }
  210. }
  211. .topbar img {
  212. margin: 0 20px;
  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. float: left;
  308. min-height: 480px;
  309. width: $blockLeft-width;
  310. padding: $blockLeft-paddingAny;
  311. margin-top: 2%;
  312. margin-left: -(100% - $blockLeft-marginLeft);
  313. margin-bottom: 2%;
  314. border: none;
  315. background-color: LightBlue;
  316. text-align: left;
  317. }
  318. .sidebar ul {
  319. padding-left: 0.5em;
  320. p {
  321. margin: 1em 0;
  322. }
  323. }
  324. .sidebar ul li {
  325. @include no-bullets;
  326. padding: 0;
  327. }
  328. .sidebar ul li,
  329. .sidebar ul li p {
  330. line-height: 1.5em;
  331. }
  332. .sidebar ul li a {
  333. font-weight: normal;
  334. }
  335. .sidebar p {
  336. color: DarkBlue;
  337. }
  338. .sidebar ul li .selflink {
  339. font-weight: bold;
  340. }
  341. .farbar {
  342. float: left;
  343. min-height: 480px;
  344. width: $blockRight-width;
  345. margin-top: 2%;
  346. margin-left: -($blockRight-fullwidth - $blockRight-marginLeft);
  347. margin-bottom: 2%;
  348. padding: $blockRight-paddingAny;
  349. background-color: LightBlue;
  350. text-align: left;
  351. img {
  352. height: auto;
  353. width: 100%;
  354. }
  355. #mc_embed_signup {
  356. background-color: inherit;
  357. font: inherit;
  358. }
  359. }
  360. .farbar p i {
  361. font-size: 0.8em;
  362. line-height: 1em;
  363. }
  364. .farbar .inlinepage img {
  365. @include h5bp-hidden;
  366. }
  367. .farbar h3 a {
  368. color: black;
  369. font-weight: bold;
  370. }
  371. .tags {
  372. @include h5bp-hidden;
  373. }
  374. #backlinks {
  375. @include h5bp-hidden;
  376. }
  377. #footer {
  378. clear: left;
  379. width: 100%;
  380. margin: 2% 0 0;
  381. ul {
  382. @include no-bullets;
  383. padding: 0;
  384. }
  385. // to secure readability with current colors.
  386. img {
  387. height: auto;
  388. float: none;
  389. display: block;
  390. padding: 0;
  391. }
  392. #mc_embed_signup {
  393. background-color: inherit;
  394. font: inherit;
  395. input {
  396. color: Black;
  397. }
  398. .button {
  399. color: DarkBlue;
  400. background-color: LightBlue;
  401. }
  402. }
  403. }
  404. #footer #mc_embed_signup form {
  405. padding: 0;
  406. }
  407. #footer #mc_embed_signup label {
  408. font-size: inherit;
  409. }
  410. #pageinfo {
  411. margin: 0;
  412. border-top: 0;
  413. padding:1em 1em 1em 20px;
  414. background-color: #336699;
  415. color: LightBlue;
  416. a {
  417. color: LightBlue;
  418. &:hover {
  419. color: white;
  420. }
  421. }
  422. }
  423. .pagedate {
  424. margin-top: 0;
  425. }
  426. .pagecopyright,
  427. .pagecopyright P {
  428. margin-top: 0;
  429. margin-bottom: 0;
  430. }
  431. //Responsive design
  432. @media screen and (max-width: 480px) {
  433. .columns {
  434. @include column-count(1);
  435. }
  436. .inlinepage {
  437. margin: 0;
  438. }
  439. }
  440. @media screen and (min-width: 480px) and (max-width: 700px) {
  441. .columns {
  442. @include column-count(2);
  443. }
  444. }
  445. @media screen and (min-width: 701px) {
  446. .columns {
  447. @include column-count(3);
  448. }
  449. }