summaryrefslogtreecommitdiff
path: root/default/_ikiwiki.scss
blob: 855878dd015548f238677147a6303ddd1276247c (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-header {
  17. .header {
  18. margin: 0;
  19. font-size: 140%;
  20. font-weight: bold;
  21. line-height: 1em;
  22. display: block;
  23. }
  24. }
  25. @mixin ikiwiki-inlineheader {
  26. .inlineheader .author {
  27. margin: 0;
  28. font-size: 112%;
  29. font-weight: bold;
  30. display: block;
  31. }
  32. }
  33. @mixin ikiwiki-actions {
  34. .actions ul {
  35. margin: 0;
  36. padding: 6px .4em;
  37. height: 1em;
  38. list-style-type: none;
  39. }
  40. .actions li {
  41. display: inline;
  42. padding: .2em;
  43. }
  44. .pageheader .actions ul {
  45. border-bottom: 1px solid #000;
  46. }
  47. .inlinepage .actions ul {
  48. border-bottom: 0;
  49. }
  50. }
  51. @mixin ikiwiki-plugin-po {
  52. #otherlanguages ul {
  53. margin: 0;
  54. padding: 6px;
  55. list-style-type: none;
  56. }
  57. #otherlanguages li {
  58. display: inline;
  59. padding: .2em .4em;
  60. }
  61. .pageheader #otherlanguages {
  62. border-bottom: 1px solid #000;
  63. }
  64. }
  65. @mixin ikiwiki-inlinecontent {
  66. .inlinecontent,
  67. .inlineenclosure {
  68. margin-top: .4em;
  69. }
  70. }
  71. @mixin ikiwiki-footer {
  72. .pagefooter,
  73. .inlinefooter,
  74. .comments {
  75. clear: both;
  76. }
  77. }
  78. @mixin ikiwiki-pageinfo {
  79. #pageinfo {
  80. margin: 1em 0;
  81. border-top: 1px solid #000;
  82. }
  83. }
  84. @mixin ikiwiki-tags {
  85. .tags {
  86. margin-top: 1em;
  87. }
  88. .inlinepage .tags {
  89. display: inline;
  90. }
  91. }
  92. @mixin ikiwiki-plugin-map {
  93. .mapparent {
  94. text-decoration: none;
  95. }
  96. }
  97. @mixin ikiwiki-plugin-img {
  98. .img caption {
  99. font-size: 80%;
  100. caption-side: bottom;
  101. text-align: center;
  102. }
  103. img.img {
  104. margin: 0.5ex;
  105. }
  106. }
  107. @mixin ikiwiki-alignment {
  108. .align-left {
  109. float: left;
  110. }
  111. .align-right {
  112. float: right;
  113. }
  114. }
  115. @mixin ikiwiki-backlinks {
  116. #backlinks {
  117. margin-top: 1em;
  118. }
  119. }
  120. @mixin ikiwiki-plugin-search {
  121. #searchform {
  122. display: inline;
  123. float: right;
  124. }
  125. }
  126. @mixin ikiwiki-plugin-editpage {
  127. #editcontent {
  128. width: 98%;
  129. }
  130. .editcontentdiv {
  131. width: auto;
  132. overflow: auto;
  133. }
  134. }
  135. @mixin ikiwiki-images {
  136. img {
  137. border-style: none;
  138. }
  139. }
  140. @mixin ikiwiki-pre {
  141. pre {
  142. overflow: auto;
  143. }
  144. }
  145. @mixin ikiwiki-plugin-recentchanges {
  146. div.recentchanges {
  147. border-style: solid;
  148. border-width: 1px;
  149. overflow: auto;
  150. width: auto;
  151. clear: none;
  152. background: #eee;
  153. color: black !important;
  154. }
  155. .recentchanges .metadata {
  156. padding: 0px 0.5em;
  157. }
  158. .recentchanges .changelog {
  159. font-style: italic;
  160. clear: both;
  161. display: block;
  162. padding: 1px 2px;
  163. background: white !important;
  164. color: black !important;
  165. }
  166. .recentchanges .desc {
  167. display: none;
  168. }
  169. .recentchanges .diff {
  170. display: none;
  171. }
  172. .recentchanges .committer {
  173. float: left;
  174. margin: 0;
  175. width: 40%;
  176. }
  177. .recentchanges .committype {
  178. float: left;
  179. margin: 0;
  180. width: 5%;
  181. font-size: small;
  182. }
  183. .recentchanges .changedate {
  184. float: left;
  185. margin: 0;
  186. width: 35%;
  187. font-size: small;
  188. }
  189. .recentchanges .pagelinks,
  190. .recentchanges .revert {
  191. float: right;
  192. margin: 0;
  193. width: 60%;
  194. }
  195. }
  196. @mixin ikiwiki-blogform {
  197. .blogform, #blogform {
  198. padding: 10px 10px;
  199. border: 1px solid #aaa;
  200. background: #eee;
  201. color: black !important;
  202. width: auto;
  203. overflow: auto;
  204. }
  205. }
  206. @mixin ikiwiki-inlinepage {
  207. .inlinepage {
  208. padding: 10px 10px;
  209. border: 1px solid #aaa;
  210. overflow: auto;
  211. }
  212. }
  213. @mixin ikiwiki-authorship {
  214. .pagedate,
  215. .pagelicense,
  216. .pagecopyright {
  217. font-style: italic;
  218. display: block;
  219. margin-top: 1em;
  220. }
  221. }
  222. @mixin ikiwiki-archivepage {
  223. .archivepagedate {
  224. font-style: italic;
  225. }
  226. .archivepage {
  227. margin-bottom: 1em;
  228. }
  229. }
  230. @mixin ikiwiki-debug {
  231. .error {
  232. color: #C00;
  233. }
  234. }
  235. @mixin ikiwiki-plugin-sidebar {
  236. .sidebar {
  237. width: 20ex;
  238. float: right;
  239. margin-left: 4px;
  240. margin-bottom: 4px;
  241. margin-top: -1px;
  242. padding: 0ex 2ex;
  243. background: white;
  244. border: 1px solid black;
  245. color: black !important;
  246. }
  247. }
  248. @mixin ikiwiki-plugin-poll {
  249. hr.poll {
  250. height: 10pt;
  251. color: white !important;
  252. background: #eee;
  253. border: 2px solid black;
  254. }
  255. div.poll {
  256. margin-top: 1ex;
  257. margin-bottom: 1ex;
  258. padding: 1ex 1ex;
  259. border: 1px solid #aaa;
  260. }
  261. }
  262. @mixin ikiwiki-plugin-color {
  263. span.color {
  264. padding: 2px;
  265. }
  266. }
  267. @mixin ikiwiki-plugin-comments {
  268. .comment-header,
  269. .microblog-header {
  270. font-style: italic;
  271. margin-top: .3em;
  272. }
  273. .comment .author,
  274. .microblog .author {
  275. font-weight: bold;
  276. }
  277. .comment-subject {
  278. font-weight: bold;
  279. }
  280. .comment-avatar {
  281. float: right;
  282. }
  283. .comment {
  284. border: 1px solid #aaa;
  285. padding: 3px;
  286. }
  287. }
  288. @mixin ikiwiki-plugin-progress {
  289. div.progress {
  290. margin-top: 1ex;
  291. margin-bottom: 1ex;
  292. border: 1px solid #888;
  293. width: 400px;
  294. background: #eee;
  295. color: black !important;
  296. padding: 1px;
  297. }
  298. div.progress-done {
  299. background: #ea6 !important;
  300. color: black !important;
  301. text-align: center;
  302. padding: 1px;
  303. }
  304. }
  305. @mixin ikiwiki-site-print {
  306. /* things to hide in printouts */
  307. @media print {
  308. .actions {
  309. display: none;
  310. }
  311. .tags {
  312. display: none;
  313. }
  314. .trails {
  315. display: none;
  316. }
  317. .feedbutton {
  318. display: none;
  319. }
  320. #searchform {
  321. display: none;
  322. }
  323. .blogform, #blogform {
  324. display: none;
  325. }
  326. #backlinks {
  327. display: none;
  328. }
  329. }
  330. }
  331. @mixin ikiwiki-infobox {
  332. /* infobox template */
  333. .infobox {
  334. float: right;
  335. margin-left: 2ex;
  336. margin-top: 1ex;
  337. margin-bottom: 1ex;
  338. padding: 1ex 1ex;
  339. border: 1px solid #aaa;
  340. background: white;
  341. color: black !important;
  342. }
  343. }
  344. @mixin ikiwiki-notebook {
  345. /* notebox template */
  346. .notebox {
  347. float: right;
  348. margin-left: 2ex;
  349. margin-top: 1ex;
  350. margin-bottom: 1ex;
  351. padding: 1ex 1ex;
  352. border: 1px solid #aaa;
  353. width: 25%;
  354. background: white;
  355. color: black !important;
  356. }
  357. }
  358. @mixin ikiwiki-popup {
  359. /* popup template and backlinks hiding */
  360. .popup {
  361. border-bottom: 1px dotted #366;
  362. color: #366;
  363. }
  364. .popup .balloon,
  365. .popup .paren,
  366. .popup .expand {
  367. display: none;
  368. text-align: left;
  369. }
  370. .popup:hover .balloon,
  371. .popup:focus .balloon {
  372. position: absolute;
  373. display: inline;
  374. margin: 1em 0 0 -2em;
  375. padding: 0.625em;
  376. border: 2px solid;
  377. background-color: #dee;
  378. color: black;
  379. }
  380. }
  381. @mixin ikiwiki-forms {
  382. /* form styling */
  383. fieldset {
  384. margin: 1ex 0;
  385. border: 1px solid black;
  386. }
  387. legend {
  388. padding: 0 1ex;
  389. }
  390. .fb_submit {
  391. float: left;
  392. margin: 2px 0;
  393. }
  394. label.block {
  395. display: block;
  396. }
  397. label.inline {
  398. display: inline;
  399. }
  400. input#openid_identifier {
  401. background: url(wikiicons/openidlogin-bg.gif) no-repeat;
  402. background-color: #fff;
  403. background-position: 0 50%;
  404. color: #000;
  405. padding-left: 18px;
  406. }
  407. input#searchbox {
  408. background: url(wikiicons/search-bg.gif) no-repeat;
  409. background-color: #fff;
  410. background-position: 100% 50%;
  411. color: #000;
  412. padding-right: 16px;
  413. }
  414. /* invalid form fields */
  415. .fb_invalid {
  416. color: red;
  417. background: white !important;
  418. }
  419. /* required form fields */
  420. .fb_required {
  421. font-weight: bold;
  422. }
  423. }
  424. @mixin ikiwiki-plugin-highlight {
  425. /* highlight plugin */
  426. pre.hl {
  427. color: #000000;
  428. background-color: #ffffff;
  429. }
  430. .hl.num {
  431. color: #2928ff;
  432. }
  433. .hl.esc {
  434. color: #ff00ff;
  435. }
  436. .hl.str {
  437. color: #ff0000;
  438. }
  439. .hl.dstr {
  440. color: #818100;
  441. }
  442. .hl.slc {
  443. color: #838183;
  444. font-style: italic;
  445. }
  446. .hl.com {
  447. color: #838183;
  448. font-style: italic;
  449. }
  450. .hl.dir {
  451. color: #008200;
  452. }
  453. .hl.sym {
  454. color: #000000;
  455. }
  456. .hl.line {
  457. color: #555555;
  458. }
  459. .hl.mark {
  460. background-color: #ffffbb;
  461. }
  462. .hl.kwa {
  463. color: #000000;
  464. font-weight: bold;
  465. }
  466. .hl.kwb {
  467. color: #830000;
  468. }
  469. .hl.kwc {
  470. color: #000000;
  471. font-weight: bold;
  472. }
  473. .hl.kwd {
  474. color: #010181;
  475. }
  476. }
  477. @mixin ikiwiki-plugin-calendar {
  478. /* calendar plugin */
  479. .month-calendar-day-this-day,
  480. .year-calendar-this-month {
  481. background-color: #eee;
  482. }
  483. .month-calendar-day-head,
  484. .month-calendar-day-nolink,
  485. .month-calendar-day-link,
  486. .month-calendar-day-this-day,
  487. .month-calendar-day-future {
  488. text-align: right;
  489. }
  490. .month-calendar-arrow A:link,
  491. .year-calendar-arrow A:link,
  492. .month-calendar-arrow A:visited,
  493. .year-calendar-arrow A:visited {
  494. text-decoration: none;
  495. font-weight: normal;
  496. font-size: 150%;
  497. }
  498. }
  499. @mixin ikiwiki-lists {
  500. /* outlines */
  501. li.L1 {
  502. list-style: upper-roman;
  503. }
  504. li.L2 {
  505. list-style: decimal;
  506. }
  507. li.L3 {
  508. list-style: lower-alpha;
  509. }
  510. li.L4 {
  511. list-style: disc;
  512. }
  513. li.L5 {
  514. list-style: square;
  515. }
  516. li.L6 {
  517. list-style: circle;
  518. }
  519. li.L7 {
  520. list-style: lower-roman;
  521. }
  522. li.L8 {
  523. list-style: upper-alpha;
  524. }
  525. }
  526. @mixin ikiwiki-plugin-pagestats {
  527. /* tag cloud */
  528. .pagecloud {
  529. float: right;
  530. width: 30%;
  531. text-align: center;
  532. padding: 10px 10px;
  533. border: 1px solid #aaa;
  534. background: #eee;
  535. color: black !important;
  536. }
  537. .smallestPC {
  538. font-size: 70%;
  539. }
  540. .smallPC {
  541. font-size: 85%;
  542. }
  543. .normalPC {
  544. font-size: 100%;
  545. }
  546. .bigPC {
  547. font-size: 115%;
  548. }
  549. .biggestPC {
  550. font-size: 130%;
  551. }
  552. }
  553. @mixin ikiwiki-feedbutton {
  554. /* orange feed button */
  555. .feedbutton {
  556. background: #ff6600;
  557. color: white !important;
  558. border-left: 1px solid #cc9966;
  559. border-top: 1px solid #ccaa99;
  560. border-right: 1px solid #993300;
  561. border-bottom: 1px solid #331100;
  562. padding: 0px 0.5em 0px 0.5em;
  563. font-family: sans-serif;
  564. font-weight: bold;
  565. font-size: small;
  566. text-decoration: none;
  567. margin-top: 1em;
  568. }
  569. .feedbutton:hover {
  570. color: white !important;
  571. background: #ff9900;
  572. }
  573. }
  574. @mixin ikiwiki-plugin-flattr {
  575. .FlattrButton {
  576. display: none;
  577. }
  578. }
  579. @mixin ikiwiki-plugin-openid {
  580. /* openid selector */
  581. #openid_choice {
  582. display: none;
  583. }
  584. #openid_input_area {
  585. clear: both;
  586. padding: 10px;
  587. }
  588. #openid_btns, #openid_btns br {
  589. clear: both;
  590. }
  591. #openid_highlight {
  592. background-color: black;
  593. float: left;
  594. }
  595. .openid_large_btn {
  596. padding: 1em 1.5em;
  597. border: 1px solid #DDD;
  598. margin: 3px;
  599. float: left;
  600. }
  601. .openid_small_btn {
  602. padding: 4px 4px;
  603. border: 1px solid #DDD;
  604. margin: 3px;
  605. float: left;
  606. }
  607. a.openid_large_btn:focus {
  608. outline: none;
  609. }
  610. a.openid_large_btn:focus {
  611. outline-style: none;
  612. }
  613. .openid_selected {
  614. border: 4px solid #DDD;
  615. }
  616. }
  617. @mixin ikiwiki-plugin-attachment {
  618. .fileupload-content .ui-progressbar {
  619. width: 200px;
  620. height: 20px;
  621. }
  622. .fileupload-content .ui-progressbar-value {
  623. background: url(ikiwiki/images/pbar-ani.gif);
  624. }
  625. }
  626. @mixin ikiwiki-plugin-trail {
  627. .trails {
  628. margin-top: 1em;
  629. margin-bottom: 1em;
  630. }
  631. .trail {
  632. display: block;
  633. clear: both;
  634. position: relative;
  635. }
  636. .trailprev {
  637. display: block;
  638. text-align: left;
  639. position: absolute;
  640. top: 0%;
  641. left: 3%;
  642. width: 30%;
  643. }
  644. .trailup {
  645. display: block;
  646. text-align: center;
  647. margin-left: 35%;
  648. margin-right: 35%;
  649. }
  650. .trailnext {
  651. display: block;
  652. text-align: right;
  653. position: absolute;
  654. top: 0%;
  655. width: 30%;
  656. right: 3%;
  657. }
  658. .trailsep {
  659. display: none;
  660. }
  661. }
  662. // all styles in same order as original Ikiwiki stylesheet
  663. @mixin ikiwiki-style-legacy {
  664. @include ikiwiki-header;
  665. @include ikiwiki-inlineheader;
  666. @include ikiwiki-actions;
  667. @include ikiwiki-plugin-po;
  668. @include ikiwiki-inlinecontent;
  669. @include ikiwiki-footer;
  670. @include ikiwiki-pageinfo;
  671. @include ikiwiki-tags;
  672. @include ikiwiki-plugin-map;
  673. @include ikiwiki-plugin-img;
  674. @include ikiwiki-alignment;
  675. @include ikiwiki-backlinks;
  676. @include ikiwiki-plugin-search;
  677. @include ikiwiki-plugin-editpage;
  678. @include ikiwiki-images;
  679. @include ikiwiki-pre;
  680. @include ikiwiki-plugin-recentchanges;
  681. @include ikiwiki-blogform;
  682. @include ikiwiki-inlinepage;
  683. @include ikiwiki-authorship;
  684. @include ikiwiki-archivepage;
  685. @include ikiwiki-debug;
  686. @include ikiwiki-plugin-sidebar;
  687. @include ikiwiki-plugin-poll;
  688. @include ikiwiki-plugin-color;
  689. @include ikiwiki-plugin-comments;
  690. @include ikiwiki-plugin-progress;
  691. @include ikiwiki-site-print;
  692. @include ikiwiki-infobox;
  693. @include ikiwiki-notebook;
  694. @include ikiwiki-popup;
  695. @include ikiwiki-forms;
  696. @include ikiwiki-plugin-highlight;
  697. @include ikiwiki-plugin-calendar;
  698. @include ikiwiki-lists;
  699. @include ikiwiki-plugin-pagestats;
  700. @include ikiwiki-feedbutton;
  701. @include ikiwiki-plugin-flattr;
  702. @include ikiwiki-plugin-openid;
  703. @include ikiwiki-plugin-attachment;
  704. @include ikiwiki-plugin-trail;
  705. }
  706. @mixin ikiwiki-site {
  707. // main content
  708. @include ikiwiki-inlinepage;
  709. @include ikiwiki-inlineheader;
  710. @include ikiwiki-inlinecontent;
  711. @include ikiwiki-plugin-comments;
  712. // header
  713. @include ikiwiki-header;
  714. @include ikiwiki-plugin-search;
  715. @include ikiwiki-actions;
  716. @include ikiwiki-plugin-po;
  717. // footer
  718. @include ikiwiki-footer;
  719. @include ikiwiki-pageinfo;
  720. @include ikiwiki-tags;
  721. @include ikiwiki-backlinks;
  722. @include ikiwiki-authorship;
  723. // aside
  724. @include ikiwiki-plugin-sidebar;
  725. @include ikiwiki-plugin-trail;
  726. }
  727. // http://www.louddog.com/2008/create-maintainable-code-with-a-css-styleguide/
  728. @mixin ikiwiki-style {
  729. // site defaults
  730. @include ikiwiki-images;
  731. @include ikiwiki-pre;
  732. // generic styles
  733. @include ikiwiki-lists;
  734. @include ikiwiki-plugin-img;
  735. @include ikiwiki-feedbutton;
  736. @include ikiwiki-forms;
  737. @include ikiwiki-alignment;
  738. @include ikiwiki-debug;
  739. @include ikiwiki-plugin-highlight;
  740. @include ikiwiki-plugin-color;
  741. // shell
  742. // layout
  743. @include ikiwiki-site;
  744. @include ikiwiki-site-print;
  745. // modulars
  746. @include ikiwiki-infobox;
  747. @include ikiwiki-notebook;
  748. @include ikiwiki-popup;
  749. @include ikiwiki-plugin-calendar;
  750. @include ikiwiki-plugin-progress;
  751. @include ikiwiki-plugin-map;
  752. @include ikiwiki-plugin-poll;
  753. @include ikiwiki-plugin-pagestats;
  754. @include ikiwiki-plugin-flattr;
  755. @include ikiwiki-blogform;
  756. // section/page specific
  757. @include ikiwiki-archivepage;
  758. @include ikiwiki-plugin-recentchanges;
  759. @include ikiwiki-plugin-editpage;
  760. @include ikiwiki-plugin-attachment;
  761. @include ikiwiki-plugin-openid;
  762. }
  763. @mixin ikiwiki {
  764. @include ikiwiki-boilerplate;
  765. @include ikiwiki-reset;
  766. @include ikiwiki-style-legacy;
  767. }