Skip to content

Commit

Permalink
Added delay to kbd animation
Browse files Browse the repository at this point in the history
  • Loading branch information
amir2mi committed Oct 21, 2022
1 parent 5dc4467 commit ddcd38e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scss/content/_kbd.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ kbd {
border-radius: calc(var(--#{$CSS_VAR_PFX}border-radius) * 0.5);
box-shadow: inset 0 -0.125em 0 var(--#{$CSS_VAR_PFX}local-border-color);
will-change: transform;
transition: all var(--#{$CSS_VAR_PFX}simple-transition);
transition: all var(--#{$CSS_VAR_PFX}simple-transition) 0.15s;

&:hover {
box-shadow: inset 0 0 0 var(--#{$CSS_VAR_PFX}local-border-color);
Expand Down
6 changes: 3 additions & 3 deletions test.html
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,9 @@ <h5 class="modal-title" id="my-modal-title">Here is an example</h5>
</div>

<p class="truncate toggle-truncate show-text">
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam
malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede. Donec nec justo
eget felis facilisis fermentum. Aliquam porttitor mauris sit amet orci. Aenean dignissim pellentesque felis.
Lorem <kbd>Ctrl</kbd> dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros.
Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede. Donec nec
justo eget felis facilisis fermentum. Aliquam porttitor mauris sit amet orci. Aenean dignissim pellentesque felis.
</p>

<p class="truncate my-truncated-text">
Expand Down

0 comments on commit ddcd38e

Please sign in to comment.