Skip to content
Snippets Groups Projects
Commit a4c7fbf9 authored by Minseo Lee's avatar Minseo Lee
Browse files

feat: everything's max-width 768px

parent eac70125
No related branches found
No related tags found
No related merge requests found
<!DOCTYPE html>
<html lang="en">
<html lang="en" style="margin: 0 auto">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
......
......@@ -3,6 +3,7 @@
bottom: 0;
z-index: 10;
width: 100vw;
max-width: 768px;
height: 50vh;
border-top: 2px solid var(--brand-color);
background-color: white;
......
.container {
height: var(--header-height);
width: 100%;
width: 100vw;
max-width: 768px;
padding: 15px;
font-weight: bold;
......
......@@ -3,6 +3,7 @@
top: 75px;
margin: 0 auto;
width: 80%;
max-width: calc(768px * 0.8);
left: 50%;
transform: translate(-50%, -50%);
z-index: 10;
......
......@@ -11,11 +11,18 @@ body {
-moz-osx-font-smoothing: grayscale;
}
#root {
max-width: 768px;
}
html {
height: 100vh;
width: 100vw;
max-width: 768px;
margin: 0 auto;
}
a {
text-decoration: none;
color: black;
......
......@@ -36,8 +36,9 @@
}
.item-remove {
position: absolute;
position: relative;
right: 20px;
font-size: 36px;
float: right;
cursor: pointer;
}
......@@ -50,11 +51,10 @@
}
.item-text {
width: calc(100% - 88px);
display: flex;
flex-direction: column;
justify-content: space-between;
width: 100%;
}
.item-name {
......@@ -71,10 +71,11 @@
.nav {
position: fixed;
bottom: 0;
width: 100%;
height: 56px;
background-color: white;
padding: 8px;
max-width: calc(768px - 8px);
width: 100%;
}
.nav-btn {
......
......@@ -85,7 +85,6 @@ const CartPage: GFC = ({ connector }) => {
cartItem?.menus.map((d, i) => {
return (
<div className={S['item']} key={`item-${i}`}>
<div onClick={() => handleRemoveItem(i)} className={S['item-remove']}>x</div>
<img className={S['item-image']} src={d.image}
alt={`item-${d.name}`}
/>
......@@ -94,6 +93,7 @@ const CartPage: GFC = ({ connector }) => {
<span className={S['item-price']}>{moneyFormatter(d.price * quantities[i])}</span>
<QuantityController quantity={quantities[i]} setQuantity={setQuantities} index={i} />
</div>
<div onClick={() => handleRemoveItem(i)} className={S['item-remove']}>x</div>
</div>
);
})
......
......@@ -24,9 +24,10 @@
}
.price {
position: absolute;
position: relative;
float: right;
right: 16px;
bottom: 16px;
font-size: 20px;
}
......
.container {
width: 100vw;
max-width: 768px;
height: 100vh;
margin-top: calc(-1*var(--header-height));
......
......@@ -59,6 +59,7 @@
bottom: 0;
padding-bottom: 24px;
width: calc(100% - 48px);
max-width: calc(768px - 48px);
}
.bs-bottom button {
......
.container {
width: 100vw;
max-width: 768px;
height: 100vh;
margin-top: calc(-1*var(--header-height));
......
.container {
width: 100vw;
max-width: 768px;
height: 100vh;
margin-top: -48px;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment