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