Skip to content

Commit

Permalink
style(KolInputCheckbox): change switch icon (#5439)
Browse files Browse the repository at this point in the history
  • Loading branch information
deleonio authored Oct 16, 2023
2 parents a8453b6 + 204efc3 commit a4d7be4
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions packages/themes/bmf/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1963,27 +1963,37 @@ export const BMF = KoliBri.createTheme('bmf', {
height: 1.25em;
left: 2px;
color: #000;
&::part(icon) {
font-family: "Font Awesome 6 Free";
font-weight: 900;
}
&::part(icon)::before {
content: "\\2b";
}
}
&:has(input:checked) .icon {
transform: translate(2em, -50%);
&::part(icon)::before {
content: "\\f00c";
}
}
&:has(input:indeterminate) .icon {
transform: translate(1em, -50%);
&::part(icon)::before {
content: "\\f068";
}
}
}
:host .disabled {
opacity: 0.33;
}
:host kol-input.button {
row-gap: 0.5rem;
}
:host kol-input.button.checked > .input,
:host kol-input.button.checked > label {
background-color: var(--color-ice);
}
:host kol-input.button > label {
background-color: var(--color-silver);
border-top-right-radius: var(--border-radius);
Expand All @@ -1994,7 +2004,6 @@ export const BMF = KoliBri.createTheme('bmf', {
padding-right: 12px;
width: 100%;
}
:host kol-input.button > .input {
background-color: var(--color-silver);
border-top-left-radius: var(--border-radius);
Expand All @@ -2003,15 +2012,12 @@ export const BMF = KoliBri.createTheme('bmf', {
min-width: 32px;
place-content: center;
}
:host kol-input.button > .input > div {
display: flex;
}
:host kol-input.button .icon {
height: auto;
}
`,
}`,
'KOL-INPUT-RADIO': `/* INPUT */
kol-input {
display: grid;
Expand Down

0 comments on commit a4d7be4

Please sign in to comment.