1/** 2 * This file provides the main design styles 3 * across all template elements (typo, colors etc.) 4 * 5 * @author Jana Deutschlaender <deutschlaender@cosmocode.de> 6 */ 7 8 9html, body { 10 background-color: @ini_background; 11} 12 13 14/* highlight selected tool */ 15 16.mode_admin a.action.admin, 17.mode_login a.action.login, 18.mode_register a.action.register, 19.mode_profile a.action.profile, 20.mode_recent a.action.recent, 21.mode_index a.action.index, 22.mode_media a.action.media, 23.mode_revisions a.action.revs, 24.mode_backlink a.action.backlink, 25.mode_subscribe a.action.subscribe { 26 font-weight: bold; 27} 28 29.dokuwiki { 30 .page ol li, 31 .page ul li, 32 .aside ul li { 33 color: @ini_text; 34 } 35 36 .pageId { 37 float: right; 38 margin-right: -1em; 39 margin-bottom: -1px; 40 margin-top: -1.5em; 41 overflow: hidden; 42 padding: 0.5em 1em 0; 43 44 span { 45 font-size: @font-size-small; 46 border: solid @ini_background_alt; 47 border-width: 1px 1px 0; 48 background-color: @ini_background; 49 color: @ini_text_alt; 50 padding: .1em .35em; 51 border-top-left-radius: 2px; 52 border-top-right-radius: 2px; 53 box-shadow: 0 0 .5em @ini_text_alt; 54 display: block; 55 } 56 } 57 58 div.page { 59 clear: both; 60 overflow: hidden; 61 word-wrap: break-word; 62 background: @ini_background_content; 63 color: inherit; 64 padding: @page_padding-top @margin-default @margin-default; 65 66 @media @screen_max-md { 67 padding-right: (@margin-default * 1.6); 68 } 69 70 @media @screen_max-xs { 71 padding-left: @margin-small; 72 } 73 } 74 75 .content #dokuwiki__pagetools { 76 @media @screen_max-md { 77 top: 4rem; 78 } 79 } 80 81 .docInfo { 82 font-size: @font-size-small; 83 text-align: right; 84 } 85 86 /* license note under edit window */ 87 div.license { 88 font-size: @font-size-small; 89 line-height: @line-height-default; 90 padding-top: 1rem; 91 92 @media @screen_max-lg { 93 font-size: @font-size-default; 94 } 95 96 @media @screen_max-md { 97 font-size: @font-size-small; 98 } 99 100 * { 101 font-size: inherit; 102 } 103 } 104 105 [dir=rtl] & .docInfo { 106 text-align: left; 107 } 108 109 [dir=rtl] & .pageId { 110 float: left; 111 margin-left: -1em; 112 margin-right: 0; 113 } 114} 115 116caption, 117figcaption, 118summary, 119legend { 120 padding: 0; 121 margin: 0 0 .35em; 122 line-height: 1.2; 123} 124 125h1, 126h2, 127h3, 128h4, 129h5, 130h6 { 131 font-weight: bold; 132 padding: 0; 133 line-height: 1.2; 134 clear: both; 135} 136 137[dir=rtl] h1, 138[dir=rtl] h2, 139[dir=rtl] h3, 140[dir=rtl] h4, 141[dir=rtl] h5, 142[dir=rtl] h6 { 143 clear: right; 144} 145 146h1 { 147 font-size: @font-size-head1; 148 margin: 0 0 @font-size-head1; 149 padding-top: 1em; 150} 151 152h2 { 153 font-size: @font-size-head2; 154 margin: 0 0 @font-size-head2; 155 padding-top: (@font-size-head2 / 2); 156 157 .secedit + &, 158 .section_highlight &:first-child { 159 padding-top: 0; 160 } 161 162 .section_highlight + & { 163 padding-top: (@font-size-head2 / 2); 164 } 165} 166 167h3 { 168 font-size: @font-size-head3; 169 margin: 0 0 @font-size-head3; 170 padding-top: (@font-size-head3 / 2); 171 172 .secedit + &, 173 .section_highlight &:first-child { 174 padding-top: 0; 175 } 176 177 .section_highlight + & { 178 padding-top: (@font-size-head3 / 2); 179 } 180} 181 182h4 { 183 font-size: @font-size-head4; 184 margin: 0 0 @font-size-head4; 185 padding-top: (@font-size-head4 / 2); 186 187 .secedit + &, 188 .section_highlight &:first-child { 189 padding-top: 0; 190 } 191 192 .section_highlight + & { 193 padding-top: (@font-size-head4 / 2); 194 } 195} 196 197h5 { 198 font-size: @font-size-head5; 199 margin: 0 0 @font-size-head5; 200 padding-top: (@font-size-head5 / 2); 201 202 .secedit + &, 203 .section_highlight &:first-child { 204 padding-top: 0; 205 } 206 207 .section_highlight + & { 208 padding-top: (@font-size-head5 / 2); 209 } 210} 211 212h6 { 213 font-size: @font-size-head6; 214 font-weight: @font-weight-bold; 215 margin: 0 0 @font-size-head6; 216 padding-top: (@font-size-head6 / 2); 217 218 .secedit + &, 219 .section_highlight &:first-child { 220 padding-top: 0; 221 } 222 223 .section_highlight + & { 224 padding-top: (@font-size-head6 / 2); 225 } 226} 227 228p { 229 font-size: @font-size-default; 230 line-height: 135%; 231 232 a, 233 span, 234 strong { 235 font-size: inherit; 236 } 237} 238 239label, 240legend, 241button { 242 font-size: @font-size-default; 243 244 a, 245 span, 246 strong { 247 font-size: inherit; 248 } 249} 250 251hr, 252figure, 253details, 254address { 255 font-size: @font-size-default; 256 line-height: 140%; 257} 258 259p, 260ul, 261ol, 262dl, 263pre, 264table, 265hr, 266blockquote, 267figure, 268details, 269fieldset, 270address { 271 margin: 0 0 1.4em; /* bottom margin = line-height */ 272 padding: 0; 273} 274 275div, 276video, 277audio { 278 margin: 0; 279 padding: 0; 280} 281 282small, 283.code { 284 font-size: @font-size-small; 285} 286 287.code { 288 margin-top: @grid; 289 290 // SPR-926: darker colors for accessibility 291 .es6 { 292 color: #00832B; 293 } 294 295 .kw5 { 296 color: #005D00; 297 } 298 299 .kw6 { 300 color: #DC0075; 301 } 302 303 .nu0 { 304 color: #A74DA7; 305 } 306 307 .re3 { 308 color: #DE1B1B; 309 } 310 311 .re4 { 312 color: #007F6F; 313 } 314 315 .br0, .sy0 { 316 color: #248124; 317 } 318 319 .co1, .coMULTI, .sc-1 { 320 color: #707070; 321 } 322 323 .co2, .sy1 { 324 color: #108400; 325 } 326 327 .co3, .sy4 { 328 color: #008070; 329 } 330 331 .kw1, .kw8 { 332 color: #747400; 333 } 334 335 .re1, .st0, .st_h { 336 color: #DD0000; 337 } 338} 339 340 341/*____________ lists ____________*/ 342 343ul, 344ol { 345 font-size: @font-size-default; 346 line-height: 140%; 347 padding: 0 0 0 1.5em; 348} 349 350[dir=rtl] ul, 351[dir=rtl] ol { 352 padding: 0 1.5em 0 0; 353} 354 355li, 356dd { 357 padding: 0; 358 margin: 0 0 0 1.5em; 359} 360 361[dir=rtl] li, 362[dir=rtl] dd { 363 margin: 0 1.5em 0 0; 364} 365 366dl { 367 font-size: @font-size-default; 368 line-height: 140%; 369} 370 371dt { 372 font-weight: bold; 373 margin: 0; 374 padding: 0; 375} 376 377li ul, 378li ol, 379li dl, 380dl ul, 381dl ol, 382dl dl { 383 margin-bottom: 0; 384 padding: 0; 385} 386 387li li { 388 font-size: 100%; 389} 390 391ul { 392 list-style: square outside; 393} 394 395ol { 396 list-style: decimal outside; 397} 398 399ol ol { 400 list-style-type: lower-alpha; 401} 402 403ol ol ol { 404 list-style-type: upper-roman; 405} 406 407ol ol ol ol { 408 list-style-type: upper-alpha; 409} 410 411ol ol ol ol ol { 412 list-style-type: lower-roman; 413} 414 415 416/*____________ tables ____________*/ 417 418.dokuwiki { 419 table.inline tr:hover { 420 th { 421 background-color: fade(@ini_background_alt, 50%); 422 } 423 424 td { 425 background-color: fade(@ini_background_alt, 80%); 426 color: @ini_text_alt; 427 428 *:not(button,a) { 429 color: @ini_text_alt; 430 } 431 } 432 } 433} 434 435table { 436 border-collapse: collapse; 437 empty-cells: show; 438 border-spacing: 0; 439 border: 1px solid @ini_border; 440 font-size: @font-size-default; 441 line-height: 140%; 442} 443 444caption { 445 caption-side: top; 446 text-align: left; 447} 448 449[dir=rtl] caption { 450 text-align: right; 451} 452 453th, 454td { 455 padding: .3em .5em; 456 margin: 0; 457 vertical-align: top; 458 border: 1px solid @ini_border; 459} 460 461th { 462 font-weight: bold; 463 background-color: @ini_background_alt; 464 color: @ini_text_alt; 465 text-align: left; 466} 467 468[dir=rtl] th { 469 text-align: right; 470} 471 472a { 473 outline: none; 474 475 &:link, 476 &:visited { 477 text-decoration: none; 478 color: @ini_link; // links to non wikipages (external links) 479 } 480 481 &:hover, 482 &:focus, 483 &:active { 484 text-decoration: underline; 485 } 486} 487 488img { 489 display: inline-block; 490 border-width: 0; 491 vertical-align: middle; 492 color: #666; 493 background-color: transparent; 494 font-style: italic; 495 height: auto; 496} 497 498img, 499object, 500embed, 501iframe, 502video, 503audio { 504 max-width: 100%; 505} 506 507button img { 508 max-width: none; 509} 510 511hr { 512 border-top: solid @ini_border; 513 border-bottom: solid @ini_background; 514 border-width: 1px 0; 515 height: 0; 516 text-align: center; 517 clear: both; 518} 519 520acronym, 521abbr { 522 cursor: help; 523 border-bottom: 1px dotted; 524 font-style: normal; 525} 526 527em acronym, 528em abbr { 529 font-style: italic; 530} 531 532mark { 533 background-color: @ini_highlight; 534 color: @ini_highlight_text; 535} 536 537pre, 538code, 539samp, 540kbd { 541 font-family: Consolas, "Andale Mono WT", "Andale Mono", "Bitstream Vera Sans Mono", "Nimbus Mono L", Monaco, "Courier New", monospace; 542 /* same font stack should be used for ".dokuwiki table.diff td" in _diff.css */ 543 font-size: @font-size-default; 544 direction: ltr; 545 text-align: left; 546 background-color: @code-background; 547 color: @noopentasks-color; 548 box-shadow: inset 0 0 .3em @noopentasks-border; 549 border-radius: @fix_border-radius; 550 padding-left: @small-spacing; 551 padding-right: @small-spacing; 552 553 * { 554 font-family: inherit; 555 font-size: inherit; 556 } 557 558 span { 559 color: inherit; 560 } 561 562 a { 563 &:link, 564 &:visited { 565 color: inherit; 566 text-decoration: underline; 567 } 568 569 &:hover, 570 &:focus, 571 &:active { 572 text-decoration: none; 573 } 574 } 575} 576 577pre { 578 overflow: auto; 579 word-wrap: normal; 580 border: 1px solid @noopentasks-border; 581 font-size: @font-size-default; 582 line-height: 140%; 583 padding: .7em 1em; 584} 585 586code:not([class]) { 587 display: inline-block; 588} 589 590blockquote { 591 border: solid @ini_border; 592 border-width: 0 0 0 .25em; 593 font-size: @font-size-default; 594 line-height: 140%; 595 padding: 0 .5em; 596} 597 598[dir=rtl] blockquote { 599 border-width: 0 .25em 0 0; 600} 601 602q:before, 603q:after { 604 content: ''; 605} 606 607sub, 608sup { 609 font-size: .8em; 610 line-height: 1; 611} 612 613sub { 614 vertical-align: sub; 615} 616 617sup { 618 vertical-align: super; 619} 620 621small { 622 font-size: .9em; 623} 624