Skip to content

Commit

Permalink
fix(PopUp && InfoPopUp): fix padding issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Truiteseche committed Jan 21, 2024
1 parent fe64d9b commit a1bdf3a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
8 changes: 5 additions & 3 deletions src/components/generic/PopUps/InfoPopUp.css
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,10 @@
#info-pop-up-header {
margin-inline: 10px;
}

.close-button {
#pop-up-background:has(#info-pop-up) {
padding-inline: 15px;
}
#info-pop-up .close-button {
right: 0;
}
}
}
2 changes: 1 addition & 1 deletion src/components/generic/PopUps/InfoPopUp.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useState } from "react";
import PopUp from "./PopUp"

import "./InfoPopUp.css"
import "./InfoPopUp.css";

const closingCooldown = 300; // milliseconds

Expand Down
6 changes: 0 additions & 6 deletions src/components/generic/PopUps/PopUp.css
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,6 @@ body:has(#bottom-sheet) {
animation-fill-mode: forwards;
}

@media only screen and (max-width: 400px) {
#pop-up-background {
padding-inline: 15px;
}
}

@keyframes fade-in {
from {
background-color: rgba(0, 0, 0, 0);
Expand Down

0 comments on commit a1bdf3a

Please sign in to comment.