summaryrefslogtreecommitdiff
path: root/default/_ikiwiki.scss
blob: 43e8722b5d732f66a8d277167c131c56e39825ab (plain)
  1. @mixin ikiwiki-boilerplate {
  2. /* ikiwiki style sheet */
  3. /* Note that instead of modifying this style sheet, you can instead edit
  4. * local.css and use it to override or change settings in this one.
  5. */
  6. }
  7. @mixin ikiwiki-reset {
  8. /* html5 compat */
  9. article,
  10. header,
  11. footer,
  12. nav {
  13. display: block;
  14. }
  15. }
  16. @mixin ikiwiki-style {
  17. .header {
  18. margin: 0;
  19. font-size: 140%;
  20. font-weight: bold;
  21. line-height: 1em;
  22. display: block;
  23. }
  24. .inlineheader .author {
  25. margin: 0;
  26. font-size: 112%;
  27. font-weight: bold;
  28. display: block;
  29. }
  30. .actions ul {
  31. margin: 0;
  32. padding: 6px .4em;
  33. height: 1em;
  34. list-style-type: none;
  35. }
  36. .actions li {
  37. display: inline;
  38. padding: .2em;
  39. }
  40. .pageheader .actions ul {
  41. border-bottom: 1px solid #000;
  42. }
  43. .inlinepage .actions ul {
  44. border-bottom: 0;
  45. }
  46. #otherlanguages ul {
  47. margin: 0;
  48. padding: 6px;
  49. list-style-type: none;
  50. }
  51. #otherlanguages li {
  52. display: inline;
  53. padding: .2em .4em;
  54. }
  55. .pageheader #otherlanguages {
  56. border-bottom: 1px solid #000;
  57. }
  58. .inlinecontent {
  59. margin-top: .4em;
  60. }
  61. .pagefooter,
  62. .inlinefooter,
  63. .comments {
  64. clear: both;
  65. }
  66. #pageinfo {
  67. margin: 1em 0;
  68. border-top: 1px solid #000;
  69. }
  70. .tags {
  71. margin-top: 1em;
  72. }
  73. .inlinepage .tags {
  74. display: inline;
  75. }
  76. .mapparent {
  77. text-decoration: none;
  78. }
  79. .img caption {
  80. font-size: 80%;
  81. caption-side: bottom;
  82. text-align: center;
  83. }
  84. img.img {
  85. margin: 0.5ex;
  86. }
  87. .align-left {
  88. float: left;
  89. }
  90. .align-right {
  91. float: right;
  92. }
  93. #backlinks {
  94. margin-top: 1em;
  95. }
  96. #searchform {
  97. display: inline;
  98. float: right;
  99. }
  100. #editcontent {
  101. width: 98%;
  102. }
  103. .editcontentdiv {
  104. width: auto;
  105. overflow: auto;
  106. }
  107. img {
  108. border-style: none;
  109. }
  110. pre {
  111. overflow: auto;
  112. }
  113. div.recentchanges {
  114. border-style: solid;
  115. border-width: 1px;
  116. overflow: auto;
  117. width: auto;
  118. clear: none;
  119. background: #eee;
  120. color: black !important;
  121. }
  122. .recentchanges .metadata {
  123. padding: 0px 0.5em;
  124. }
  125. .recentchanges .changelog {
  126. font-style: italic;
  127. clear: both;
  128. display: block;
  129. padding: 1px 2px;
  130. background: white !important;
  131. color: black !important;
  132. }
  133. .recentchanges .desc {
  134. display: none;
  135. }
  136. .recentchanges .diff {
  137. display: none;
  138. }
  139. .recentchanges .committer {
  140. float: left;
  141. margin: 0;
  142. width: 40%;
  143. }
  144. .recentchanges .committype {
  145. float: left;
  146. margin: 0;
  147. width: 5%;
  148. font-size: small;
  149. }
  150. .recentchanges .changedate {
  151. float: left;
  152. margin: 0;
  153. width: 35%;
  154. font-size: small;
  155. }
  156. .recentchanges .pagelinks {
  157. float: right;
  158. margin: 0;
  159. width: 60%;
  160. }
  161. #blogform {
  162. padding: 10px 10px;
  163. border: 1px solid #aaa;
  164. background: #eee;
  165. color: black !important;
  166. width: auto;
  167. overflow: auto;
  168. }
  169. .inlinepage {
  170. padding: 10px 10px;
  171. border: 1px solid #aaa;
  172. overflow: auto;
  173. }
  174. .pagedate,
  175. .pagelicense,
  176. .pagecopyright {
  177. font-style: italic;
  178. display: block;
  179. margin-top: 1em;
  180. }
  181. .error {
  182. color: #C00;
  183. }
  184. .sidebar {
  185. width: 20ex;
  186. float: right;
  187. margin-left: 4px;
  188. margin-bottom: 4px;
  189. margin-top: -1px;
  190. padding: 0ex 2ex;
  191. background: white;
  192. border: 1px solid black;
  193. color: black !important;
  194. }
  195. hr.poll {
  196. height: 10pt;
  197. color: white !important;
  198. background: #eee;
  199. border: 2px solid black;
  200. }
  201. div.poll {
  202. margin-top: 1ex;
  203. margin-bottom: 1ex;
  204. padding: 1ex 1ex;
  205. border: 1px solid #aaa;
  206. }
  207. span.color {
  208. padding: 2px;
  209. }
  210. .comment-header,
  211. .microblog-header {
  212. font-style: italic;
  213. margin-top: .3em;
  214. }
  215. .comment .author,
  216. .microblog .author {
  217. font-weight: bold;
  218. }
  219. .comment-subject {
  220. font-weight: bold;
  221. }
  222. .comment {
  223. border: 1px solid #aaa;
  224. padding: 3px;
  225. }
  226. div.progress {
  227. margin-top: 1ex;
  228. margin-bottom: 1ex;
  229. border: 1px solid #888;
  230. width: 400px;
  231. background: #eee;
  232. color: black !important;
  233. padding: 1px;
  234. }
  235. div.progress-done {
  236. background: #ea6 !important;
  237. color: black !important;
  238. text-align: center;
  239. padding: 1px;
  240. }
  241. /* things to hide in printouts */
  242. @media print {
  243. .actions {
  244. display: none;
  245. }
  246. .tags {
  247. display: none;
  248. }
  249. .feedbutton {
  250. display: none;
  251. }
  252. #searchform {
  253. display: none;
  254. }
  255. #blogform {
  256. display: none;
  257. }
  258. #backlinks {
  259. display: none;
  260. }
  261. }
  262. /* infobox template */
  263. .infobox {
  264. float: right;
  265. margin-left: 2ex;
  266. margin-top: 1ex;
  267. margin-bottom: 1ex;
  268. padding: 1ex 1ex;
  269. border: 1px solid #aaa;
  270. background: white;
  271. color: black !important;
  272. }
  273. /* notebox template */
  274. .notebox {
  275. float: right;
  276. margin-left: 2ex;
  277. margin-top: 1ex;
  278. margin-bottom: 1ex;
  279. padding: 1ex 1ex;
  280. border: 1px solid #aaa;
  281. width: 25%;
  282. background: white;
  283. color: black !important;
  284. }
  285. /* popup template and backlinks hiding */
  286. .popup {
  287. border-bottom: 1px dotted #366;
  288. color: #366;
  289. }
  290. .popup .balloon,
  291. .popup .paren,
  292. .popup .expand {
  293. display: none;
  294. }
  295. .popup:hover .balloon,
  296. .popup:focus .balloon {
  297. position: absolute;
  298. display: inline;
  299. margin: 1em 0 0 -2em;
  300. padding: 0.625em;
  301. border: 2px solid;
  302. background-color: #dee;
  303. color: black;
  304. }
  305. /* form styling */
  306. fieldset {
  307. margin: 1ex 0;
  308. border: 1px solid black;
  309. }
  310. legend {
  311. padding: 0 1ex;
  312. }
  313. .fb_submit {
  314. float: left;
  315. margin: 2px 0;
  316. }
  317. label.block {
  318. display: block;
  319. }
  320. label.inline {
  321. display: inline;
  322. }
  323. input#openid_identifier {
  324. background: url(wikiicons/openidlogin-bg.gif) no-repeat;
  325. background-color: #fff;
  326. background-position: 0 50%;
  327. color: #000;
  328. padding-left: 18px;
  329. }
  330. input#searchbox {
  331. background: url(wikiicons/search-bg.gif) no-repeat;
  332. background-color: #fff;
  333. background-position: 100% 50%;
  334. color: #000;
  335. padding-right: 16px;
  336. }
  337. /* invalid form fields */
  338. .fb_invalid {
  339. color: red;
  340. background: white !important;
  341. }
  342. /* required form fields */
  343. .fb_required {
  344. font-weight: bold;
  345. }
  346. /* highlight plugin */
  347. pre.hl {
  348. color: #000000;
  349. background-color: #ffffff;
  350. }
  351. .hl.num {
  352. color: #2928ff;
  353. }
  354. .hl.esc {
  355. color: #ff00ff;
  356. }
  357. .hl.str {
  358. color: #ff0000;
  359. }
  360. .hl.dstr {
  361. color: #818100;
  362. }
  363. .hl.slc {
  364. color: #838183;
  365. font-style: italic;
  366. }
  367. .hl.com {
  368. color: #838183;
  369. font-style: italic;
  370. }
  371. .hl.dir {
  372. color: #008200;
  373. }
  374. .hl.sym {
  375. color: #000000;
  376. }
  377. .hl.line {
  378. color: #555555;
  379. }
  380. .hl.mark {
  381. background-color: #ffffbb;
  382. }
  383. .hl.kwa {
  384. color: #000000;
  385. font-weight: bold;
  386. }
  387. .hl.kwb {
  388. color: #830000;
  389. }
  390. .hl.kwc {
  391. color: #000000;
  392. font-weight: bold;
  393. }
  394. .hl.kwd {
  395. color: #010181;
  396. }
  397. /* calendar plugin */
  398. .month-calendar-day-this-day,
  399. .year-calendar-this-month {
  400. background-color: #eee;
  401. }
  402. .month-calendar-day-head,
  403. .month-calendar-day-nolink,
  404. .month-calendar-day-link,
  405. .month-calendar-day-this-day,
  406. .month-calendar-day-future {
  407. text-align: right;
  408. }
  409. .month-calendar-arrow A:link,
  410. .year-calendar-arrow A:link,
  411. .month-calendar-arrow A:visited,
  412. .year-calendar-arrow A:visited {
  413. text-decoration: none;
  414. font-weight: normal;
  415. font-size: 150%;
  416. }
  417. /* outlines */
  418. li.L1 {
  419. list-style: upper-roman;
  420. }
  421. li.L2 {
  422. list-style: decimal;
  423. }
  424. li.L3 {
  425. list-style: lower-alpha;
  426. }
  427. li.L4 {
  428. list-style: disc;
  429. }
  430. li.L5 {
  431. list-style: square;
  432. }
  433. li.L6 {
  434. list-style: circle;
  435. }
  436. li.L7 {
  437. list-style: lower-roman;
  438. }
  439. li.L8 {
  440. list-style: upper-alpha;
  441. }
  442. /* tag cloud */
  443. .pagecloud {
  444. float: right;
  445. width: 30%;
  446. text-align: center;
  447. padding: 10px 10px;
  448. border: 1px solid #aaa;
  449. background: #eee;
  450. color: black !important;
  451. }
  452. .smallestPC {
  453. font-size: 70%;
  454. }
  455. .smallPC {
  456. font-size: 85%;
  457. }
  458. .normalPC {
  459. font-size: 100%;
  460. }
  461. .bigPC {
  462. font-size: 115%;
  463. }
  464. .biggestPC {
  465. font-size: 130%;
  466. }
  467. /* orange feed button */
  468. .feedbutton {
  469. background: #ff6600;
  470. color: white !important;
  471. border-left: 1px solid #cc9966;
  472. border-top: 1px solid #ccaa99;
  473. border-right: 1px solid #993300;
  474. border-bottom: 1px solid #331100;
  475. padding: 0px 0.5em 0px 0.5em;
  476. font-family: sans-serif;
  477. font-weight: bold;
  478. font-size: small;
  479. text-decoration: none;
  480. margin-top: 1em;
  481. }
  482. .feedbutton:hover {
  483. color: white !important;
  484. background: #ff9900;
  485. }
  486. .FlattrButton {
  487. display: none;
  488. }
  489. /* openid selector */
  490. #openid_choice {
  491. display: none;
  492. }
  493. #openid_input_area {
  494. clear: both;
  495. padding: 10px;
  496. }
  497. #openid_btns, #openid_btns br {
  498. clear: both;
  499. }
  500. #openid_highlight {
  501. background-color: black;
  502. float: left;
  503. }
  504. .openid_large_btn {
  505. padding: 1em 1.5em;
  506. border: 1px solid #DDD;
  507. margin: 3px;
  508. float: left;
  509. }
  510. .openid_small_btn {
  511. padding: 4px 4px;
  512. border: 1px solid #DDD;
  513. margin: 3px;
  514. float: left;
  515. }
  516. a.openid_large_btn:focus {
  517. outline: none;
  518. }
  519. a.openid_large_btn:focus {
  520. -moz-outline-style: none;
  521. }
  522. .openid_selected {
  523. border: 4px solid #DDD;
  524. }
  525. }
  526. @mixin ikiwiki {
  527. @include ikiwiki-boilerplate;
  528. @include ikiwiki-reset;
  529. @include ikiwiki-style;
  530. }