1
1
mirror of https://github.com/primer/css.git synced 2024-12-14 23:12:03 +03:00

Use size scale for .Counter

This commit is contained in:
simurai 2020-03-02 18:13:56 +09:00
parent 80552929b9
commit d75c9d3cd9

View File

@ -1,13 +1,13 @@
// Counters are rounded-corner badges for numbers
.Counter {
display: inline-block;
min-width: 20px; // makes sure it's a circle with just one digit
min-width: $size-2; // makes sure it's a circle with just one digit
// stylelint-disable-next-line primer/spacing
padding: 0 6px;
font-size: $font-size-small;
font-weight: $font-weight-semibold;
// stylelint-disable-next-line primer/typography
line-height: 20px;
line-height: $size-2;
color: $text-gray-dark;
text-align: center;
// stylelint-disable-next-line primer/colors