-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: ordered list * chore: new line character * chore: tokens * chore: tokens * refactor: header link * feat: copy code block (needs init) * chore: cleanup * fix: copy code * fix: rename component
- Loading branch information
1 parent
63a1708
commit 14a2976
Showing
17 changed files
with
312 additions
and
137 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
@mixin icon-button { | ||
align-items: center; | ||
background-color: var(--kui-color-background-transparent, $kui-color-background-transparent); | ||
border: var(--kui-border-width-20, $kui-border-width-20) solid | ||
var(--kui-color-border-transparent, $kui-color-border-transparent); | ||
border-radius: var(--kui-border-radius-30, $kui-border-radius-30); | ||
color: var(--kui-color-text-neutral, $kui-color-text-neutral); | ||
cursor: pointer; | ||
display: inline-flex; | ||
font-family: var(--kui-font-family-text, $kui-font-family-text); | ||
font-size: var(--kui-font-size-30, $kui-font-size-30); | ||
font-weight: var(--kui-font-weight-semibold, $kui-font-weight-semibold); | ||
gap: var(--kui-space-30, $kui-space-30); | ||
justify-content: center; | ||
padding: var(--kui-space-10, $kui-space-10); | ||
// Remove tap color highlight on mobile Safari | ||
-webkit-tap-highlight-color: rgba(255, 255, 255, 0); | ||
text-decoration: none; | ||
transition: | ||
background-color 0.2s ease-in-out, | ||
color 0.2s ease-in-out, | ||
border-color 0.2s ease-in-out; | ||
user-select: none; | ||
vertical-align: middle; | ||
white-space: nowrap; | ||
|
||
&:hover:not(:disabled):not(:focus):not(:active) { | ||
background-color: var(--kui-color-background-neutral-weaker, $kui-color-background-neutral-weaker); | ||
} | ||
|
||
&:focus { | ||
background-color: var(--kui-color-background-neutral-weaker, $kui-color-background-neutral-weaker); | ||
} | ||
|
||
&:active { | ||
background-color: var(--kui-color-background-neutral-weak, $kui-color-background-neutral-weak); | ||
} | ||
|
||
&:disabled, | ||
&[disabled] { | ||
background-color: var(--kui-color-background-disabled, $kui-color-background-disabled); | ||
box-shadow: none; | ||
color: var(--kui-color-text-disabled, $kui-color-text-disabled); | ||
cursor: not-allowed; | ||
} | ||
|
||
&:focus, | ||
&:active, | ||
&:focus-visible { | ||
outline: none; | ||
} | ||
|
||
&:focus-visible { | ||
// Same as $kui-shadow-focus with 2px instead of 4px | ||
box-shadow: 0px 0px 0px 2px rgba(0, 68, 244, 0.2); | ||
} | ||
} |
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
Oops, something went wrong.