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