Bug somewhere
All checks were successful
Build, Push, and Deploy to Nomad / docker-nomad (push) Successful in 37s

This commit is contained in:
Henrik Jess
2024-12-18 21:39:19 +01:00
parent 5d6b621a99
commit f80c529a46
6 changed files with 122 additions and 16 deletions

View File

@@ -2582,6 +2582,56 @@ button:disabled,
transform: scale(1.05);
}
.button-stack {
display: flex;
flex-direction: column-reverse;
position: relative;
margin: 50px auto;
align-items: center;
}
.stacked-button {
all: unset;
position: absolute; /* Absolut position for overlap */
top: 50%;
left: 50%;
transform-origin: center;
width: 100px; /* Standardbredde */
height: 50px; /* Standardhøjde */
background-color: transparent;
cursor: pointer;
transition: transform 0.3s ease, z-index 0.3s ease;
}
.stacked-button:hover {
transform: translate(-50%, -50%) scale(1.1); /* Zoom ved hover */
z-index: 10; /* Hover sætter knappen øverst */
}
.stacked-button:nth-child(1) {
z-index: 100; /* Højeste z-index for at sikre, at den altid ligger øverst */
transform: translate(-50%, -50%) scale(1.2); /* Gør knappen lidt større */
}
.stacked-button:nth-child(2) {
transform: translate(-50%, -60%) rotate(-15deg);
z-index: 2;
}
.stacked-button:nth-child(3) {
transform: translate(-50%, -50%) rotate(10deg);
z-index: 3;
}
.stacked-button:nth-child(4) {
transform: translate(-50%, -40%) rotate(-10deg);
z-index: 4;
}
.stacked-button:nth-child(5) {
transform: translate(-50%, -30%) rotate(15deg);
z-index: 5;
}
/* Wrapper */
#wrapper {
display: -moz-flex;

File diff suppressed because one or more lines are too long