File: /var/www/ippmt.kauko.lt/wp-content/plugins/ocean-elementor-widgets/assets/css/off-canvas/style.scss
// Transition
@mixin transition( $args ) {
-webkit-transition: $args;
-moz-transition: $args;
-ms-transition: $args;
-o-transition: $args;
transition: $args;
}
// Transform
@mixin transform( $args ) {
-webkit-transform: $args;
-moz-transform: $args;
-ms-transform: $args;
-o-transform: $args;
transform: $args;
}
// Box Shadow
@mixin box-shadow( $args ) {
-webkit-box-shadow: $args;
-moz-box-shadow: $args;
box-shadow: $args;
}
/*------------------------------------------------------------------
Off Canvas
-------------------------------------------------------------------*/
.oew-off-canvas-button {
a i {
font-size: 14px;
}
.elementor-align-icon-left {
margin-right: 4px;
}
.elementor-align-icon-right {
margin-left: 4px;
}
}
.oew-align-left {
text-align: left;
}
.oew-align-center {
text-align: center;
}
.oew-align-right {
text-align: right;
}
.oew-align-justify .oew-off-canvas-button a {
width: 100%;
}
.oew-off-canvas-wrap {
visibility: hidden;
@include transition( all 0.25s ease-in-out );
&,
.oew-off-canvas-overlay {
position: fixed;
top: 0;
bottom: 0;
left: 0;
z-index: 9999;
}
.oew-off-canvas-overlay {
background-color: rgba(0,0,0,.5);
cursor: pointer;
width: 100%;
height: 100%;
}
.oew-off-canvas-sidebar {
position: absolute;
top: 0;
left: 0;
background-color: #fff;
width: 325px;
height: 100%;
padding: 35px;
overflow: auto;
z-index: 10000;
@include box-shadow( 0 0 12px 0 rgba(0,0,0,.1) );
@include transition( transform 0.3s ease-in-out );
@include transform( translateX(-100%) );
}
}
.oew-off-canvas-wrap.show {
visibility: visible;
.oew-off-canvas-sidebar {
@include transform( translateX(0) );
}
}
.admin-bar .oew-off-canvas-wrap .oew-off-canvas-sidebar {
top: 32px;
height: -webkit-calc(100% - 32px);
height: calc(100% - 32px);
}
@media screen and (max-width: 782px) {
.admin-bar .oew-off-canvas-wrap .oew-off-canvas-sidebar {
top: 46px;
height: -webkit-calc(100% - 46px);
height: calc(100% - 46px);
}
}
@media screen and (max-width: 600px) {
.admin-bar .oew-off-canvas-wrap .oew-off-canvas-sidebar {
top: 0;
height: 100%;
}
}
.oew-off-canvas-close {
position: absolute;
top: 15px;
right: 15px;
width: 30px;
height: 30px;
background-color: transparent;
border: 0;
margin: 0;
padding: 0;
text-align: center;
z-index: 1000;
svg {
@include transition( all .3s ease-in-out );
}
&:hover svg {
fill: #777;
}
}
/* RTL */
body.rtl {
.oew-off-canvas-button {
.elementor-align-icon-left {
margin-left: 4px;
margin-right: 0;
}
.elementor-align-icon-right {
margin-right: 4px;
margin-left: 0;
}
}
.oew-off-canvas-wrap {
&,
.oew-off-canvas-overlay {
right: 0;
left: auto;
}
.oew-off-canvas-sidebar {
right: 0;
left: auto;
}
}
.oew-off-canvas-close {
left: 15px;
right: auto;
}
}
/*------------------------------------------------------------------
Responsive
-------------------------------------------------------------------*/
@media only screen and (max-width: 1024px) {
.oew-tablet-align-left {
text-align: left;
}
.oew-tablet-align-center {
text-align: center;
}
.oew-tablet-align-right {
text-align: right;
}
}
@media only screen and (max-width: 767px) {
.oew-mobile-align-left {
text-align: left;
}
.oew-mobile-align-center {
text-align: center;
}
.oew-mobile-align-right {
text-align: right;
}
}
@media only screen and (max-width: 320px) {
.oew-off-canvas-wrap {
width: 100%;
}
.oew-off-canvas-wrap .oew-off-canvas-sidebar {
max-width: 100%;
}
}