summaryrefslogtreecommitdiff
path: root/monochrome/style.css
blob: 2dcfda07d9fa6009da0e13564ffc31beccb676c0 (plain)
  1. /* ikiwiki style sheet */
  2. /* Note that instead of modifying this style sheet, you can instead edit
  3. * local.css and use it to override or change settings in this one.
  4. */
  5. /* html5 compat */
  6. article,aside,details,figcaption,figure,
  7. footer,header,hgroup,menu,nav,section {
  8. display: block;
  9. }
  10. div.header, header.header {
  11. margin: 0;
  12. font-size: 140%;
  13. font-weight: bold;
  14. line-height: 1em;
  15. display: block;
  16. }
  17. .inlineheader .author {
  18. margin: 0;
  19. font-size: 112%;
  20. font-weight: bold;
  21. display: block;
  22. }
  23. .actions ul {
  24. margin: 0;
  25. padding: 6px .4em;
  26. height: 1em;
  27. list-style-type: none;
  28. }
  29. .actions li {
  30. display: inline;
  31. padding: .2em;
  32. }
  33. .pageheader .actions ul {
  34. border-bottom: 1px solid #000;
  35. }
  36. .inlinepage .actions ul {
  37. border-bottom: 0;
  38. }
  39. #otherlanguages ul {
  40. margin: 0;
  41. padding: 6px;
  42. list-style-type: none;
  43. }
  44. #otherlanguages li {
  45. display: inline;
  46. padding: .2em .4em;
  47. }
  48. .pageheader #otherlanguages {
  49. border-bottom: 1px solid #000;
  50. }
  51. .inlinecontent,
  52. .inlineenclosure {
  53. margin-top: .4em;
  54. }
  55. .pagefooter,
  56. .inlinefooter,
  57. .comments {
  58. clear: both;
  59. }
  60. #pageinfo {
  61. margin: 1em 0;
  62. border-top: 1px solid #000;
  63. }
  64. .tags {
  65. margin-top: 1em;
  66. }
  67. .inlinepage .tags {
  68. display: inline;
  69. }
  70. .mapparent {
  71. text-decoration: none;
  72. }
  73. .img caption {
  74. font-size: 80%;
  75. caption-side: bottom;
  76. text-align: center;
  77. }
  78. img.img {
  79. margin: 0.5ex;
  80. }
  81. .align-left {
  82. float:left;
  83. }
  84. .align-right {
  85. float:right;
  86. }
  87. #backlinks {
  88. margin-top: 1em;
  89. }
  90. #searchform {
  91. display: inline;
  92. float: right;
  93. }
  94. #editcontent {
  95. width: 98%;
  96. }
  97. .editcontentdiv {
  98. width: auto;
  99. overflow: auto;
  100. }
  101. img {
  102. border-style: none;
  103. }
  104. pre {
  105. overflow: auto;
  106. }
  107. div.recentchanges {
  108. border-style: solid;
  109. border-width: 1px;
  110. overflow: auto;
  111. width: auto;
  112. clear: none;
  113. background: #eee;
  114. color: black !important;
  115. }
  116. .recentchanges .metadata {
  117. padding: 0px 0.5em;
  118. }
  119. .recentchanges .changelog {
  120. font-style: italic;
  121. clear: both;
  122. display: block;
  123. padding: 1px 2px;
  124. background: white !important;
  125. color: black !important;
  126. }
  127. .recentchanges .desc {
  128. display: none;
  129. }
  130. .recentchanges .diff {
  131. display: none;
  132. }
  133. .recentchanges .committer {
  134. float: left;
  135. margin: 0;
  136. width: 40%;
  137. }
  138. .recentchanges .committype {
  139. float: left;
  140. margin: 0;
  141. width: 5%;
  142. font-size: small;
  143. }
  144. .recentchanges .changedate {
  145. float: left;
  146. margin: 0;
  147. width: 35%;
  148. font-size: small;
  149. }
  150. .recentchanges .pagelinks,
  151. .recentchanges .revert {
  152. float: right;
  153. margin: 0;
  154. width: 60%;
  155. }
  156. .blogform, #blogform {
  157. padding: 10px 10px;
  158. border: 1px solid #aaa;
  159. background: #eee;
  160. color: black !important;
  161. width: auto;
  162. overflow: auto;
  163. }
  164. .inlinepage {
  165. padding: 10px 10px;
  166. border: 1px solid #aaa;
  167. overflow: auto;
  168. }
  169. .pagedate,
  170. .pagelicense,
  171. .pagecopyright {
  172. font-style: italic;
  173. display: block;
  174. margin-top: 1em;
  175. }
  176. .archivepagedate {
  177. font-style: italic;
  178. }
  179. .archivepage {
  180. margin-bottom: 1em;
  181. }
  182. .error {
  183. color: #C00;
  184. }
  185. .sidebar {
  186. width: 20ex;
  187. float: right;
  188. margin-left: 4px;
  189. margin-bottom: 4px;
  190. margin-top: -1px;
  191. padding: 0ex 2ex;
  192. background: white;
  193. border: 1px solid black;
  194. color: black !important;
  195. }
  196. hr.poll {
  197. height: 10pt;
  198. color: white !important;
  199. background: #eee;
  200. border: 2px solid black;
  201. }
  202. div.poll {
  203. margin-top: 1ex;
  204. margin-bottom: 1ex;
  205. padding: 1ex 1ex;
  206. border: 1px solid #aaa;
  207. }
  208. span.color {
  209. padding: 2px;
  210. }
  211. .comment-header,
  212. .microblog-header {
  213. font-style: italic;
  214. margin-top: .3em;
  215. }
  216. .comment .author,
  217. .microblog .author {
  218. font-weight: bold;
  219. }
  220. .comment-subject {
  221. font-weight: bold;
  222. }
  223. .comment-avatar {
  224. float: right;
  225. }
  226. .comment {
  227. border: 1px solid #aaa;
  228. padding: 3px;
  229. }
  230. div.progress {
  231. margin-top: 1ex;
  232. margin-bottom: 1ex;
  233. border: 1px solid #888;
  234. width: 400px;
  235. background: #eee;
  236. color: black !important;
  237. padding: 1px;
  238. }
  239. div.progress-done {
  240. background: #ea6 !important;
  241. color: black !important;
  242. text-align: center;
  243. padding: 1px;
  244. }
  245. /* things to hide in printouts */
  246. @media print {
  247. .actions { display: none; }
  248. .tags { display: none; }
  249. .trails { display: none; }
  250. .feedbutton { display: none; }
  251. #searchform { display: none; }
  252. .blogform, #blogform { display: none; }
  253. #backlinks { display: none; }
  254. .addcomment { display: none; }
  255. }
  256. /* infobox template */
  257. .infobox {
  258. float: right;
  259. margin-left: 2ex;
  260. margin-top: 1ex;
  261. margin-bottom: 1ex;
  262. padding: 1ex 1ex;
  263. border: 1px solid #aaa;
  264. background: white;
  265. color: black !important;
  266. }
  267. /* notebox template */
  268. .notebox {
  269. float: right;
  270. margin-left: 2ex;
  271. margin-top: 1ex;
  272. margin-bottom: 1ex;
  273. padding: 1ex 1ex;
  274. border: 1px solid #aaa;
  275. width: 25%;
  276. background: white;
  277. color: black !important;
  278. }
  279. /* popup template and backlinks hiding */
  280. .popup {
  281. border-bottom: 1px dotted #366;
  282. color: #366;
  283. }
  284. .popup .balloon,
  285. .popup .paren,
  286. .popup .expand {
  287. display: none;
  288. text-align: left;
  289. }
  290. .popup:hover .balloon,
  291. .popup:focus .balloon {
  292. position: absolute;
  293. display: inline;
  294. margin: 1em 0 0 -2em;
  295. padding: 0.625em;
  296. border: 2px solid;
  297. background-color: #dee;
  298. color: black;
  299. }
  300. /* form styling */
  301. fieldset {
  302. margin: 1ex 0;
  303. border: 1px solid black;
  304. }
  305. legend {
  306. padding: 0 1ex;
  307. }
  308. .fb_submit {
  309. float: left;
  310. margin: 2px 0;
  311. }
  312. label.block {
  313. display: block;
  314. }
  315. label.inline {
  316. display: inline;
  317. }
  318. input#openid_identifier {
  319. background: url(wikiicons/openidlogin-bg.gif) no-repeat;
  320. background-color: #fff;
  321. background-position: 0 50%;
  322. color: #000;
  323. padding-left: 18px;
  324. }
  325. input#searchbox {
  326. background: url(wikiicons/search-bg.gif) no-repeat;
  327. background-color: #fff;
  328. background-position: 100% 50%;
  329. color: #000;
  330. padding-right: 16px;
  331. }
  332. /* invalid form fields */
  333. .fb_invalid {
  334. color: red;
  335. background: white !important;
  336. }
  337. /* required form fields */
  338. .fb_required {
  339. font-weight: bold;
  340. }
  341. /* highlight plugin */
  342. pre.hl { color:#000000; background-color:#ffffff; }
  343. .hl.num { color:#2928ff; }
  344. .hl.esc { color:#ff00ff; }
  345. .hl.str { color:#ff0000; }
  346. .hl.dstr { color:#818100; }
  347. .hl.slc { color:#838183; font-style:italic; }
  348. .hl.com { color:#838183; font-style:italic; }
  349. .hl.dir { color:#008200; }
  350. .hl.sym { color:#000000; }
  351. .hl.line { color:#555555; }
  352. .hl.mark { background-color:#ffffbb; }
  353. .hl.kwa { color:#000000; font-weight:bold; }
  354. .hl.kwb { color:#830000; }
  355. .hl.kwc { color:#000000; font-weight:bold; }
  356. .hl.kwd { color:#010181; }
  357. /* calendar plugin */
  358. .month-calendar-day-this-day,
  359. .year-calendar-this-month {
  360. background-color: #eee;
  361. }
  362. .month-calendar-day-head,
  363. .month-calendar-day-nolink,
  364. .month-calendar-day-link,
  365. .month-calendar-day-this-day,
  366. .month-calendar-day-future {
  367. text-align: right;
  368. }
  369. .month-calendar-arrow A:link,
  370. .year-calendar-arrow A:link,
  371. .month-calendar-arrow A:visited,
  372. .year-calendar-arrow A:visited {
  373. text-decoration: none;
  374. font-weight: normal;
  375. font-size: 150%;
  376. }
  377. /* outlines */
  378. li.L1 { list-style: upper-roman; }
  379. li.L2 { list-style: decimal; }
  380. li.L3 { list-style: lower-alpha; }
  381. li.L4 { list-style: disc; }
  382. li.L5 { list-style: square; }
  383. li.L6 { list-style: circle; }
  384. li.L7 { list-style: lower-roman; }
  385. li.L8 { list-style: upper-alpha; }
  386. /* tag cloud */
  387. .pagecloud {
  388. float: right;
  389. width: 30%;
  390. text-align: center;
  391. padding: 10px 10px;
  392. border: 1px solid #aaa;
  393. background: #eee;
  394. color: black !important;
  395. }
  396. .smallestPC { font-size: 70%; }
  397. .smallPC { font-size: 85%; }
  398. .normalPC { font-size: 100%; }
  399. .bigPC { font-size: 115%; }
  400. .biggestPC { font-size: 130%; }
  401. /* orange feed button */
  402. .feedbutton {
  403. background: #ff6600;
  404. color: white !important;
  405. border-left: 1px solid #cc9966;
  406. border-top: 1px solid #ccaa99;
  407. border-right: 1px solid #993300;
  408. border-bottom: 1px solid #331100;
  409. padding: 0px 0.5em 0px 0.5em;
  410. font-family: sans-serif;
  411. font-weight: bold;
  412. font-size: small;
  413. text-decoration: none;
  414. margin-top: 1em;
  415. }
  416. .feedbutton:hover {
  417. color: white !important;
  418. background: #ff9900;
  419. }
  420. .FlattrButton {
  421. display: none;
  422. }
  423. /* login selector */
  424. #login_choice {
  425. display: none;
  426. }
  427. #login_input_area {
  428. clear: both;
  429. padding: 10px;
  430. }
  431. #login_btns, #login_btns br {
  432. clear: both;
  433. }
  434. #login_highlight {
  435. background-color: black;
  436. float: left;
  437. }
  438. .login_large_btn {
  439. padding: 1em 1.5em;
  440. border: 1px solid #DDD;
  441. margin: 3px;
  442. float: left;
  443. }
  444. .login_small_btn {
  445. padding: 4px 4px;
  446. border: 1px solid #DDD;
  447. margin: 3px;
  448. float: left;
  449. }
  450. a.login_large_btn:focus {
  451. outline: none;
  452. }
  453. a.login_large_btn:focus {
  454. outline-style: none;
  455. }
  456. .login_selected {
  457. border: 4px solid #DDD;
  458. }
  459. .fileupload-content .ui-progressbar {
  460. width: 200px;
  461. height: 20px;
  462. }
  463. .fileupload-content .ui-progressbar-value {
  464. background: url(ikiwiki/images/pbar-ani.gif);
  465. }
  466. .trails {
  467. margin-top: 1em;
  468. margin-bottom: 1em;
  469. }
  470. .trail {
  471. display: block;
  472. clear: both;
  473. position: relative;
  474. }
  475. .trailprev {
  476. display: block;
  477. text-align: left;
  478. position: absolute;
  479. top: 0%;
  480. left: 3%;
  481. width: 30%;
  482. }
  483. .trailup {
  484. display: block;
  485. text-align: center;
  486. margin-left: 35%;
  487. margin-right: 35%;
  488. }
  489. .trailnext {
  490. display: block;
  491. text-align: right;
  492. position: absolute;
  493. top: 0%;
  494. width: 30%;
  495. right: 3%;
  496. }
  497. .trailsep {
  498. display: none;
  499. }
  500. /* mobile/small-screen-friendly layout */
  501. @media (max-width: 600px) {
  502. .sidebar {
  503. width: auto;
  504. float: none;
  505. margin-top: 0;
  506. border: none;
  507. }
  508. /* if the mobile browser is new enough, use flex layout to shuffle
  509. * the sidebar to the end */
  510. .page {
  511. display: -webkit-box;
  512. display: -webkit-flexbox;
  513. display: -webkit-flex;
  514. display: -moz-box;
  515. display: -ms-flexbox;
  516. display: flex;
  517. -webkit-box-orient: vertical;
  518. -webkit-flex-direction: tb;
  519. -webkit-flex-direction: column;
  520. -webkit-flex-flow: column;
  521. -ms-flex-direction: column;
  522. flex-direction: column;
  523. }
  524. #pageheader {
  525. -webkit-box-ordinal-group: -1;
  526. -webkit-order: -1;
  527. -ms-box-ordinal-group: -1;
  528. -ms-flex-order: -1;
  529. order: -1;
  530. }
  531. .sidebar, #footer {
  532. -webkit-box-ordinal-group: 1;
  533. -webkit-order: 1;
  534. -ms-box-ordinal-group: 1;
  535. -ms-flex-order: 1;
  536. order: 1;
  537. }
  538. .blogform, #blogform {
  539. padding: 4px 4px;
  540. }
  541. }
  542. /*
  543. * monochrome - ikiwiki theme © Jon Dowland 2012
  544. * based on ikiwiki style.css and bits from jmtd.net at the time
  545. * License: GPL-2+
  546. */
  547. @import url(http://fonts.googleapis.com/css?family=Lato&v2);
  548. body {
  549. margin-left: auto;
  550. margin-right: auto;
  551. width: 48em;
  552. max-width: 95%;
  553. background: url(gradient.png) repeat-x white 0px -16px;
  554. margin-top: 48px; /* height of gradient.png that we want to see */
  555. color: #555;
  556. font-family: 'Lato', sans-serif;
  557. }
  558. div.header, header.header {
  559. margin-bottom: 0.5em;
  560. }
  561. .pageheader .actions ul {
  562. border-bottom: 2px solid #c00040;
  563. }
  564. #pageinfo {
  565. border-top: 2px solid #c00040;
  566. text-align: center;
  567. color: #aaa;
  568. }
  569. /*
  570. * css3 external links stuff
  571. * thanks to <http://www.kryogenix.org/days/2002/08/30/external>
  572. */
  573. #content a[href^="http:"]:after,
  574. #content a[href^="https:"]:after,
  575. #enclosure a[href^="http:"]:after,
  576. #enclosure a[href^="https:"]:after {
  577. content: "↗";
  578. }
  579. /* you will want to replicate this for your own domain in local.css */
  580. #content a[href^="http://localhost"]:after,
  581. #content a[href^="http://ikiwiki.info"]:after,
  582. #enclosure a[href^="http://localhost"]:after,
  583. #enclosure a[href^="http://ikiwiki.info"]:after {
  584. content: none;
  585. }
  586. /* colouring */
  587. a:link { color: #c00040; font-weight: bold; text-decoration: none; }
  588. a:hover { color: #f01070; text-decoration: underline;}
  589. a:active { color: #c00040; }
  590. a:visited { color: #c08080; font-weight: normal; font-style: italic; }
  591. hr { border: none; border-top: 2px solid #c00040; clear: both; }