Zelda64Recomp/assets/scss/styles/components/Launcher.scss

109 lines
1.8 KiB
SCSS
Raw Normal View History

2024-01-07 22:33:22 +01:00
2024-01-10 17:03:10 +01:00
// TODO: Affect all elements with launcher fade-in
// @keyframes fade-launcher-in {
// 0% {
// opacity: 0;
// }
// to {
// opacity: 1;
// }
// }
2024-01-07 22:33:22 +01:00
.launcher {
display: block;
position: relative;
2024-01-07 22:33:22 +01:00
flex-direction: row;
justify-content: space-between;
width: 100%;
height: 100%;
background-color: $color-background-1;
}
.launcher__vertical-split {
display: flex;
position: absolute;
top: 0;
right: 50%;
bottom: 0;
left: 0;
flex-direction: column;
align-items: flex-start;
justify-content: space-between;
2024-01-07 22:33:22 +01:00
&--right {
right: 0;
left: 50%;
align-items: flex-end;
2024-01-07 22:33:22 +01:00
}
}
2024-01-10 17:03:10 +01:00
@keyframes slide-mm-bg-over {
0% {
transform: translateX(space(100));
}
100% {
2024-01-10 17:03:10 +01:00
transform: translateX(space(0));
}
}
.launcher__background-wrapper {
display: flex;
position: absolute;
top: -55vw;
right: -100%;
2024-01-10 17:03:10 +01:00
bottom: -50vw;
left: -70vw;
align-items: center;
justify-content: flex-start;
2024-01-10 17:03:10 +01:00
transform: translateX(space(0));
animation: 25s cubic-out 1 slide-mm-bg-over;
}
@keyframes fade-mm-in {
0% {
opacity: 0;
}
100% {
2024-01-10 17:03:10 +01:00
opacity: 0.1;
}
}
.launcher__background-mm {
position: absolute;
top: 0;
bottom: 0;
left: 0;
2024-01-10 17:03:10 +01:00
width: auto;
height: 100%;
2024-01-10 17:03:10 +01:00
animation: 2.5s cubic-in-out 1 fade-mm-in;
opacity: 0.1;
2024-01-10 17:03:10 +01:00
}
2024-01-07 22:33:22 +01:00
.launcher__title-quadrant {
flex: 1 1 auto;
width: auto;
height: auto;
padding-top: space(96);
padding-left: space(96);
2024-01-07 22:33:22 +01:00
&--right {
padding-right: space(96);
padding-left: 0;
}
}
.launcher__content-quadrant {
display: flex;
position: relative;
flex: 1 1 100%;
2024-01-07 22:33:22 +01:00
flex-direction: column;
align-items: flex-start;
justify-content: flex-end;
width: 100%;
height: auto;
padding: space(32);
2024-01-07 22:33:22 +01:00
}