// from touchequelux body { &.popup_open { overflow: hidden; .popup { opacity: 1; } } } .popup { z-index: 1000; overflow: hidden; position: fixed; top: 0; left: 0; // right: 0; // bottom: 0; bottom: 100%; width: 100%; overflow: auto; background: $color__primary; opacity: 0; transition: opacity .2s $mainEase; @media all and (-ms-high-contrast:none) { // ie11 overflow-x: hidden; } // position: absolute; // bottom: 0; // TEMP AFFICHER POPUP FORM // &__center { // position: absolute; // top: 50%; // left: 50%; // @include translate( -50%, -50% ); // max-width: 1100px; // width: calc( 100% - 100px ); // // @include maintain-aspect-ratio( 90%, 56% ); // 16/9 // height: auto; // background-color: $color__white; // @media screen and (max-width: 600px) and (orientation: portrait) { // width: calc( 100% - 40px ); // } // } // &__content { // position: absolute; // top: 0; // left: 0; // width: 100%; // // height: 100%; // // overflow: auto; // si long formulaire // } &__center { z-index: 1002; position: absolute; // top: 430px; // top: 0; top: 60px; left: 50%; transform: translateX(-50%); // attention js transform @media screen and (max-width: 850px) { width: calc( 100% - 40px ); } // position: relative; // margin-top: 50px; // margin-bottom: 50px; // overflow: auto; // position: absolute; // top: 0; // right: 0; // left: 0; // bottom: 0; // overflow: auto; // z-index: 5; // &--overlay { // z-index: 6; // background-color: gray; // } } &__close { z-index: 3; position: absolute; top: -30px; // top: 30px; left: calc(100% - 30px); // left: calc(50% + 550px); cursor: pointer; width: 60px; height: 60px; // @include mygradient; // color: $color__white; border-radius: 50%; // z-index: 6; // box-shadow: 0px 10px 15px -10px $color__secondary; background-color: $color__tertiary !important; color: $color__white; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; transition: color 0.2s $mainEase; padding: 0; // &:hover, &:focus { // color: $color__primary; // } // @media screen and (max-width: 1200px) { // left: calc(50% + 370px); // } // @media screen and (max-width: 850px) and (orientation: portrait) { @media screen and (max-width: 850px) { // top: auto; // bottom: 100%; // left: auto; // right: 0; // margin-left: auto; left: auto; right: 0; } .icon { font-size: 10px; line-height: 10px; } } &__content { // z-index: 1; border-radius: 8px; position: relative; width: 800px; // max-width: 1160px; margin: auto; background-color: $color__background--light; margin-bottom: 60px; // margin-top: 60px; // z-index: 5; // @media screen and (max-width: 1200px) { // width: 800px; // } @media screen and (max-width: 850px) { width: 100%; // width: calc(100% - 40px); } } &__overlay { z-index: 1001; position: absolute; top: 0; left: 0; width: 100%; height: 100%; // right: 0; // bottom: 0; // width: 100%; // height: 100%; // background-color: rgba( $color__primary, .8 ); background-color: transparent; z-index: -1; // important pour le scroll // z-index: 4; // background-color: darkblue; } // section, localisé dans footer.php .home__form { padding: 60px; @media screen and (max-width: 850px) { padding: 30px; } @media screen and (max-width: 500px) { padding: 30px 20px; } &__title { font-weight: 300; font-size: 36px; line-height: 62px; margin-bottom: 20px; letter-spacing: 0; max-width: 1040px; @media only screen and (max-width: 1000px) { font-size: 25px; line-height: 35px; margin-bottom: 25px; } } &__content { max-width: 800px; } &__formContainer { margin-top: 50px; // shortcode ninja dans le php } } }