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