Skip to content

Commit

Permalink
Merge pull request #178 from 100-hours-a-week/feature/veronica
Browse files Browse the repository at this point in the history
Fix : css수정
  • Loading branch information
yzooop authored Aug 30, 2024
2 parents 460ed36 + 03a91df commit 6758d72
Show file tree
Hide file tree
Showing 4 changed files with 119 additions and 116 deletions.
144 changes: 73 additions & 71 deletions src/Component/Button/DeleteButtonStyle.css
Original file line number Diff line number Diff line change
@@ -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);
}
}
1 change: 1 addition & 0 deletions src/Component/Portfolio/PortfolioDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ const PortfolioDetail = () => {
justifyContent: "center",
alignItems: "center",
flexDirection: "column",
width: "100%",
}}
>
<TitleDiv>
Expand Down
86 changes: 43 additions & 43 deletions src/Component/Swipe/SwipeStyle.css
Original file line number Diff line number Diff line change
@@ -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;
}
4 changes: 2 additions & 2 deletions src/Pages/PortfolioDetailPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import PortfolioDetail from "../Component/Portfolio/PortfolioDetail";

const PortfolioDetailPage = () => {
return (
<>
<div style={{ display: "flex" }}>
<PortfolioDetail />
</>
</div>
);
};

Expand Down

0 comments on commit 6758d72

Please sign in to comment.