From 9d9b64a8efe65db801c13260afb96dfd90df4258 Mon Sep 17 00:00:00 2001 From: yzooop Date: Fri, 30 Aug 2024 15:31:18 +0900 Subject: [PATCH 1/2] =?UTF-8?q?Fix=20:=20css=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Component/Button/DeleteButtonStyle.css | 144 +++++++++++---------- src/Component/Swipe/SwipeStyle.css | 86 ++++++------ 2 files changed, 116 insertions(+), 114 deletions(-) diff --git a/src/Component/Button/DeleteButtonStyle.css b/src/Component/Button/DeleteButtonStyle.css index 5397cb6..455ed3f 100644 --- a/src/Component/Button/DeleteButtonStyle.css +++ b/src/Component/Button/DeleteButtonStyle.css @@ -1,101 +1,103 @@ /* Variables converted to standard CSS */ .deleteContainer > button { - position: relative; - display: block; - width: 25%; - height: 100%; - border: none; - background: transparent; - cursor: pointer; - z-index: 99; - outline: none; - backface-visibility: hidden; - -webkit-touch-callout: none; + position: relative; + display: block; + width: 25%; + height: 100%; + border: none; + background: transparent; + cursor: pointer; + z-index: 99; + outline: none; + backface-visibility: hidden; + -webkit-touch-callout: none; } .deleteContainer > button > div { - position: absolute; - top: 10px; - right: 0; - bottom: 0; - left: 0; - margin: auto; + position: absolute; + top: 10px; + right: 0; + bottom: 0; + left: 0; + margin: auto; } /* Delete Button Styles */ .delete:hover .top { - animation: delete 0.8s ease-out; - background: #615efc; + animation: delete 0.8s ease-out; + background: #615efc; } .delete:hover .top::before { - background: #615efc; + background: #615efc; } .delete:hover .bottom { - background: #615efc; + background: #615efc; } .delete .top { - position: absolute; - top: 2px; - width: 24px; - height: 4px; - background: rgb(88, 88, 88); - z-index: 1; + position: absolute; + top: 2px; + width: 24px; + height: 4px; + background: rgb(88, 88, 88); + z-index: 1; + right: 20px; } .delete .top::before { - content: ""; - position: absolute; - top: -2px; - left: 0; - right: 0; - bottom: 0; - margin: auto; - width: 14px; - height: 6px; - background: rgb(88, 88, 88); - border-radius: 8px; + content: ""; + position: absolute; + top: -2px; + left: 0; + right: 0; + bottom: 0; + margin: auto; + width: 14px; + height: 6px; + background: rgb(88, 88, 88); + border-radius: 8px; } .delete .bottom { - position: absolute; - top: 8px; - width: 24px; - height: 26px; - background: rgb(88, 88, 88); - border-radius: 0 0 6px 6px; + position: absolute; + top: 8px; + width: 24px; + height: 26px; + background: rgb(88, 88, 88); + border-radius: 0 0 6px 6px; + right: 20px; } /* Keyframes for Delete */ @keyframes delete { - 0% { - transform: rotate(0) translateY(0); - } - 20% { - transform: rotate(0) translateY(-4px); - } - 30% { - transform: rotate(20deg) translateY(-4px); - } - 40% { - transform: rotate(-20deg) translateY(-4px); - } - 50% { - transform: rotate(20deg) translateY(-4px); - } - 60% { - transform: rotate(-10deg) translateY(-4px); - } - 70% { - transform: rotate(10deg) translateY(-4px); - } - 80% { - transform: rotate(0) translateY(-4px); - } - 100% { - transform: rotate(0) translateY(0); - } + 0% { + transform: rotate(0) translateY(0); + } + 20% { + transform: rotate(0) translateY(-4px); + } + 30% { + transform: rotate(20deg) translateY(-4px); + } + 40% { + transform: rotate(-20deg) translateY(-4px); + } + 50% { + transform: rotate(20deg) translateY(-4px); + } + 60% { + transform: rotate(-10deg) translateY(-4px); + } + 70% { + transform: rotate(10deg) translateY(-4px); + } + 80% { + transform: rotate(0) translateY(-4px); + } + 100% { + transform: rotate(0) translateY(0); + } } diff --git a/src/Component/Swipe/SwipeStyle.css b/src/Component/Swipe/SwipeStyle.css index b4ea9c7..91fa6a4 100644 --- a/src/Component/Swipe/SwipeStyle.css +++ b/src/Component/Swipe/SwipeStyle.css @@ -1,66 +1,66 @@ .swipeableContainer { - border-top-left-radius: 20px; - border-top-right-radius: 20px; - padding: 20px; - position: fixed; - bottom: 73px; - width: 100%; - max-width: 440px; - box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.1); - transition: height 0.3s ease; - background-color: #f7f7f7; - overflow-y: auto; - left: 50%; - transform: translateX(-50%); - z-index: 1; + border-top-left-radius: 20px; + border-top-right-radius: 20px; + padding: 20px; + position: fixed; + bottom: 73px; + width: 100%; + max-width: 440px; + box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.1); + transition: height 0.3s ease; + background-color: #f7f7f7; + overflow-y: auto; + left: 50%; + transform: translateX(-50%); + z-index: 1; } @media screen and (max-width: 768px) { - .swipeableContainer { - width: 90%; - left: 47%; - } + .swipeableContainer { + width: 90%; + left: 47.5%; + } } .swipeHandle { - display: flex; - flex-direction: row; - justify-content: space-between; - align-items: center; - margin-bottom: 10px; + display: flex; + flex-direction: row; + justify-content: space-between; + align-items: center; + margin-bottom: 10px; } .swipeHandle h3 { - font-size: 16px; + font-size: 16px; } .dragHandle { - cursor: pointer; + cursor: pointer; } .dragHandle img { - width: 30px; - height: 15px; + width: 30px; + height: 15px; } .circle-button { - width: 37px; - height: 37px; - background-color: #615efc; - border-radius: 50%; - border: none; - box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3); - display: flex; - align-items: center; - justify-content: center; - cursor: pointer; - position: relative; - margin-right: 30px; + width: 37px; + height: 37px; + background-color: #615efc; + border-radius: 50%; + border: none; + box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3); + display: flex; + align-items: center; + justify-content: center; + cursor: pointer; + position: relative; + margin-right: 30px; } .plus-icon { - font-size: 35px; - color: white; - line-height: 1; - margin-top: 2px; + font-size: 35px; + color: white; + line-height: 1; + margin-top: 2px; } From 03a91dfaf801364ae4538990fee75f1b4b691a64 Mon Sep 17 00:00:00 2001 From: yzooop Date: Fri, 30 Aug 2024 15:38:53 +0900 Subject: [PATCH 2/2] =?UTF-8?q?Fix=20:=20css=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Component/Portfolio/PortfolioDetail.tsx | 1 + src/Pages/PortfolioDetailPage.tsx | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Component/Portfolio/PortfolioDetail.tsx b/src/Component/Portfolio/PortfolioDetail.tsx index a29be25..ea969a9 100644 --- a/src/Component/Portfolio/PortfolioDetail.tsx +++ b/src/Component/Portfolio/PortfolioDetail.tsx @@ -113,6 +113,7 @@ const PortfolioDetail = () => { justifyContent: "center", alignItems: "center", flexDirection: "column", + width: "100%", }} > diff --git a/src/Pages/PortfolioDetailPage.tsx b/src/Pages/PortfolioDetailPage.tsx index 87ee601..85f3af8 100644 --- a/src/Pages/PortfolioDetailPage.tsx +++ b/src/Pages/PortfolioDetailPage.tsx @@ -2,9 +2,9 @@ import PortfolioDetail from "../Component/Portfolio/PortfolioDetail"; const PortfolioDetailPage = () => { return ( - <> +
- +
); };