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