Skip to content

Commit

Permalink
design: (#123) 헤더 상단 고정
Browse files Browse the repository at this point in the history
  • Loading branch information
chsua committed Jul 25, 2023
1 parent 6fc960e commit 172865a
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 5 deletions.
4 changes: 3 additions & 1 deletion frontend/src/components/PostForm/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ import { styled } from 'styled-components';
import { theme } from '@styles/theme';

export const HeaderWrapper = styled.div`
position: fixed;
width: 100%;
position: fixed;
z-index: ${theme.zIndex.header};
@media (min-width: ${theme.breakpoint.sm}) {
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/common/Layout/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ export const WideHeaderWrapper = styled.div`
position: fixed;
top: 0;
z-index: ${theme.zIndex.header};
@media (max-width: ${theme.breakpoint.sm}) {
display: none;
visibility: hidden;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/common/NarrowMainHeader/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const Container = styled.div`
height: 55px;
padding: 0 20px;
position: absolute;
position: fixed;
top: 0;
background-color: var(--header);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const Container = styled.div`
height: 55px;
padding: 0 20px;
position: absolute;
position: fixed;
top: 0;
background-color: var(--header);
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/common/WideHeader/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const Container = styled.div`
width: 100%;
height: 70px;
position: absolute;
position: fixed;
top: 0;
background-color: var(--header);
Expand Down
8 changes: 7 additions & 1 deletion frontend/src/pages/VoteStatistics/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,18 @@ export const Container = styled.div`
flex-direction: column;
align-items: center;
${theme.breakpoint.sm}
margin-top: 50px;
margin-bottom: 20px;
@media (min-width: ${theme.breakpoint.sm}) {
margin-top: 30px;
}
`;

export const HeaderWrapper = styled.div`
position: fixed;
z-index: ${theme.zIndex.header};
@media (min-width: ${theme.breakpoint.sm}) {
display: none;
}
Expand Down
6 changes: 6 additions & 0 deletions frontend/src/pages/post/PostDetail/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,19 @@ export const Container = styled.div`
align-items: center;
margin: 70px 10px 20px 10px;
@media (min-width: ${theme.breakpoint.sm}) {
margin-top: 30px;
}
`;

export const HeaderContainer = styled.div`
position: fixed;
width: 100%;
top: 0;
z-index: ${theme.zIndex.header};
@media (min-width: ${theme.breakpoint.sm}) {
display: none;
}
Expand Down

0 comments on commit 172865a

Please sign in to comment.