Skip to content

Commit

Permalink
fix: use layers
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardocasares committed Nov 2, 2020
1 parent f51c912 commit 2ca6b2c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/components/Logo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@ export const Logo = () => {
stroke: "var(--accents-4)",
transform: `scale(${opacity})`,
transformOrigin: "center",
willChange: "transform, stroke",
}}
/>
<path
d="M16.24 7.76a6 6 0 010 8.49m-8.48-.01a6 6 0 010-8.49m11.31-2.82a10 10 0 010 14.14m-14.14 0a10 10 0 010-14.14"
style={{
opacity,
stroke: "var(--success)",
willChange: "opacity",
}}
/>
</svg>
Expand Down
9 changes: 6 additions & 3 deletions src/css/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,16 @@ export const styles = css`
min-height: 100%;
}
body,
input,
button {
*,
*::before,
*::after {
font-family: var(--font-family);
will-change: color, background;
transition: color 0.1s, background 0.3s, border-color 0.3s;
}
body {
font-size: 16px;
color: var(--foreground);
background: var(--background);
margin: 0;
Expand Down
1 change: 0 additions & 1 deletion src/css/reset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export const reset = css`
*::before,
*::after {
box-sizing: inherit;
transition: color 0.1s, background 0.3s, border-color 0.3s;
}
img,
Expand Down

0 comments on commit 2ca6b2c

Please sign in to comment.