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 color: @ini_text; 18 background: @ini_background_site url(images/page-gradient.png) top left repeat-x; 19 margin: 0; 20 padding: 0; 21} 22body { 23 font: normal 87.5%/1.4 Arial, sans-serif; 24 /* default font size: 100% => 16px; 93.75% => 15px; 87.5% => 14px; 81.25% => 13px; 75% => 12px */ 25 -webkit-text-size-adjust: 100%; 26} 27 28 29/*____________ headers ____________*/ 30 31caption, 32figcaption, 33summary, 34legend { 35 padding: 0; 36 margin: 0 0 .35em; 37 line-height: 1.2; 38} 39h1, 40h2, 41h3, 42h4, 43h5, 44h6 { 45 font-weight: bold; 46 padding: 0; 47 line-height: 1.2; 48 clear: left; /* ideally 'both', but problems with toc */ 49} 50[dir=rtl] h1, 51[dir=rtl] h2, 52[dir=rtl] h3, 53[dir=rtl] h4, 54[dir=rtl] h5, 55[dir=rtl] h6 { 56 clear: right; 57} 58 59h1 { 60 font-size: 2em; 61 margin: 0 0 0.444em; 62} 63h2 { 64 font-size: 1.5em; 65 margin: 0 0 0.666em; 66} 67h3 { 68 font-size: 1.125em; 69 margin: 0 0 0.888em; 70} 71h4 { 72 font-size: 1em; 73 margin: 0 0 1.0em; 74} 75h5 { 76 font-size: .875em; 77 margin: 0 0 1.1428em; 78} 79h6 { 80 font-size: .75em; 81 margin: 0 0 1.333em; 82} 83/* bottom margin = 1 / font-size */ 84 85 86/*____________ basic margins and paddings ____________*/ 87 88p, 89ul, 90ol, 91dl, 92pre, 93table, 94hr, 95blockquote, 96figure, 97details, 98fieldset, 99address { 100 margin: 0 0 1.4em 0; /* bottom margin = line-height */ 101 padding: 0; 102} 103 104div, 105video, 106audio { 107 margin: 0; 108 padding: 0; 109} 110 111 112/*____________ lists ____________*/ 113 114ul, 115ol { 116 padding: 0 0 0 1.5em; 117} 118[dir=rtl] ul, 119[dir=rtl] ol { 120 padding: 0 1.5em 0 0; 121} 122 123li, 124dd { 125 padding: 0; 126 margin: 0 0 0 1.5em; 127} 128[dir=rtl] li, 129[dir=rtl] dd { 130 margin: 0 1.5em 0 0; 131} 132dt { 133 font-weight: bold; 134 margin: 0; 135 padding: 0; 136} 137 138li ul, 139li ol, 140li dl, 141dl ul, 142dl ol, 143dl dl { 144 margin-bottom: 0; 145 padding: 0; 146} 147li li { 148 font-size: 100%; 149} 150 151ul { list-style: square outside; } 152ol { list-style: decimal outside; } 153ol ol { list-style-type: lower-alpha; } 154ol ol ol { list-style-type: upper-roman; } 155ol ol ol ol { list-style-type: upper-alpha; } 156ol ol ol ol ol { list-style-type: lower-roman; } 157 158 159/*____________ tables ____________*/ 160 161table { 162 border-collapse: collapse; 163 empty-cells: show; 164 border-spacing: 0; 165 border: 1px solid @ini_border; 166} 167 168caption { 169 caption-side: top; 170 text-align: left; 171} 172[dir=rtl] caption { 173 text-align: right; 174} 175 176th, 177td { 178 padding: .3em .5em; 179 margin: 0; 180 vertical-align: top; 181 border: 1px solid @ini_border; 182} 183th { 184 font-weight: bold; 185 background-color: @ini_background_alt; 186 text-align: left; 187} 188[dir=rtl] th { 189 text-align: right; 190} 191 192 193/*____________ links ____________*/ 194 195a { 196 outline: none; 197} 198a:link, 199a:visited { 200 text-decoration: none; 201 color: @ini_link; 202} 203a:link:hover, 204a:visited:hover, 205a:link:focus, 206a:visited:focus, 207a:link:active, 208a:visited:active { 209 text-decoration: underline; 210} 211 212 213/*____________ misc ____________*/ 214 215img { 216 border-width: 0; 217 vertical-align: middle; 218 color: #666; 219 background-color: transparent; 220 font-style: italic; 221 height: auto; 222} 223video { 224 height: auto; 225} 226img, 227object, 228embed, 229iframe, 230video, 231audio { 232 max-width: 100%; 233} 234button img { 235 max-width: none; 236} 237 238hr { 239 border-top: solid @ini_border; 240 border-bottom: solid @ini_background; 241 border-width: 1px 0; 242 height: 0; 243 text-align: center; 244 clear: both; 245} 246 247acronym, 248abbr { 249 cursor: help; 250 border-bottom: 1px dotted; 251 font-style: normal; 252} 253em acronym, 254em abbr { 255 font-style: italic; 256} 257 258mark { 259 background-color: @ini_highlight; 260 color: inherit; 261} 262 263pre, 264code, 265samp, 266kbd { 267 font-family: Consolas, "Andale Mono WT", "Andale Mono", "Bitstream Vera Sans Mono", "Nimbus Mono L", Monaco, "Courier New", monospace; 268 /* same font stack should be used for ".dokuwiki table.diff td" in _diff.css */ 269 font-size: 1em; 270 direction: ltr; 271 text-align: left; 272 background-color: @ini_background_site; 273 color: @ini_text; 274 box-shadow: inset 0 0 .3em @ini_border; 275 border-radius: 2px; 276} 277pre { 278 overflow: auto; 279 word-wrap: normal; 280 border: 1px solid @ini_border; 281 border-radius: 2px; 282 box-shadow: inset 0 0 .5em @ini_border; 283 padding: .7em 1em; 284} 285 286blockquote { 287 padding: 0 .5em; 288 border: solid @ini_border; 289 border-width: 0 0 0 .25em; 290} 291[dir=rtl] blockquote { 292 border-width: 0 .25em 0 0; 293} 294q:before, 295q:after { 296 content: ''; 297} 298 299sub, 300sup { 301 font-size: .8em; 302 line-height: 1; 303} 304sub { 305 vertical-align: sub; 306} 307sup { 308 vertical-align: super; 309} 310 311small { 312 font-size: .8em; 313} 314 315/*____________ forms ____________*/ 316 317/* for all of the form styles, style.ini colours are not used on purpose (except for fieldset border) */ 318 319form { 320 display: inline; 321 margin: 0; 322 padding: 0; 323} 324fieldset { 325 padding: .7em 1em 0; 326 padding: .7rem 1rem; /* for those browsers understanding :last-child */ 327 border: 1px solid @ini_text_alt; 328} 329fieldset > :last-child { 330 margin-bottom: 0; 331} 332legend { 333 margin: 0; 334 padding: 0 .1em; 335} 336label { 337 vertical-align: middle; 338 cursor: pointer; 339} 340 341input, 342textarea, 343button, 344select, 345optgroup, 346option, 347keygen, 348output, 349meter, 350progress { 351 font: inherit; 352 font-weight: normal; 353 color: #333; 354 background-color: #fff; 355 line-height: normal; 356 margin: 0; 357 vertical-align: middle; 358 box-sizing: border-box; 359} 360 361select { 362 max-width: 100%; 363} 364optgroup { 365 font-style: italic; 366 font-weight: bold; 367} 368option { 369 font-style: normal; 370 font-weight: normal; 371} 372 373input, 374textarea, 375select, 376keygen { 377 border: 1px solid #ccc; 378 box-shadow: inset 0 0 1px #eee; 379 border-radius: 2px; 380} 381input:active, 382input:focus, 383textarea:active, 384textarea:focus, 385select:active, 386select:focus, 387keygen:active, 388keygen:focus { 389 border-color: #999; 390} 391input[type=radio], 392input[type=checkbox], 393input[type=image] { 394 padding: 0; 395 border-style: none; 396 box-shadow: none; 397} 398 399/* all types of buttons */ 400input[type=submit], 401input[type=button], 402input[type=reset], 403input.button, 404a.button, 405button, 406.qq-upload-button { 407 color: #333; 408 background-color: #eee; 409 background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAxIDEiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiPgo8bGluZWFyR3JhZGllbnQgaWQ9Imc4MjQiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4MT0iMCUiIHkxPSIwJSIgeDI9IjAlIiB5Mj0iMTAwJSI+CjxzdG9wIHN0b3AtY29sb3I9IiNGRkZGRkYiIG9mZnNldD0iMCIvPjxzdG9wIHN0b3AtY29sb3I9IiNGNEY0RjQiIG9mZnNldD0iMC4zIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0VFRUVFRSIgb2Zmc2V0PSIwLjk5Ii8+PHN0b3Agc3RvcC1jb2xvcj0iI0NDQ0NDQyIgb2Zmc2V0PSIuOTkiLz4KPC9saW5lYXJHcmFkaWVudD4KPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNnODI0KSIgLz4KPC9zdmc+); 410 background-image: linear-gradient(to bottom, #ffffff 0%, #f4f4f4 30%, #eeeeee 99%, #cccccc 99%); 411 border: 1px solid #ccc; 412 border-radius: 2px; 413 padding: .1em .5em; 414 cursor: pointer; 415} 416 417input[type=submit]:hover, 418input[type=submit]:active, 419input[type=submit]:focus, 420input[type=button]:hover, 421input[type=button]:active, 422input[type=button]:hover, 423input[type=reset]:hover, 424input[type=reset]:active, 425input[type=reset]:hover, 426input.button:hover, 427input.button:active, 428input.button:focus, 429a.button:hover, 430a.button:active, 431a.button:focus, 432button:hover, 433button:active, 434button:focus, 435.qq-upload-button:hover { 436 border-color: #999; 437 background-color: #ddd; 438 background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAxIDEiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiPgo8bGluZWFyR3JhZGllbnQgaWQ9Imc2NzAiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4MT0iMCUiIHkxPSIwJSIgeDI9IjAlIiB5Mj0iMTAwJSI+CjxzdG9wIHN0b3AtY29sb3I9IiNGRkZGRkYiIG9mZnNldD0iMCIvPjxzdG9wIHN0b3AtY29sb3I9IiNGNEY0RjQiIG9mZnNldD0iMC4zIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0RERERERCIgb2Zmc2V0PSIwLjk5Ii8+PHN0b3Agc3RvcC1jb2xvcj0iI0JCQkJCQiIgb2Zmc2V0PSIuOTkiLz4KPC9saW5lYXJHcmFkaWVudD4KPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNnNjcwKSIgLz4KPC9zdmc+); 439 background-image: linear-gradient(to bottom, #ffffff 0%, #f4f4f4 30%, #dddddd 99%, #bbbbbb 99%); 440} 441 442input::-moz-focus-inner, 443button::-moz-focus-inner { 444 border: 0; 445 padding: 0; 446} 447 448input[disabled], 449button[disabled], 450select[disabled], 451textarea[disabled], 452option[disabled], 453input[readonly], 454button[readonly], 455select[readonly], 456textarea[readonly] { 457 cursor: auto; 458 opacity: .5; 459 background-color: #eee; 460} 461