Skip to content

Commit

Permalink
[FEAT] 미디어쿼리 공통 CSS 추가 #30
Browse files Browse the repository at this point in the history
  • Loading branch information
moondrop0816 committed Jul 19, 2023
1 parent 5924b10 commit b52d57d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/GlobalStyle.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Global, Theme, css } from '@emotion/react';
import { mq } from './theme';

const style = (theme: Theme) =>
css({
Expand Down Expand Up @@ -27,13 +28,16 @@ const style = (theme: Theme) =>

html: {
fontSize: '62.5%',
overflowX: 'hidden',
},

body: {
fontSize: '1.6rem',
backgroundColor: `${theme.bgColor}`,
color: `${theme.fontColor}`,
fontFamily: `'Noto Sans KR','Apple SD Gothic Neo', arial, sans-serif`,
position: 'relative',
overflowX: 'hidden',
},

'img, picture, video, canvas, svg': {
Expand Down Expand Up @@ -68,6 +72,7 @@ const style = (theme: Theme) =>

'.container': {
padding: '5rem 0',
minHeight: 'calc(100vh - 25rem)',
},

// 페이지 제목
Expand All @@ -94,6 +99,16 @@ const style = (theme: Theme) =>
color: `${theme.gray2}`,
},
},

[mq[0]]: {
body: {
fontSize: '1.4rem',
},

'.inner': {
width: '90%',
},
},
});

const GlobalStyle = () => {
Expand Down

0 comments on commit b52d57d

Please sign in to comment.