light.css 6.2 KB

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