Skip to content
14 changes: 7 additions & 7 deletions frontend/src/components/common/Header/Header.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export const MobileHeaderContainer = styled.header`
top: 0;
left: 0;
right: 0;
height: 46px;
height: 56px;
padding: 0px 20px;
margin: 0 auto;
z-index: 2;
Expand All @@ -110,28 +110,28 @@ export const MobileHeaderWrapper = styled.div`
`;

export const MobileMainIcon = styled.button`
width: 26px;
height: 22px;
width: 32.562px;
height: 26px;
background-color: transparent;
border: none;
cursor: pointer;

img {
width: 26px;
width: 32.562px;
height: auto;
object-fit: cover;
}
`;

export const MobileMenu = styled.button`
width: 18px;
height: 14px;
width: 20px;
height: 16px;
background-color: transparent;
border: none;
cursor: pointer;

img {
width: 18px;
width: 20px;
height: auto;
object-fit: cover;
}
Expand Down
45 changes: 22 additions & 23 deletions frontend/src/components/common/SearchBox/SearchBox.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@ import styled from 'styled-components';
export const SearchBoxContainer = styled.form<{ isFocused: boolean }>`
display: flex;
align-items: center;
justify-content: space-between;
width: 300px;
justify-content: center;
width: 345px;
height: 36px;
padding: 10px 20px;
padding: 3px 20px;
border: transparent;
border-radius: 41px;
background-color: #eeeeee;

@media (max-width: 500px) {
width: 270px;
height: 28px;
width: 255px;
height: 36px;
padding: 6px 16px;

border: 1px solid
${({ isFocused }) =>
Expand All @@ -22,7 +23,8 @@ export const SearchBoxContainer = styled.form<{ isFocused: boolean }>`
`;

export const SearchInputStyles = styled.input`
width: 100%;
flex: 1;
width: calc(100% - 32px);
background-color: transparent;
height: 36px;
border: none;
Expand All @@ -32,42 +34,39 @@ export const SearchInputStyles = styled.input`
&::placeholder {
transition: opacity 0.3s;
}

&:focus::placeholder {
opacity: 0;
}

@media (max-width: 550px) {
font-size: 10px;
}

@media (max-width: 500px) {
font-size: 14px;
}
`;

export const SearchButton = styled.button<{ isFocused: boolean }>`
flex-shrink: 0;
border: none;
background-color: transparent;
font-size: 16px;
cursor: pointer;
margin-top: 2px;

img {
width: 16px;
height: 16px;
}
width: 16px;
height: 16px;

@media (max-width: 698px) {
img {
width: 14px;
height: 14px;
}
}

@media (max-width: 550px) {
img {
width: 12px;
height: 12px;
}
img {
width: 100%;
height: 100%;
}

@media (max-width: 500px) {
width: 14px;
height: 14px;

filter: ${({ isFocused }) =>
isFocused
? 'invert(36%) sepia(83%) saturate(746%) hue-rotate(359deg) brightness(95%) contrast(92%)'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const BannerContainer = styled.div`
position: relative;

@media (max-width: 500px) {
margin-top: 42px;
margin-top: 56px;
padding: 0;
}
`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const CategoryButtonContainer = styled.div`
margin-top: 16px;
background-color: white;
position: sticky;
top: 46px;
top: 56px;
z-index: 1;
}
`;
Expand Down