Skip to content

Commit

Permalink
Merge pull request #91 from syfxlin/develop
Browse files Browse the repository at this point in the history
fix(style): Update transition property
  • Loading branch information
syfxlin authored Jan 28, 2024
2 parents 67ba0ff + 792f533 commit b902c1b
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 29 deletions.
2 changes: 1 addition & 1 deletion src/components/docs/code/styles.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const container = styled.css`
right: 0;
top: 0;
z-index: 1;
transition: opacity 0.3s;
transition: opacity 0.3s, color 0.3s, background-color 0.3s;
}
&:hover::before {
Expand Down
6 changes: 3 additions & 3 deletions src/components/docs/heading/styles.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ export const container = styled.css`
background: linear-gradient(${theme.color.text.primary} 30%, ${theme.color.text.primary} 70%);
box-shadow: ${theme.color.text.primary} 0 ${theme.borderWidth.calc(1)} ${theme.borderWidth.calc(3)};
border-radius: ${theme.borderWidth.calc(4)};
transition: all 0.25s ease 0s;
transition: all 0.25s ease 0s, color 0.3s, background-color 0.3s;
z-index: 1;
}
> a {
opacity: 0;
transition: opacity 0.3s !important;
transition: opacity 0.3s, color 0.3s, background-color 0.3s !important;
text-decoration: none !important;
border: none !important;
position: absolute !important;
Expand All @@ -39,7 +39,7 @@ export const container = styled.css`
color: ${theme.color.text.description};
font-size: ${theme.fontSize.calc(0.5)};
padding-left: ${theme.spacing.calc(1)};
transition: opacity 0.3s;
transition: opacity 0.3s, color 0.3s, background-color 0.3s;
}
}
Expand Down
5 changes: 1 addition & 4 deletions src/components/layouts/article-info/styles.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ export const article = styled.css`
margin: ${theme.spacing.calc(2)} ${theme.spacing.calc(-5)};
border-radius: ${theme.borderRadius.calc(0.8)};
color: ${theme.color.text.primary};
transition:
color 0.3s,
background-color 0.3s,
box-shadow 0.3s;
transition: color 0.3s, background-color 0.3s, box-shadow 0.3s;
&:hover {
background-color: ${theme.color.background.hover};
Expand Down
2 changes: 1 addition & 1 deletion src/components/layouts/hero/styles.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const avatar = styled.css`
height: ${theme.size.calc(25)} !important;
border-radius: ${theme.borderRadius.half} !important;
filter: ${theme.color.image.filter} !important;
transition: filter 0.3s !important;
transition: filter 0.3s, color 0.3s, background-color 0.3s !important;
`;

export const author = styled.css`
Expand Down
12 changes: 3 additions & 9 deletions src/components/root/spotlight/styles.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ import { theme } from "../../../theme/theme.css";
import { iconify } from "../../ui/iconify/query";

export const root = styled.css`
transition-property: visibility;
transition-duration: 0.3s;
transition-timing-function: ease;
transition: visibility 0.3s ease, color 0.3s, background-color 0.3s;
`;

export const background = styled.css`
Expand All @@ -18,9 +16,7 @@ export const background = styled.css`
left: 0;
right: 0;
z-index: 9;
transition-property: opacity;
transition-duration: 0.3s;
transition-timing-function: ease;
transition: opacity 0.3s ease, color 0.3s, background-color 0.3s;
&::after {
content: "";
Expand Down Expand Up @@ -49,9 +45,7 @@ export const container = styled.css`
padding-bottom: ${theme.spacing.calc(10)};
pointer-events: none;
transition-property: opacity;
transition-duration: 0.3s;
transition-timing-function: ease;
transition: opacity 0.3s ease, color 0.3s, background-color 0.3s;
transform-origin: center center;
`;

Expand Down
2 changes: 1 addition & 1 deletion src/components/templates/articles/styles.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const heading = styled.css`
background: linear-gradient(${theme.color.text.primary} 30%, ${theme.color.text.primary} 70%);
box-shadow: ${theme.color.text.primary} 0 ${theme.borderWidth.calc(1)} ${theme.borderWidth.calc(3)};
border-radius: ${theme.borderWidth.calc(4)};
transition: all 0.25s ease 0s;
transition: all 0.25s ease 0s, color 0.3s, background-color 0.3s;
z-index: 1;
}
`;
5 changes: 1 addition & 4 deletions src/components/ui/button/styles.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ export const button = styled.css`
color: ${theme.color.text.primary};
gap: ${theme.spacing.calc(1)};
cursor: pointer;
transition:
color 0.3s,
background-color 0.3s,
box-shadow 0.3s;
transition: color 0.3s, background-color 0.3s, box-shadow 0.3s;
&:hover,
&.active {
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/link/styles.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const link = styled.css`
position: relative;
color: ${theme.color.text.primary};
border-bottom: ${theme.borderWidth.calc(1)} ${theme.borderStyle.default} ${theme.color.background.focus};
transition: border 0.3s;
transition: border 0.3s, color 0.3s, background-color 0.3s;
&.active,
&:hover,
Expand Down
4 changes: 2 additions & 2 deletions src/components/widgets/toc/styles.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const container = styled.css`
opacity: 0.5;
overflow-y: auto;
overflow-x: hidden;
transition: opacity 0.6s;
transition: opacity 0.6s, color 0.3s, background-color 0.3s;
}
&:hover {
Expand Down Expand Up @@ -61,7 +61,7 @@ export const item = styled.css`
margin: 0 ${theme.spacing.calc(2.5)};
color: ${theme.color.text.description};
border: none;
transition: color 0.3s;
transition: color 0.3s, color 0.3s, background-color 0.3s;
&.active,
&:hover,
Expand Down
4 changes: 1 addition & 3 deletions src/theme/global.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ styled.global`
letter-spacing: ${theme.letterSpacing.wide};
scroll-behavior: smooth;
word-break: break-word;
transition:
color 0.3s,
background-color 0.3s;
transition: color 0.3s, background-color 0.3s;
-moz-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
Expand Down

0 comments on commit b902c1b

Please sign in to comment.