Skip to content

Commit

Permalink
Merge pull request #250 from boostcampwm-2021/design/reactive#249
Browse files Browse the repository at this point in the history
[Design] ์•ฝ๊ฐ„์˜ ๋ฐ˜์‘ํ˜•
  • Loading branch information
LeeMir authored Dec 4, 2021
2 parents c4287ea + b8dbe95 commit 3f3b782
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions frontend/src/styles/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import { ColorCode } from '@utils/constants';

const GlobalStyle = createGlobalStyle`
${reset}
html {
font-size: calc(0.35vw + 8.74px);
}
html,
body,
span,
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/templates/BoardTemplate/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@ import styled from 'styled-components';

export const Layout = styled.div`
position: relative;
width: 100%;
height: 100%;
overflow: hidden;
`;
2 changes: 1 addition & 1 deletion frontend/src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const TeamCard = {
HEIGHT: '15rem',
};

const REM = 16; // TODO: ๋ฐ˜์‘ํ˜• (style๊ณผ ๋ณ„๋„๋กœ ์ ์šฉ)
const REM = window.innerWidth * 0.0035 + 8.74; // 0.35vw + 8.74px

// const converRemToPx = (rem: number) => rem * parseFloat(getComputedStyle(document.documentElement).fontSize);

Expand Down

0 comments on commit 3f3b782

Please sign in to comment.