.dlab-demo-panel { #{$dlab-pos-right}: -100%; position: fixed; top: 0; width: 100%; height: 100vh; transition: all .5s ease-in-out; z-index: 9999; .dlab-demo-trigger { position: absolute; z-index: 9; top: 21.75rem; #{$dlab-pos-right}: 100%; background-color: $secondary; color: $white; display: inline-block; height: 3rem; width: 3rem; text-align: center; font-size: 1.75rem; line-height: 3rem; border-radius: 0; border-top-#{$dlab-pos-left}-radius : $radius; border-bottom-#{$dlab-pos-left}-radius : $radius; box-shadow: -5px 3px 5px 0px rgba(119, 119, 119, 0.15); @include custommq($max: 1023px) { display:none; } @include respond ('phone'){ height:35px; width:35px; line-height:35px; font-size: 22px; } } .dlab-demo-close{ height:30px; color:$black; width:30px; border-radius:$radius; background:$white; line-height:30px; text-align:center; } &.show { #{$dlab-pos-right}: 0; box-shadow: 0px 0px 50px rgba(0 ,0 ,0 ,0.2); z-index: 99999; overflow:hidden; .sidebar-right-trigger{ display:none; } .bg-close{ position:fixed; z-index: -2; cursor:pointer; width:100%; height:100%; top:0; #{$dlab-pos-left}:0; background:rgba($black,0.6); } } .dlab-demo-inner{ padding: 30px 30px; background:#331e1e9e; } .dlab-demo-content{ height: calc(100vh - 200px); padding: 0 15px; margin: 0 -15px; overflow-y: auto; .text-black{ color:$black!important; } } .dlab-demo-header{ display:flex; justify-content:space-between; align-items:center; margin-bottom: 20px; h4{ margin-bottom:0; color:$black!important; } } .dlab-demo-bx{ height:300px; overflow:hidden; border:2px solid #efefef; box-shadow:0px 5px 10px rgba(0,0,0,0.1); margin-bottom: 10px; border-radius: 5px; &.demo-active{ border-color:$secondary; .overlay-layer{ opacity: 1; } } } .overlay-bx{ position:relative; .overlay-layer{ position: absolute; top: 0; bottom: 0; #{$dlab-pos-left}: 0; #{$dlab-pos-right}: 0; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; background-color: rgba(0,0,0,.1); -webkit-transition: all .3s ease; transition: all .3s ease; opacity: 0; } &:hover{ .overlay-layer{ -webkit-transition: all .3s ease; transition: all .3s ease; opacity: 1; } } } @include respond ('phone'){ .dlab-demo-bx{ height:230px; } } }