Skip to content

Commit

Permalink
fix: transition duration
Browse files Browse the repository at this point in the history
  • Loading branch information
akijoey committed May 2, 2024
1 parent 6f6130e commit 46659c9
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/base/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
:where(a) {
color: currentcolor;
text-decoration: none;
transition: $duration-base;
transition-duration: $duration-base;

&:hover {
color: $blue-500;
Expand Down
2 changes: 1 addition & 1 deletion src/components/details.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
background-position: center;
background-size: 1em 0.75em;
transform: rotate(-90deg);
transition: $duration-base;
transition-duration: $duration-base;

@include themeify {
background-image: icon-arrow(themed('dark'));
Expand Down
2 changes: 1 addition & 1 deletion src/components/meter.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
@mixin meter-value($level) {
background-size: 0.75rem 0.75rem;
border-radius: 0.5rem;
transition: $duration-slow;
transition-duration: $duration-slow;
@include gradient-striped;

@include themeify {
Expand Down
2 changes: 1 addition & 1 deletion src/components/progress.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
@mixin progress-value {
background-size: 0.75rem 0.75rem;
border-radius: 0.5rem;
transition: $duration-slow;
transition-duration: $duration-slow;
@include gradient-striped;

@include themeify {
Expand Down
2 changes: 1 addition & 1 deletion src/components/tooltip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
left: 50%;
display: block;
pointer-events: none;
transition: $duration-base;
transition-duration: $duration-base;
visibility: hidden;
opacity: 0;
}
Expand Down
12 changes: 6 additions & 6 deletions src/forms/input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
@use '../utils/icons' as *;

:where(input) {
transition: $duration-fast;
transition-duration: $duration-fast;
@extend %control;

// button type
Expand Down Expand Up @@ -48,7 +48,7 @@
&[type='search' i] {
&::-webkit-search-cancel-button {
cursor: pointer;
transition: $duration-fast;
transition-duration: $duration-fast;
}
}

Expand All @@ -71,7 +71,7 @@
cursor: pointer;
background-color: $gray-500;
border: none;
transition: $duration-fast;
transition-duration: $duration-fast;
appearance: none;
}

Expand Down Expand Up @@ -110,7 +110,7 @@
background-image: icon-circle($gray, 3);
background-position: left center;
border-radius: 0.5em;
transition: $duration-base;
transition-duration: $duration-base;

&:checked {
background-image: icon-circle($white, 3);
Expand Down Expand Up @@ -177,7 +177,7 @@
background-position: center;
background-size: contain;
border-radius: 1rem;
transition: $duration-fast;
transition-duration: $duration-fast;
appearance: none;

@include themeify {
Expand Down Expand Up @@ -253,7 +253,7 @@
height: 1rem;
border: thin solid $gray-500;
border-radius: $radius-xs;
transition: $duration-fast;
transition-duration: $duration-fast;
}

&::-webkit-color-swatch-wrapper {
Expand Down
2 changes: 1 addition & 1 deletion src/forms/option.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

:where(option) {
padding: 0.375rem 0.75rem;
transition: $duration-fast;
transition-duration: $duration-fast;

&:checked {
background-color: $gray-200;
Expand Down
2 changes: 1 addition & 1 deletion src/forms/select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
background-position: right 0.75rem center;
background-size: 1rem 0.75rem;
border-radius: $radius-sm;
transition: $duration-fast;
transition-duration: $duration-fast;
appearance: none;
@extend %control;

Expand Down
2 changes: 1 addition & 1 deletion src/forms/textarea.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
width: 100%;
padding: 0.375rem 0.75rem;
border-radius: $radius-sm;
transition: $duration-fast;
transition-duration: $duration-fast;
appearance: none;
@extend %text;
@extend %control;
Expand Down
2 changes: 1 addition & 1 deletion src/utils/extends.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
color: $gray-100;
cursor: pointer;
border-radius: $radius-sm;
transition: $duration-fast;
transition-duration: $duration-fast;
appearance: none;

&:focus-visible {
Expand Down
5 changes: 1 addition & 4 deletions src/utils/mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,7 @@

@mixin fixed-center {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
inset: 0;
margin: auto;
}

Expand Down

0 comments on commit 46659c9

Please sign in to comment.