Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Vital-Vuillaume committed Dec 31, 2023
1 parent d127d19 commit f70c65f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
14 changes: 11 additions & 3 deletions My-Website.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ body {
width: 283px;
position: fixed;
transition: 0.5s;
z-index: 100;
z-index: 10000;

}

Expand All @@ -51,6 +51,7 @@ body {
border-bottom: 1px solid rgb(78, 78, 78);
box-shadow: 0 20px 30px #1111118c;
transition: 0.15s;

}

.custom-menu .premier {
Expand Down Expand Up @@ -134,7 +135,7 @@ img, .custom-menu {
transition: background-color 0s, width 1.1s;
overflow-x: hidden;
border-radius: 15px;
z-index: 20000;
z-index: 2000;
}


Expand Down Expand Up @@ -503,7 +504,7 @@ body.active ::placeholder, body.active ::-moz-placeholder {
width: max-content;
padding: 30px;
border-radius: 20px;
position: absolute;
position: fixed;
left: 50%;
top: 50%;
transform: translate(-42.5%, -50%);
Expand Down Expand Up @@ -881,6 +882,7 @@ body.active ::placeholder, body.active ::-moz-placeholder {
transform: translate(-50%, -50%);
padding: 15px;
font-size: 4vw;
background-color: rgb(199 199 199 / 36%);

}

Expand All @@ -890,6 +892,12 @@ body.active ::placeholder, body.active ::-moz-placeholder {
gap: 80px;

}

.btnPopup {

background-color: rgb(199 199 199 / 36%);

}
}

@media screen and (max-width: 350px) {
Expand Down
8 changes: 4 additions & 4 deletions My-Website.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const curseur = document.querySelector('.curseur');
const curseurCustom = document.querySelector('.curseurCustom');
const reset = document.querySelector('.reset');
const popup = document.querySelector('.popup');
const btnPopup = document.querySelector('.ok');
const btnPopup = document.querySelector('.valider');
const annuler = document.querySelector('.annuler');

//-----Afficher la section 1 par defaut----\\
Expand Down Expand Up @@ -78,7 +78,7 @@ function toggleCustomMenu(e) {
const windowWidth = window.innerWidth;
const windowHeight = window.innerHeight;

const menuMargin = 11;
const menuMargin = 0;

let menuX = mouseX;
let menuY = mouseY;
Expand Down Expand Up @@ -555,7 +555,7 @@ reset.onclick = function() {
if (isPopupVisible === true) {
popup.style.visibility = "visible";
popup.style.opacity = 1;
body.style.overflow = "hidden";
section3.style.overflow = "hidden";
};
};

Expand All @@ -576,6 +576,6 @@ function btnPopupClickHandler(event) {
annuler.onclick = function() {
popup.style.visibility = "hidden";
popup.style.opacity = 0;
body.style.overflow = "auto";
section3.style.overflow = "auto";
isPopupVisible = false;
};
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
<div class="btnParametres reset">Reset</div>
<div class="popup">Les paramètres seront remis par défaut.
<div class="sectionBtn">
<div class="btnPopup ok">Valider</div>
<div class="btnPopup valider">Valider</div>
<div class="btnPopup annuler">Annuler</div>
</div>
</div>
Expand Down

0 comments on commit f70c65f

Please sign in to comment.