diff --git a/github-ratelimit.html b/github-ratelimit.html index 10bb17a4..f9e7d38f 100644 --- a/github-ratelimit.html +++ b/github-ratelimit.html @@ -60,42 +60,98 @@ margin-bottom: 15px; } -table { - width: 100%; - border-collapse: collapse; - margin-bottom: 20px; +.rate-limit-card { + background: #ffffff; + border: 1px solid #d0d7de; + border-radius: 6px; + padding: 16px; + margin-bottom: 12px; + transition: box-shadow 0.2s; } -thead { - background: #f6f8fa; +.rate-limit-card:hover { + box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08); } -th { - text-align: left; - padding: 12px; - font-weight: 600; - color: #57606a; - border-bottom: 2px solid #d0d7de; - font-size: 14px; +.card-header { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 12px; } -td { - padding: 12px; - border-bottom: 1px solid #d0d7de; - font-size: 14px; +.resource-name { + font-weight: 600; + color: #24292f; + font-size: 16px; } -tr:last-child td { - border-bottom: none; +.remaining-count { + font-size: 14px; + font-weight: 600; + font-variant-numeric: tabular-nums; } -tbody tr:hover { +.progress-container { + width: 100%; + height: 24px; background: #f6f8fa; + border-radius: 6px; + overflow: hidden; + margin-bottom: 12px; + border: 1px solid #d0d7de; } -.resource-name { +.progress-bar { + height: 100%; + background: linear-gradient(90deg, #2da44e 0%, #26a148 100%); + transition: width 0.3s ease; + display: flex; + align-items: center; + justify-content: center; + color: #ffffff; + font-size: 12px; font-weight: 600; + min-width: 0; +} + +.progress-bar.warning { + background: linear-gradient(90deg, #bf8700 0%, #9a6700 100%); +} + +.progress-bar.critical { + background: linear-gradient(90deg, #d1242f 0%, #cf222e 100%); +} + +.progress-text { + white-space: nowrap; + padding: 0 8px; +} + +.card-stats { + display: flex; + justify-content: space-between; + gap: 12px; + font-size: 13px; + color: #57606a; +} + +.stat-item { + flex: 1; +} + +.stat-label { + display: block; + font-size: 11px; + text-transform: uppercase; + letter-spacing: 0.5px; + margin-bottom: 4px; +} + +.stat-value { + display: block; color: #24292f; + font-variant-numeric: tabular-nums; } .number { @@ -112,11 +168,6 @@ font-weight: 600; } -.ditto { - color: #57606a; - text-align: center; -} - button { padding: 10px 20px; background: #2da44e; @@ -185,12 +236,17 @@ font-size: 24px; } - table { - font-size: 12px; + .rate-limit-card { + padding: 12px; } - th, td { - padding: 8px; + .resource-name { + font-size: 14px; + } + + .card-stats { + flex-direction: column; + gap: 8px; } } @@ -303,35 +359,24 @@
| Resource | -Limit | -Used | -Remaining | -Resets At | -Resets In | -
|---|