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