Skip to content

Commit

Permalink
fix(cc-badge): set consistent border display with webkit
Browse files Browse the repository at this point in the history
Fixes #630
  • Loading branch information
florian-sanders-cc committed Dec 1, 2022
1 parent c313f54 commit 131aff7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/cc-badge/cc-badge.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export class CcBadge extends LitElement {
}
.skeleton.outlined {
box-shadow: inset 0 0 0 0.06em #777 !important;
border: 0.06em solid #777 !important;
}
.skeleton img {
Expand All @@ -119,19 +119,21 @@ export class CcBadge extends LitElement {
}
.dimmed {
border: 0.06em solid var(--accent-color, #ccc);
background-color: var(--accent-color, #ccc);
}
.strong {
border: 0.06em solid var(--accent-color, #777);
background-color: var(--accent-color, #777);
color: var(--cc-color-text-inverted, #fff);
}
.outlined {
background-color: transparent;
/* roughly 1px. We want the border to scale with the font size so that outlined
badges still stand out as they should when font-size is increased. */
box-shadow: inset 0 0 0 0.06em var(--accent-color, #777);
border: 0.06em solid var(--accent-color, #777);
background-color: transparent;
color: var(--accent-color, #777);
}
Expand Down

0 comments on commit 131aff7

Please sign in to comment.