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.

263 lines
5.2 KiB

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