@@ -991,3 +991,99 @@ code { |
| 991 | 991 | .shithub-finder-form input { font: inherit; padding: 0.4rem 0.6rem; border: 1px solid var(--border-default); border-radius: 6px; flex: 1; } |
| 992 | 992 | .shithub-finder-results { list-style: none; padding: 0; } |
| 993 | 993 | .shithub-finder-results li { padding: 0.3rem 0.5rem; border-bottom: 1px solid var(--border-default); font-family: monospace; font-size: 0.875rem; } |
| 994 | + |
| 995 | +/* ========== Commits + Commit + Blame (S18) ========== */ |
| 996 | +.shithub-avatar-sm { |
| 997 | + display: inline-block; |
| 998 | + width: 20px; |
| 999 | + height: 20px; |
| 1000 | + border-radius: 50%; |
| 1001 | + vertical-align: middle; |
| 1002 | + margin-right: 0.4rem; |
| 1003 | +} |
| 1004 | +.shithub-identicon { |
| 1005 | + background: linear-gradient(135deg, #cce, #ecc); |
| 1006 | +} |
| 1007 | +.shithub-commits-filter { |
| 1008 | + display: flex; |
| 1009 | + gap: 0.5rem; |
| 1010 | + align-items: end; |
| 1011 | + flex-wrap: wrap; |
| 1012 | + margin: 1rem 0; |
| 1013 | +} |
| 1014 | +.shithub-commits-filter input { |
| 1015 | + padding: 0.3rem 0.5rem; |
| 1016 | + border: 1px solid var(--border-default); |
| 1017 | + border-radius: 6px; |
| 1018 | + font: inherit; |
| 1019 | +} |
| 1020 | +.shithub-commits-list { list-style: none; padding: 0; margin: 0; } |
| 1021 | +.shithub-commits-row { |
| 1022 | + display: grid; |
| 1023 | + grid-template-columns: 220px 1fr; |
| 1024 | + gap: 0.75rem; |
| 1025 | + padding: 0.6rem 0.5rem; |
| 1026 | + border-bottom: 1px solid var(--border-default); |
| 1027 | + align-items: start; |
| 1028 | +} |
| 1029 | +.shithub-commits-author { color: var(--fg-muted); font-size: 0.875rem; } |
| 1030 | +.shithub-commits-meta { display: flex; flex-direction: column; gap: 0.2rem; } |
| 1031 | +.shithub-commits-subject { color: var(--fg-default); font-weight: 500; } |
| 1032 | +.shithub-commits-sha { color: var(--fg-muted); font-size: 0.8rem; } |
| 1033 | +.shithub-pager { display: flex; gap: 1rem; padding: 1rem 0; } |
| 1034 | + |
| 1035 | +.shithub-commit-view { max-width: 64rem; margin: 1.5rem auto; padding: 0 1rem; } |
| 1036 | +.shithub-commit-meta { |
| 1037 | + margin-top: 1rem; |
| 1038 | + padding: 1rem; |
| 1039 | + border: 1px solid var(--border-default); |
| 1040 | + border-radius: 6px; |
| 1041 | + background: var(--canvas-subtle); |
| 1042 | +} |
| 1043 | +.shithub-commit-subject { margin: 0 0 0.5rem; font-size: 1.2rem; } |
| 1044 | +.shithub-commit-body { margin: 0.75rem 0; font-family: monospace; font-size: 0.9rem; line-height: 1.4; } |
| 1045 | +.shithub-commit-people { display: flex; gap: 1.5rem; flex-wrap: wrap; margin: 0.75rem 0; font-size: 0.875rem; } |
| 1046 | +.shithub-commit-actor { display: inline-flex; align-items: center; gap: 0.4rem; } |
| 1047 | +.shithub-commit-role { color: var(--fg-muted); font-weight: 500; } |
| 1048 | +.shithub-commit-refs { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1rem; font-size: 0.875rem; } |
| 1049 | +.shithub-commit-refs dt { color: var(--fg-muted); } |
| 1050 | +.shithub-commit-refs dd { margin: 0; font-family: monospace; } |
| 1051 | + |
| 1052 | +.shithub-commit-files { margin-top: 1.5rem; } |
| 1053 | +.shithub-commit-files-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; } |
| 1054 | +.shithub-commit-files-table th, .shithub-commit-files-table td { |
| 1055 | + padding: 0.4rem 0.6rem; |
| 1056 | + border-bottom: 1px solid var(--border-default); |
| 1057 | + text-align: left; |
| 1058 | +} |
| 1059 | +.shithub-num-col { width: 80px; text-align: right; font-variant-numeric: tabular-nums; } |
| 1060 | +.shithub-add { color: #22863a; } |
| 1061 | +.shithub-del { color: #cb2431; } |
| 1062 | +.shithub-status-A { color: #22863a; font-weight: 600; } |
| 1063 | +.shithub-status-M { color: #b08800; font-weight: 600; } |
| 1064 | +.shithub-status-D { color: #cb2431; font-weight: 600; } |
| 1065 | +.shithub-status-R { color: #6f42c1; font-weight: 600; } |
| 1066 | +.shithub-status-C { color: #0366d6; font-weight: 600; } |
| 1067 | + |
| 1068 | +.shithub-blame-table { width: 100%; border-collapse: collapse; font-family: monospace; font-size: 0.85rem; } |
| 1069 | +.shithub-blame-chunk-header td { |
| 1070 | + padding: 0.4rem 0.6rem; |
| 1071 | + background: var(--canvas-subtle); |
| 1072 | + border-top: 1px solid var(--border-default); |
| 1073 | + font-family: var(--shithub-font-default, sans-serif); |
| 1074 | + font-size: 0.8rem; |
| 1075 | + color: var(--fg-muted); |
| 1076 | + display: flex; |
| 1077 | + gap: 0.4rem; |
| 1078 | + align-items: center; |
| 1079 | +} |
| 1080 | +.shithub-blame-lineno { width: 50px; text-align: right; padding-right: 0.5rem; color: var(--fg-muted); } |
| 1081 | +.shithub-blame-lineno a { color: inherit; } |
| 1082 | +.shithub-blame-content pre { margin: 0; white-space: pre; } |
| 1083 | +.shithub-blame-too-large { |
| 1084 | + padding: 1rem; |
| 1085 | + border: 1px dashed var(--border-default); |
| 1086 | + border-radius: 6px; |
| 1087 | + text-align: center; |
| 1088 | + color: var(--fg-muted); |
| 1089 | +} |