|
124 | 124 | }
|
125 | 125 |
|
126 | 126 | .doc i.fa {
|
| 127 | + display: inline-block; |
| 128 | + background: no-repeat center / 1em 1em; |
| 129 | + filter: invert(20%); |
127 | 130 | hyphens: none;
|
128 | 131 | font-style: normal;
|
| 132 | + height: 1em; |
| 133 | + width: 1em; |
| 134 | + vertical-align: -0.125em; |
129 | 135 | }
|
130 | 136 |
|
131 | 137 | .doc p code,
|
|
354 | 360 | top: 0;
|
355 | 361 | left: 0;
|
356 | 362 | font-size: calc(15 / var(--rem-base) * 1rem);
|
357 |
| - padding: 0 0.5rem; |
358 |
| - height: 1.25rem; |
359 | 363 | line-height: 1;
|
360 |
| - font-weight: var(--admonition-label-font-weight); |
361 |
| - text-transform: uppercase; |
362 |
| - border-radius: 0.45rem; |
363 | 364 | transform: translate(-0.5rem, -50%);
|
| 365 | + background: linear-gradient(to right, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%) no-repeat left center / 2.075em 100%; |
| 366 | + border-radius: 0.5em; |
| 367 | + padding: 0.25em 0.075em; |
| 368 | +} |
| 369 | + |
| 370 | +.doc .admonitionblock td.icon i { |
| 371 | + display: inline-flex; |
| 372 | + align-items: center; |
| 373 | + width: auto; |
| 374 | + background-position-x: 0.5em; |
| 375 | + filter: invert(100%); |
| 376 | + padding-left: 2em; |
| 377 | + vertical-align: initial; |
| 378 | +} |
| 379 | + |
| 380 | +.doc .admonitionblock td.icon i::after { |
| 381 | + content: attr(title); |
| 382 | + text-transform: uppercase; |
| 383 | + filter: invert(100%); /* NOTE reverse the filter on the icon */ |
| 384 | + font-weight: var(--admonition-label-font-weight); |
| 385 | + font-style: normal; |
| 386 | + padding: 0 0.5em; |
| 387 | + margin: -0.05em; /* NOTE account for slight offset in font */ |
364 | 388 | }
|
365 | 389 |
|
366 | 390 | .doc .admonitionblock.caution td.icon {
|
367 | 391 | background-color: var(--caution-color);
|
368 | 392 | color: var(--caution-on-color);
|
369 | 393 | }
|
370 | 394 |
|
| 395 | +.doc .admonitionblock.caution td.icon i { |
| 396 | + background-image: url(../img/octicons.svg#view-flame-16); |
| 397 | +} |
| 398 | + |
371 | 399 | .doc .admonitionblock.important td.icon {
|
372 | 400 | background-color: var(--important-color);
|
373 | 401 | color: var(--important-on-color);
|
374 | 402 | }
|
375 | 403 |
|
| 404 | +.doc .admonitionblock.important td.icon i { |
| 405 | + background-image: url(../img/octicons.svg#view-stop-16); |
| 406 | +} |
| 407 | + |
376 | 408 | .doc .admonitionblock.note td.icon {
|
377 | 409 | background-color: var(--note-color);
|
378 | 410 | color: var(--note-on-color);
|
379 | 411 | }
|
380 | 412 |
|
| 413 | +.doc .admonitionblock.note td.icon i { |
| 414 | + background-image: url(../img/octicons.svg#view-info-16); |
| 415 | +} |
| 416 | + |
381 | 417 | .doc .admonitionblock.tip td.icon {
|
382 | 418 | background-color: var(--tip-color);
|
383 | 419 | color: var(--tip-on-color);
|
384 | 420 | }
|
385 | 421 |
|
| 422 | +.doc .admonitionblock.tip td.icon i { |
| 423 | + background-image: url(../img/octicons.svg#view-light-bulb-16); |
| 424 | +} |
| 425 | + |
386 | 426 | .doc .admonitionblock.warning td.icon {
|
387 | 427 | background-color: var(--warning-color);
|
388 | 428 | color: var(--warning-on-color);
|
389 | 429 | }
|
390 | 430 |
|
391 |
| -.doc .admonitionblock td.icon i { |
392 |
| - display: inline-flex; |
393 |
| - align-items: center; |
394 |
| - height: 100%; |
395 |
| -} |
396 |
| - |
397 |
| -.doc .admonitionblock td.icon i::after { |
398 |
| - content: attr(title); |
| 431 | +.doc .admonitionblock.warning td.icon i { |
| 432 | + background-image: url(../img/octicons.svg#view-alert-16); |
399 | 433 | }
|
400 | 434 |
|
401 | 435 | .doc .imageblock {
|
|
535 | 569 |
|
536 | 570 | .doc ul.checklist > li > * > i.fa-check-square-o:first-child,
|
537 | 571 | .doc ul.checklist > li > * > i.fa-square-o:first-child {
|
538 |
| - display: inline-flex; |
539 |
| - justify-content: center; |
540 | 572 | width: 1.25rem;
|
541 | 573 | }
|
542 | 574 |
|
543 |
| -.doc ul.checklist > li > * > i.fa-check-square-o:first-child::before { |
544 |
| - content: "\2713"; |
| 575 | +.doc ul.checklist > li > * > i.fa-check-square-o:first-child { |
| 576 | + background-image: url(../img/octicons.svg#view-tasklist-16); |
545 | 577 | }
|
546 | 578 |
|
547 |
| -.doc ul.checklist > li > * > i.fa-square-o:first-child::before { |
548 |
| - content: "\274f"; |
| 579 | +.doc ul.checklist > li > * > i.fa-square-o:first-child { |
| 580 | + background-image: url(../img/octicons.svg#view-square-16); |
549 | 581 | }
|
550 | 582 |
|
551 | 583 | .doc .dlist .dlist,
|
|
877 | 909 | hyphens: none;
|
878 | 910 | }
|
879 | 911 |
|
880 |
| -.doc .menuseq i.caret::before { |
881 |
| - content: "\203a"; |
882 |
| - font-size: 1.1em; |
883 |
| - font-weight: var(--body-font-weight-bold); |
884 |
| - line-height: calc(1 / 1.1); |
| 912 | +.doc .menuseq i.caret { |
| 913 | + background-image: url(../img/octicons.svg#view-chevron-right-16); |
| 914 | + margin: 0 -0.25em; |
885 | 915 | }
|
886 | 916 |
|
887 | 917 | .doc .nowrap {
|
|
0 commit comments