Skip to content

Commit

Permalink
Merge pull request #85 from Bibumhada/feat/84-폰트-크기-수정
Browse files Browse the repository at this point in the history
제목 폰트 사이즈 수정, 식당 이름 말줄임 적용
  • Loading branch information
cho7778 authored Feb 21, 2024
2 parents 342acb2 + 18aa89c commit d7dd5bc
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
7 changes: 7 additions & 0 deletions src/components/common/MenuCard/MenuCard.styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ export const TitleLayout = styled.div`
export const RestaurantName = styled.strong`
font-weight: var(--font-semi-bold);
font-size: var(--md);
white-space: normal;
/* word-break: keep-all; */
word-wrap: break-word;
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
`;

export const RestaurantLinkImg = styled.img`
Expand Down
5 changes: 3 additions & 2 deletions src/components/common/ResultCard/ResultCard.styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,11 @@ export const multipleWinnerRanking = styled.p`
export const RestaurantName = styled.button`
display: flex;
align-items: center;
margin: 23px 0 15px;
margin: 28px 0;
.name {
font-size: 30px;
display: inline;
font-size: var(--xl);
font-weight: var(--font-bold);
flex-grow: 1;
white-space: normal;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Poll/Poll.styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const Header = styled.header`

export const Title = styled.h1`
display: inline-block;
font-size: var(--xxl);
font-size: var(--xl);
font-weight: var(--font-bold);
color: white;
position: relative;
Expand Down
4 changes: 2 additions & 2 deletions src/pages/RandomList/RandomList.styled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const Header = styled.header`
export const Title = styled.h1`
display: inline-block;
width: 200px;
font-size: var(--xxl);
font-size: var(--xl);
font-weight: var(--font-bold);
color: white;
position: relative;
Expand All @@ -37,7 +37,7 @@ export const Title = styled.h1`
width: 27px;
height: 27px;
bottom: 2px;
right: -15px;
right: -1px;
background: url(${icon_yummy}) 0 0 no-repeat;
}
`;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Result/Result.styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const ShareResult = styled.div<ShareResultProps>`
transform: translate(-50%, 0);
color: #fff;
font-weight: var(--font-bold);
font-size: var(--xxl);
font-size: var(--xl);
line-height: 35px;
text-align: center;
white-space: pre-line;
Expand Down

0 comments on commit d7dd5bc

Please sign in to comment.