|
1 | 1 | :root { |
2 | 2 | /* fonts */ |
3 | | - --fonts-proportional: -apple-system, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial; |
4 | | - --fonts-monospace: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace, var(--fonts-emoji); |
| 3 | + --fonts-proportional: -apple-system, "Segoe UI", system-ui, Roboto, |
| 4 | + "Helvetica Neue", Arial; |
| 5 | + --fonts-monospace: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, |
| 6 | + Consolas, "Liberation Mono", "Courier New", monospace, var(--fonts-emoji); |
5 | 7 | /* GitHub explicitly sets font names like: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla"; |
6 | 8 | Actually "Twemoji Mozilla" emoji font is widely used by browsers like Firefox, Pale Moon, and it is more likely up-to-dated than the system emoji font. |
7 | 9 | So not setting emoji font seems to be the best choice, here we just use a non-existing dummy font name and let browsers choose. */ |
|
54 | 56 | } |
55 | 57 |
|
56 | 58 | :root * { |
57 | | - --fonts-regular: var(--fonts-override, var(--fonts-proportional)), "Noto Sans", "Liberation Sans", sans-serif, var(--fonts-emoji); |
| 59 | + --fonts-regular: var(--fonts-override, var(--fonts-proportional)), "Noto Sans", |
| 60 | + "Liberation Sans", sans-serif, var(--fonts-emoji); |
58 | 61 | } |
59 | 62 |
|
60 | | -*, ::before, ::after { |
| 63 | +*, |
| 64 | +::before, |
| 65 | +::after { |
61 | 66 | /* these are needed for tailwind borders to work because we do not load tailwind's base |
62 | 67 | https://github.com/tailwindlabs/tailwindcss/blob/master/src/css/preflight.css */ |
63 | 68 | border-width: 0; |
64 | 69 | border-style: solid; |
65 | 70 | border-color: currentcolor; |
66 | 71 | } |
67 | 72 |
|
68 | | -html, body { |
| 73 | +html, |
| 74 | +body { |
69 | 75 | height: 100%; |
70 | 76 | font-size: 14px; |
71 | 77 | } |
@@ -335,7 +341,7 @@ a.label, |
335 | 341 |
|
336 | 342 | .inline-code-block { |
337 | 343 | padding: 2px 4px; |
338 | | - border-radius: .24em; |
| 344 | + border-radius: 0.24em; |
339 | 345 | background-color: var(--color-label-bg); |
340 | 346 | } |
341 | 347 |
|
@@ -393,7 +399,7 @@ a.label, |
393 | 399 | margin-bottom: -0.25rem; |
394 | 400 | } |
395 | 401 | .ui.dropdown .menu > .item > svg { |
396 | | - margin-right: .78rem; /* use the same margin as for <img> */ |
| 402 | + margin-right: 0.78rem; /* use the same margin as for <img> */ |
397 | 403 | } |
398 | 404 |
|
399 | 405 | .ui.selection.dropdown .menu > .item { |
@@ -551,7 +557,7 @@ img.ui.avatar, |
551 | 557 | } |
552 | 558 |
|
553 | 559 | .text.grey { |
554 | | - color: var(--color-text-light) !important; |
| 560 | + color: var(--color-orange-badge) !important; |
555 | 561 | } |
556 | 562 |
|
557 | 563 | .text.light { |
@@ -692,35 +698,40 @@ img.ui.avatar, |
692 | 698 | blockquote.attention-note { |
693 | 699 | border-left-color: var(--color-blue-dark-1); |
694 | 700 | } |
695 | | -strong.attention-note, svg.attention-note { |
| 701 | +strong.attention-note, |
| 702 | +svg.attention-note { |
696 | 703 | color: var(--color-blue-dark-1); |
697 | 704 | } |
698 | 705 |
|
699 | 706 | blockquote.attention-tip { |
700 | 707 | border-left-color: var(--color-success-text); |
701 | 708 | } |
702 | | -strong.attention-tip, svg.attention-tip { |
| 709 | +strong.attention-tip, |
| 710 | +svg.attention-tip { |
703 | 711 | color: var(--color-success-text); |
704 | 712 | } |
705 | 713 |
|
706 | 714 | blockquote.attention-important { |
707 | 715 | border-left-color: var(--color-violet-dark-1); |
708 | 716 | } |
709 | | -strong.attention-important, svg.attention-important { |
| 717 | +strong.attention-important, |
| 718 | +svg.attention-important { |
710 | 719 | color: var(--color-violet-dark-1); |
711 | 720 | } |
712 | 721 |
|
713 | 722 | blockquote.attention-warning { |
714 | 723 | border-left-color: var(--color-warning-text); |
715 | 724 | } |
716 | | -strong.attention-warning, svg.attention-warning { |
| 725 | +strong.attention-warning, |
| 726 | +svg.attention-warning { |
717 | 727 | color: var(--color-warning-text); |
718 | 728 | } |
719 | 729 |
|
720 | 730 | blockquote.attention-caution { |
721 | 731 | border-left-color: var(--color-red-dark-1); |
722 | 732 | } |
723 | | -strong.attention-caution, svg.attention-caution { |
| 733 | +strong.attention-caution, |
| 734 | +svg.attention-caution { |
724 | 735 | color: var(--color-red-dark-1); |
725 | 736 | } |
726 | 737 |
|
@@ -985,7 +996,7 @@ table th[data-sortt-desc] .svg { |
985 | 996 |
|
986 | 997 | .ui.tabular.menu .item:hover, |
987 | 998 | .ui.secondary.pointing.menu a.item:hover { |
988 | | - color: var(--color-text); |
| 999 | + color: var(--color-primary-3); |
989 | 1000 | } |
990 | 1001 |
|
991 | 1002 | .ui.tabular.menu .active.item, |
@@ -1017,7 +1028,9 @@ table th[data-sortt-desc] .svg { |
1017 | 1028 | } |
1018 | 1029 |
|
1019 | 1030 | .ui.dropdown:not(.button) { |
1020 | | - line-height: var(--line-height-default); /* the dropdown doesn't have default line-height, use this to make the dropdown icon align with plain dropdown */ |
| 1031 | + line-height: var( |
| 1032 | + --line-height-default |
| 1033 | + ); /* the dropdown doesn't have default line-height, use this to make the dropdown icon align with plain dropdown */ |
1021 | 1034 | } |
1022 | 1035 |
|
1023 | 1036 | /* dropdown has some kinds of icons: |
|
0 commit comments