FIXED CSS

This commit is contained in:
ishak jmilou.ishak
2024-11-04 14:06:27 +01:00
parent 7cc2fbd8ec
commit 1b747edb8d
2 changed files with 30 additions and 22 deletions

View File

@@ -73,47 +73,51 @@ body {
transition: transform 0.2s ease, background-color 0.2s ease;
}
/* Middenknop */
.btn:nth-child(1) {
/* Direction buttons */
.btn:nth-child(1) { /* Left */
top: 50%;
left: 50%;
transform: translate(-125%, -50%);
transform: translate(-160%, -50%);
}
/* Knop boven */
.btn:nth-child(2) {
.btn:nth-child(2) { /* Up */
top: 0;
left: 50%;
transform: translateX(-50%);
transform: translate(-50%, -35%);
}
/* Knop rechts */
.btn:nth-child(3) {
.btn:nth-child(3) { /* Right */
top: 50%;
right: 0;
transform: translateY(-50%);
transform: translate(35%,-50%);
}
/* Knop onder */
.btn:nth-child(4) {
.btn:nth-child(4) { /* Down */
bottom: 0;
left: 50%;
transform: translateX(-50%);
transform: translate(-50%, 35%);
}
/* Knop links */
.btn:nth-child(5) {
.btn:nth-child(5) { /* Stop Button */
top: 50%;
left: 0;
transform: translateY(-50%);
left: 50%;
transform: translate(-50%, -50%);
background-color: red; /* Distinct color for the stop button */
width: 60px; /* Slightly larger for emphasis */
height: 60px; /* Slightly larger for emphasis */
line-height: 60px; /* Center text vertically */
}
/* Hover effects */
.btn:hover {
background-color: #0056b3;
/* transform: scale(1.1); */
}
.btn:active {
background-color: #004494;
}
.stop-button:hover {
background-color: darkred; /* Different hover color for the stop button */
}