You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
The_Tip_Top/styles/Index.module.css

232 lines
3.4 KiB

.masthead {
--aButton-base-padding: 0px;
--aButton-grow-padding: 5px;
}
.masthead {
position: relative;
}
.bloc-content {
padding: 10vh;
border-radius: 10px;
background-image: url('/images/codebackground.webp');
background-position: 50% 50%;
background-repeat: no-repeat;
background-size: contain;
/* animation: zoomInOut 4s ease-in-out infinite; */
z-index: 9000;
}
.zoomInOutCadeau {
animation: zoomInOut 1s ease-in-out infinite;
}
.zoomInOutJeuConcours {
animation: zoomInOut 1.1s ease-in-out infinite;
}
.rotatingImage {
animation: 1s ease-in-out infinite alternate rotation;
}
.rotatingSlow {
animation: 4s ease-in-out infinite alternate rotation;
}
.blinking {
animation: blinking 1s infinite;
}
@keyframes zoomInOut {
0% {
transform: scale(1, 1);
}
50% {
transform: scale(1.05, 1.05);
}
to {
transform: scale(1, 1);
}
}
@keyframes rotation {
0% {
transform: rotate(2deg);
}
50% {
transform: rotate(-2deg);
}
to {
transform: rotate(2deg);
}
}
@keyframes blinking {
0%,
50%,
100% {
opacity: 1;
}
25%,
75% {
opacity: 0;
}
}
.zoom-in-out-box {
animation: zoom-in-zoom-out 1s ease infinite;
}
.imageWrapper {
display: block;
}
.masthead .aButton {
position: relative;
}
.masthead .aButton:after {
content: "";
position: absolute;
/* border:1px solid black; */
border-radius: 0.375rem;
display: none;
left: var(--aButton-base-padding);
top: var(--aButton-base-padding);
width: calc(100% + var(--aButton-base-padding));
height: calc(100% + var(--aButton-base-padding));
}
.masthead .aButton:hover:after {
display: block;
animation: 0.7s linear infinite alternate expand;
}
@keyframes expand {
to {
left: calc(var(--aButton-base-padding) - var(--aButton-grow-padding));
top: calc(var(--aButton-base-padding) - var(--aButton-grow-padding));
width: calc(100% + var(--aButton-base-padding) + 2 * var(--aButton-grow-padding));
height: calc(100% + var(--aButton-base-padding) + 2 * var(--aButton-grow-padding));
border: 3px solid var(--color3);
}
}
.productToGain {
background-color: var(--color1);
width: 20vw;
height: 20vw;
border-radius: 50%;
padding: 10px;
position: relative;
}
@media (min-width: 992px) {
.productToGain {
width: 13vw;
height: 13vw;
}
}
.imageContainer {
z-index: 1;
width: 20vw;
}
.feuilleGauche, .feuilleDroite, .cadeau, .jeuConcours {
position: absolute;
}
.feuilleGauche {
top: 0px;
left: 0px;
}
.feuilleDroite {
bottom: 0px;
right: 0px;
}
.cadeau {
bottom: 0px;
left: 0px;
}
.jeuConcours {
top: 0px;
right: 0px;
}
@media only screen and (min-width: 768px) {
.imageContainer {
width: 10vw;
}
}
/*grand écran*/
@media only screen and (min-width: 768px) {
.feuilleGauche {
position: absolute;
top: 1px;
left: 1px;
}
.feuilleDroite {
position: absolute;
bottom: 15px;
right: 15px;
}
.cadeau {
position: absolute;
bottom: 0px;
left: 0px;
}
.jeuConcours {
position: absolute;
top: 15px;
right: 15px;
}
}
.footerGrass {
bottom: -5px;
background-image: url('/image/footer_image.webp');
background-repeat: repeat-x;
background-size: contain;
width: 100vw;
/* animation: moveLeftRight 2s infinite; */
}
@media only screen and (min-width: 768px) {
.footerGrass {
bottom: -20px;
}
}
/* @keyframes moveLeftRight {
0%,
100% {
left: 10%;
}
50% {
right: 0;
}
} */