You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

269 lines
5.3 KiB

14 years ago
14 years ago
14 years ago
14 years ago
14 years ago
14 years ago
14 years ago
14 years ago
14 years ago
13 years ago
14 years ago
  1. /**
  2. * This file provides the most basic styles.
  3. *
  4. * If you integrate DokuWiki into another project, you might either
  5. * want to integrate this file into the other project as well, or use
  6. * the other project's basic CSS for DokuWiki instead of this one.
  7. *
  8. * @author Anika Henke <anika@selfthinker.org>
  9. */
  10. html {
  11. overflow-x: auto;
  12. overflow-y: scroll;
  13. }
  14. html, body {
  15. background-color: __background__;
  16. color: __text__;
  17. margin: 0;
  18. padding: 0;
  19. }
  20. body {
  21. font: normal 100%/1.4 Frutiger, "Frutiger Linotype", Univers, Calibri, Myriad, "Nimbus Sans L", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif;
  22. /* default font size: 100% => 16px; 93.75% => 15px; 87.5% => 14px; 81.25% => 13px; 75% => 12px */
  23. }
  24. /*____________ headers ____________*/
  25. h1, h2, h3, h4, h5, h6,
  26. caption, legend {
  27. font-family: Constantia, Utopia, Lucidabright, Lucida, Georgia, "Nimbus Roman No9 L", serif;
  28. font-weight: bold;
  29. color: __text_neu__;
  30. background-color: inherit;
  31. padding: 0;
  32. line-height: 1.2;
  33. clear: left; /* ideally 'both', but problems with toc */
  34. }
  35. h1 { font-size: 2.25em; margin: 0 0 0.444em; }
  36. h2 { font-size: 1.5em; margin: 0 0 0.666em; }
  37. h3 { font-size: 1.125em; margin: 0 0 0.888em; }
  38. h4 { font-size: 1em; margin: 0 0 1.0em; }
  39. h5 { font-size: .875em; margin: 0 0 1.1428em; }
  40. h6 { font-size: .75em; margin: 0 0 1.333em; }
  41. /* bottom margin = 1 / font-size */
  42. /*____________ basic margins and paddings ____________*/
  43. p, ul, ol, dl, pre, table,
  44. hr, blockquote, fieldset, address {
  45. margin: 0 0 1.4em 0; /* bottom margin = line-height */
  46. padding: 0;
  47. }
  48. div {
  49. margin: 0;
  50. padding: 0;
  51. }
  52. p, dt, dd, td, th, li {
  53. }
  54. /*____________ lists ____________*/
  55. ul, ol {
  56. padding: 0 0 0 1.5em;
  57. }
  58. li, dd {
  59. padding: 0;
  60. margin: 0 0 0 1.5em;
  61. }
  62. dt {
  63. font-weight: bold;
  64. margin: 0;
  65. padding: 0;
  66. }
  67. li ul, li ol, li dl,
  68. dl ul, dl ol, dl dl {
  69. margin-bottom: 0;
  70. padding: 0;
  71. }
  72. li li {
  73. font-size: 100%;
  74. }
  75. ul { list-style: disc outside; }
  76. ol { list-style: decimal outside; }
  77. ol ol { list-style-type: lower-alpha; }
  78. ol ol ol { list-style-type: upper-roman; }
  79. ol ol ol ol { list-style-type: upper-alpha; }
  80. ol ol ol ol ol { list-style-type: lower-roman; }
  81. /*____________ tables ____________*/
  82. table {
  83. border-collapse: collapse;
  84. empty-cells: show;
  85. border-spacing: 0;
  86. border: 1px solid __border__;
  87. }
  88. caption {
  89. caption-side: top;
  90. text-align: left;
  91. margin: 0 0 .3em;
  92. }
  93. th, td {
  94. padding: .3em .5em;
  95. margin: 0;
  96. vertical-align: top;
  97. border: 1px solid __border__;
  98. text-align: left;
  99. }
  100. th {
  101. font-weight: bold;
  102. background-color: __background_alt__;
  103. }
  104. /*____________ links ____________*/
  105. a {
  106. }
  107. a:link, a:visited {
  108. text-decoration: none;
  109. color: #00c; /* §colour */
  110. }
  111. a:link:hover, a:visited:hover,
  112. a:link:focus, a:visited:focus,
  113. a:link:active, a:visited:active {
  114. text-decoration: underline;
  115. }
  116. a:link:focus, a:visited:focus {
  117. outline: 1px dotted;
  118. }
  119. a:link:active, a:visited:active {
  120. color: #c00; /* §colour */
  121. }
  122. /*____________ misc ____________*/
  123. img {
  124. border-width: 0;
  125. vertical-align: middle;
  126. color: #666;
  127. background-color: transparent;
  128. font-style: italic;
  129. }
  130. img, object {
  131. max-width: 100%;
  132. }
  133. hr {
  134. border-style: solid;
  135. border-width: 1px 0 0;
  136. text-align: center;
  137. height: 0;
  138. width: 100%;
  139. clear: both;
  140. }
  141. acronym, abbr {
  142. cursor: help;
  143. border-bottom: 1px dotted;
  144. font-style: normal;
  145. }
  146. pre, code, samp, kbd {
  147. font-family: Consolas, "Andale Mono WT", "Andale Mono", "Bitstream Vera Sans Mono", "Nimbus Mono L", Monaco, "Courier New", monospace;
  148. /* same font stack should be used for ".dokuwiki table.diff td" in _diff.css */
  149. font-size: 1em;
  150. direction: ltr;
  151. text-align: left;
  152. }
  153. pre {
  154. overflow: auto;
  155. word-wrap: normal;
  156. }
  157. blockquote {
  158. padding: 0 .5em;
  159. border: solid __border__;
  160. border-width: 0 0 0 .25em;
  161. }
  162. q:before, q:after {
  163. content: '';
  164. }
  165. sub, sup {
  166. font-size: .8em;
  167. line-height: 1;
  168. }
  169. sub {
  170. vertical-align: sub;
  171. }
  172. sup {
  173. vertical-align: super;
  174. }
  175. /*____________ forms ____________*/
  176. form {
  177. display: inline;
  178. margin: 0;
  179. padding: 0;
  180. }
  181. fieldset {
  182. padding: 1em 1em 0;
  183. border: 1px solid __text_alt__;
  184. }
  185. legend {
  186. margin: 0;
  187. padding: 0 .1em;
  188. }
  189. label {
  190. vertical-align: middle;
  191. cursor: pointer;
  192. }
  193. input, textarea, button,
  194. select, optgroup, option {
  195. font: inherit;
  196. color: inherit;
  197. /* background-color destroys button look */
  198. line-height: 1;
  199. margin: 0;
  200. vertical-align: middle;
  201. }
  202. input[type=text], input[type=password], textarea {
  203. padding: .1em;
  204. }
  205. input[type=radio], input[type=checkbox], input.check {
  206. padding: 0;
  207. }
  208. input[type=submit], input.button, button {
  209. cursor: pointer;
  210. }
  211. input[disabled], button[disabled],
  212. input[readonly], button[readonly] {
  213. cursor: auto;
  214. }
  215. optgroup { font-style: italic; font-weight: bold; }
  216. option { font-style: normal; font-weight: normal; }
  217. /*____________ general classes ____________*/
  218. div.clearer {
  219. /* additional to what's already in DokuWiki's lib/styles/all.css: */
  220. font-size: 1px;
  221. visibility: hidden;
  222. }
  223. .a11y {
  224. position: absolute;
  225. left: -9000px;
  226. top: -4000px;
  227. width: 0;
  228. height: 0;
  229. overflow: hidden;
  230. display: inline;
  231. }