Skip to content

Commit

Permalink
feat: badge
Browse files Browse the repository at this point in the history
  • Loading branch information
sanqi-med committed May 12, 2023
1 parent da7195b commit 46d024c
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions packages/quarkd/src/badge/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
display: inline-flex;
}

:host .quark-badge {
display: flex;
}

:host .quark-badge-dealclass {
white-space: nowrap;
display: inline-flex;
Expand Down Expand Up @@ -42,20 +46,22 @@

:host([type="label"]) .quark-badge-dealclass {
font-size: var(--badge-font-size, 11px);
line-height: var(--badge-line-height, 16px);
padding: var(--badge-padding-column, 0px) var(--badge-padding-row, 4px);
line-height: var(--badge-line-height, 12px);
padding: var(--badge-padding-column, 2px) var(--badge-padding-row, 4px);
border-radius: 999px 999px 999px 1px;
font-weight: 400;
}

:host([size="big"]) .quark-badge-dealclass {
padding: var(--badge-padding-column, 0px) var(--badge-padding-row, 6px);
padding: var(--badge-padding-column, 4px) var(--badge-padding-row, 6px);
font-size: var(--badge-font-size, 12px);
line-height: var(--badge-line-height, 20px);
line-height: var(--badge-line-height, 12px);
min-width: 20px;
font-weight: 500;
}

:host([border]) .quark-badge-dealclass {
border: 0.5px solid var(--badge-border-color, #fff);
border: 1px solid var(--badge-border-color, #fff);
}

:host([size="big"][type="dot"]) .quark-badge-dealclass {
Expand Down

0 comments on commit 46d024c

Please sign in to comment.