|
38 | 38 | --vercel-code-operator: var(--v-blue-600); |
39 | 39 | --vercel-code-added: var(--v-green-700); |
40 | 40 | --vercel-code-removed: var(--v-red-700); |
| 41 | + --vercel-inline-code-bg: rgba(15, 23, 42, 0.06); |
| 42 | + --vercel-inline-code-hover-bg: rgba(15, 23, 42, 0.1); |
| 43 | + --vercel-inline-code-border: rgba(15, 23, 42, 0.12); |
| 44 | + --vercel-inline-code-shadow: 0 10px 24px -20px rgba(15, 23, 42, 0.35); |
| 45 | + --vercel-inline-code-text: #121826; |
| 46 | + --vercel-inline-code-font-size: 0.84em; |
| 47 | + --vercel-inline-code-padding-y: 0.16em; |
| 48 | + --vercel-inline-code-padding-x: 0.42em; |
| 49 | + --vercel-inline-code-radius: 5px; |
41 | 50 | } |
42 | 51 | /* 전체 백그라운드 색상 설정 */ |
43 | 52 | html, body { |
@@ -260,32 +269,40 @@ article, main, .main { |
260 | 269 | } |
261 | 270 |
|
262 | 271 | .ohouse-post-content :not(pre) > code { |
263 | | - background: var(--vercel-code-surface); |
264 | | - padding: 0.25em 0.6em; |
265 | | - border-radius: 6px; |
266 | | - font-size: 0.9em; |
267 | | - color: var(--vercel-code-text); |
| 272 | + background: var(--vercel-inline-code-bg); |
| 273 | + padding: var(--vercel-inline-code-padding-y) var(--vercel-inline-code-padding-x); |
| 274 | + border-radius: var(--vercel-inline-code-radius); |
| 275 | + font-size: var(--vercel-inline-code-font-size); |
| 276 | + color: var(--vercel-inline-code-text); |
268 | 277 | font-family: var(--monospace); |
269 | | - border: 1px solid var(--vercel-code-border); |
270 | | - box-shadow: 0 10px 24px -18px rgba(12, 14, 18, 0.9); |
| 278 | + border: 1px solid var(--vercel-inline-code-border); |
| 279 | + box-shadow: var(--vercel-inline-code-shadow); |
271 | 280 | transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease; |
272 | 281 | } |
273 | 282 |
|
274 | 283 | .ohouse-post-content :not(pre) > code:hover { |
275 | 284 | transform: translateY(-1px); |
276 | | - background-color: #141821; |
277 | | - box-shadow: 0 18px 40px -26px rgba(12, 14, 18, 0.98); |
| 285 | + background-color: var(--vercel-inline-code-hover-bg); |
| 286 | + box-shadow: 0 16px 32px -26px rgba(15, 23, 42, 0.42); |
| 287 | +} |
| 288 | + |
| 289 | +.ohouse-post-content :not(pre) > code::selection { |
| 290 | + background-color: rgba(82, 174, 255, 0.22); |
| 291 | + color: var(--vercel-inline-code-text); |
278 | 292 | } |
279 | 293 |
|
280 | | -.ohouse-post-content :not(pre) > code::selection, |
281 | 294 | .ohouse-post-content pre code::selection, |
282 | 295 | .ohouse-post-content pre span::selection, |
283 | 296 | .ohouse-post-content pre::selection { |
284 | 297 | background-color: rgba(82, 174, 255, 0.28); |
285 | 298 | color: var(--vercel-code-text); |
286 | 299 | } |
287 | 300 |
|
288 | | -.ohouse-post-content :not(pre) > code::-moz-selection, |
| 301 | +.ohouse-post-content :not(pre) > code::-moz-selection { |
| 302 | + background-color: rgba(82, 174, 255, 0.22); |
| 303 | + color: var(--vercel-inline-code-text); |
| 304 | +} |
| 305 | + |
289 | 306 | .ohouse-post-content pre code::-moz-selection, |
290 | 307 | .ohouse-post-content pre span::-moz-selection, |
291 | 308 | .ohouse-post-content pre::-moz-selection { |
|
0 commit comments