Skip to content

Commit 3f58d74

Browse files
committed
move favicons
1 parent 7b7c39e commit 3f58d74

13 files changed

+19
-11
lines changed

src/components/Button.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ const Button = ({ to, children, secondary, ...restProps }) => {
1717
padding: '10px 15px',
1818
cursor: 'pointer',
1919
transition: 'all 150ms ease',
20-
':hover': {
21-
color: theme.colors.white,
22-
background: darken(0.1, theme.colors.primary),
20+
'@media (hover: hover)': {
21+
':hover': {
22+
color: theme.colors.white,
23+
background: darken(0.1, theme.colors.primary),
24+
},
2325
},
2426
})
2527
return to ? (

src/components/Header.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@ const Header = ({ siteTitle }) => {
4242
css={css({
4343
display: 'flex',
4444
color: theme.colors.text,
45-
':hover': {
46-
color: theme.colors.primary,
45+
'@media (hover: hover)': {
46+
':hover': {
47+
color: theme.colors.primary,
48+
},
4749
},
4850
[bpMinXL]: {
4951
transform: 'translate(-70px, 0)',

src/components/Layout.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,11 @@ const Layout = ({ site, frontmatter = {}, children, noFooter }) => {
6262
}
6363
a {
6464
color: ${theme.colors.primary};
65-
&:hover,
66-
&:focus {
67-
color: ${theme.colors.primary};
65+
@media (hover: hover) {
66+
&:hover,
67+
&:focus {
68+
color: ${theme.colors.primary};
69+
}
6870
}
6971
}
7072
blockquote {

src/lib/typography.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const fonts = {
1111
}
1212

1313
const typography = new Typography({
14-
baseFontSize: '20px',
14+
baseFontSize: '18px',
1515
baseLineHeight: 1.55,
1616
headerLineHeight: 1.4,
1717
headerFontFamily: [fonts.bold, 'sans-serif'],

src/pages/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ export default function Index({ data: { site, allMdx } }) {
3333
css={css({
3434
marginBottom: rhythm(0.3),
3535
transition: theme.transition.ease,
36-
':hover': {
37-
color: theme.brand.primary,
36+
'@media (hover: hover)': {
37+
':hover': {
38+
color: theme.brand.primary,
39+
},
3840
},
3941
})}
4042
>
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)