65baa16
commit 65baa16
5 files changed
+33 -76
Showing 5 changed files+33-76
▼src/pages/[owner]/[repo]/blame/[branch]/[...path].astro
+0-29
| @@ -250,32 +250,3 @@ const repo = { | ||
250 | 250 | </div> |
251 | 251 | </div> |
252 | 252 | </BaseLayout> |
253 | - | |
254 | -<style is:global> | |
255 | - .custom-scrollbar::-webkit-scrollbar { | |
256 | - height: 10px; | |
257 | - width: 10px; | |
258 | - } | |
259 | - .custom-scrollbar::-webkit-scrollbar-track { | |
260 | - background: transparent; | |
261 | - } | |
262 | - .custom-scrollbar::-webkit-scrollbar-thumb { | |
263 | - background: #30363d; | |
264 | - border-radius: 5px; | |
265 | - border: 2px solid #0d1117; | |
266 | - } | |
267 | - .custom-scrollbar::-webkit-scrollbar-thumb:hover { | |
268 | - background: #424a53; | |
269 | - } | |
270 | - .shiki { | |
271 | - background-color: transparent !important; | |
272 | - margin: 0 !important; | |
273 | - padding: 0 !important; | |
274 | - } | |
275 | - .shiki code { | |
276 | - display: inline; | |
277 | - } | |
278 | - .shiki .line { | |
279 | - display: inline; | |
280 | - } | |
281 | -</style> | |
282 | 253 | |
▼src/pages/[owner]/[repo]/blob/[branch]/[...path].astro
+0-34
| @@ -381,40 +381,6 @@ function formatSize(bytes: number) { | ||
381 | 381 | </div> |
382 | 382 | </BaseLayout> |
383 | 383 | |
384 | -<style is:global> | |
385 | - /* Custom scrollbar for code block */ | |
386 | - .custom-scrollbar::-webkit-scrollbar { | |
387 | - height: 10px; | |
388 | - width: 10px; | |
389 | - } | |
390 | - .custom-scrollbar::-webkit-scrollbar-track { | |
391 | - background: transparent; | |
392 | - } | |
393 | - .custom-scrollbar::-webkit-scrollbar-thumb { | |
394 | - background: #30363d; | |
395 | - border-radius: 5px; | |
396 | - border: 2px solid #0d1117; | |
397 | - } | |
398 | - .custom-scrollbar::-webkit-scrollbar-thumb:hover { | |
399 | - background: #424a53; | |
400 | - } | |
401 | - | |
402 | - /* Shiki Overrides to match layout */ | |
403 | - .shiki { | |
404 | - background-color: transparent !important; | |
405 | - margin: 0 !important; | |
406 | - padding: 0 !important; | |
407 | - } | |
408 | - .shiki code { | |
409 | - display: flex; | |
410 | - flex-direction: column; | |
411 | - } | |
412 | - .shiki .line { | |
413 | - height: 1.5rem; /* Matches h-6 logic */ | |
414 | - display: block; | |
415 | - } | |
416 | -</style> | |
417 | - | |
418 | 384 | <script |
419 | 385 | define:vars={{ initialContent: !fileData.isBinary ? fileData.content : "" }} |
420 | 386 | > |
421 | 387 | |
▼src/pages/[owner]/[repo]/ide/index.astro
+1-6
| @@ -37,16 +37,11 @@ const initialFile = Astro.url.searchParams.get("file") || ""; | ||
37 | 37 | <meta charset="UTF-8" /> |
38 | 38 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
39 | 39 | <title>{repoName} - Web IDE</title> |
40 | - <!-- Preload fonts --> | |
41 | 40 | <link rel="preconnect" href="https://fonts.googleapis.com" /> |
42 | 41 | <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> |
43 | 42 | <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet" /> |
44 | - <style> | |
45 | - body { margin: 0; padding: 0; overflow: hidden; background-color: #1e1e1e; font-family: "Inter", sans-serif; color: #ccc; } | |
46 | - * { box-sizing: border-box; } | |
47 | - </style> | |
48 | 43 | </head> |
49 | - <body> | |
44 | + <body style="margin:0;padding:0;overflow:hidden;background-color:#1e1e1e;font-family:Inter,sans-serif;color:#ccc;"> | |
50 | 45 | <WebIDE |
51 | 46 | client:only="react" |
52 | 47 | owner={ownerName!} |
53 | 48 | |
▼src/pages/settings/notification-preferences.astro
+0-7
| @@ -742,10 +742,3 @@ for (const event of eventTypes) { | ||
742 | 742 | } |
743 | 743 | }); |
744 | 744 | </script> |
745 | - | |
746 | -<style> | |
747 | - /* Custom checkbox styles for channel toggles */ | |
748 | - input[type="checkbox"]:checked + div > svg { | |
749 | - color: inherit !important; | |
750 | - } | |
751 | -</style> | |
752 | 745 | |
▼src/styles/globals.css
+32-0
| @@ -666,6 +666,38 @@ img { | ||
666 | 666 | -webkit-overflow-scrolling: touch; |
667 | 667 | } |
668 | 668 | |
669 | +/* Code block scrollbar */ | |
670 | +.blob-scrollbar::-webkit-scrollbar { | |
671 | + height: 10px; | |
672 | + width: 10px; | |
673 | +} | |
674 | +.blob-scrollbar::-webkit-scrollbar-track { | |
675 | + background: transparent; | |
676 | +} | |
677 | +.blob-scrollbar::-webkit-scrollbar-thumb { | |
678 | + background: #30363d; | |
679 | + border-radius: 5px; | |
680 | + border: 2px solid #0d1117; | |
681 | +} | |
682 | +.blob-scrollbar::-webkit-scrollbar-thumb:hover { | |
683 | + background: #424a53; | |
684 | +} | |
685 | + | |
686 | +/* Shiki code highlighting overrides */ | |
687 | +.shiki { | |
688 | + background-color: transparent !important; | |
689 | + margin: 0 !important; | |
690 | + padding: 0 !important; | |
691 | +} | |
692 | +.shiki code { | |
693 | + display: flex; | |
694 | + flex-direction: column; | |
695 | +} | |
696 | +.shiki .line { | |
697 | + height: 1.5rem; | |
698 | + display: block; | |
699 | +} | |
700 | + | |
669 | 701 | /* Admin HUD styles */ |
670 | 702 | .glass-panel { |
671 | 703 | background: rgba(13, 17, 23, 0.3); |
672 | 704 | |