File size: 7,043 Bytes
f0634fb | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 | /**
* Base overrides applied to all pages.
* Touches links, inline code, code blocks, custom blocks, blockquotes, navbar, sidebar.
*/
html {
font-feature-settings: 'cv11', 'ss01', 'ss03';
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
body {
font-family: var(--vp-font-family-base);
}
/* --- Top navbar: blur + remove the hard bottom line --- */
.VPNav,
.VPNavBar {
background: rgba(255, 255, 255, 0.72) !important;
backdrop-filter: saturate(180%) blur(14px);
-webkit-backdrop-filter: saturate(180%) blur(14px);
}
.dark .VPNav,
.dark .VPNavBar {
background: rgba(13, 17, 23, 0.72) !important;
}
.VPNavBar.has-sidebar .content,
.VPNavBar:not(.home) {
border-bottom: 1px solid var(--vp-c-divider);
}
/* --- Sidebar: brand-tinted active item, slim left accent bar --- */
.VPSidebarItem.is-active > .item .link .text,
.VPSidebarItem.is-active > .item > .text {
color: var(--vp-c-brand-1);
font-weight: 600;
}
.VPSidebarItem.is-link.is-active > .item {
position: relative;
}
.VPSidebarItem.is-link.is-active > .item::before {
content: '';
position: absolute;
left: -14px;
top: 50%;
transform: translateY(-50%);
width: 3px;
height: 16px;
border-radius: 2px;
background: var(--kimi-brand-gradient);
}
/* --- Headings: tighter tracking, no underline on h2 --- */
.vp-doc h1,
.vp-doc h2,
.vp-doc h3 {
letter-spacing: -0.02em;
}
.vp-doc h2 {
border-top: none;
padding-top: 24px;
margin-top: 48px;
}
/* --- Links --- */
.vp-doc a:not(.header-anchor) {
color: var(--vp-c-brand-1);
text-decoration: underline;
text-decoration-color: transparent;
text-underline-offset: 4px;
text-decoration-thickness: 2px;
transition: text-decoration-color var(--kimi-transition), color var(--kimi-transition);
font-weight: 500;
}
.vp-doc a:not(.header-anchor):hover {
color: var(--vp-c-brand-2);
text-decoration-color: currentColor;
}
/* --- Inline code --- */
.vp-doc :not(pre) > code {
background: var(--kimi-brand-soft);
color: var(--vp-c-brand-1);
padding: 2px 6px;
border-radius: 6px;
font-weight: 500;
font-size: 0.875em;
border: none;
}
/* Inline code inside headings: drop the chip, keep just the brand-colored monospace word */
.vp-doc :is(h1, h2, h3, h4, h5, h6) code {
background: transparent;
padding: 0;
border-radius: 0;
font-size: 0.9em;
font-weight: inherit;
color: var(--vp-c-brand-1);
}
/* --- Code blocks --- */
.vp-doc div[class*='language-'] {
border-radius: var(--kimi-radius-code);
background: var(--vp-c-bg-soft);
margin: 20px 0;
box-shadow: var(--vp-shadow-1);
}
.vp-doc div[class*='language-'] pre {
padding: 20px 24px;
}
.vp-doc div[class*='language-'] code {
font-family: var(--vp-font-family-mono);
font-size: 13.5px;
line-height: 1.7;
}
.vp-doc div[class*='language-'] .lang {
color: var(--vp-c-text-3);
font-size: 12px;
}
.vp-doc div[class*='language-'] button.copy {
border-radius: 8px;
}
/* --- Blockquote --- */
.vp-doc blockquote {
border-left: 3px solid var(--vp-c-brand-1);
background: var(--kimi-brand-soft);
padding: 14px 18px;
border-radius: 0 var(--kimi-radius-code) var(--kimi-radius-code) 0;
margin: 20px 0;
}
.vp-doc blockquote > p {
color: var(--vp-c-text-2);
margin: 0;
}
/* --- Custom blocks (tip / warning / danger / info) --- */
.vp-doc .custom-block {
border-radius: var(--kimi-radius-code);
border: none;
padding: 16px 20px;
margin: 20px 0;
}
.vp-doc .custom-block .custom-block-title {
font-weight: 600;
letter-spacing: -0.005em;
}
.vp-doc .custom-block.tip {
background: rgba(10, 122, 255, 0.08);
color: var(--vp-c-text-1);
}
.dark .vp-doc .custom-block.tip {
background: rgba(61, 149, 255, 0.12);
}
.vp-doc .custom-block.warning {
background: rgba(234, 179, 8, 0.10);
color: var(--vp-c-text-1);
}
.vp-doc .custom-block.danger {
background: rgba(239, 68, 68, 0.10);
color: var(--vp-c-text-1);
}
.vp-doc .custom-block.info {
background: rgba(148, 163, 184, 0.12);
color: var(--vp-c-text-1);
}
.vp-doc .custom-block.tip .custom-block-title { color: var(--vp-c-brand-1); }
.vp-doc .custom-block.warning .custom-block-title { color: #ca8a04; }
.vp-doc .custom-block.danger .custom-block-title { color: #dc2626; }
.dark .vp-doc .custom-block.warning .custom-block-title { color: #eab308; }
.dark .vp-doc .custom-block.danger .custom-block-title { color: #ef4444; }
/* --- Tables --- */
.vp-doc table {
border-radius: var(--kimi-radius-code);
overflow: hidden;
border-collapse: separate;
border-spacing: 0;
display: table;
width: 100%;
}
.vp-doc tr {
background: transparent !important;
border-top: 1px solid var(--vp-c-divider);
}
.vp-doc tr:first-child { border-top: none; }
.vp-doc th {
background: var(--vp-c-bg-soft);
font-weight: 600;
color: var(--vp-c-text-1);
}
/* --- Outline / TOC --- */
.VPDocAsideOutline .outline-link.active,
.VPDocAsideOutline .outline-link:hover {
color: var(--vp-c-brand-1);
}
/* --- Buttons globally (e.g. hero CTAs) --- */
.VPButton.brand {
background: var(--kimi-brand-gradient) !important;
border: none !important;
box-shadow: var(--vp-shadow-3);
transition: transform var(--kimi-transition), box-shadow var(--kimi-transition);
}
.VPButton.brand:hover {
transform: translateY(-2px);
box-shadow: var(--vp-shadow-4);
}
.VPButton.alt {
background: transparent !important;
border: 1px solid var(--vp-c-divider) !important;
color: var(--vp-c-text-1) !important;
transition: border-color var(--kimi-transition), transform var(--kimi-transition);
}
.VPButton.alt:hover {
border-color: var(--vp-c-brand-1) !important;
transform: translateY(-2px);
}
/* --- Hero default frontmatter (used as fallback when custom Home not rendered) --- */
.VPHero .name,
.VPHero .text {
letter-spacing: -0.03em;
}
/* --- Footer --- */
.VPFooter {
border-top: 1px solid var(--vp-c-divider);
background: transparent;
}
/* --- Step rail (numbered steps on guides/web) --- */
.vp-doc .step-num {
display: inline-flex;
align-items: center;
justify-content: center;
width: 1.45em;
height: 1.45em;
border-radius: 50%;
background: #f4f5f7;
color: #8a919c;
font-size: 0.85em;
font-weight: 500;
line-height: 1;
margin-right: 0.6em;
vertical-align: 0.1em;
}
.vp-doc .step {
position: relative;
border-left: 2px solid #f0f2f5;
padding-left: 1.4em;
margin-left: 0.75em;
padding-bottom: 0.6em;
}
.vp-doc .step:last-of-type {
border-left-color: transparent;
}
.vp-doc .step .step-num {
position: absolute;
left: -0.78em;
top: 0.15em;
margin-right: 0;
}
/* --- Feature compare table (fixed-width ✓ columns on guides/web) --- */
.feature-compare-table table {
table-layout: fixed;
width: 100%;
}
.feature-compare-table th:nth-child(1),
.feature-compare-table td:nth-child(1) {
width: 8em;
white-space: nowrap;
}
.feature-compare-table th:nth-child(2),
.feature-compare-table td:nth-child(2),
.feature-compare-table th:nth-child(3),
.feature-compare-table td:nth-child(3) {
width: 4.5em;
text-align: center;
}
|