| 1 |
.eel-offcanvas.modern{ |
| 2 |
width: 100%; |
| 3 |
} |
| 4 |
.eel-offcanvas:not(.modern){ |
| 5 |
position: fixed; |
| 6 |
top: 0; |
| 7 |
right: 0; |
| 8 |
width: 380px; |
| 9 |
height: 100%; |
| 10 |
background: #fff; |
| 11 |
transform: translateX(100%); |
| 12 |
transition: transform 0.3s ease; |
| 13 |
z-index: 999999; |
| 14 |
padding: 60px 25px 40px 40px; |
| 15 |
overflow-y: auto; |
| 16 |
&.eel-offcanvas-left{ |
| 17 |
left: 0; |
| 18 |
right: auto; |
| 19 |
transform: translateX(-100%); |
| 20 |
} |
| 21 |
} |
| 22 |
|
| 23 |
.eel-offcanvas.modern{ |
| 24 |
position: fixed; |
| 25 |
background: #fff; |
| 26 |
top: 0; |
| 27 |
left: 0; |
| 28 |
right: 0; |
| 29 |
bottom: 0; |
| 30 |
height: 100%; |
| 31 |
z-index: 999999; |
| 32 |
padding: 60px 100px 40px 40px; |
| 33 |
overflow-y: auto; |
| 34 |
visibility: hidden; |
| 35 |
opacity: 0; |
| 36 |
transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1); |
| 37 |
} |
| 38 |
|
| 39 |
body.eel-offcanvas-active .eel-offcanvas.modern{ |
| 40 |
visibility: visible; |
| 41 |
opacity: 1; |
| 42 |
} |
| 43 |
|
| 44 |
body.logged-in{ |
| 45 |
.eel-offcanvas { |
| 46 |
padding: 80px 25px 40px 40px; |
| 47 |
.eel-nav-menu-icon{ |
| 48 |
top: 50px; |
| 49 |
} |
| 50 |
} |
| 51 |
} |
| 52 |
|
| 53 |
body.logged-in{ |
| 54 |
.eel-offcanvas { |
| 55 |
padding: 80px 25px 40px 40px; |
| 56 |
.eel-nav-menu-icon{ |
| 57 |
top: 50px; |
| 58 |
} |
| 59 |
} |
| 60 |
} |
| 61 |
|
| 62 |
body.eel-offcanvas-active .eel-offcanvas:not(.modern) { |
| 63 |
transform: translateX(0); |
| 64 |
} |
| 65 |
|
| 66 |
body.eel-offcanvas-active::before { |
| 67 |
content: ''; |
| 68 |
position: fixed; |
| 69 |
top: 0; |
| 70 |
left: 0; |
| 71 |
width: 100%; |
| 72 |
height: 100%; |
| 73 |
background: rgba(0,0,0,0.4); |
| 74 |
z-index: 99999; |
| 75 |
} |
| 76 |
|
| 77 |
.eel-offcanvas-close{ |
| 78 |
position: absolute; |
| 79 |
top: 20px; |
| 80 |
right: 25px; |
| 81 |
font-size: 25px; |
| 82 |
border-radius: 100%; |
| 83 |
border: none; |
| 84 |
cursor: pointer; |
| 85 |
color: #000; |
| 86 |
z-index: 1; |
| 87 |
padding: 0; |
| 88 |
display: grid; |
| 89 |
place-content: center; |
| 90 |
margin: 0 auto; |
| 91 |
svg{ |
| 92 |
height: 1em; |
| 93 |
fill: currentColor; |
| 94 |
} |
| 95 |
} |
| 96 |
|
| 97 |
.eel-offcanvas-toggle-text{ |
| 98 |
cursor: pointer; |
| 99 |
display: flex; |
| 100 |
align-items: center; |
| 101 |
svg{ |
| 102 |
width: 20px; |
| 103 |
height: 20px; |
| 104 |
} |
| 105 |
.eel-icon-text{ |
| 106 |
margin-right: 6px; |
| 107 |
font-style: normal; |
| 108 |
} |
| 109 |
} |
| 110 |
|
| 111 |
.eel-modern-close-toggle, |
| 112 |
.modern.eel-offcanvas-wrapper label { |
| 113 |
position: relative; |
| 114 |
width: 36px; |
| 115 |
height: 36px; |
| 116 |
cursor: pointer; |
| 117 |
span { |
| 118 |
position: absolute; |
| 119 |
width: 100%; |
| 120 |
height: 2px; |
| 121 |
background: #000; |
| 122 |
display: block; |
| 123 |
left: 0; |
| 124 |
transition: 0.3s ease-in-out; |
| 125 |
&:nth-of-type(1) { |
| 126 |
top: 27%; |
| 127 |
} |
| 128 |
&:nth-of-type(2) { |
| 129 |
top: 50%; |
| 130 |
} |
| 131 |
&:nth-of-type(3) { |
| 132 |
bottom: 22%; |
| 133 |
} |
| 134 |
} |
| 135 |
} |
| 136 |
|
| 137 |
|
| 138 |
.eel-offcanvas{ |
| 139 |
&.eel-blur-effect{ |
| 140 |
backdrop-filter: blur(10px); |
| 141 |
-webkit-backdrop-filter: blur(10px); |
| 142 |
} |
| 143 |
} |
| 144 |
|
| 145 |
|
| 146 |
body.eel-offcanvas-active .eel-modern-close-toggle span, |
| 147 |
body.eel-offcanvas-active .modern.eel-offcanvas-wrapper label span { |
| 148 |
transition: |
| 149 |
transform 0.6s cubic-bezier(0.77, 0, 0.175, 1) 0.4s, |
| 150 |
opacity 0.3s ease 0.4s; |
| 151 |
} |
| 152 |
|
| 153 |
body.eel-offcanvas-active .eel-modern-close-toggle span:nth-of-type(1), |
| 154 |
body.eel-offcanvas-active .modern.eel-offcanvas-wrapper label span:nth-of-type(1) { |
| 155 |
transform: rotate(45deg) translateY(-50%); |
| 156 |
top: 50%; |
| 157 |
transition-delay: 0.8s; |
| 158 |
} |
| 159 |
|
| 160 |
body.eel-offcanvas-active .eel-modern-close-toggle span:nth-of-type(2), |
| 161 |
body.eel-offcanvas-active .modern.eel-offcanvas-wrapper label span:nth-of-type(2) { |
| 162 |
transform: scale(0); |
| 163 |
opacity: 0; |
| 164 |
transition-delay: 0.6s; |
| 165 |
} |
| 166 |
|
| 167 |
body.eel-offcanvas-active .eel-modern-close-toggle span:nth-of-type(3), |
| 168 |
body.eel-offcanvas-active .modern.eel-offcanvas-wrapper label span:nth-of-type(3) { |
| 169 |
transform: rotate(-45deg) translateY(50%); |
| 170 |
bottom: 50%; |
| 171 |
transition-delay: 0.8s; |
| 172 |
} |
| 173 |
|
| 174 |
.eel-offcanvas.modern .eel-offcanvas-panel{ |
| 175 |
height: 100%; |
| 176 |
display: grid; |
| 177 |
align-items: center; |
| 178 |
} |
| 179 |
.eel-modern-close{ |
| 180 |
top: 50%; |
| 181 |
transform: translateY(-50%); |
| 182 |
cursor: pointer; |
| 183 |
} |
| 184 |
|
| 185 |
.eel-offcanvas.modern .eel-offcanvas-content{ |
| 186 |
transform: translateY(60px); |
| 187 |
opacity: 0; |
| 188 |
transition: |
| 189 |
transform 0.8s cubic-bezier(0.77, 0, 0.175, 1), |
| 190 |
opacity 0.5s ease; |
| 191 |
} |
| 192 |
|
| 193 |
body.eel-offcanvas-active .eel-offcanvas.modern .eel-offcanvas-content{ |
| 194 |
transform: translateY(0); |
| 195 |
opacity: 1; |
| 196 |
} |
| 197 |
|
| 198 |
.eel-icon-menu-wrap{ |
| 199 |
position: relative; |
| 200 |
width: 26px; |
| 201 |
height: 12px; |
| 202 |
cursor: pointer; |
| 203 |
} |
| 204 |
.eel-icon-menu-wrap * { |
| 205 |
transition: all ease-in 0.5s; |
| 206 |
} |
| 207 |
.eel-icon-menu{ |
| 208 |
content: ""; |
| 209 |
display: block; |
| 210 |
position: absolute; |
| 211 |
top: 0; |
| 212 |
width: 100%; |
| 213 |
border-bottom: solid 2px #000; |
| 214 |
} |
| 215 |
.eel-icon-menu-wrap:hover em { |
| 216 |
width: 70%; |
| 217 |
} |
| 218 |
.eel-icon-menu-wrap em:nth-child(2) { |
| 219 |
top: auto; |
| 220 |
bottom: 0; |
| 221 |
right: 0; |
| 222 |
} |
| 223 |
|
| 224 |
@media screen and (max-width: 991px){ |
| 225 |
.eel-modern-close { |
| 226 |
top: 40px; |
| 227 |
transform: translateY(0); |
| 228 |
cursor: pointer; |
| 229 |
} |
| 230 |
.eel-offcanvas.modern .eel-offcanvas-panel{ |
| 231 |
display: block; |
| 232 |
} |
| 233 |
} |