Skip to content

Commit

Permalink
fix(components): fix styling for kbd component
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-bachner committed Jun 11, 2021
1 parent 51d4573 commit 902ff01
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions components/KBD.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,22 @@ export default {
<span v-if="shift">⇧</span>
<span v-if="option">⌥</span>
<span v-if="control">⌃</span>
<span>
<span class="kbd-text">
<slot />
</span>
</kbd>
</template>

<style scoped>
kbd {
font-family: "Inter", sans-serif;
background-color: var(--accents-1);
padding: 0.15rem;
padding: 0.125rem 0.25rem;
border: 1px solid var(--accents-2);
border-radius: var(--geist-radius);
@apply text-sm tracking-tight;
}
span {
margin: 0 0.2rem;
kbd > span:nth-child(n + 2) {
padding-left: 0.5rem;
}
</style>

1 comment on commit 902ff01

@vercel
Copy link

@vercel vercel bot commented on 902ff01 Jun 11, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.