|
| 1 | +/* Bold body text, mirroring the live `item.with_body(font_weight: :bold)` used |
| 2 | + by every system (no-actor) Code Scanning event. */ |
| 3 | +.BoldBody { |
| 4 | + font-weight: var(--base-text-weight-semibold); |
| 5 | + color: var(--fgColor-default); |
| 6 | +} |
| 7 | + |
| 8 | +/* Bold branch ref — live `formatted_ref_name` renders |
| 9 | + `Primer::Beta::Text.new(font_weight: :bold, classes: "branch-name")` (dotcom |
| 10 | + defines no `.branch-name` rule, so it is plain bold text, NOT the monospace |
| 11 | + `BranchName` pill). */ |
| 12 | +.RefName { |
| 13 | + font-weight: var(--base-text-weight-semibold); |
| 14 | + color: var(--fgColor-default); |
| 15 | +} |
| 16 | + |
| 17 | +/* "in configuration {category}" inline pill — live `show_analysis_origin?` rows |
| 18 | + render `Primer::Beta::Truncate.new(bg: :subtle, font_family: :mono, |
| 19 | + font_size: 6, border_radius: 1)`: a SUBTLE gray monospace rounded pill. |
| 20 | + Rendered only when the alert has more than one analysis category. */ |
| 21 | +.ConfigPill { |
| 22 | + display: inline-block; |
| 23 | + margin-left: var(--base-size-4); |
| 24 | + padding: 0 var(--base-size-4); |
| 25 | + font-family: var(--fontStack-monospace); |
| 26 | + font-size: var(--text-body-size-small); |
| 27 | + color: var(--fgColor-default); |
| 28 | + background-color: var(--bgColor-muted); |
| 29 | + border-radius: var(--borderRadius-small); |
| 30 | + vertical-align: middle; |
| 31 | +} |
| 32 | + |
| 33 | +/* Supplementary sub-row below a detection event. Live ERB renders a condensed |
| 34 | + `Primer::Beta::TimelineItem(condensed: true, font_size: 6, classes: |
| 35 | + "tmp-pl-5")` — a small, indented row beneath the main item. We mirror the |
| 36 | + established Dependabot / Secret Scanning precedent and compose it as a small |
| 37 | + muted block inside `Timeline.Body` (not a badge-less Timeline.Item). */ |
| 38 | +.SubRow { |
| 39 | + margin-top: var(--base-size-8); |
| 40 | + padding-left: var(--base-size-4); |
| 41 | + font-size: var(--text-body-size-small); |
| 42 | + color: var(--fgColor-muted); |
| 43 | +} |
| 44 | + |
| 45 | +/* Bold segment inside the path sub-row — live ERB bolds |
| 46 | + `{file_name}:{start_line} on branch` via |
| 47 | + `Primer::Beta::Text(color: :default, font_weight: :bold)`. */ |
| 48 | +.SubRowStrong { |
| 49 | + font-weight: var(--base-text-weight-semibold); |
| 50 | + color: var(--fgColor-default); |
| 51 | +} |
| 52 | + |
| 53 | +/* Workflow-run sub-row icon (the green check / pending dot before the run |
| 54 | + link). Live ERB renders a check-suite conclusion octicon. */ |
| 55 | +.SubRowIconSuccess { |
| 56 | + margin-right: var(--base-size-4); |
| 57 | + color: var(--fgColor-success); |
| 58 | + vertical-align: middle; |
| 59 | +} |
| 60 | + |
| 61 | +/* Bold workflow-run link — live ERB `Primer::Beta::Link(scheme: :primary, |
| 62 | + font_weight: :bold)`. The a11y `link-in-text-block` rule requires in-text |
| 63 | + links to be visually distinct without relying on color, so the bold weight is |
| 64 | + the non-color differentiator (matching the Issues / Dependabot precedent). */ |
| 65 | +.WorkflowLink { |
| 66 | + font-weight: var(--base-text-weight-semibold); |
| 67 | + color: var(--fgColor-default); |
| 68 | +} |
| 69 | + |
| 70 | +.WorkflowLink:hover { |
| 71 | + color: var(--fgColor-accent); |
| 72 | +} |
| 73 | + |
| 74 | +/* Monospace commit-SHA link — live ERB `Primer::Beta::Link(scheme: :secondary, |
| 75 | + font_family: :mono)` truncated to 8 chars. */ |
| 76 | +.CommitSha { |
| 77 | + margin-left: var(--base-size-4); |
| 78 | + font-family: var(--fontStack-monospace); |
| 79 | + color: var(--fgColor-muted); |
| 80 | +} |
| 81 | + |
| 82 | +/* Inline user-actor avatar and the bold actor / reference link moved to the |
| 83 | + shared internal helpers (`InlineAvatar` → github/primer#6827, `BoldLink` → |
| 84 | + github/primer#6826) in `./internal/timelineStoryHelpers`. */ |
| 85 | + |
| 86 | +/* Bold closure / resolution reason — live ERB wraps the reason in |
| 87 | + `Primer::Beta::Text(font_weight: :bold, classes: "branch-name")`. */ |
| 88 | +.Reason { |
| 89 | + font-weight: var(--base-text-weight-semibold); |
| 90 | + color: var(--fgColor-default); |
| 91 | +} |
| 92 | + |
| 93 | +/* The note sub-row's `note` octicon styling moved to the shared `EventSubRow` |
| 94 | + helper (`.EventSubRowIcon`) in `./internal/timelineStoryHelpers`. */ |
0 commit comments