Module:BadgeLua/styles.css
Appearance
.t-badge {
display: inline-flex;
align-items: center;
padding: 4px 8px;
border-radius: 2px;
box-shadow: var(--border-color-base) 0 0 0 1px;
background-color: var(--background-color-neutral);
color: var(--color-emphasized);
font-size: 0.875rem;
line-height: 1;
column-gap: 4px;
white-space: nowrap;
}
.t-badge__icon {
user-select: none;
}
.t-badge--is-link {
position: relative;
}
/* Keep the badge's own colour rather than the link colour. */
.t-badge--is-link .t-badge__text a {
color: inherit;
text-decoration: none;
}
/* Stretch the link over the whole badge so the icon and padding are clickable too. */
.t-badge--is-link .t-badge__text a::after {
content: '';
position: absolute;
inset: 0;
}