light.css 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. /* This file is in the public domain. */
  2. /* Esteban is nice, but bold is not so nice, and on Windows it suffers.
  3. @import url(http://fonts.googleapis.com/css?family=Esteban&subset=latin,latin-ext);
  4. For campaignwiki.org, we need to use the same URL in the config file when
  5. calling wkhtmltopdf.
  6. @import url(https://fonts.googleapis.com/css?family=Noticia+Text:400,400italic,700italic,700&subset=latin,latin-ext); */
  7. body {
  8. font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  9. font-size: 14pt;
  10. color: #000;
  11. background-color: #eed;
  12. margin:1em 2em;
  13. }
  14. textarea, pre, code, tt {
  15. font-family: "Andale Mono", Monaco, "Courier New", Courier, monospace, Symbola;
  16. font-size: 80%;
  17. }
  18. @media print {
  19. body {
  20. background-color: white;
  21. font-family: Times, serif;
  22. font-size:10pt;
  23. }
  24. /* Printing from Firefox */
  25. svg {
  26. transform: translate(-1.5cm, -1cm);
  27. }
  28. }
  29. /* iPhone */
  30. @media only screen and (max-device-width: 480px) {
  31. img { max-width: 480px !important; }
  32. }
  33. /* iPad */
  34. @media only screen and (min-device-width: 481px) and (max-device-width: 900px) {
  35. body { font-size: 150%; }
  36. textarea,input { font-size: 100%; }
  37. img { max-width: 550px !important; }
  38. }
  39. /* general */
  40. .browse { min-height: 3em; }
  41. .header form, .header p { margin: 0; }
  42. /* hide the buttons but don't use display:none because of
  43. http://stackoverflow.com/questions/5665203/getting-iphone-go-button-to-submit-form
  44. .header input[type="submit"] { position: absolute; visibility: hidden; } */
  45. .header input { width: 6em; font-size: 80%; }
  46. .header input[type="checkbox"] { width: 1em; }
  47. .footer { clear:both; font-size: 90%; }
  48. .content input { font-size: 80%; line-height: 125%; }
  49. /* comments, footer */
  50. div.commentshown {
  51. padding-bottom: 1ex;
  52. padding-left: 2em;
  53. border-left: 2px solid black;
  54. font-size: smaller;
  55. }
  56. div.commenthidden { display:none; }
  57. div.commentshown { display:block; }
  58. /* comment pages with username, homepage, and email subscription */
  59. .comment span { display: block; }
  60. .comment span label {
  61. display: inline-block; width: 10em;
  62. }
  63. input#mail, input#homepage, input#username {
  64. display: inline-block; width: 20em;
  65. }
  66. /* titles */
  67. h1 {
  68. font-weight: bold;
  69. font-size: 150%;
  70. padding: 1em 0;
  71. }
  72. h1 a:link, h1 a:visited {
  73. color: inherit;
  74. background-color: inherit;
  75. text-decoration: inherit;
  76. }
  77. h2 {
  78. font-weight: bold;
  79. font-size: 130%;
  80. padding: 1em 0;
  81. clear: both;
  82. }
  83. @media print {
  84. h1 a, h2 a, h3 a, h4 a { font-style: normal; }
  85. }
  86. /* links */
  87. a:link {
  88. color: #851;
  89. background-color: inherit;
  90. }
  91. a:visited {
  92. color: #542;
  93. background-color: inherit;
  94. }
  95. a:active {
  96. color:#a41;
  97. background-color: inherit;
  98. }
  99. .button {
  100. display: inline-block;
  101. font-size: 150%;
  102. cursor: pointer;
  103. padding: 0.3em 0.5em;
  104. text-shadow: 0px -1px 0px #ccc;
  105. background-color: #cfa;
  106. border: 1px solid #9d8;
  107. border-radius: 5px;
  108. box-shadow: 0px 1px 3px white inset,
  109. 0px 1px 3px black;
  110. }
  111. .button a {
  112. text-decoration: none;
  113. font-weight: normal;
  114. }
  115. .bar a { padding-right: 1em; }
  116. @media print {
  117. a, a:link, a:visited {
  118. color:#000;
  119. text-decoration:none;
  120. font-weight: normal;
  121. }
  122. a.edit, div.footer, form, span.gotobar, a.number span { display:none; }
  123. img[smiley] { line-height: inherit; }
  124. }
  125. /* edit paragraphs: no more */
  126. a.pencil { display: none; }
  127. /* table of contents */
  128. .toc {
  129. font-size: smaller;
  130. border-left: 1em solid #886;
  131. }
  132. .toc ol {
  133. list-style-type: none;
  134. padding-left: 1em;
  135. }
  136. .toc a {
  137. font-weight: normal;
  138. }
  139. /* images with links, captions, etc */
  140. div.image { display: inline; margin: 1em; font-size: 90%; text-align: center; }
  141. .left { float: left; margin-right: 1em; }
  142. .right { float: right; margin-left: 1em; }
  143. div.right .right { float: none; }
  144. div.left .left { float: none; }
  145. .caption { padding: 0 1em; }
  146. .license { font-size: small; }
  147. .aside {
  148. font-size: small;
  149. width: 30%;
  150. float: right;
  151. margin-left: 1em;
  152. margin-bottom: 1em;
  153. padding-left: 1em;
  154. }
  155. .aside img.smiley { height: 1em; }
  156. .narrow {
  157. width: 70%;
  158. }
  159. a img { border: 1px solid #333; }
  160. .fit img { width: 80%; text-align: center; margin: 2em 8%; }
  161. .half img { width: 50%; height: 50%; text-align: center; margin: 2em 8%; }
  162. .noborder img { border: none; }
  163. .twenty img { max-width: 20em; }
  164. img.logo {
  165. float: right;
  166. clear: right;
  167. border-style:none;
  168. margin-left: 1em;
  169. margin-bottom: 1ex;
  170. border: 1px solid black;
  171. }
  172. .hexmap a img { background: #fff; border: none; }
  173. /* fancy bold underline */
  174. em.underline { font-weight: bold; }
  175. /* editing, previewing */
  176. textarea { width:100%; }
  177. div.edit { padding-right: 1em; }
  178. div.diff { padding-left:5%; padding-right:5%; }
  179. div.old { background-color:#FFFFAF; }
  180. div.new { background-color:#CFFFCF; }
  181. /* div.message { background-color:#FEE; } */
  182. div.message {
  183. background-color: inherit;
  184. font-size: smaller;
  185. }
  186. table.history { border-style:none; }
  187. td.history { border-style:none; }
  188. div.history span.dash + strong { font-weight: normal; }
  189. span.result { font-size:larger; }
  190. span.info { font-size:smaller; font-style:italic; }
  191. div.rc hr { display: none; }
  192. div.rc li { padding-bottom: 0.5em; }
  193. div.rc li strong { font-weight: normal; }
  194. /* Tables */
  195. table.user {
  196. margin: 1em 0;
  197. padding: 0 1em;
  198. border-top: 1px solid black;
  199. border-bottom: 1px solid black;
  200. }
  201. div.aside table.user {
  202. margin: 1em 0;
  203. padding: 0;
  204. }
  205. table.user td, table.user th {
  206. border-style: none;
  207. padding:5px 10px;
  208. vertical-align: top;
  209. }
  210. table.user th { font-weight:bold; }
  211. table.user td.r { text-align:right; }
  212. table.user td.l { text-align:left; }
  213. table.user td.c { text-align:center; }
  214. table.user td.j { text-align:justify; }
  215. table.user td.mark { background-color:yellow; }
  216. tr:empty { display: block; height: 0.5em; }
  217. @media print {
  218. table {
  219. font-size: 9pt;
  220. margin: 0;
  221. }
  222. table.user td, table.user th {
  223. padding: 0 1ex;
  224. }
  225. }
  226. /* Calendar */
  227. div.month { margin:0; padding:0; font-size:x-small; float:right; }
  228. div.content div.month { float:none; }
  229. div.year div.month { float:left; font-size:medium; padding:1ex; }
  230. div.month pre { margin:0; padding:0 0 0 1ex; }
  231. div.month a { text-decoration:none; font: inherit; }
  232. div.month span.title a { font: inherit; }
  233. /* no difference between a.exact and a.collection */
  234. div.month a.local { font-weight: bold; }
  235. div.month a.local:link { color: #562; }
  236. div.month a.local:visited { color: #542; }
  237. div.month a.today { background-color: #faa; }
  238. div.month span.title a.local { font-weight: normal; color: #842; }
  239. @media print {
  240. div.month { display: none; }
  241. div.year div.month { display: block; }
  242. div.year div.month a { display: inline; }
  243. }