Skip to content

Commit

Permalink
style: 스타일 파일 코드 순서 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Minn-Choi committed Nov 22, 2024
1 parent cbc396a commit 02fb7ac
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 11 deletions.
7 changes: 4 additions & 3 deletions src/components/Cart/CartSmallBtn/CartSmallBtn.styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ import styled from "@emotion/styled";
import theme from "@styles/theme";

export const StyledBtn = styled.button`
text: ${theme.colors.text_gray40};
border: 1px solid ${theme.colors.stroke_gray50};
${theme.fonts.body10_sb_11};
padding: 0.4rem 0.6rem;
border: 1px solid ${theme.colors.stroke_gray50};
border-radius: 0.5rem;
color: ${theme.colors.text_gray40};
${theme.fonts.body10_sb_11};
`;
12 changes: 8 additions & 4 deletions src/components/Cart/OrderBtn/OrderBtn.styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,26 @@ import styled from "@emotion/styled";
import theme from "@styles/theme";

export const StyledBtn = styled.button`
width: 25rem;
height: 5.6rem;
background-color: ${theme.colors.purple50};
border-radius: 10px;
color: white;
${theme.fonts.body2_b_14};
width: 25rem;
height: 5.6rem;
transition:
background-color 0.3s ease,
color 0.3s ease,
width 0.3s ease,
height 0.3s ease;
&:active {
background-color: ${theme.colors.purple60};
color: ${theme.colors.purple40};
width: 23.6rem;
height: 5.2rem;
background-color: ${theme.colors.purple60};
color: ${theme.colors.purple40};
}
`;
20 changes: 16 additions & 4 deletions src/components/homeSection1/homeSection1.styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const HomeSectionWrapper = styled.div`
width: 100vw;
height: 55.7rem;
flex-shrink: 0;
background: linear-gradient(180deg, #FFFFFF 0%, #F2F2F4 100%);
background: linear-gradient(180deg, #FFF 0%, #F2F2F4 100%);
cursor: default;
`;

Expand All @@ -33,15 +33,17 @@ export const TitleMent = styled.div`

export const Btn = styled.button`
display: inline-flex;
height: 2.6rem;
position: absolute;
align-items: center;
right: 14.5rem;
height: 2.6rem;
align-items: center;
gap: 0.6rem;
padding: 0.4rem 1rem;
border: 1px solid ${theme.colors.stroke_gray30};
border-radius: 9.9rem;
background-color: ${theme.colors.white};
color: ${theme.colors.text_gray10};
${theme.fonts.body5_r_13};
line-height: 0%;
Expand Down Expand Up @@ -74,15 +76,18 @@ export const SalePrice = styled.div`
left: -1.25rem;
justify-content: center;
align-items: center;
padding: 1.5rem 0.5rem 1.1rem 0.5rem;
padding: 1.5rem 0.5rem 1.1rem;
border-radius: 9.9rem;
background-color: ${theme.colors.purple50};
color: ${theme.colors.white};
${theme.fonts.head_b_24};
`;

export const ImgTitle = styled.p`
margin-top: 3.6rem;
color: ${theme.colors.text_gray30};
${theme.fonts.title3_b_15};
`;
Expand All @@ -92,19 +97,22 @@ export const ImgPrice = styled.div`
width: 17.8rem;
align-items: center;
justify-content: flex-start;
color: ${theme.colors.purple50};
${theme.fonts.title3_b_15};
white-space: nowrap;
p{
margin-right: 0.4rem;
margin-left: 3.3rem;
color: ${theme.colors.text_gray40};
}
`;

export const RealPrice = styled.div`
position: relative;
color: ${theme.colors.stroke_gray40};
${theme.fonts.title3_b_15};
`;
Expand All @@ -124,13 +132,15 @@ export const ProgressLayout = styled.div`
${commonFlexCenter}
width: 100vw;
gap:3.8rem;
background-color: ${theme.colors.white};
`;

export const ProgressMent = styled.div`
display: flex;
flex-direction: column;
gap: 1rem;
color: ${theme.colors.text_gray20};
${theme.fonts.body5_b_13};
Expand Down Expand Up @@ -170,7 +180,9 @@ export const ProgressFocus = styled.div`
width: 10.9rem;
height: 3.4rem;
border-radius: 2rem;
background-color: ${theme.colors.purple50};
color: ${theme.colors.white};
line-height: 0%;
`;
Expand Down

0 comments on commit 02fb7ac

Please sign in to comment.