|
9 | 9 | --header-padding: 1rem 1.2rem; |
10 | 10 | --header-title-size: 1.7rem; |
11 | 11 | --header-title-max: 22rem; |
12 | | - --section-header-padding: 0.9rem 1.1rem 0.8rem 1.35rem; |
| 12 | + --section-header-padding: 0.9rem 1.1rem 0.8rem 1.1rem; |
13 | 13 | --section-content-padding: 0.86rem 1.1rem 0.98rem; |
14 | 14 | --section-title-size: 0.96rem; |
15 | 15 | --group-title-size: 0.68rem; |
|
19 | 19 | --row-gap: 0.65rem 0.9rem; |
20 | 20 | --row-spacing: 0.42rem; |
21 | 21 | --key-font-size: 0.72rem; |
22 | | - --key-padding: 0.24rem 0.55rem; |
| 22 | + --key-padding: 0.18rem 0.45rem; |
23 | 23 | --desc-font-size: 0.84rem; |
24 | 24 | --desc-line-height: 1.45; |
25 | 25 | --appendix-title-size: 0.88rem; |
26 | 26 | --footer-font-size: 0.78rem; |
27 | 27 | --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1); |
| 28 | + --key-shadow: 0 1px 0 var(--border-strong), 0 2px 0 color-mix(in srgb, var(--border) 80%, transparent), 0 1.5px 3px rgba(15, 23, 42, 0.08); |
28 | 29 | --bg: #f3f5f8; |
29 | 30 | --bg-elevated: #fbfcfe; |
30 | 31 | --panel: #ffffff; |
|
53 | 54 | --mcp-accent: #0891b2; |
54 | 55 | --cli-accent: #4b5563; |
55 | 56 | --config-accent: #c2410c; |
56 | | - --surface-keyboard: #eef5ff; |
57 | | - --surface-slash: #f6f0ff; |
58 | | - --surface-skills: #eefbf6; |
59 | | - --surface-memory: #fffaed; |
60 | | - --surface-workflows: #fff1f2; |
61 | | - --surface-mcp: #eefbfd; |
62 | | - --surface-cli: #f6f8fb; |
63 | | - --surface-config: #fff4ec; |
| 57 | + --surface-keyboard: #f8fafc; |
| 58 | + --surface-slash: #f8fafc; |
| 59 | + --surface-skills: #f8fafc; |
| 60 | + --surface-memory: #f8fafc; |
| 61 | + --surface-workflows: #f8fafc; |
| 62 | + --surface-mcp: #f8fafc; |
| 63 | + --surface-cli: #f8fafc; |
| 64 | + --surface-config: #f8fafc; |
64 | 65 | --font-sans: "IBM Plex Sans", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; |
65 | 66 | --font-mono: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", "Consolas", "Liberation Mono", monospace; |
66 | 67 | } |
|
77 | 78 | --text-soft: #c6d2e3; |
78 | 79 | --text-muted: #a0b7d7; |
79 | 80 | --shadow: 0 2px 8px rgba(2, 6, 23, 0.25); |
| 81 | + --key-shadow: 0 1.5px 0 #1b2636, 0 2.5px 0 #090f16, 0 2px 4px rgba(2, 6, 23, 0.4); |
80 | 82 | --chip-bg: #1b2a3d; |
81 | 83 | --chip-border: #32485f; |
82 | 84 | --control-bg: #152233; |
|
95 | 97 | --mcp-accent: #7fdaf0; |
96 | 98 | --cli-accent: #a8b3c2; |
97 | 99 | --config-accent: #ffaf79; |
98 | | - --surface-keyboard: #16263d; |
99 | | - --surface-slash: #211b36; |
100 | | - --surface-skills: #152b25; |
101 | | - --surface-memory: #312819; |
102 | | - --surface-workflows: #351d23; |
103 | | - --surface-mcp: #152a34; |
104 | | - --surface-cli: #1a2431; |
105 | | - --surface-config: #322117; |
| 100 | + --surface-keyboard: #121b29; |
| 101 | + --surface-slash: #121b29; |
| 102 | + --surface-skills: #121b29; |
| 103 | + --surface-memory: #121b29; |
| 104 | + --surface-workflows: #121b29; |
| 105 | + --surface-mcp: #121b29; |
| 106 | + --surface-cli: #121b29; |
| 107 | + --surface-config: #121b29; |
106 | 108 | } |
107 | 109 |
|
108 | 110 | @media (prefers-color-scheme: dark) { |
|
118 | 120 | --text-soft: #c6d2e3; |
119 | 121 | --text-muted: #a0b7d7; |
120 | 122 | --shadow: 0 2px 8px rgba(2, 6, 23, 0.25); |
| 123 | + --key-shadow: 0 1.5px 0 #1b2636, 0 2.5px 0 #090f16, 0 2px 4px rgba(2, 6, 23, 0.4); |
121 | 124 | --chip-bg: #1b2a3d; |
122 | 125 | --chip-border: #32485f; |
123 | 126 | --control-bg: #152233; |
|
136 | 139 | --mcp-accent: #7fdaf0; |
137 | 140 | --cli-accent: #a8b3c2; |
138 | 141 | --config-accent: #ffaf79; |
139 | | - --surface-keyboard: #16263d; |
140 | | - --surface-slash: #211b36; |
141 | | - --surface-skills: #152b25; |
142 | | - --surface-memory: #312819; |
143 | | - --surface-workflows: #351d23; |
144 | | - --surface-mcp: #152a34; |
145 | | - --surface-cli: #1a2431; |
146 | | - --surface-config: #322117; |
| 142 | + --surface-keyboard: #121b29; |
| 143 | + --surface-slash: #121b29; |
| 144 | + --surface-skills: #121b29; |
| 145 | + --surface-memory: #121b29; |
| 146 | + --surface-workflows: #121b29; |
| 147 | + --surface-mcp: #121b29; |
| 148 | + --surface-cli: #121b29; |
| 149 | + --surface-config: #121b29; |
147 | 150 | } |
148 | 151 | } |
149 | 152 |
|
|
477 | 480 | display: none; |
478 | 481 | } |
479 | 482 |
|
| 483 | +.changelog-panel:not([hidden]) { |
| 484 | + display: block; |
| 485 | + animation: changelog-pop-in 0.2s var(--ease-out-quart); |
| 486 | + transform-origin: top left; |
| 487 | +} |
| 488 | + |
| 489 | +@keyframes changelog-pop-in { |
| 490 | + from { |
| 491 | + opacity: 0; |
| 492 | + transform: scale(0.96) translateY(-4px); |
| 493 | + } |
| 494 | + to { |
| 495 | + opacity: 1; |
| 496 | + transform: scale(1) translateY(0); |
| 497 | + } |
| 498 | +} |
| 499 | + |
480 | 500 | .changelog-list { |
481 | 501 | margin: 0; |
482 | 502 | padding: 0; |
|
621 | 641 | background: var(--control-active-bg); |
622 | 642 | color: var(--control-active-text); |
623 | 643 | box-shadow: 0 0.45rem 1rem color-mix(in srgb, var(--control-active-bg) 16%, transparent); |
| 644 | + view-transition-name: active-tab; |
624 | 645 | } |
625 | 646 |
|
626 | 647 | .section-switcher-btn.active::before { |
|
739 | 760 | .section-header { |
740 | 761 | position: relative; |
741 | 762 | padding: var(--section-header-padding); |
742 | | - border-bottom: 1px solid var(--border); |
| 763 | + border-bottom: 1px solid color-mix(in srgb, var(--section-accent) 18%, var(--border)); |
743 | 764 | } |
744 | 765 |
|
745 | 766 | .section-header::before { |
746 | 767 | content: ""; |
747 | | - position: absolute; |
748 | | - left: 1rem; |
749 | | - top: 1rem; |
750 | | - bottom: 1rem; |
751 | | - width: 0.28rem; |
752 | | - border-radius: 999px; |
753 | | - background: var(--section-accent); |
| 768 | + display: none; |
754 | 769 | } |
755 | 770 |
|
756 | 771 | .section-title { |
|
797 | 812 | display: grid; |
798 | 813 | grid-template-columns: minmax(var(--row-key-min), var(--row-key-max)) minmax(0, 1fr); |
799 | 814 | gap: var(--row-gap); |
800 | | - align-items: start; |
| 815 | + align-items: center; |
| 816 | + padding: 0.22rem 0.4rem; |
| 817 | + margin-inline: -0.4rem; |
| 818 | + border-radius: 6px; |
| 819 | + transition: background-color 0.15s var(--ease-out-quart), transform 0.15s var(--ease-out-quart); |
| 820 | +} |
| 821 | + |
| 822 | +.row:hover { |
| 823 | + background-color: color-mix(in srgb, var(--text) 5%, transparent); |
| 824 | + transform: translateX(4px); |
801 | 825 | } |
802 | 826 |
|
803 | 827 | .row + .row { |
|
817 | 841 | word-break: break-word; |
818 | 842 | } |
819 | 843 |
|
820 | | -.keycap { |
821 | | - display: inline-flex; |
822 | | - align-items: flex-start; |
823 | | - justify-content: flex-start; |
824 | | - width: fit-content; |
825 | | - max-width: 100%; |
826 | | - padding: var(--key-padding); |
827 | | - border-radius: 999px; |
828 | | - border: 1px solid var(--chip-border); |
829 | | - background: var(--chip-bg); |
830 | | - color: var(--text); |
831 | | - font-family: var(--font-mono); |
832 | | - font-size: var(--key-font-size); |
833 | | - line-height: 1.45; |
834 | | - font-weight: 600; |
835 | | -} |
836 | | - |
| 844 | +.keycap, |
837 | 845 | .key { |
838 | 846 | display: inline-flex; |
839 | | - align-items: flex-start; |
840 | | - justify-content: flex-start; |
| 847 | + align-items: center; |
| 848 | + justify-content: center; |
841 | 849 | width: fit-content; |
842 | 850 | max-width: 100%; |
843 | 851 | padding: var(--key-padding); |
844 | | - border-radius: 999px; |
| 852 | + border-radius: 6px; |
845 | 853 | border: 1px solid var(--chip-border); |
| 854 | + border-bottom: 2px solid var(--chip-border); |
846 | 855 | background: var(--chip-bg); |
847 | 856 | color: var(--text); |
848 | 857 | font-family: var(--font-mono); |
849 | 858 | font-size: var(--key-font-size); |
850 | | - line-height: 1.45; |
| 859 | + line-height: 1.25; |
851 | 860 | font-weight: 600; |
| 861 | + box-shadow: var(--key-shadow); |
| 862 | + vertical-align: middle; |
852 | 863 | } |
853 | 864 |
|
854 | 865 | .key.key-chord { |
|
960 | 971 | font-weight: 500; |
961 | 972 | } |
962 | 973 |
|
| 974 | +.visitor-loading-dots { |
| 975 | + opacity: 0.5; |
| 976 | + animation: visitor-pulse 1.4s infinite ease-in-out; |
| 977 | + display: inline-block; |
| 978 | + font-family: var(--font-sans); |
| 979 | +} |
| 980 | + |
| 981 | +@keyframes visitor-pulse { |
| 982 | + 0%, 100% { opacity: 0.3; } |
| 983 | + 50% { opacity: 0.8; } |
| 984 | +} |
| 985 | + |
963 | 986 | @media (max-width: 760px) { |
964 | 987 | .page-shell { |
965 | 988 | grid-template-columns: minmax(0, 1fr); |
@@ -1198,11 +1221,7 @@ a, |
1198 | 1221 | } |
1199 | 1222 |
|
1200 | 1223 | .section-header { |
1201 | | - padding: 1rem 1rem 0.8rem 1.3rem; |
1202 | | - } |
1203 | | - |
1204 | | - .section-header::before { |
1205 | | - left: 0.8rem; |
| 1224 | + padding: 1rem 1rem 0.8rem 1rem; |
1206 | 1225 | } |
1207 | 1226 |
|
1208 | 1227 | .section-content, |
|
0 commit comments