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 div[class^="level"] + &, 159 .section_highlight &:first-child { 160 padding-top: 0; 161 } 162 163 .section_highlight + & { 164 padding-top: (@font-size-head2 / 2); 165 } 166} 167 168h3 { 169 font-size: @font-size-head3; 170 margin: 0 0 @font-size-head3; 171 padding-top: (@font-size-head3 / 2); 172 173 .secedit + &, 174 div[class^="level"] + &, 175 .section_highlight &:first-child { 176 padding-top: 0; 177 } 178 179 .section_highlight + & { 180 padding-top: (@font-size-head3 / 2); 181 } 182} 183 184h4 { 185 font-size: @font-size-head4; 186 margin: 0 0 @font-size-head4; 187 padding-top: (@font-size-head4 / 2); 188 189 .secedit + &, 190 div[class^="level"] + &, 191 .section_highlight &:first-child { 192 padding-top: 0; 193 } 194 195 .section_highlight + & { 196 padding-top: (@font-size-head4 / 2); 197 } 198} 199 200h5 { 201 font-size: @font-size-head5; 202 margin: 0 0 @font-size-head5; 203 padding-top: (@font-size-head5 / 2); 204 205 .secedit + &, 206 div[class^="level"] + &, 207 .section_highlight &:first-child { 208 padding-top: 0; 209 } 210 211 .section_highlight + & { 212 padding-top: (@font-size-head5 / 2); 213 } 214} 215 216h6 { 217 font-size: @font-size-head6; 218 font-weight: @font-weight-bold; 219 margin: 0 0 @font-size-head6; 220 padding-top: (@font-size-head6 / 2); 221 222 .secedit + &, 223 div[class^="level"] + &, 224 .section_highlight &:first-child { 225 padding-top: 0; 226 } 227 228 .section_highlight + & { 229 padding-top: (@font-size-head6 / 2); 230 } 231} 232 233p { 234 font-size: @font-size-default; 235 line-height: 135%; 236 237 a, 238 span, 239 strong { 240 font-size: inherit; 241 } 242} 243 244label, 245legend, 246button { 247 font-size: @font-size-default; 248 249 a, 250 span, 251 strong { 252 font-size: inherit; 253 } 254} 255 256hr, 257figure, 258details, 259address { 260 font-size: @font-size-default; 261 line-height: 140%; 262} 263 264p, 265ul, 266ol, 267dl, 268pre, 269table, 270hr, 271blockquote, 272figure, 273details, 274fieldset, 275address { 276 margin: 0 0 1.4em; /* bottom margin = line-height */ 277 padding: 0; 278} 279 280div, 281video, 282audio { 283 margin: 0; 284 padding: 0; 285} 286 287small, 288.code { 289 font-size: @font-size-small; 290} 291 292.code { 293 margin-top: @grid; 294 295 // SPR-926: darker colors for accessibility 296 .es6 { 297 color: #00832B; 298 } 299 300 .kw5 { 301 color: #005D00; 302 } 303 304 .kw6 { 305 color: #DC0075; 306 } 307 308 .nu0 { 309 color: #A74DA7; 310 } 311 312 .re3 { 313 color: #DE1B1B; 314 } 315 316 .re4 { 317 color: #007F6F; 318 } 319 320 .br0, .sy0 { 321 color: #248124; 322 } 323 324 .co1, .coMULTI, .sc-1 { 325 color: #707070; 326 } 327 328 .co2, .sy1 { 329 color: #108400; 330 } 331 332 .co3, .sy4 { 333 color: #008070; 334 } 335 336 .kw1, .kw8 { 337 color: #747400; 338 } 339 340 .re1, .st0, .st_h { 341 color: #DD0000; 342 } 343} 344 345 346/*____________ lists ____________*/ 347 348ul, 349ol { 350 font-size: @font-size-default; 351 line-height: 140%; 352 padding: 0 0 0 1.5em; 353} 354 355[dir=rtl] ul, 356[dir=rtl] ol { 357 padding: 0 1.5em 0 0; 358} 359 360li, 361dd { 362 padding: 0; 363 margin: 0 0 0 1.5em; 364} 365 366[dir=rtl] li, 367[dir=rtl] dd { 368 margin: 0 1.5em 0 0; 369} 370 371dl { 372 font-size: @font-size-default; 373 line-height: 140%; 374} 375 376dt { 377 font-weight: bold; 378 margin: 0; 379 padding: 0; 380} 381 382li ul, 383li ol, 384li dl, 385dl ul, 386dl ol, 387dl dl { 388 margin-bottom: 0; 389 padding: 0; 390} 391 392li li { 393 font-size: 100%; 394} 395 396ul { 397 list-style: square outside; 398} 399 400ol { 401 list-style: decimal outside; 402} 403 404ol ol { 405 list-style-type: lower-alpha; 406} 407 408ol ol ol { 409 list-style-type: upper-roman; 410} 411 412ol ol ol ol { 413 list-style-type: upper-alpha; 414} 415 416ol ol ol ol ol { 417 list-style-type: lower-roman; 418} 419 420 421/*____________ tables ____________*/ 422 423.dokuwiki { 424 table.inline tr:hover { 425 th { 426 background-color: fade(@ini_background_alt, 50%); 427 } 428 429 td { 430 background-color: fade(@ini_background_alt, 80%); 431 color: @ini_text_alt; 432 433 *:not(button,a) { 434 color: @ini_text_alt; 435 } 436 } 437 } 438} 439 440table { 441 border-collapse: collapse; 442 empty-cells: show; 443 border-spacing: 0; 444 border: 1px solid @ini_border; 445 font-size: @font-size-default; 446 line-height: 140%; 447} 448 449caption { 450 caption-side: top; 451 text-align: left; 452} 453 454[dir=rtl] caption { 455 text-align: right; 456} 457 458th, 459td { 460 padding: .3em .5em; 461 margin: 0; 462 vertical-align: top; 463 border: 1px solid @ini_border; 464} 465 466th { 467 font-weight: bold; 468 background-color: @ini_background_alt; 469 color: @ini_text_alt; 470 text-align: left; 471} 472 473[dir=rtl] th { 474 text-align: right; 475} 476 477a { 478 outline: none; 479 480 &:link, 481 &:visited { 482 text-decoration: none; 483 color: @ini_link; // links to non wikipages (external links) 484 } 485 486 &:hover, 487 &:focus, 488 &:active { 489 text-decoration: underline; 490 } 491} 492 493img { 494 display: inline-block; 495 border-width: 0; 496 vertical-align: middle; 497 color: #666; 498 background-color: transparent; 499 font-style: italic; 500 height: auto; 501} 502 503img, 504object, 505embed, 506iframe, 507video, 508audio { 509 max-width: 100%; 510} 511 512button img { 513 max-width: none; 514} 515 516hr { 517 border-top: solid @ini_border; 518 border-bottom: solid @ini_background; 519 border-width: 1px 0; 520 height: 0; 521 text-align: center; 522 clear: both; 523} 524 525acronym, 526abbr { 527 cursor: help; 528 border-bottom: 1px dotted; 529 font-style: normal; 530} 531 532em acronym, 533em abbr { 534 font-style: italic; 535} 536 537mark { 538 background-color: @ini_highlight; 539 color: @ini_highlight_text; 540} 541 542pre, 543code, 544samp, 545kbd { 546 font-family: Consolas, "Andale Mono WT", "Andale Mono", "Bitstream Vera Sans Mono", "Nimbus Mono L", Monaco, "Courier New", monospace; 547 /* same font stack should be used for ".dokuwiki table.diff td" in _diff.css */ 548 font-size: @font-size-default; 549 direction: ltr; 550 text-align: left; 551 background-color: @code-background; 552 color: @noopentasks-color; 553 box-shadow: inset 0 0 .3em @noopentasks-border; 554 border-radius: @fix_border-radius; 555 padding-left: @small-spacing; 556 padding-right: @small-spacing; 557 558 * { 559 font-family: inherit; 560 font-size: inherit; 561 } 562 563 span { 564 color: inherit; 565 } 566 567 a { 568 &:link, 569 &:visited { 570 color: inherit; 571 text-decoration: underline; 572 } 573 574 &:hover, 575 &:focus, 576 &:active { 577 text-decoration: none; 578 } 579 } 580} 581 582pre { 583 overflow: auto; 584 word-wrap: normal; 585 border: 1px solid @noopentasks-border; 586 font-size: @font-size-default; 587 line-height: 140%; 588 padding: .7em 1em; 589} 590 591code:not([class]) { 592 display: inline-block; 593} 594 595blockquote { 596 border: solid @ini_border; 597 border-width: 0 0 0 .25em; 598 font-size: @font-size-default; 599 line-height: 140%; 600 padding: 0 .5em; 601} 602 603[dir=rtl] blockquote { 604 border-width: 0 .25em 0 0; 605} 606 607q:before, 608q:after { 609 content: ''; 610} 611 612sub, 613sup { 614 font-size: .8em; 615 line-height: 1; 616} 617 618sub { 619 vertical-align: sub; 620} 621 622sup { 623 vertical-align: super; 624} 625 626small { 627 font-size: .9em; 628} 629