Skip to content

Commit ae9e2a0

Browse files
committed
Define a class to style the labels as seen on GitHub
1 parent c2ce3f4 commit ae9e2a0

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

webpack/sass/main.scss

+22
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,28 @@ pre {
522522
@extend .padding-bottom-xxl;
523523
@extend .padding-top-xl;
524524
}
525+
526+
.gh-label {
527+
display: inline-block;
528+
font-size: $font-size-body-normal;
529+
padding: 0 1em;
530+
border: 1px solid #eeeeee;
531+
border-radius: 999em;
532+
533+
$label-colors: (
534+
('goal' #ffffff #000000),
535+
('aspect' #04338c #ffffff),
536+
('skill' #5ff1f5 #000000),
537+
('talk' #f9bbe5 #000000),
538+
('friendliness' #7f0799 #ffffff)
539+
);
540+
@each $category, $background-color, $foreground-color in $label-colors {
541+
&.#{$category} {
542+
background-color: $background-color;
543+
color: $foreground-color;
544+
}
545+
}
546+
}
525547
}
526548
}
527549

0 commit comments

Comments
 (0)