x
1
<span title="∞" data-view-component="true" class="Counter">∞</span>
1
render(Primer::Beta::Counter.new(text: "∞"))
No notes provided.
No params configured.
app/components/primer/beta/counter.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* Counter */.Counter { display: inline-block; min-width: var(--base-size-20,1.25rem); /* makes sure it's a circle with just one digit */ padding: 0 6px; font-size: var(--text-body-size-small,0.75rem); font-weight: var(--base-text-weight-medium,500); line-height: calc(var(--base-size-20,1.25rem) - var(--borderWidth-thin,max(1px, 0.0625rem)) * 2); /* 20px - 2px for the borders */ color: var(--fgColor-default,var(--color-fg-default)); text-align: center; background-color: var(--bgColor-neutral-muted, var(--color-neutral-muted)); border: var(--borderWidth-thin,max(1px, 0.0625rem)) solid var(--counter-borderColor,var(--color-counter-border)); border-radius: 2em;}.Counter:empty { display: none; }/* Is this selector used? could not find any use of it */.Counter .octicon { vertical-align: text-top; opacity: 0.8; }.Counter--primary { color: var(--fgColor-onEmphasis,var(--color-fg-on-emphasis)); background-color: var(--bgColor-neutral-emphasis,var(--color-fg-subtle));}.Counter--secondary { color: var(--fgColor-muted,var(--color-fg-muted)); background-color: var(--bgColor-neutral-muted,var(--color-neutral-subtle));}