html - CSS login Modal opening but only appears in background -


my login modal (both, trigger & actual modal code) in header bar of page. works on of pages.

but on pages there may existing styling, modal open alright , page background becomes dark usual, but... of styling on page "overlay" , appear on top of modal.. result, modal not clickable...

is there way modify modal .css when it's triggered, stays on top of else?

here's .css code modal:

> .cd-user-modal {  >       position: fixed !important;  >       top: 0 !important;  >       left: 0 !important;  >       width: 100% !important;  >       height: 100% !important;  >       background: rgba(52, 54, 66, 0.9) !important;  >       z-index: 3 !important;  >       overflow-y: auto !important;  >       cursor: pointer !important;  >       visibility: hidden !important;  >       opacity: 0 !important;  >       -webkit-transition: opacity 0.3s, visibility 0.3s !important;  >       -moz-transition: opacity 0.3s, visibility 0.3s !important;  >       transition: opacity 0.3s, visibility 0.3s !important;  >     }  >     .cd-user-modal.is-visible {  >       visibility: visible !important;  >       opacity: 1 !important;  >     }  >     .cd-user-modal.is-visible .cd-user-modal-container {  >       -webkit-transform: translatey(0) !important;  >       -moz-transform: translatey(0) !important;  >       -ms-transform: translatey(0) !important;  >       -o-transform: translatey(0) !important;  >       transform: translatey(0) !important;  >     }  >     .cd-user-modal-container {  >       position: relative !important;  >       width: 90% !important;  >       max-width: 600px !important;  >       background: #fff !important;  >       margin: 3em auto 4em !important;  >       cursor: auto !important;  >       border-radius: 0.25em !important;  >       -webkit-transform: translatey(-30px) !important;  >       -moz-transform: translatey(-30px) !important;  >       -ms-transform: translatey(-30px) !important;  >       -o-transform: translatey(-30px) !important;  >       transform: translatey(-30px) !important;  >       -webkit-transition-property: -webkit-transform !important;  >       -moz-transition-property: -moz-transform !important;  >       transition-property: transform !important;  >       -webkit-transition-duration: 0.3s !important;  >       -moz-transition-duration: 0.3s !important;  >       transition-duration: 0.3s !important;  >     }  >     .cd-user-modal-container .cd-switcher:after {  >       content: "" !important;  >       display: table !important;  >       clear: both !important;  >     }  >     .cd-user-modal-container .cd-switcher li {  >       width: 50% !important;  >       float: left !important;  >       text-align: center !important;  >     }  >     .cd-user-modal-container .cd-switcher li:first-child {  >       border-radius: .25em 0 0 0 !important;  >     }  >     .cd-user-modal-container .cd-switcher li:last-child {  >       border-radius: 0 .25em 0 0 !important;  >     }  >     .cd-user-modal-container .cd-switcher {  >       display: block !important;  >       width: 100% !important;  >       height: 50px !important;  >       line-height: 50px !important;  >       background: #d2d8d8 !important;  >       color: #809191 !important;  >     }  >     .cd-user-modal-container .cd-switcher a.selected {  >       background: #fff !important;  >       color: #505260 !important;  >     }  >     @media screen , (min-width: 600px) {  >       .cd-user-modal-container {  >         margin: 4em auto !important;  >       }  >       .cd-user-modal-container .cd-switcher {  >         height: 70px !important;  >         line-height: 70px !important;  >       }  >     }  >     .cd-form {  >       padding: 1.4em !important;  >     }  >     .cd-form .fieldset {  >       position: relative !important;  >       margin: 1.4em 0 !important;  >     }  >     .cd-form .fieldset:first-child {  >       margin-top: 0 !important;  >     }  >     .cd-form .fieldset:last-child {  >       margin-bottom: 0 !important;  >     }  >     .cd-form label {  >       font-size: 14px !important;  >       font-size: 0.875rem !important;  >     }  >     .cd-form label.image-replace {  >       /* replace text icon */  >       display: inline-block !important;  >       position: absolute !important;  >       left: 15px !important;  >       top: 50% !important;  >       bottom: auto !important;  >       -webkit-transform: translatey(-50%);  >       -moz-transform: translatey(-50%);  >       -ms-transform: translatey(-50%);  >       -o-transform: translatey(-50%);  >       transform: translatey(-50%);  >       height: 20px !important;  >       width: 20px !important;  >       overflow: hidden !important;  >       text-indent: 100% !important;  >       white-space: nowrap !important;  >       color: transparent !important;  >       text-shadow: none !important;  >       background-repeat: no-repeat !important;  >       background-position: 50% 0 !important;  >     }  >     .cd-form label.cd-username {  >       background-image: url("../img/cd-icon-username.svg") !important;  >     }  >     .cd-form label.cd-email {  >       background-image: url("../img/cd-icon-email.svg") !important;  >     }  >     .cd-form label.cd-password {  >       background-image: url("../img/cd-icon-password.svg") !important;  >     }  >     .cd-form input {  >       margin: 0 !important;  >       padding: 0 !important;  >       border-radius: 0.25em !important;  >     }  >     .cd-form input.full-width {  >       width: 100% !important;  >     }  >     .cd-form input.has-padding {  >       padding: 12px 20px 12px 50px !important;  >     }  >     .cd-form input.has-border {  >       border: 1px solid #d2d8d8 !important;  >       -webkit-appearance: none;  >       -moz-appearance: none;  >       -ms-appearance: none;  >       -o-appearance: none;  >       appearance: none;  >     }  >     .cd-form input.has-border:focus {  >       border-color: #343642;  >       box-shadow: 0 0 5px rgba(52, 54, 66, 0.1);  >       outline: none;  >     }  >     .cd-form input.has-error {  >       border: 1px solid #d76666;  >     }  >     .cd-form input[type=password] {  >       /* space left hide button */  >       padding-right: 65px;  >     }  >     .cd-form input[type=submit] {  >       padding: 16px 0 !important;  >       cursor: pointer !important;  >       background: #2f889a !important;  >       color: #fff !important;  >       font-weight: bold;  >       border: none !important;  >       -webkit-appearance: none !important;  >       -moz-appearance: none !important;  >       -ms-appearance: none !important;  >       -o-appearance: none !important;  >       appearance: none !important;  >     }  >     .no-touch .cd-form input[type=submit]:hover,  >     .no-touch .cd-form input[type=submit]:focus {  >       background: #3599ae !important;  >       outline: none !important;  >     }  >     .cd-form .hide-password {  >       display: inline-block;  >       position: absolute;  >       right: 0;  >       top: 0;  >       padding: 6px 15px;  >       border-left: 1px solid #d2d8d8 !important;  >       top: 50%;  >       bottom: auto;  >       -webkit-transform: translatey(-50%);  >       -moz-transform: translatey(-50%);  >       -ms-transform: translatey(-50%);  >       -o-transform: translatey(-50%);  >       transform: translatey(-50%);  >       font-size: 14px;  >       font-size: 0.875rem;  >       color: #343642 !important;  >     }  >     .cd-form .cd-error-message {  >       display: inline-block;  >       position: absolute;  >       left: -5px;  >       bottom: -35px;  >       background: rgba(215, 102, 102, 0.9);  >       padding: .8em;  >       z-index: 2;  >       color: #fff;  >       font-size: 13px;  >       font-size: 0.8125rem;  >       border-radius: 0.25em;  >       /* prevent click , touch events */  >       pointer-events: none;  >       visibility: hidden;  >       opacity: 0;  >       -webkit-transition: opacity 0.2s 0, visibility 0 0.2s;  >       -moz-transition: opacity 0.2s 0, visibility 0 0.2s;  >       transition: opacity 0.2s 0, visibility 0 0.2s;  >     }  >     .cd-form .cd-error-message::after {  >       /* triangle */  >       content: '';  >       position: absolute;  >       left: 22px;  >       bottom: 100%;  >       height: 0;  >       width: 0;  >       border-left: 8px solid transparent;  >       border-right: 8px solid transparent;  >       border-bottom: 8px solid rgba(215, 102, 102, 0.9);  >     }  >     .cd-form .cd-error-message.is-visible {  >       opacity: 1;  >       visibility: visible;  >       -webkit-transition: opacity 0.2s 0, visibility 0 0;  >       -moz-transition: opacity 0.2s 0, visibility 0 0;  >       transition: opacity 0.2s 0, visibility 0 0;  >     }  >     @media screen , (min-width: 600px) {  >       .cd-form {  >         padding: 2em;  >       }  >       .cd-form .fieldset {  >         margin: 2em 0 !important;  >       }  >       .cd-form .fieldset:first-child {  >         margin-top: 0 !important;  >       }  >       .cd-form .fieldset:last-child {  >         margin-bottom: 0 !important;  >       }  >       .cd-form input.has-padding {  >         padding: 16px 20px 16px 50px !important;  >       }  >       .cd-form input[type=submit] {  >         padding: 16px 0 !important;  >       }  >     }  >     .cd-form-message {  >       padding: 1.4em 1.4em 0;  >       font-size: 14px;  >       font-size: 0.875rem;  >       line-height: 1.4;  >       text-align: center;  >     }  >     @media screen , (min-width: 600px) {  >       .cd-form-message {  >         padding: 2em 2em 0;  >       }  >     }  >     .cd-form-bottom-message {  >       position: absolute;  >       width: 100%;  >       left: 0;  >       bottom: -30px;  >       text-align: center;  >       font-size: 14px;  >       font-size: 0.875rem;  >     }  >     .cd-form-bottom-message {  >       color: #fff;  >       text-decoration: underline;  >     }  >     .cd-close-form {  >       /* form x button on top right */  >       display: block;  >       position: absolute;  >       width: 40px;  >       height: 40px;  >       right: 0;  >       top: -40px;  >       background: url("../img/cd-icon-close.svg") no-repeat center center;  >       text-indent: 100%;  >       white-space: nowrap;  >       overflow: hidden;  >     }  >     @media screen , (min-width: 1170px) {  >       .cd-close-form {  >         display: none;  >       }  >     }  >     #cd-login,  >     #cd-signup,  >     #cd-reset-password {  >       display: none;  >     }  >     #cd-login.is-selected,  >     #cd-signup.is-selected,  >     #cd-reset-password.is- selected {  >       display: block;  >     }

i provide here actual link page. triggers on top right (sign in / sign up) my sample page login modal

should need additionally specific source code, gladly provide it. think you'll see right in source code.

the problems z-index.

just set 9999.

.cd-user-modal {    z-index: 9999!important; } 

basically have elements have z-index bigger 3 have defined. place z-index bigger elements on page.


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -