-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
8 changed files
with
86 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 10 additions & 10 deletions
20
packages/components/src/components/badge/test/__snapshots__/snapshot.spec.tsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,38 @@ | ||
@import '../mixins/rem'; | ||
|
||
@layer kol-theme-component { | ||
:host { | ||
display: inline-block; | ||
.kol-badge { | ||
font-family: var(--font-family); | ||
} | ||
|
||
:host > span { | ||
border-radius: var(--border-radius); | ||
display: inline-flex; | ||
font-style: normal; | ||
} | ||
|
||
:host > span.smart-button { | ||
align-items: center; | ||
} | ||
|
||
:host > span .kol-button-wc:hover > button { | ||
background-color: var(--color-primary-variant); | ||
color: var(--color-light); | ||
} | ||
|
||
:host > span .kol-button-wc > button { | ||
color: inherit; | ||
border-top-right-radius: var(--border-radius); | ||
border-bottom-right-radius: var(--border-radius); | ||
padding: rem(3.2); | ||
} | ||
|
||
:host > span .kol-span-wc { | ||
padding: rem(4) rem(12); | ||
} | ||
|
||
:host > span > .kol-span-wc { | ||
align-items: center; | ||
font-style: normal; | ||
gap: rem(8); | ||
} | ||
|
||
:host > span > .kol-span-wc > span { | ||
display: flex; | ||
gap: rem(4); | ||
span.smart-button { | ||
align-items: center; | ||
} | ||
|
||
.kol-button-wc:hover > button { | ||
background-color: var(--color-primary-variant); | ||
color: var(--color-light); | ||
} | ||
|
||
.kol-button-wc > button { | ||
color: inherit; | ||
border-top-right-radius: var(--border-radius); | ||
border-bottom-right-radius: var(--border-radius); | ||
padding: rem(3.2); | ||
} | ||
|
||
.kol-span-wc { | ||
padding: rem(4) rem(12); | ||
align-items: center; | ||
font-style: normal; | ||
gap: rem(8); | ||
|
||
span { | ||
display: flex; | ||
gap: rem(4); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,28 @@ | ||
@import '../mixins/rem'; | ||
|
||
@layer kol-theme-component { | ||
:host { | ||
display: inline-block; | ||
.kol-badge { | ||
display: inline-flex; | ||
font-family: inherit; | ||
} | ||
|
||
:host > span { | ||
border-radius: rem(5); | ||
display: inline-flex; | ||
} | ||
|
||
:host > span .kol-button-wc { | ||
border-left: rem(1) solid rgba(0, 0, 0, 0.25); | ||
} | ||
.kol-button-wc { | ||
border-left: rem(1) solid rgba(0, 0, 0, 0.25); | ||
} | ||
.kol-span-wc { | ||
align-items: center; | ||
font-style: normal; | ||
gap: rem(8); | ||
padding: rem(4) rem(8); | ||
|
||
:host > span .kol-span-wc { | ||
padding: rem(4) rem(8); | ||
} | ||
|
||
:host > span > .kol-span-wc { | ||
align-items: center; | ||
font-style: normal; | ||
gap: rem(8); | ||
} | ||
|
||
:host > span > .kol-span-wc > span { | ||
display: flex; | ||
gap: rem(4); | ||
} | ||
span { | ||
display: flex; | ||
gap: rem(4); | ||
} | ||
} | ||
|
||
:host button { | ||
border-radius: 0 var(--spacing) var(--spacing) 0; | ||
button { | ||
border-radius: 0 var(--spacing) var(--spacing) 0; | ||
} | ||
} | ||
} |