Created
April 15, 2026 20:56
-
-
Save jubilancy/f0bc76f67f64a09f6ce018cfc4311143 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :root { | |
| --border-color: #e1e4e8; | |
| --header-bg: #f6f8fa; | |
| --header-text: #24292e; | |
| --row-hover: #f1f8ff; | |
| --link-color: #0366d6; | |
| --text-muted: #586069; | |
| } | |
| /* 1. Container for Responsiveness & Sticky Header */ | |
| .table-wrapper { | |
| overflow: auto; | |
| max-height: 80vh; /* Limits vertical height to screen */ | |
| border: 1px solid var(--border-color); | |
| border-radius: 6px; | |
| margin: 20px 0; | |
| } | |
| /* 2. Base Table Styling */ | |
| .gh-stars-table { | |
| width: 100%; | |
| border-collapse: collapse; /* Applied Border Collapse */ | |
| font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; | |
| font-size: 13px; | |
| line-height: 1.5; | |
| background-color: white; | |
| } | |
| /* 3. Sticky Headers */ | |
| .gh-stars-table th { | |
| position: sticky; | |
| top: 0; | |
| background-color: var(--header-bg); | |
| color: var(--header-text); | |
| font-weight: 600; | |
| padding: 12px 10px; | |
| text-align: left; | |
| border-bottom: 2px solid var(--border-color); | |
| white-space: nowrap; | |
| z-index: 10; | |
| } | |
| /* 4. Cell Styling */ | |
| .gh-stars-table td { | |
| padding: 8px 10px; | |
| border-bottom: 1px solid var(--border-color); | |
| color: var(--header-text); | |
| white-space: nowrap; /* Prevents dates/IDs from wrapping */ | |
| max-width: 300px; | |
| overflow: hidden; | |
| text-overflow: ellipsis; /* Adds ... to long descriptions */ | |
| } | |
| /* 5. Hover Effects */ | |
| .gh-stars-table tbody tr:hover { | |
| background-color: var(--row-hover); | |
| } | |
| /* 6. Link & Metadata Styling */ | |
| .gh-stars-table a { | |
| color: var(--link-color); | |
| text-decoration: none; | |
| } | |
| .gh-stars-table a:hover { | |
| text-decoration: underline; | |
| } | |
| .gh-stars-table td:nth-child(n+5) { | |
| color: var(--text-muted); /* Dims less important numeric data */ | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment