Skip to content

Commit 43c4012

Browse files
Timeline: add Dependabot event stories (Phase 2) (#8071)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 0cb8e17 commit 43c4012

2 files changed

Lines changed: 719 additions & 0 deletions

File tree

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
/* `(bot)` identifier tag. Live ERB `bot_identifier_tag` renders
2+
`<span class="Label Label--secondary">bot</span>`; mirrored here with Primer
3+
`Label variant="secondary"`. This class only adds inline spacing. */
4+
.BotLabel {
5+
margin: 0 var(--base-size-4) 0 0;
6+
vertical-align: middle;
7+
}
8+
9+
/* Push-pill: the `(push-pill: SHA)` SUBTLE light-blue rounded pill from
10+
`PushLinkComponent` (`<code>` wrapping `Primer::Beta::Link` with
11+
`bg: :accent, px: 2, py: 1, border_radius: 3`). In primer/view_components
12+
`bg: :accent` resolves to `.color-bg-accent` = the SUBTLE/MUTED light-blue
13+
background (`--color-accent-subtle`), NOT the solid emphasis blue — so the
14+
text stays accent-blue (the Link's default color), not white. This is the
15+
standard GitHub SHA push-pill look. Primer `Link`'s own color rule is
16+
`:where(.Link)` (zero specificity), so this CSS-module class fully drives the
17+
pill appearance. */
18+
.PushPill {
19+
/* The wrapping <code> element — no own box, the inner link is the pill. */
20+
font-family: var(--fontStack-monospace);
21+
}
22+
23+
.PushPillLink {
24+
display: inline-block;
25+
font-family: var(--fontStack-monospace);
26+
font-size: var(--text-body-size-small);
27+
color: var(--fgColor-accent);
28+
background-color: var(--bgColor-accent-muted);
29+
padding: var(--base-size-2) var(--base-size-4);
30+
border-radius: var(--borderRadius-medium);
31+
text-decoration: none;
32+
}
33+
34+
.PushPillLink:hover {
35+
text-decoration: none;
36+
}
37+
38+
/* Optional dismissal/auto sub-content row. Live ERB renders a
39+
`<div class="TimelineItem tmp-pl-5 pt-0 f6 d-block">` (small, indented block
40+
below the event) holding a `note` octicon + the comment text. */
41+
.NoteComment {
42+
margin-top: var(--base-size-8);
43+
padding-left: var(--base-size-4);
44+
font-size: var(--text-body-size-small);
45+
color: var(--fgColor-muted);
46+
}
47+
48+
.NoteIcon {
49+
vertical-align: middle;
50+
margin-right: var(--base-size-4);
51+
color: var(--fgColor-muted);
52+
}
53+
54+
/* Colored badge icons for the Dismissal Request / Review / Cancelled events.
55+
Their live ERB renders `with_badge(color: :X, icon: …)` with NO `bg:` — in
56+
Primer `color:` tints the ICON on the DEFAULT badge background (it is NOT a
57+
solid-color badge). So these render as a bare `<Timeline.Badge>` (default gray
58+
circle) with the icon color set here, mirroring the Dismissed muted icon. */
59+
.BadgeIconAttention {
60+
color: var(--fgColor-attention);
61+
}
62+
63+
.BadgeIconSuccess {
64+
color: var(--fgColor-success);
65+
}
66+
67+
.BadgeIconDanger {
68+
color: var(--fgColor-danger);
69+
}
70+
71+
/* `:subtle` icon color. Primer has no `--fgColor-subtle` token, so the closest
72+
functional equivalent for the Dismissal Cancelled `color: :subtle` is muted. */
73+
.BadgeIconMuted {
74+
color: var(--fgColor-muted);
75+
}

0 commit comments

Comments
 (0)