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.

412 lines
6.2 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
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
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
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
14 years ago
14 years ago
14 years ago
14 years ago
13 years ago
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,
  15. body {
  16. background-color: __background__;
  17. color: __text__;
  18. margin: 0;
  19. padding: 0;
  20. }
  21. body {
  22. font: normal 100%/1.4 Frutiger, Calibri, Myriad, "Nimbus Sans L", Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif;
  23. /* default font size: 100% => 16px; 93.75% => 15px; 87.5% => 14px; 81.25% => 13px; 75% => 12px */
  24. }
  25. /*____________ headers ____________*/
  26. h1,
  27. h2,
  28. h3,
  29. h4,
  30. h5,
  31. h6,
  32. caption,
  33. legend {
  34. font-family: Constantia, Utopia, Lucidabright, Lucida, Georgia, "Nimbus Roman No9 L", serif;
  35. font-weight: bold;
  36. color: __text_neu__;
  37. background-color: inherit;
  38. padding: 0;
  39. line-height: 1.2;
  40. clear: left; /* ideally 'both', but problems with toc */
  41. }
  42. [dir=rtl] h1,
  43. [dir=rtl] h2,
  44. [dir=rtl] h3,
  45. [dir=rtl] h4,
  46. [dir=rtl] h5,
  47. [dir=rtl] h6,
  48. [dir=rtl] caption,
  49. [dir=rtl] legend {
  50. clear: right;
  51. }
  52. h1 {
  53. font-size: 2.25em;
  54. margin: 0 0 0.444em;
  55. }
  56. h2 {
  57. font-size: 1.5em;
  58. margin: 0 0 0.666em;
  59. }
  60. h3 {
  61. font-size: 1.125em;
  62. margin: 0 0 0.888em;
  63. }
  64. h4 {
  65. font-size: 1em;
  66. margin: 0 0 1.0em;
  67. }
  68. h5 {
  69. font-size: .875em;
  70. margin: 0 0 1.1428em;
  71. }
  72. h6 {
  73. font-size: .75em;
  74. margin: 0 0 1.333em;
  75. }
  76. /* bottom margin = 1 / font-size */
  77. /*____________ basic margins and paddings ____________*/
  78. p,
  79. ul,
  80. ol,
  81. dl,
  82. pre,
  83. table,
  84. hr,
  85. blockquote,
  86. fieldset,
  87. address {
  88. margin: 0 0 1.4em 0; /* bottom margin = line-height */
  89. padding: 0;
  90. }
  91. div {
  92. margin: 0;
  93. padding: 0;
  94. }
  95. /*____________ lists ____________*/
  96. ul,
  97. ol {
  98. padding: 0 0 0 1.5em;
  99. }
  100. [dir=rtl] ul,
  101. [dir=rtl] ol {
  102. padding: 0 1.5em 0 0;
  103. }
  104. li,
  105. dd {
  106. padding: 0;
  107. margin: 0 0 0 1.5em;
  108. }
  109. [dir=rtl] li,
  110. [dir=rtl] dd {
  111. margin: 0 1.5em 0 0;
  112. }
  113. dt {
  114. font-weight: bold;
  115. margin: 0;
  116. padding: 0;
  117. }
  118. li ul,
  119. li ol,
  120. li dl,
  121. dl ul,
  122. dl ol,
  123. dl dl {
  124. margin-bottom: 0;
  125. padding: 0;
  126. }
  127. li li {
  128. font-size: 100%;
  129. }
  130. ul {
  131. list-style: disc outside;
  132. }
  133. ol {
  134. list-style: decimal outside;
  135. }
  136. ol ol {
  137. list-style-type: lower-alpha;
  138. }
  139. ol ol ol {
  140. list-style-type: upper-roman;
  141. }
  142. ol ol ol ol {
  143. list-style-type: upper-alpha;
  144. }
  145. ol ol ol ol ol {
  146. list-style-type: lower-roman;
  147. }
  148. /*____________ tables ____________*/
  149. table {
  150. border-collapse: collapse;
  151. empty-cells: show;
  152. border-spacing: 0;
  153. border: 1px solid __border__;
  154. }
  155. caption {
  156. caption-side: top;
  157. text-align: left;
  158. margin: 0 0 .3em;
  159. }
  160. [dir=rtl] caption {
  161. text-align: right;
  162. }
  163. th,
  164. td {
  165. padding: .3em .5em;
  166. margin: 0;
  167. vertical-align: top;
  168. border: 1px solid __border__;
  169. text-align: left;
  170. }
  171. [dir=rtl] td,
  172. [dir=rtl] th {
  173. text-align: right;
  174. }
  175. th {
  176. font-weight: bold;
  177. background-color: __background_alt__;
  178. color: inherit;
  179. }
  180. /*____________ links ____________*/
  181. a {
  182. }
  183. a:link,
  184. a:visited {
  185. text-decoration: none;
  186. color: #00c; /* §colour */
  187. }
  188. a:link:hover,
  189. a:visited:hover,
  190. a:link:focus,
  191. a:visited:focus,
  192. a:link:active,
  193. a:visited:active {
  194. text-decoration: underline;
  195. }
  196. a:link:focus,
  197. a:visited:focus {
  198. outline: 1px dotted;
  199. }
  200. a:link:active,
  201. a:visited:active {
  202. color: #c00; /* §colour */
  203. }
  204. /*____________ misc ____________*/
  205. img {
  206. border-width: 0;
  207. vertical-align: middle;
  208. color: #666;
  209. background-color: transparent;
  210. font-style: italic;
  211. height: auto;
  212. }
  213. img,
  214. object {
  215. max-width: 100%;
  216. }
  217. /* IE8 and below won't display the images otherwise */
  218. button img {
  219. max-width: none;
  220. }
  221. hr {
  222. border-style: solid;
  223. border-width: 1px 0 0;
  224. text-align: center;
  225. height: 0;
  226. width: 100%;
  227. clear: both;
  228. }
  229. acronym,
  230. abbr {
  231. cursor: help;
  232. border-bottom: 1px dotted;
  233. font-style: normal;
  234. }
  235. em acronym,
  236. em abbr {
  237. font-style: italic;
  238. }
  239. pre,
  240. code,
  241. samp,
  242. kbd {
  243. font-family: Consolas, "Andale Mono WT", "Andale Mono", "Bitstream Vera Sans Mono", "Nimbus Mono L", Monaco, "Courier New", monospace;
  244. /* same font stack should be used for ".dokuwiki table.diff td" in _diff.css */
  245. font-size: 1em;
  246. background-color: __background_alt__;
  247. color: __text__;
  248. direction: ltr;
  249. text-align: left;
  250. }
  251. pre {
  252. border: 1px solid __border__;
  253. padding: 0 .2em;
  254. overflow: auto;
  255. word-wrap: normal;
  256. }
  257. blockquote {
  258. padding: 0 .5em;
  259. border: solid __border__;
  260. border-width: 0 0 0 .25em;
  261. }
  262. [dir=rtl] blockquote {
  263. border-width: 0 .25em 0 0;
  264. }
  265. q:before,
  266. q:after {
  267. content: '';
  268. }
  269. sub,
  270. sup {
  271. font-size: .8em;
  272. line-height: 1;
  273. }
  274. sub {
  275. vertical-align: sub;
  276. }
  277. sup {
  278. vertical-align: super;
  279. }
  280. /*____________ forms ____________*/
  281. form {
  282. display: inline;
  283. margin: 0;
  284. padding: 0;
  285. }
  286. fieldset {
  287. padding: 1em 1em 0;
  288. border: 1px solid __text_alt__;
  289. }
  290. legend {
  291. margin: 0;
  292. padding: 0 .1em;
  293. }
  294. label {
  295. vertical-align: middle;
  296. cursor: pointer;
  297. }
  298. input,
  299. textarea,
  300. button,
  301. select,
  302. optgroup,
  303. option {
  304. font: inherit;
  305. color: inherit;
  306. /* background-color destroys button look */
  307. line-height: 1;
  308. margin: 0;
  309. vertical-align: middle;
  310. }
  311. input[type=text],
  312. input[type=password],
  313. textarea {
  314. padding: .1em;
  315. }
  316. input[type=radio],
  317. input[type=checkbox],
  318. input.check {
  319. padding: 0;
  320. }
  321. input[type=submit],
  322. input.button,
  323. button {
  324. cursor: pointer;
  325. }
  326. #IE6 .dokuwiki input.button,
  327. #IE6 .dokuwiki button,
  328. #IE7 .dokuwiki input.button,
  329. #IE7 .dokuwiki button {
  330. line-height: 1.4;
  331. }
  332. input[disabled],
  333. button[disabled],
  334. input[readonly],
  335. button[readonly] {
  336. cursor: auto;
  337. }
  338. optgroup {
  339. font-style: italic;
  340. font-weight: bold;
  341. }
  342. option {
  343. font-style: normal;
  344. font-weight: normal;
  345. }
  346. /*____________ general classes ____________*/
  347. div.clearer {
  348. /* additional to what's already in DokuWiki's lib/styles/all.css: */
  349. font-size: 1px;
  350. visibility: hidden;
  351. }
  352. /* @deprecated: has been in lib/styles/screen.css since Angua */
  353. .a11y {
  354. position: absolute;
  355. left: -99999em;
  356. top: 0;
  357. width: 0;
  358. height: 0;
  359. overflow: hidden;
  360. display: inline;
  361. }
  362. [dir=rtl] .a11y {
  363. left: auto;
  364. right: -99999em;
  365. }