[8] | 1 | /*
|
---|
| 2 | * Copyright (c) 2003 Pixware.
|
---|
| 3 | *
|
---|
| 4 | * This file is part of the XMLmind XML Editor project.
|
---|
| 5 | * For conditions of distribution and use, see the accompanying legal.txt file.
|
---|
| 6 | */
|
---|
| 7 |
|
---|
| 8 | html {
|
---|
| 9 | display: block;
|
---|
| 10 | }
|
---|
| 11 |
|
---|
| 12 | /* ---------------------------------------------------------------------------
|
---|
| 13 | Head
|
---|
| 14 | --------------------------------------------------------------------------- */
|
---|
| 15 |
|
---|
| 16 | head {
|
---|
| 17 | display: block;
|
---|
| 18 | }
|
---|
| 19 |
|
---|
| 20 | title {
|
---|
| 21 | display: block;
|
---|
| 22 | text-align: center;
|
---|
| 23 | font-weight: bold;
|
---|
| 24 | font-size: 2em;
|
---|
| 25 | color: maroon;
|
---|
| 26 | margin-top: .67ex;
|
---|
| 27 | margin-bottom: .67ex;
|
---|
| 28 | }
|
---|
| 29 |
|
---|
| 30 | base,
|
---|
| 31 | meta,
|
---|
| 32 | link,
|
---|
| 33 | style,
|
---|
| 34 | script,
|
---|
| 35 | noscript {
|
---|
| 36 | display: tree;
|
---|
| 37 | }
|
---|
| 38 |
|
---|
| 39 | /* ---------------------------------------------------------------------------
|
---|
| 40 | Body
|
---|
| 41 | --------------------------------------------------------------------------- */
|
---|
| 42 |
|
---|
| 43 | body {
|
---|
| 44 | display: block;
|
---|
| 45 | }
|
---|
| 46 |
|
---|
| 47 | /*
|
---|
| 48 | * Transitional
|
---|
| 49 | */
|
---|
| 50 | body[bgcolor] {
|
---|
| 51 | background-color: concatenate(attr(bgcolor));
|
---|
| 52 | }
|
---|
| 53 | body[text] {
|
---|
| 54 | color: concatenate(attr(text));
|
---|
| 55 | }
|
---|
| 56 |
|
---|
| 57 | /* ---------------------------------------------------------------------------
|
---|
| 58 | Blocks
|
---|
| 59 | --------------------------------------------------------------------------- */
|
---|
| 60 |
|
---|
| 61 | div {
|
---|
| 62 | display: block;
|
---|
| 63 | }
|
---|
| 64 |
|
---|
| 65 | /*
|
---|
| 66 | * Transitional
|
---|
| 67 | */
|
---|
| 68 | center {
|
---|
| 69 | display: block;
|
---|
| 70 | }
|
---|
| 71 | div[align=center],
|
---|
| 72 | center {
|
---|
| 73 | margin-left: auto;
|
---|
| 74 | margin-right: auto;
|
---|
| 75 | text-align: center;
|
---|
| 76 | }
|
---|
| 77 | div[align=right] {
|
---|
| 78 | margin-left: auto;
|
---|
| 79 | margin-right: 0;
|
---|
| 80 | text-align: right;
|
---|
| 81 | }
|
---|
| 82 |
|
---|
| 83 | hr {
|
---|
| 84 | display: block;
|
---|
| 85 | content: icon(invisible) icon(invisible);
|
---|
| 86 | border: 2 inset gray;
|
---|
| 87 | }
|
---|
| 88 |
|
---|
| 89 | /*
|
---|
| 90 | * Transitional
|
---|
| 91 | */
|
---|
| 92 | hr[noshade] {
|
---|
| 93 | background-color: gray;
|
---|
| 94 | border-style: solid;
|
---|
| 95 | }
|
---|
| 96 |
|
---|
| 97 | /* -------------------------------------
|
---|
| 98 | Headings
|
---|
| 99 | ------------------------------------- */
|
---|
| 100 |
|
---|
| 101 | h1,
|
---|
| 102 | h2,
|
---|
| 103 | h3,
|
---|
| 104 | h4,
|
---|
| 105 | h5,
|
---|
| 106 | h6 {
|
---|
| 107 | display: block;
|
---|
| 108 | font-weight: bold;
|
---|
| 109 | color: maroon;
|
---|
| 110 | }
|
---|
| 111 |
|
---|
| 112 | h1 {
|
---|
| 113 | font-size: 1.5em;
|
---|
| 114 | margin-top: .83ex;
|
---|
| 115 | margin-bottom: .83ex;
|
---|
| 116 | }
|
---|
| 117 |
|
---|
| 118 | h2 {
|
---|
| 119 | font-size: 1.3em;
|
---|
| 120 | margin-top: 1ex;
|
---|
| 121 | margin-bottom: 1ex;
|
---|
| 122 | }
|
---|
| 123 |
|
---|
| 124 | h3,
|
---|
| 125 | h4,
|
---|
| 126 | h5,
|
---|
| 127 | h6 {
|
---|
| 128 | margin-top: 1.33ex;
|
---|
| 129 | margin-bottom: 1.33ex;
|
---|
| 130 | }
|
---|
| 131 |
|
---|
| 132 | /*
|
---|
| 133 | * Transitional
|
---|
| 134 | */
|
---|
| 135 | h1[align],
|
---|
| 136 | h2[align],
|
---|
| 137 | h3[align],
|
---|
| 138 | h4[align],
|
---|
| 139 | h5[align],
|
---|
| 140 | h6[align] {
|
---|
| 141 | text-align: concatenate(attr(align));
|
---|
| 142 | }
|
---|
| 143 |
|
---|
| 144 | /* -------------------------------------
|
---|
| 145 | Paragraphs
|
---|
| 146 | ------------------------------------- */
|
---|
| 147 |
|
---|
| 148 | address {
|
---|
| 149 | display: block;
|
---|
| 150 | font-style: italic;
|
---|
| 151 | margin-top: 1.33ex 0;
|
---|
| 152 | }
|
---|
| 153 |
|
---|
| 154 | p {
|
---|
| 155 | display: block;
|
---|
| 156 | margin: 1.33ex 0;
|
---|
| 157 | }
|
---|
| 158 |
|
---|
| 159 | /*
|
---|
| 160 | * Transitional
|
---|
| 161 | */
|
---|
| 162 | p[align] {
|
---|
| 163 | text-align: concatenate(attr(align));
|
---|
| 164 | }
|
---|
| 165 |
|
---|
| 166 | pre {
|
---|
| 167 | display: block;
|
---|
| 168 | white-space: pre;
|
---|
| 169 | font-family: monospace;
|
---|
| 170 | background-color: #EEEEEE;
|
---|
| 171 | border: thin solid gray;
|
---|
| 172 | padding: 2px;
|
---|
| 173 | margin: 1.33ex 0;
|
---|
| 174 | }
|
---|
| 175 |
|
---|
| 176 | blockquote {
|
---|
| 177 | display: block;
|
---|
| 178 | margin: 1.33ex 10ex;
|
---|
| 179 | }
|
---|
| 180 |
|
---|
| 181 | /* -------------------------------------
|
---|
| 182 | Lists
|
---|
| 183 | ------------------------------------- */
|
---|
| 184 |
|
---|
| 185 | ul {
|
---|
| 186 | display: block;
|
---|
| 187 | margin-left: 2ex;
|
---|
| 188 | margin-top: 1.33ex;
|
---|
| 189 | margin-bottom: 1.33ex;
|
---|
| 190 | }
|
---|
| 191 |
|
---|
| 192 | li {
|
---|
| 193 | display: block;
|
---|
| 194 | }
|
---|
| 195 |
|
---|
| 196 | ul > li {
|
---|
| 197 | margin-left: 2.5ex;
|
---|
| 198 | }
|
---|
| 199 | ul > li:before {
|
---|
| 200 | display: marker;
|
---|
| 201 | content: disc;
|
---|
| 202 | padding-top: .6ex;
|
---|
| 203 | }
|
---|
| 204 | ul > li ul > li:before {
|
---|
| 205 | content: square;
|
---|
| 206 | }
|
---|
| 207 | ul > li ul > li ul > li:before {
|
---|
| 208 | content: icon(diamond);
|
---|
| 209 | }
|
---|
| 210 | ul > li ul > li ul > li ul > li:before {
|
---|
| 211 | content: circle;
|
---|
| 212 | }
|
---|
| 213 |
|
---|
| 214 | /*
|
---|
| 215 | * Transitional
|
---|
| 216 | */
|
---|
| 217 | dir,
|
---|
| 218 | menu {
|
---|
| 219 | display: block;
|
---|
| 220 | margin-left: 2ex;
|
---|
| 221 | margin-top: 1.33ex;
|
---|
| 222 | margin-bottom: 1.33ex;
|
---|
| 223 | }
|
---|
| 224 | dir > li,
|
---|
| 225 | menu > li {
|
---|
| 226 | margin-left: 2.5ex;
|
---|
| 227 | }
|
---|
| 228 | dir > li:before {
|
---|
| 229 | display: marker;
|
---|
| 230 | content: icon(right-half-disc);
|
---|
| 231 | color: maroon;
|
---|
| 232 | padding-top: .6ex;
|
---|
| 233 | }
|
---|
| 234 | menu > li:before {
|
---|
| 235 | display: marker;
|
---|
| 236 | content: icon(right);
|
---|
| 237 | color: maroon;
|
---|
| 238 | padding-top: .6ex;
|
---|
| 239 | }
|
---|
| 240 |
|
---|
| 241 | ol {
|
---|
| 242 | display: block;
|
---|
| 243 | margin-left: 2ex;
|
---|
| 244 | margin-top: 1.33ex;
|
---|
| 245 | margin-bottom: 1.33ex;
|
---|
| 246 | }
|
---|
| 247 |
|
---|
| 248 | ol > li {
|
---|
| 249 | margin-left: 6ex;
|
---|
| 250 | }
|
---|
| 251 | ol > li:before {
|
---|
| 252 | display: marker;
|
---|
| 253 | content: counter(n, decimal) ".";
|
---|
| 254 | font-weight: bold;
|
---|
| 255 | }
|
---|
| 256 |
|
---|
| 257 | /* Example of value for style attribute: "list-style-type: lower-roman;" */
|
---|
| 258 | ol[style~=lower-alpha] > li:before {
|
---|
| 259 | content: counter(n, lower-alpha) ".";
|
---|
| 260 | }
|
---|
| 261 | ol[style~=upper-alpha] > li:before {
|
---|
| 262 | content: counter(n, upper-alpha) ".";
|
---|
| 263 | }
|
---|
| 264 | ol[style~=lower-roman] > li:before {
|
---|
| 265 | content: counter(n, lower-roman) ".";
|
---|
| 266 | }
|
---|
| 267 | ol[style~=upper-roman] > li:before {
|
---|
| 268 | content: counter(n, upper-roman) ".";
|
---|
| 269 | }
|
---|
| 270 |
|
---|
| 271 | /*
|
---|
| 272 | * Transitional
|
---|
| 273 | */
|
---|
| 274 | ol[type=a] > li:before {
|
---|
| 275 | content: counter(n, lower-alpha) ".";
|
---|
| 276 | }
|
---|
| 277 | ol[type=A] > li:before {
|
---|
| 278 | content: counter(n, upper-alpha) ".";
|
---|
| 279 | }
|
---|
| 280 | ol[type=i] > li:before {
|
---|
| 281 | content: counter(n, lower-roman) ".";
|
---|
| 282 | }
|
---|
| 283 | ol[type=I] > li:before {
|
---|
| 284 | content: counter(n, upper-roman) ".";
|
---|
| 285 | }
|
---|
| 286 |
|
---|
| 287 | ol ul, ul ol, ul ul, ol ol {
|
---|
| 288 | margin-top: 0;
|
---|
| 289 | margin-bottom: 0;
|
---|
| 290 | }
|
---|
| 291 |
|
---|
| 292 | dl {
|
---|
| 293 | display: block;
|
---|
| 294 | margin-left: 2ex;
|
---|
| 295 | margin-top: 1.33ex;
|
---|
| 296 | margin-bottom: 1.33ex;
|
---|
| 297 | }
|
---|
| 298 |
|
---|
| 299 | dt {
|
---|
| 300 | display: block;
|
---|
| 301 | font-weight: bold;
|
---|
| 302 | }
|
---|
| 303 |
|
---|
| 304 | dd {
|
---|
| 305 | display: block;
|
---|
| 306 | margin-left: 4ex;
|
---|
| 307 | }
|
---|
| 308 |
|
---|
| 309 | /* -------------------------------------
|
---|
| 310 | Table
|
---|
| 311 | ------------------------------------- */
|
---|
| 312 |
|
---|
| 313 | /*
|
---|
| 314 | * "black" is the color used to draw a border around the table and its cells
|
---|
| 315 | * based on values of attributes such as border, frame, rules.
|
---|
| 316 | *
|
---|
| 317 | * "rgb(238,238,224)" (a very light gray) is the color used to draw
|
---|
| 318 | * a border around each cell whether the cell actually has borders or not.
|
---|
| 319 | * Remove this parameter if this ``cell footprint'' disturbs you.
|
---|
| 320 | *
|
---|
| 321 | * For more information about table support for XHTML, see Power User's Guide.
|
---|
| 322 | */
|
---|
| 323 | @extension "com.xmlmind.xmleditapp.xhtml.TableSupport black rgb(238,238,224)";
|
---|
| 324 |
|
---|
| 325 | table {
|
---|
| 326 | display: table;
|
---|
| 327 | border-style: solid;
|
---|
| 328 | border-width: 1;
|
---|
| 329 | margin-top: 1.33ex;
|
---|
| 330 | margin-bottom: 1.33ex;
|
---|
| 331 | }
|
---|
| 332 |
|
---|
| 333 | caption {
|
---|
| 334 | display: table-caption;
|
---|
| 335 | font-style: italic;
|
---|
| 336 | color: maroon;
|
---|
| 337 | text-align: center;
|
---|
| 338 | margin-left: 2ex;
|
---|
| 339 | margin-right: 2ex;
|
---|
| 340 | margin-top: 2;
|
---|
| 341 | margin-bottom: 2;
|
---|
| 342 | }
|
---|
| 343 |
|
---|
| 344 | colgroup {
|
---|
| 345 | display: table-column-group;
|
---|
| 346 | collapsed: yes;
|
---|
| 347 | }
|
---|
| 348 |
|
---|
| 349 | col {
|
---|
| 350 | display: table-column;
|
---|
| 351 | collapsed: yes;
|
---|
| 352 | }
|
---|
| 353 |
|
---|
| 354 | thead,
|
---|
| 355 | tbody,
|
---|
| 356 | tfoot {
|
---|
| 357 | display: table-row-group;
|
---|
| 358 | }
|
---|
| 359 |
|
---|
| 360 | tr {
|
---|
| 361 | display: table-row;
|
---|
| 362 | }
|
---|
| 363 |
|
---|
| 364 | td,
|
---|
| 365 | th {
|
---|
| 366 | display: table-cell;
|
---|
| 367 | border-style: solid;
|
---|
| 368 | border-width: 1;
|
---|
| 369 | padding: 2;
|
---|
| 370 | }
|
---|
| 371 | th {
|
---|
| 372 | font-weight: bold;
|
---|
| 373 | }
|
---|
| 374 |
|
---|
| 375 | table {
|
---|
| 376 | collapsible: yes;
|
---|
| 377 | not-collapsible-head: 1;
|
---|
| 378 | collapsed-content: url(../../common/icons2/table.gif);
|
---|
| 379 | }
|
---|
| 380 |
|
---|
| 381 | caption:first-child:before {
|
---|
| 382 | content: collapser() " ";
|
---|
| 383 | }
|
---|
| 384 |
|
---|
| 385 | /*
|
---|
| 386 | * Transitional
|
---|
| 387 | */
|
---|
| 388 | tr[bgcolor] > th,
|
---|
| 389 | tr[bgcolor] > td {
|
---|
| 390 | background-color: inherit;
|
---|
| 391 | }
|
---|
| 392 | /* "tr > th" is used to make this rule more specific than the above one. */
|
---|
| 393 | table[bgcolor],
|
---|
| 394 | tr[bgcolor],
|
---|
| 395 | tr > th[bgcolor],
|
---|
| 396 | tr > td[bgcolor] {
|
---|
| 397 | background-color: concatenate(attr(bgcolor));
|
---|
| 398 | }
|
---|
| 399 |
|
---|
| 400 | /* ---------------------------------------------------------------------------
|
---|
| 401 | Inlines
|
---|
| 402 |
|
---|
| 403 | span
|
---|
| 404 | em strong cite dfn code samp kbd var abbr acronym
|
---|
| 405 | q
|
---|
| 406 | sub sup
|
---|
| 407 | br
|
---|
| 408 | tt i b
|
---|
| 409 | big small
|
---|
| 410 | basefont font
|
---|
| 411 | strike s u
|
---|
| 412 | a
|
---|
| 413 | --------------------------------------------------------------------------- */
|
---|
| 414 |
|
---|
| 415 | b,
|
---|
| 416 | strong {
|
---|
| 417 | font-weight: bold;
|
---|
| 418 | }
|
---|
| 419 |
|
---|
| 420 | i,
|
---|
| 421 | em,
|
---|
| 422 | cite,
|
---|
| 423 | q,
|
---|
| 424 | var {
|
---|
| 425 | font-style: italic;
|
---|
| 426 | }
|
---|
| 427 |
|
---|
| 428 | tt,
|
---|
| 429 | kbd,
|
---|
| 430 | code,
|
---|
| 431 | samp,
|
---|
| 432 | var {
|
---|
| 433 | font-family: monospace;
|
---|
| 434 | }
|
---|
| 435 |
|
---|
| 436 | abbr,
|
---|
| 437 | acronym {
|
---|
| 438 | font-weight: bold;
|
---|
| 439 | }
|
---|
| 440 |
|
---|
| 441 | dfn {
|
---|
| 442 | background-color: #FFFFE0;
|
---|
| 443 | }
|
---|
| 444 |
|
---|
| 445 | sub,
|
---|
| 446 | sup {
|
---|
| 447 | display: inline-block;
|
---|
| 448 | white-space: nowrap;
|
---|
| 449 | font-size: small;
|
---|
| 450 | }
|
---|
| 451 | sub {
|
---|
| 452 | vertical-align: sub;
|
---|
| 453 | }
|
---|
| 454 | sup {
|
---|
| 455 | vertical-align: super;
|
---|
| 456 | }
|
---|
| 457 |
|
---|
| 458 | /*
|
---|
| 459 | * Transitional
|
---|
| 460 | */
|
---|
| 461 | strike,
|
---|
| 462 | s {
|
---|
| 463 | text-decoration: line-through;
|
---|
| 464 | }
|
---|
| 465 | u {
|
---|
| 466 | text-decoration: underline;
|
---|
| 467 | }
|
---|
| 468 |
|
---|
| 469 | br:before {
|
---|
| 470 | content: "\A";
|
---|
| 471 | color: gray;
|
---|
| 472 | }
|
---|
| 473 |
|
---|
| 474 | big {
|
---|
| 475 | font-size: large;
|
---|
| 476 | }
|
---|
| 477 | small {
|
---|
| 478 | font-size: small;
|
---|
| 479 | }
|
---|
| 480 |
|
---|
| 481 | /*
|
---|
| 482 | * Transitional
|
---|
| 483 | */
|
---|
| 484 | basefont {
|
---|
| 485 | content: "basefont=" attr(size);
|
---|
| 486 | font-size: small;
|
---|
| 487 | color: gray;
|
---|
| 488 | }
|
---|
| 489 | font[color] {
|
---|
| 490 | color: concatenate(attr(color));
|
---|
| 491 | }
|
---|
| 492 | font[face] {
|
---|
| 493 | font-family: concatenate(attr(face));
|
---|
| 494 | }
|
---|
| 495 | font[size="1"] {
|
---|
| 496 | font-size: x-small;
|
---|
| 497 | }
|
---|
| 498 | font[size="2"] {
|
---|
| 499 | font-size: small;
|
---|
| 500 | }
|
---|
| 501 | font[size="3"] {
|
---|
| 502 | font-size: medium;
|
---|
| 503 | }
|
---|
| 504 | font[size="4"] {
|
---|
| 505 | font-size: large;
|
---|
| 506 | }
|
---|
| 507 | font[size="5"] {
|
---|
| 508 | font-size: x-large;
|
---|
| 509 | }
|
---|
| 510 | font[size="6"],
|
---|
| 511 | font[size="7"] {
|
---|
| 512 | font-size: xx-large;
|
---|
| 513 | }
|
---|
| 514 | font[size="-3"] {
|
---|
| 515 | font-size: smaller;
|
---|
| 516 | }
|
---|
| 517 | font[size="-2"] {
|
---|
| 518 | font-size: smaller;
|
---|
| 519 | }
|
---|
| 520 | font[size="-1"] {
|
---|
| 521 | font-size: smaller;
|
---|
| 522 | }
|
---|
| 523 | font[size="+1"] {
|
---|
| 524 | font-size: larger;
|
---|
| 525 | }
|
---|
| 526 | font[size="+2"] {
|
---|
| 527 | font-size: larger;
|
---|
| 528 | }
|
---|
| 529 | font[size="+3"] {
|
---|
| 530 | font-size: larger;
|
---|
| 531 | }
|
---|
| 532 |
|
---|
| 533 | a[href] {
|
---|
| 534 | color: navy;
|
---|
| 535 | text-decoration: underline;
|
---|
| 536 | }
|
---|
| 537 | a[name]:after {
|
---|
| 538 | content: icon(right-target);
|
---|
| 539 | color: gray;
|
---|
| 540 | vertical-align: text-top;
|
---|
| 541 | }
|
---|
| 542 |
|
---|
| 543 | /* ---------------------------------------------------------------------------
|
---|
| 544 | Ins/del
|
---|
| 545 |
|
---|
| 546 | When this is really needed, put the ins/del into a span
|
---|
| 547 | to force inline display.
|
---|
| 548 | --------------------------------------------------------------------------- */
|
---|
| 549 |
|
---|
| 550 | ins {
|
---|
| 551 | display: block;
|
---|
| 552 | border-width: 2px;
|
---|
| 553 | border-style: solid;
|
---|
| 554 | border-color: transparent blue transparent transparent;
|
---|
| 555 | padding-right: 5px;
|
---|
| 556 | }
|
---|
| 557 |
|
---|
| 558 | p ins,
|
---|
| 559 | h1 ins, h2 ins, h3 ins, h4 ins, h5 ins, h6 ins,
|
---|
| 560 | dt ins,
|
---|
| 561 | address ins,
|
---|
| 562 | a ins,
|
---|
| 563 | span ins,
|
---|
| 564 | bdo ins,
|
---|
| 565 | em ins, strong ins,
|
---|
| 566 | dfn ins,
|
---|
| 567 | code ins,
|
---|
| 568 | samp ins,
|
---|
| 569 | kbd ins,
|
---|
| 570 | var ins,
|
---|
| 571 | cite ins,
|
---|
| 572 | abbr ins, acronym ins,
|
---|
| 573 | q ins,
|
---|
| 574 | sub ins, sup ins,
|
---|
| 575 | tt ins, i ins, b ins,
|
---|
| 576 | big ins, small ins {
|
---|
| 577 | display: inline;
|
---|
| 578 | text-decoration: underline;
|
---|
| 579 | }
|
---|
| 580 |
|
---|
| 581 | del {
|
---|
| 582 | display: block;
|
---|
| 583 | color: gray;
|
---|
| 584 | border-width: 2px;
|
---|
| 585 | border-style: solid;
|
---|
| 586 | border-color: transparent gray transparent transparent;
|
---|
| 587 | padding-right: 5px;
|
---|
| 588 | }
|
---|
| 589 |
|
---|
| 590 | p del,
|
---|
| 591 | h1 del, h2 del, h3 del, h4 del, h5 del, h6 del,
|
---|
| 592 | dt del,
|
---|
| 593 | address del,
|
---|
| 594 | a del,
|
---|
| 595 | span del,
|
---|
| 596 | bdo del,
|
---|
| 597 | em del, strong del,
|
---|
| 598 | dfn del,
|
---|
| 599 | code del,
|
---|
| 600 | samp del,
|
---|
| 601 | kbd del,
|
---|
| 602 | var del,
|
---|
| 603 | cite del,
|
---|
| 604 | abbr del, acronym del,
|
---|
| 605 | q del,
|
---|
| 606 | sub del, sup del,
|
---|
| 607 | tt del, i del, b del,
|
---|
| 608 | big del, small del {
|
---|
| 609 | display: inline;
|
---|
| 610 | text-decoration: line-through;
|
---|
| 611 | }
|
---|
| 612 |
|
---|
| 613 | /* ---------------------------------------------------------------------------
|
---|
| 614 | Objects
|
---|
| 615 | --------------------------------------------------------------------------- */
|
---|
| 616 |
|
---|
| 617 | /*
|
---|
| 618 | * Showing a 400x200 thumbnail is sufficient.
|
---|
| 619 | * If you don't like that, replace the content property by a more traditional:
|
---|
| 620 | * content: image(attr(src), attr(width), attr(height));
|
---|
| 621 | */
|
---|
| 622 | img {
|
---|
| 623 | display: inline;
|
---|
| 624 | content: image(attr(src), -400, -200);
|
---|
| 625 | }
|
---|
| 626 |
|
---|
| 627 | /*
|
---|
| 628 | * Transitional
|
---|
| 629 | */
|
---|
| 630 | img[align=bottom],
|
---|
| 631 | img[align=middle],
|
---|
| 632 | img[align=top] {
|
---|
| 633 | vertical-align: concatenate(attr(align));
|
---|
| 634 | }
|
---|
| 635 |
|
---|
| 636 | object,
|
---|
| 637 | applet,
|
---|
| 638 | param {
|
---|
| 639 | display: tree;
|
---|
| 640 | }
|
---|
| 641 |
|
---|
| 642 | map,
|
---|
| 643 | area {
|
---|
| 644 | display: tree;
|
---|
| 645 | }
|
---|
| 646 |
|
---|
| 647 | /* ---------------------------------------------------------------------------
|
---|
| 648 | Forms
|
---|
| 649 | --------------------------------------------------------------------------- */
|
---|
| 650 |
|
---|
| 651 | form {
|
---|
| 652 | display: block;
|
---|
| 653 | margin-top: 1.33ex;
|
---|
| 654 | margin-bottom: 1.33ex;
|
---|
| 655 | }
|
---|
| 656 |
|
---|
| 657 | label {
|
---|
| 658 | display: inline;
|
---|
| 659 | font-weight: bold;
|
---|
| 660 | }
|
---|
| 661 |
|
---|
| 662 | fieldset {
|
---|
| 663 | display: block;
|
---|
| 664 | border: thin solid gray;
|
---|
| 665 | margin: 5px;
|
---|
| 666 | }
|
---|
| 667 |
|
---|
| 668 | legend {
|
---|
| 669 | display: block;
|
---|
| 670 | background-color: silver;
|
---|
| 671 | font-weight: bold;
|
---|
| 672 | padding: 2px;
|
---|
| 673 | }
|
---|
| 674 |
|
---|
| 675 | button {
|
---|
| 676 | display: inline-block;
|
---|
| 677 | text-align: center;
|
---|
| 678 | border: 2px outset silver;
|
---|
| 679 | background-color: silver;
|
---|
| 680 | padding: 2px;
|
---|
| 681 | }
|
---|
| 682 |
|
---|
| 683 | input,
|
---|
| 684 | select,
|
---|
| 685 | textarea {
|
---|
| 686 | display: inline-block;
|
---|
| 687 | padding: 1px; /* Needed to display the red border of the selection */
|
---|
| 688 | background-color: transparent;
|
---|
| 689 | }
|
---|
| 690 |
|
---|
| 691 | input {
|
---|
| 692 | content: component("com.xmlmind.xmleditapp.xhtml.Input");
|
---|
| 693 | }
|
---|
| 694 |
|
---|
| 695 | input[type=hidden] {
|
---|
| 696 | content: "hidden";
|
---|
| 697 | font-size: x-small;
|
---|
| 698 | color: gray;
|
---|
| 699 | }
|
---|
| 700 |
|
---|
| 701 | select {
|
---|
| 702 | content: component("com.xmlmind.xmleditapp.xhtml.Select");
|
---|
| 703 | }
|
---|
| 704 |
|
---|
| 705 | select[multiple] {
|
---|
| 706 | vertical-align: text-top;
|
---|
| 707 | }
|
---|
| 708 |
|
---|
| 709 | /* Not needed unless the document is invalid. */
|
---|
| 710 | optgroup,
|
---|
| 711 | option {
|
---|
| 712 | display: tree;
|
---|
| 713 | }
|
---|
| 714 |
|
---|
| 715 | textarea {
|
---|
| 716 | content: component("com.xmlmind.xmleditapp.xhtml.TextArea");
|
---|
| 717 | vertical-align: text-top;
|
---|
| 718 | }
|
---|
| 719 |
|
---|
| 720 | /* ---------------------------------------------------------------------------
|
---|
| 721 | Other
|
---|
| 722 | --------------------------------------------------------------------------- */
|
---|
| 723 |
|
---|
| 724 | *::comment,
|
---|
| 725 | *::processing-instruction {
|
---|
| 726 | display: block;
|
---|
| 727 | margin: 2px;
|
---|
| 728 | white-space: pre;
|
---|
| 729 | text-align: left;
|
---|
| 730 | font-family: monospace;
|
---|
| 731 | font-style: normal;
|
---|
| 732 | font-weight: normal;
|
---|
| 733 | font-size: small;
|
---|
| 734 | }
|
---|
| 735 |
|
---|
| 736 | *::comment {
|
---|
| 737 | background-color: #FFFFCC;
|
---|
| 738 | color: #808000;
|
---|
| 739 | }
|
---|
| 740 |
|
---|
| 741 | *::processing-instruction {
|
---|
| 742 | background-color: #CCFFCC;
|
---|
| 743 | color: #008000;
|
---|
| 744 | }
|
---|
| 745 |
|
---|
| 746 | xi\:include {
|
---|
| 747 | display: tree;
|
---|
| 748 | }
|
---|
| 749 |
|
---|
| 750 | *:read-only {
|
---|
| 751 | background-color: #F0F0F0;
|
---|
| 752 | }
|
---|
| 753 |
|
---|
| 754 | /* ==================================
|
---|
| 755 | Useful to debug modular documents
|
---|
| 756 | ==================================
|
---|
| 757 |
|
---|
| 758 | *:property("LOCATION_INFO"):before,
|
---|
| 759 | *:property("INCLUSION_INFO"):before {
|
---|
| 760 | display: block;
|
---|
| 761 | color: red;
|
---|
| 762 | font-size: small;
|
---|
| 763 | text-align: center;
|
---|
| 764 | }
|
---|
| 765 |
|
---|
| 766 | *:property("LOCATION_INFO"):before {
|
---|
| 767 | content: "LOCATION_INFO=" property("LOCATION_INFO") "\A" icon(down);
|
---|
| 768 | }
|
---|
| 769 |
|
---|
| 770 | *:property("INCLUSION_INFO"):before {
|
---|
| 771 | content: "INCLUSION_INFO=" property("INCLUSION_INFO") "\A" icon(down);
|
---|
| 772 | }
|
---|
| 773 |
|
---|
| 774 | *:property("LOCATION_INFO"):property("INCLUSION_INFO"):before {
|
---|
| 775 | content: "LOCATION_INFO=" property("LOCATION_INFO")
|
---|
| 776 | "\A INCLUSION_INFO=" property("INCLUSION_INFO")
|
---|
| 777 | "\A" icon(down);
|
---|
| 778 | }
|
---|
| 779 | */
|
---|
| 780 |
|
---|
| 781 | /* ---------------------------------------------------------------------------
|
---|
| 782 | When printing
|
---|
| 783 | --------------------------------------------------------------------------- */
|
---|
| 784 |
|
---|
| 785 | @media print {
|
---|
| 786 | * {
|
---|
| 787 | background-color: transparent;
|
---|
| 788 | line-height: 1.2;
|
---|
| 789 | }
|
---|
| 790 |
|
---|
| 791 | *:read-only {
|
---|
| 792 | background-color: transparent;
|
---|
| 793 | }
|
---|
| 794 |
|
---|
| 795 | base,
|
---|
| 796 | meta,
|
---|
| 797 | link,
|
---|
| 798 | style,
|
---|
| 799 | script,
|
---|
| 800 | noscript {
|
---|
| 801 | display: none;
|
---|
| 802 | }
|
---|
| 803 |
|
---|
| 804 | meta[name=author][content],
|
---|
| 805 | meta[name=date][content] {
|
---|
| 806 | display: block;
|
---|
| 807 | text-align: center;
|
---|
| 808 | /*
|
---|
| 809 | * Without paragraph(), a static text label is used
|
---|
| 810 | * and words are not wrapped.
|
---|
| 811 | */
|
---|
| 812 | content: paragraph(attr(content));
|
---|
| 813 | }
|
---|
| 814 |
|
---|
| 815 | colgroup,
|
---|
| 816 | col {
|
---|
| 817 | display: none;
|
---|
| 818 | }
|
---|
| 819 |
|
---|
| 820 | img {
|
---|
| 821 | content: image(attr(src), -500, -700, smooth);
|
---|
| 822 | }
|
---|
| 823 | }
|
---|