mirror of
https://github.com/uetchy/namae.git
synced 2025-03-17 12:30:32 +09:00
style: set bg color white when desktop browser
This commit is contained in:
parent
9742f3abea
commit
0fc724bc21
@ -1,5 +1,5 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import styled from 'styled-components'
|
import styled, { createGlobalStyle } from 'styled-components'
|
||||||
|
|
||||||
import { useDeferredState } from './hooks/state'
|
import { useDeferredState } from './hooks/state'
|
||||||
import { mobile } from './util/css'
|
import { mobile } from './util/css'
|
||||||
@ -26,6 +26,8 @@ export default function App() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
|
<GlobalStyle />
|
||||||
<Content>
|
<Content>
|
||||||
<Header>
|
<Header>
|
||||||
<InputContainer>
|
<InputContainer>
|
||||||
@ -54,9 +56,20 @@ export default function App() {
|
|||||||
) : null}
|
) : null}
|
||||||
<Footer />
|
<Footer />
|
||||||
</Content>
|
</Content>
|
||||||
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const GlobalStyle = createGlobalStyle`
|
||||||
|
body {
|
||||||
|
background: #ffffff;
|
||||||
|
|
||||||
|
${mobile} {
|
||||||
|
background: #f5f5f5;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`
|
||||||
|
|
||||||
const Content = styled.div``
|
const Content = styled.div``
|
||||||
|
|
||||||
const Header = styled.header`
|
const Header = styled.header`
|
||||||
@ -89,6 +102,10 @@ const Logo = styled.div`
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
color: #4a90e2;
|
color: #4a90e2;
|
||||||
|
|
||||||
|
${mobile} {
|
||||||
|
font-size: 15px;
|
||||||
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
const Input = styled.input.attrs({
|
const Input = styled.input.attrs({
|
||||||
|
@ -11,7 +11,6 @@ body {
|
|||||||
sans-serif;
|
sans-serif;
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
background: #f5f5f5;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
code {
|
code {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user