Skip to content

Commit

Permalink
[FE] feature: Breadcrumb 컴포넌트에 반응형 추가 (#645)
Browse files Browse the repository at this point in the history
* feat: Breadcrumb 컴포넌트에 반응형 코드 추가

* chore: 폰트 크기에 theme 반영
  • Loading branch information
ImxYJL authored Sep 20, 2024
1 parent 2a22252 commit b514f2a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions frontend/src/components/common/Breadcrumb/styles.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
import styled from '@emotion/styled';

import media from '@/utils/media';

export const BreadcrumbList = styled.ul`
display: flex;
max-height: ${({ theme }) => theme.componentHeight.breadCrumb};
padding: ${({ theme }) => theme.breadcrumbSize.paddingLeft} 0 0 2.5rem;
font-size: 1.5rem;
${media.xSmall} {
${({ theme }) => theme.fontSize.small};
}
list-style: none;
`;

Expand All @@ -17,6 +24,10 @@ export const BreadcrumbItem = styled.li`
&:not(:last-child)::after {
content: '/';
margin: 0 2rem;
${media.xSmall} {
margin: 0 1rem;
}
}
&:last-child {
Expand Down

0 comments on commit b514f2a

Please sign in to comment.