├── .csscomb.json ├── .github ├── CONTRIBUTING.md ├── ISSUE_TEMPLATE.md └── PULL_REQUEST_TEMPLATE.md ├── .gitignore ├── .gitmodules ├── LICENSE ├── README.md ├── assets ├── css │ └── style.css ├── js │ ├── admin-scripts.js │ └── scripts.js └── preview │ ├── hamburger-1-1.gif │ ├── hamburger-1-2.gif │ ├── hamburger-1-3.gif │ ├── hamburger-1-4.gif │ ├── hamburger-1-5.gif │ ├── hamburger-2-1.gif │ ├── hamburger-2-2.gif │ ├── hamburger-2-3.gif │ ├── hamburger-2-4.gif │ ├── hamburger-2-5.gif │ ├── hamburger-3-1.gif │ ├── hamburger-3-2.gif │ ├── hamburger-3-3.gif │ ├── hamburger-3-4.gif │ ├── hamburger-3-5.gif │ ├── hamburger-4-1.gif │ ├── hamburger-4-2.gif │ ├── hamburger-4-3.gif │ ├── hamburger-4-4.gif │ └── hamburger-4-5.gif ├── bin ├── autoprefixer ├── build ├── build-css ├── csscomb ├── livereload ├── start ├── watch-css └── watch-scss ├── hamburger-menu.php ├── livereload.js ├── package.json ├── preview.jpg └── scss ├── style.scss └── types ├── _type-1.scss ├── _type-2.scss ├── _type-3.scss └── _type-4.scss /.csscomb.json: -------------------------------------------------------------------------------- 1 | { 2 | "remove-empty-rulesets": true, 3 | "always-semicolon": true, 4 | "color-case": "upper", 5 | "block-indent": " ", 6 | "color-shorthand": true, 7 | "eof-newline": false, 8 | "leading-zero": true, 9 | "quotes": "single", 10 | "sort-order-fallback": "abc", 11 | "space-before-colon": "", 12 | "space-after-colon": " ", 13 | "space-before-combinator": " ", 14 | "space-after-combinator": " ", 15 | "space-between-declarations": "\n", 16 | "space-before-opening-brace": " ", 17 | "space-after-opening-brace": "\n", 18 | "space-after-selector-delimiter": "\n", 19 | "space-before-selector-delimiter": "", 20 | "space-before-closing-brace": "\n", 21 | "strip-spaces": true, 22 | "tab-size": true, 23 | "unitless-zero": true, 24 | "vendor-prefix-align": false, 25 | "sort-order": [ 26 | [ 27 | "content", 28 | "quotes", 29 | "z-index", 30 | "position", 31 | "top", 32 | "right", 33 | "bottom", 34 | "left", 35 | "display", 36 | "align-items", 37 | "align-self", 38 | "flex", 39 | "flex-align", 40 | "flex-basis", 41 | "flex-direction", 42 | "flex-flow", 43 | "flex-grow", 44 | "flex-order", 45 | "flex-pack", 46 | "flex-shrink", 47 | "flex-wrap", 48 | "justify-content", 49 | "order", 50 | "background", 51 | "background-attachment", 52 | "background-clip", 53 | "background-color", 54 | "background-image", 55 | "background-position", 56 | "background-position-x", 57 | "background-position-y", 58 | "background-repeat", 59 | "background-size", 60 | "width", 61 | "max-width", 62 | "min-width", 63 | "height", 64 | "max-height", 65 | "min-height", 66 | "outline", 67 | "outline-color", 68 | "outline-offset", 69 | "outline-style", 70 | "outline-width", 71 | "table-layout", 72 | "empty-cells", 73 | "caption-side", 74 | "list-style", 75 | "list-style-position", 76 | "list-style-type", 77 | "list-style-image", 78 | "border", 79 | "border-collapse", 80 | "border-color", 81 | "border-image", 82 | "border-image-outset", 83 | "border-image-repeat", 84 | "border-image-slice", 85 | "border-image-source", 86 | "border-image-width", 87 | "border-spacing", 88 | "border-style", 89 | "border-width", 90 | "border-top", 91 | "border-top-color", 92 | "border-top-style", 93 | "border-top-width", 94 | "border-right", 95 | "border-right-color", 96 | "border-right-style", 97 | "border-right-width", 98 | "border-bottom", 99 | "border-bottom-color", 100 | "border-bottom-style", 101 | "border-bottom-width", 102 | "border-left", 103 | "border-left-color", 104 | "border-left-style", 105 | "border-left-width", 106 | "border-radius", 107 | "border-radius-top-left", 108 | "border-radius-top-right", 109 | "border-radius-bottom-left", 110 | "border-radius-bottom-right", 111 | "box-shadow", 112 | "box-sizing", 113 | "transform", 114 | "transform-origin", 115 | "overflow", 116 | "overflow-x", 117 | "overflow-y", 118 | "margin", 119 | "margin-top", 120 | "margin-right", 121 | "margin-bottom", 122 | "margin-left", 123 | "padding", 124 | "padding-top", 125 | "padding-right", 126 | "padding-bottom", 127 | "padding-left", 128 | "color", 129 | "font", 130 | "font-effect", 131 | "font-emphasize", 132 | "font-emphasize-position", 133 | "font-emphasize-style", 134 | "font-family", 135 | "font-size", 136 | "font-size-adjust", 137 | "font-smoooth", 138 | "-webkit-font-smoothing", 139 | "-moz-osx-font-smoothing", 140 | "font-stretch", 141 | "font-style", 142 | "font-variant", 143 | "font-weight", 144 | "hyphens", 145 | "letter-spacing", 146 | "line-height", 147 | "src", 148 | "tab-size", 149 | "text-align", 150 | "text-align-last", 151 | "text-decoration", 152 | "text-emphasis", 153 | "text-emphasis-color", 154 | "text-emphasis-position", 155 | "text-emphasis-style", 156 | "text-indent", 157 | "text-justify", 158 | "text-shadow", 159 | "text-transform", 160 | "white-space", 161 | "word-break", 162 | "word-spacing", 163 | "word-wrap", 164 | "writing-mode", 165 | "transition", 166 | "transition-delay", 167 | "transition-duration", 168 | "transition-property", 169 | "transition-timing-function", 170 | "animation", 171 | "animation-name", 172 | "animation-delay", 173 | "animation-direction", 174 | "animation-duration", 175 | "animation-interation-count", 176 | "animation-play-state", 177 | "animation-timing-function", 178 | "clear", 179 | "clip", 180 | "counter-reset", 181 | "counter-increment", 182 | "cursor", 183 | "filter", 184 | "float", 185 | "nav-index", 186 | "nav-up", 187 | "nav-right", 188 | "nav-down", 189 | "nav-left", 190 | "opacity", 191 | "pointer-events", 192 | "resize", 193 | "speak", 194 | "user-select", 195 | "vertical-align", 196 | "visibility", 197 | "zoom" 198 | ] 199 | ] 200 | } -------------------------------------------------------------------------------- /.github/CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyhqtran/divi-100-hamburger-menu/9bed8e7fdc2b216dcf39949d7e6af8b7c3e9ca3c/.github/CONTRIBUTING.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | #### Before submitting your issue, please ensure the following: 2 | * [ ] You have reproduced the issue in the latest version of this plugin. 3 | * [ ] You searched Github for the issue and found no reports of the issue currently open. 4 | * [ ] You properly formated the issue title – `Scope :: One sentence to describe the issue`. 5 | * [ ] You have provided a detailed description of the issue. 6 | * [ ] You have provided any/all relevant information: screenshot, screencast. 7 | * [ ] You have provided the steps that one must take to reproduce the issue. 8 | 9 | _Warning: Please make sure that your issue is detailed, otherwise the ticket will not be prioritized due to lack of information._ 10 | 11 | - 12 | 13 | ### Problem: 14 | Replace this with a description of the issue you are reporting. Be sure to explain expected results vs. actual results when it might not be obvious to those who will read your report. 15 | 16 | 17 | ### Steps To Reproduce: 18 | 19 | 1. 20 | 2. 21 | 3. 22 | 4. 23 | 24 | 25 | ### Additional Information: 26 | 27 | **Divi Version**: 28 | 29 | **Child Theme**: 30 | 31 | **Device**: 32 | 33 | **Operating System**: 34 | 35 | **Browser**: 36 | 37 | **Screen Resolution**: 38 | 39 | **Reference**: 40 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyhqtran/divi-100-hamburger-menu/9bed8e7fdc2b216dcf39949d7e6af8b7c3e9ca3c/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | npm-debug.log -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "divi-100-setup"] 2 | path = divi-100-setup 3 | url = git@github.com:andyhqtran/divi-100-submodule.git -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | {one line to give the program's name and a brief idea of what it does.} 635 | Copyright (C) {year} {name of author} 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | {project} Copyright (C) {year} {fullname} 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Hamburger Menu 2 | ![Hamburger Menu](preview.jpg) 3 | The **Divi 100 - Hamburger Menu** is made for Divi as apart of the [Divi 100 series](www.elegantthemes.com/blog/theme-sneak-peeks/the-divi-100-marathon-and-the-countdown-to-divi-3-0) by Elegant Themes. This plugin adds a brand new hamburger style menu icon to your header! 4 | [View Demo](http://codepen.io/collection/AWQwoK/) 5 | 6 | ## What's Included 7 | ``` 8 | Divi-100-Hamburger-Menu 9 | ├── LICENSE 10 | ├── README.md 11 | ├── assets 12 | │ ├── css 13 | │ │ └── style.css 14 | │ └── js 15 | │ ├── admin-scripts.js 16 | │ └── scripts.js 17 | ├── divi-100-setup 18 | │ ├── class-divi-100-settings.php 19 | │ ├── class-divi-100-utils.php 20 | │ ├── css 21 | │ │ └── admin-style.css 22 | │ ├── divi-100-setup.php 23 | │ └── js 24 | │ └── admin-scripts.js 25 | ├── hamburger-menu.php 26 | └── preview.gif 27 | 28 | 6 directories, 12 files 29 | ``` 30 | 31 | ## Installation 32 | 1. You can download the latest release [here](https://github.com/andyhqtran/Divi-100-Hamburger-Menu/releases). 33 | 2. Once downloaded, head over the **Plugins** tab in your control panel and hit **Add New** 34 | 3. Activate the plugin. 35 | 4. Choose your type and style. 36 | 37 | **Optional**: You can change the default and accent color of your hamburger menu by heading over to the Divi 100 - Hamburger Menu control panel where you'll be greeted with 2 color pickers. 38 | 39 | ## Bugs & Questions 40 | Found a bug or have a question? Please first read the [issue guidelines](https://github.com/andyhqtran/divi-100-hamburger-menu/blob/master/.github/ISSUE_TEMPLATE.md) and search for existing and closed issues. If your problem is not addressed yet, feel free to [open a new issue](https://github.com/andyhqtran/divi-100-hamburger-menu/issues). 41 | 42 | When opening an issue, please make sure you assign the proper label. For example, if you had a question, you would assign the `QUESTION` label. 43 | 44 | ## Credits 45 | - [Andy Tran](https://github.com/andyhqtran) 46 | - [Fikri Rasyid](https://github.com/fikrirasyid) 47 | 48 | ## License 49 | Copyright © 2016 [Elegant Themes](http://elegantthemes.com). Code released undered the [GPL License](https://github.com/andyhqtran/divi-100-hamburger-menu/blob/master/LICENSE). 50 | 51 | > This program is free software: you can redistribute it and/or modify 52 | > it under the terms of the GNU General Public License as published by 53 | > the Free Software Foundation, either version 3 of the License, or 54 | > (at your option) any later version. 55 | 56 | > This program is distributed in the hope that it will be useful, 57 | > but WITHOUT ANY WARRANTY; without even the implied warranty of 58 | > MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 59 | > GNU General Public License for more details. 60 | 61 | > You should have received a copy of the GNU General Public License 62 | > along with this program. If not, see . -------------------------------------------------------------------------------- /assets/css/style.css: -------------------------------------------------------------------------------- 1 | /* Menu */ 2 | .et_divi_100_custom_hamburger_menu__icon { 3 | position: relative; 4 | display: block; 5 | width: 1.875rem; 6 | height: 1.875rem; 7 | box-sizing: border-box; 8 | cursor: pointer; 9 | padding: 0.25rem; 10 | clear: both; 11 | } 12 | 13 | .et_divi_100_custom_hamburger_menu__icon div { 14 | background: #000; 15 | width: 100%; 16 | height: 0.125rem; 17 | margin: 0.25rem auto; 18 | border-radius: 10px; 19 | -webkit-transition: 0.3s cubic-bezier(0.28, 0.55, 0.385, 1.65); 20 | transition: 0.3s cubic-bezier(0.28, 0.55, 0.385, 1.65); 21 | -webkit-transition-timing-function: cubic-bezier(0.28, 0.55, 0.385, 1.65); 22 | transition-timing-function: cubic-bezier(0.28, 0.55, 0.385, 1.65); 23 | -webkit-transform: 0; 24 | transform: 0; 25 | -webkit-transform-origin: center; 26 | transform-origin: center; 27 | } 28 | 29 | .et_divi_100_custom_hamburger_menu__icon div:before, .et_divi_100_custom_hamburger_menu__icon div:after { 30 | -webkit-transition: 0.3s cubic-bezier(0.28, 0.55, 0.385, 1.65); 31 | transition: 0.3s cubic-bezier(0.28, 0.55, 0.385, 1.65); 32 | -webkit-transition-timing-function: cubic-bezier(0.28, 0.55, 0.385, 1.65); 33 | transition-timing-function: cubic-bezier(0.28, 0.55, 0.385, 1.65); 34 | } 35 | 36 | /* Type 1 */ 37 | .et_divi_100_custom_hamburger_menu--type-1.et_divi_100_custom_hamburger_menu--style-2 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:not(:first-child):not(:last-child) { 38 | width: 0; 39 | margin-left: 0; 40 | opacity: 1; 41 | } 42 | 43 | .et_divi_100_custom_hamburger_menu--type-1.et_divi_100_custom_hamburger_menu--style-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:first-child { 44 | -webkit-animation-name: T1S3DF; 45 | animation-name: T1S3DF; 46 | } 47 | 48 | @-webkit-keyframes T1S3DF { 49 | 0% { 50 | -webkit-transform: none; 51 | transform: none; 52 | } 53 | 40% { 54 | -webkit-transform: translateY(0.375rem); 55 | transform: translateY(0.375rem); 56 | } 57 | 80% { 58 | -webkit-transform: translateY(0.375rem) rotate(45deg); 59 | transform: translateY(0.375rem) rotate(45deg); 60 | } 61 | } 62 | 63 | @keyframes T1S3DF { 64 | 0% { 65 | -webkit-transform: none; 66 | transform: none; 67 | } 68 | 40% { 69 | -webkit-transform: translateY(0.375rem); 70 | transform: translateY(0.375rem); 71 | } 72 | 80% { 73 | -webkit-transform: translateY(0.375rem) rotate(45deg); 74 | transform: translateY(0.375rem) rotate(45deg); 75 | } 76 | } 77 | 78 | .et_divi_100_custom_hamburger_menu--type-1.et_divi_100_custom_hamburger_menu--style-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:last-child { 79 | -webkit-animation-name: T1S3L; 80 | animation-name: T1S3L; 81 | } 82 | 83 | @-webkit-keyframes T1S3L { 84 | 0% { 85 | -webkit-transform: none; 86 | transform: none; 87 | } 88 | 40% { 89 | -webkit-transform: translateY(-0.375rem); 90 | transform: translateY(-0.375rem); 91 | } 92 | 80% { 93 | -webkit-transform: translateY(-0.375rem) rotate(-45deg); 94 | transform: translateY(-0.375rem) rotate(-45deg); 95 | } 96 | } 97 | 98 | @keyframes T1S3L { 99 | 0% { 100 | -webkit-transform: none; 101 | transform: none; 102 | } 103 | 40% { 104 | -webkit-transform: translateY(-0.375rem); 105 | transform: translateY(-0.375rem); 106 | } 107 | 80% { 108 | -webkit-transform: translateY(-0.375rem) rotate(-45deg); 109 | transform: translateY(-0.375rem) rotate(-45deg); 110 | } 111 | } 112 | 113 | .et_divi_100_custom_hamburger_menu--type-1.et_divi_100_custom_hamburger_menu--style-4 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div { 114 | -webkit-animation-timing-function: linear; 115 | animation-timing-function: linear; 116 | } 117 | 118 | .et_divi_100_custom_hamburger_menu--type-1.et_divi_100_custom_hamburger_menu--style-4 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:first-child { 119 | -webkit-animation-name: T1S4DF; 120 | animation-name: T1S4DF; 121 | } 122 | 123 | @-webkit-keyframes T1S4DF { 124 | 0% { 125 | margin-right: 0; 126 | -webkit-transform: none; 127 | transform: none; 128 | } 129 | 20% { 130 | width: 100%; 131 | -webkit-transform: translateY(0.375rem); 132 | transform: translateY(0.375rem); 133 | } 134 | 40% { 135 | width: 0; 136 | margin-right: 0; 137 | -webkit-transform: translateY(0.375rem); 138 | transform: translateY(0.375rem); 139 | } 140 | 80% { 141 | width: 0; 142 | margin-right: auto; 143 | -webkit-transform: translateY(0.375rem) rotate(45deg); 144 | transform: translateY(0.375rem) rotate(45deg); 145 | } 146 | 90% { 147 | -webkit-transform: translateY(0.375rem) rotate(45deg); 148 | transform: translateY(0.375rem) rotate(45deg); 149 | } 150 | } 151 | 152 | @keyframes T1S4DF { 153 | 0% { 154 | margin-right: 0; 155 | -webkit-transform: none; 156 | transform: none; 157 | } 158 | 20% { 159 | width: 100%; 160 | -webkit-transform: translateY(0.375rem); 161 | transform: translateY(0.375rem); 162 | } 163 | 40% { 164 | width: 0; 165 | margin-right: 0; 166 | -webkit-transform: translateY(0.375rem); 167 | transform: translateY(0.375rem); 168 | } 169 | 80% { 170 | width: 0; 171 | margin-right: auto; 172 | -webkit-transform: translateY(0.375rem) rotate(45deg); 173 | transform: translateY(0.375rem) rotate(45deg); 174 | } 175 | 90% { 176 | -webkit-transform: translateY(0.375rem) rotate(45deg); 177 | transform: translateY(0.375rem) rotate(45deg); 178 | } 179 | } 180 | 181 | .et_divi_100_custom_hamburger_menu--type-1.et_divi_100_custom_hamburger_menu--style-4 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:last-child { 182 | -webkit-animation-name: T1S4L; 183 | animation-name: T1S4L; 184 | } 185 | 186 | @-webkit-keyframes T1S4L { 187 | 0% { 188 | margin-left: 0; 189 | -webkit-transform: none; 190 | transform: none; 191 | } 192 | 20% { 193 | width: 100%; 194 | -webkit-transform: translateY(-0.375rem); 195 | transform: translateY(-0.375rem); 196 | } 197 | 40% { 198 | width: 0; 199 | margin-left: 0; 200 | -webkit-transform: translateY(-0.375rem); 201 | transform: translateY(-0.375rem); 202 | } 203 | 80% { 204 | width: 0; 205 | margin-left: auto; 206 | -webkit-transform: translateY(-0.375rem) rotate(-45deg); 207 | transform: translateY(-0.375rem) rotate(-45deg); 208 | } 209 | 90% { 210 | -webkit-transform: translateY(-0.375rem) rotate(-45deg); 211 | transform: translateY(-0.375rem) rotate(-45deg); 212 | } 213 | } 214 | 215 | @keyframes T1S4L { 216 | 0% { 217 | margin-left: 0; 218 | -webkit-transform: none; 219 | transform: none; 220 | } 221 | 20% { 222 | width: 100%; 223 | -webkit-transform: translateY(-0.375rem); 224 | transform: translateY(-0.375rem); 225 | } 226 | 40% { 227 | width: 0; 228 | margin-left: 0; 229 | -webkit-transform: translateY(-0.375rem); 230 | transform: translateY(-0.375rem); 231 | } 232 | 80% { 233 | width: 0; 234 | margin-left: auto; 235 | -webkit-transform: translateY(-0.375rem) rotate(-45deg); 236 | transform: translateY(-0.375rem) rotate(-45deg); 237 | } 238 | 90% { 239 | -webkit-transform: translateY(-0.375rem) rotate(-45deg); 240 | transform: translateY(-0.375rem) rotate(-45deg); 241 | } 242 | } 243 | 244 | .et_divi_100_custom_hamburger_menu--type-1.et_divi_100_custom_hamburger_menu--style-5 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div { 245 | -webkit-animation-timing-function: linear; 246 | animation-timing-function: linear; 247 | } 248 | 249 | .et_divi_100_custom_hamburger_menu--type-1.et_divi_100_custom_hamburger_menu--style-5 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:first-child { 250 | -webkit-animation-name: T1S5DF; 251 | animation-name: T1S5DF; 252 | } 253 | 254 | @-webkit-keyframes T1S5DF { 255 | 0% { 256 | margin-right: 0; 257 | -webkit-transform: none; 258 | transform: none; 259 | -webkit-transform-origin: top right; 260 | transform-origin: top right; 261 | } 262 | 25% { 263 | width: 100%; 264 | -webkit-transform: translateY(0.375rem) rotate(10deg); 265 | transform: translateY(0.375rem) rotate(10deg); 266 | } 267 | 30% { 268 | width: 100%; 269 | -webkit-transform: translateY(0.375rem) rotate(10deg); 270 | transform: translateY(0.375rem) rotate(10deg); 271 | } 272 | 40% { 273 | width: 0%; 274 | -webkit-transform: translateY(0.375rem) rotate(10deg); 275 | transform: translateY(0.375rem) rotate(10deg); 276 | } 277 | 50% { 278 | width: 0%; 279 | -webkit-transform-origin: center; 280 | transform-origin: center; 281 | -webkit-transform: translateY(0.375rem) rotate(45deg); 282 | transform: translateY(0.375rem) rotate(45deg); 283 | } 284 | 90% { 285 | -webkit-transform: translateY(0.375rem) rotate(45deg); 286 | transform: translateY(0.375rem) rotate(45deg); 287 | } 288 | } 289 | 290 | @keyframes T1S5DF { 291 | 0% { 292 | margin-right: 0; 293 | -webkit-transform: none; 294 | transform: none; 295 | -webkit-transform-origin: top right; 296 | transform-origin: top right; 297 | } 298 | 25% { 299 | width: 100%; 300 | -webkit-transform: translateY(0.375rem) rotate(10deg); 301 | transform: translateY(0.375rem) rotate(10deg); 302 | } 303 | 30% { 304 | width: 100%; 305 | -webkit-transform: translateY(0.375rem) rotate(10deg); 306 | transform: translateY(0.375rem) rotate(10deg); 307 | } 308 | 40% { 309 | width: 0%; 310 | -webkit-transform: translateY(0.375rem) rotate(10deg); 311 | transform: translateY(0.375rem) rotate(10deg); 312 | } 313 | 50% { 314 | width: 0%; 315 | -webkit-transform-origin: center; 316 | transform-origin: center; 317 | -webkit-transform: translateY(0.375rem) rotate(45deg); 318 | transform: translateY(0.375rem) rotate(45deg); 319 | } 320 | 90% { 321 | -webkit-transform: translateY(0.375rem) rotate(45deg); 322 | transform: translateY(0.375rem) rotate(45deg); 323 | } 324 | } 325 | 326 | .et_divi_100_custom_hamburger_menu--type-1.et_divi_100_custom_hamburger_menu--style-5 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:not(:first-child):not(:last-child) { 327 | -webkit-animation-name: T1S5DM; 328 | animation-name: T1S5DM; 329 | width: 0%; 330 | } 331 | 332 | @-webkit-keyframes T1S5DM { 333 | 0% { 334 | width: 100%; 335 | opacity: 1; 336 | } 337 | 40% { 338 | width: 100%; 339 | } 340 | 50% { 341 | width: 0%; 342 | opacity: 1; 343 | } 344 | } 345 | 346 | @keyframes T1S5DM { 347 | 0% { 348 | width: 100%; 349 | opacity: 1; 350 | } 351 | 40% { 352 | width: 100%; 353 | } 354 | 50% { 355 | width: 0%; 356 | opacity: 1; 357 | } 358 | } 359 | 360 | .et_divi_100_custom_hamburger_menu--type-1.et_divi_100_custom_hamburger_menu--style-5 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:last-child { 361 | -webkit-animation-name: T1S5L; 362 | animation-name: T1S5L; 363 | } 364 | 365 | @-webkit-keyframes T1S5L { 366 | 0% { 367 | margin-left: 0; 368 | -webkit-transform: none; 369 | transform: none; 370 | -webkit-transform-origin: bottom left; 371 | transform-origin: bottom left; 372 | } 373 | 25% { 374 | width: 100%; 375 | -webkit-transform: translateY(-0.375rem) rotate(10deg); 376 | transform: translateY(-0.375rem) rotate(10deg); 377 | } 378 | 30% { 379 | width: 100%; 380 | -webkit-transform: translateY(-0.375rem) rotate(10deg); 381 | transform: translateY(-0.375rem) rotate(10deg); 382 | } 383 | 40% { 384 | width: 0%; 385 | -webkit-transform: translateY(-0.375rem) rotate(10deg); 386 | transform: translateY(-0.375rem) rotate(10deg); 387 | } 388 | 50% { 389 | width: 0%; 390 | -webkit-transform-origin: center; 391 | transform-origin: center; 392 | -webkit-transform: translateY(-0.375rem) rotate(-45deg); 393 | transform: translateY(-0.375rem) rotate(-45deg); 394 | } 395 | 90% { 396 | -webkit-transform: translateY(-0.375rem) rotate(-45deg); 397 | transform: translateY(-0.375rem) rotate(-45deg); 398 | } 399 | } 400 | 401 | @keyframes T1S5L { 402 | 0% { 403 | margin-left: 0; 404 | -webkit-transform: none; 405 | transform: none; 406 | -webkit-transform-origin: bottom left; 407 | transform-origin: bottom left; 408 | } 409 | 25% { 410 | width: 100%; 411 | -webkit-transform: translateY(-0.375rem) rotate(10deg); 412 | transform: translateY(-0.375rem) rotate(10deg); 413 | } 414 | 30% { 415 | width: 100%; 416 | -webkit-transform: translateY(-0.375rem) rotate(10deg); 417 | transform: translateY(-0.375rem) rotate(10deg); 418 | } 419 | 40% { 420 | width: 0%; 421 | -webkit-transform: translateY(-0.375rem) rotate(10deg); 422 | transform: translateY(-0.375rem) rotate(10deg); 423 | } 424 | 50% { 425 | width: 0%; 426 | -webkit-transform-origin: center; 427 | transform-origin: center; 428 | -webkit-transform: translateY(-0.375rem) rotate(-45deg); 429 | transform: translateY(-0.375rem) rotate(-45deg); 430 | } 431 | 90% { 432 | -webkit-transform: translateY(-0.375rem) rotate(-45deg); 433 | transform: translateY(-0.375rem) rotate(-45deg); 434 | } 435 | } 436 | 437 | /* Type 2 */ 438 | .et_divi_100_custom_hamburger_menu--type-2 .et_divi_100_custom_hamburger_menu__icon div, .et_divi_100_custom_hamburger_menu--type-3 .et_divi_100_custom_hamburger_menu__icon div { 439 | display: -webkit-box; 440 | display: -ms-flexbox; 441 | display: flex; 442 | -webkit-box-orient: horizontal; 443 | -webkit-box-direction: normal; 444 | -ms-flex-direction: row; 445 | flex-direction: row; 446 | background: 0; 447 | } 448 | 449 | .et_divi_100_custom_hamburger_menu--type-2 .et_divi_100_custom_hamburger_menu__icon div:before, .et_divi_100_custom_hamburger_menu--type-3 .et_divi_100_custom_hamburger_menu__icon div:before, .et_divi_100_custom_hamburger_menu--type-2 .et_divi_100_custom_hamburger_menu__icon div:after, .et_divi_100_custom_hamburger_menu--type-3 .et_divi_100_custom_hamburger_menu__icon div:after { 450 | content: ''; 451 | display: block; 452 | background: #000; 453 | width: 2px; 454 | min-width: 2px; 455 | height: 2px; 456 | border-radius: 10px; 457 | margin: 0 2px 0 0; 458 | } 459 | 460 | .et_divi_100_custom_hamburger_menu--type-2 .et_divi_100_custom_hamburger_menu__icon div:after, .et_divi_100_custom_hamburger_menu--type-3 .et_divi_100_custom_hamburger_menu__icon div:after { 461 | width: 100%; 462 | margin: 0; 463 | } 464 | 465 | .et_divi_100_custom_hamburger_menu--type-2.et_divi_100_custom_hamburger_menu--style-2 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:not(:first-child):not(:last-child), .et_divi_100_custom_hamburger_menu--style-2.et_divi_100_custom_hamburger_menu--type-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:not(:first-child):not(:last-child) { 466 | opacity: 1; 467 | } 468 | 469 | .et_divi_100_custom_hamburger_menu--type-2.et_divi_100_custom_hamburger_menu--style-2 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:not(:first-child):not(:last-child):before, .et_divi_100_custom_hamburger_menu--style-2.et_divi_100_custom_hamburger_menu--type-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:not(:first-child):not(:last-child):before, .et_divi_100_custom_hamburger_menu--type-2.et_divi_100_custom_hamburger_menu--style-2 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:not(:first-child):not(:last-child):after, .et_divi_100_custom_hamburger_menu--style-2.et_divi_100_custom_hamburger_menu--type-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:not(:first-child):not(:last-child):after { 470 | width: 0; 471 | min-width: 0; 472 | margin-left: 0; 473 | opacity: 1; 474 | } 475 | 476 | .et_divi_100_custom_hamburger_menu--type-2.et_divi_100_custom_hamburger_menu--style-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:first-child, .et_divi_100_custom_hamburger_menu--style-3.et_divi_100_custom_hamburger_menu--type-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:first-child { 477 | -webkit-animation-name: T2S3DF; 478 | animation-name: T2S3DF; 479 | } 480 | 481 | @-webkit-keyframes T2S3DF { 482 | 0% { 483 | -webkit-transform: none; 484 | transform: none; 485 | } 486 | 20% { 487 | -webkit-transform: none; 488 | transform: none; 489 | } 490 | 40% { 491 | -webkit-transform: translateY(0.375rem); 492 | transform: translateY(0.375rem); 493 | } 494 | 80% { 495 | -webkit-transform: translateY(0.375rem) rotate(45deg); 496 | transform: translateY(0.375rem) rotate(45deg); 497 | } 498 | } 499 | 500 | @keyframes T2S3DF { 501 | 0% { 502 | -webkit-transform: none; 503 | transform: none; 504 | } 505 | 20% { 506 | -webkit-transform: none; 507 | transform: none; 508 | } 509 | 40% { 510 | -webkit-transform: translateY(0.375rem); 511 | transform: translateY(0.375rem); 512 | } 513 | 80% { 514 | -webkit-transform: translateY(0.375rem) rotate(45deg); 515 | transform: translateY(0.375rem) rotate(45deg); 516 | } 517 | } 518 | 519 | .et_divi_100_custom_hamburger_menu--type-2.et_divi_100_custom_hamburger_menu--style-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:first-child:before, .et_divi_100_custom_hamburger_menu--style-3.et_divi_100_custom_hamburger_menu--type-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:first-child:before { 520 | -webkit-animation-name: T2S3DFB; 521 | animation-name: T2S3DFB; 522 | } 523 | 524 | @-webkit-keyframes T2S3DFB { 525 | 0% { 526 | width: 100%; 527 | -webkit-transform: none; 528 | transform: none; 529 | } 530 | 20% { 531 | -webkit-transform: none; 532 | transform: none; 533 | } 534 | } 535 | 536 | @keyframes T2S3DFB { 537 | 0% { 538 | width: 100%; 539 | -webkit-transform: none; 540 | transform: none; 541 | } 542 | 20% { 543 | -webkit-transform: none; 544 | transform: none; 545 | } 546 | } 547 | 548 | .et_divi_100_custom_hamburger_menu--type-2.et_divi_100_custom_hamburger_menu--style-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:first-child:after, .et_divi_100_custom_hamburger_menu--style-3.et_divi_100_custom_hamburger_menu--type-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:first-child:after { 549 | -webkit-animation-name: T2S3DMA; 550 | animation-name: T2S3DMA; 551 | } 552 | 553 | @-webkit-keyframes T2S3DMA { 554 | 0% { 555 | width: 100%; 556 | -webkit-transform: none; 557 | transform: none; 558 | } 559 | 20% { 560 | -webkit-transform: none; 561 | transform: none; 562 | } 563 | } 564 | 565 | @keyframes T2S3DMA { 566 | 0% { 567 | width: 100%; 568 | -webkit-transform: none; 569 | transform: none; 570 | } 571 | 20% { 572 | -webkit-transform: none; 573 | transform: none; 574 | } 575 | } 576 | 577 | .et_divi_100_custom_hamburger_menu--type-2.et_divi_100_custom_hamburger_menu--style-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:last-child, .et_divi_100_custom_hamburger_menu--style-3.et_divi_100_custom_hamburger_menu--type-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:last-child { 578 | -webkit-animation-name: T2S3DL; 579 | animation-name: T2S3DL; 580 | } 581 | 582 | @-webkit-keyframes T2S3DL { 583 | 0% { 584 | -webkit-transform: none; 585 | transform: none; 586 | } 587 | 20% { 588 | -webkit-transform: none; 589 | transform: none; 590 | } 591 | 40% { 592 | -webkit-transform: translateY(-0.25rem); 593 | transform: translateY(-0.25rem); 594 | } 595 | 80% { 596 | -webkit-transform: translateY(-0.375rem) rotate(-45deg); 597 | transform: translateY(-0.375rem) rotate(-45deg); 598 | } 599 | } 600 | 601 | @keyframes T2S3DL { 602 | 0% { 603 | -webkit-transform: none; 604 | transform: none; 605 | } 606 | 20% { 607 | -webkit-transform: none; 608 | transform: none; 609 | } 610 | 40% { 611 | -webkit-transform: translateY(-0.25rem); 612 | transform: translateY(-0.25rem); 613 | } 614 | 80% { 615 | -webkit-transform: translateY(-0.375rem) rotate(-45deg); 616 | transform: translateY(-0.375rem) rotate(-45deg); 617 | } 618 | } 619 | 620 | .et_divi_100_custom_hamburger_menu--type-2.et_divi_100_custom_hamburger_menu--style-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:last-child:before, .et_divi_100_custom_hamburger_menu--style-3.et_divi_100_custom_hamburger_menu--type-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:last-child:before { 621 | -webkit-animation-name: T2S3DFB; 622 | animation-name: T2S3DFB; 623 | } 624 | 625 | @keyframes T2S3DFB { 626 | 0% { 627 | width: 100%; 628 | -webkit-transform: none; 629 | transform: none; 630 | } 631 | 20% { 632 | -webkit-transform: none; 633 | transform: none; 634 | } 635 | } 636 | 637 | .et_divi_100_custom_hamburger_menu--type-2.et_divi_100_custom_hamburger_menu--style-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:last-child:after, .et_divi_100_custom_hamburger_menu--style-3.et_divi_100_custom_hamburger_menu--type-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:last-child:after { 638 | -webkit-animation-name: T2S3DMA; 639 | animation-name: T2S3DMA; 640 | } 641 | 642 | @keyframes T2S3DMA { 643 | 0% { 644 | width: 100%; 645 | -webkit-transform: none; 646 | transform: none; 647 | } 648 | 20% { 649 | -webkit-transform: none; 650 | transform: none; 651 | } 652 | } 653 | 654 | .et_divi_100_custom_hamburger_menu--type-2.et_divi_100_custom_hamburger_menu--style-4 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div, .et_divi_100_custom_hamburger_menu--style-4.et_divi_100_custom_hamburger_menu--type-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div { 655 | -webkit-transform: none; 656 | transform: none; 657 | } 658 | 659 | .et_divi_100_custom_hamburger_menu--type-2.et_divi_100_custom_hamburger_menu--style-4 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:first-child:before, .et_divi_100_custom_hamburger_menu--style-4.et_divi_100_custom_hamburger_menu--type-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:first-child:before, .et_divi_100_custom_hamburger_menu--type-2.et_divi_100_custom_hamburger_menu--style-4 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:first-child:after, .et_divi_100_custom_hamburger_menu--style-4.et_divi_100_custom_hamburger_menu--type-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:first-child:after { 660 | width: 0%; 661 | min-width: 0; 662 | margin: 0 auto; 663 | opacity: 0; 664 | } 665 | 666 | .et_divi_100_custom_hamburger_menu--type-2.et_divi_100_custom_hamburger_menu--style-4 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:not(:first-child):not(:last-child), .et_divi_100_custom_hamburger_menu--style-4.et_divi_100_custom_hamburger_menu--type-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:not(:first-child):not(:last-child) { 667 | position: relative; 668 | opacity: 1; 669 | } 670 | 671 | .et_divi_100_custom_hamburger_menu--type-2.et_divi_100_custom_hamburger_menu--style-4 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:not(:first-child):not(:last-child):before, .et_divi_100_custom_hamburger_menu--style-4.et_divi_100_custom_hamburger_menu--type-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:not(:first-child):not(:last-child):before, .et_divi_100_custom_hamburger_menu--type-2.et_divi_100_custom_hamburger_menu--style-4 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:not(:first-child):not(:last-child):after, .et_divi_100_custom_hamburger_menu--style-4.et_divi_100_custom_hamburger_menu--type-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:not(:first-child):not(:last-child):after { 672 | position: absolute; 673 | width: 100%; 674 | -webkit-transition: all 0.3s linear transform 0.3s 0.3s linear; 675 | transition: all 0.3s linear transform 0.3s 0.3s linear; 676 | -webkit-transform-origin: center; 677 | transform-origin: center; 678 | } 679 | 680 | .et_divi_100_custom_hamburger_menu--type-2.et_divi_100_custom_hamburger_menu--style-4 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:not(:first-child):not(:last-child):before, .et_divi_100_custom_hamburger_menu--style-4.et_divi_100_custom_hamburger_menu--type-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:not(:first-child):not(:last-child):before { 681 | -webkit-transform: rotate(45deg); 682 | transform: rotate(45deg); 683 | } 684 | 685 | .et_divi_100_custom_hamburger_menu--type-2.et_divi_100_custom_hamburger_menu--style-4 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:not(:first-child):not(:last-child):after, .et_divi_100_custom_hamburger_menu--style-4.et_divi_100_custom_hamburger_menu--type-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:not(:first-child):not(:last-child):after { 686 | -webkit-transform: rotate(-45deg); 687 | transform: rotate(-45deg); 688 | } 689 | 690 | .et_divi_100_custom_hamburger_menu--type-2.et_divi_100_custom_hamburger_menu--style-4 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:last-child:before, .et_divi_100_custom_hamburger_menu--style-4.et_divi_100_custom_hamburger_menu--type-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:last-child:before, .et_divi_100_custom_hamburger_menu--type-2.et_divi_100_custom_hamburger_menu--style-4 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:last-child:after, .et_divi_100_custom_hamburger_menu--style-4.et_divi_100_custom_hamburger_menu--type-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:last-child:after { 691 | width: 100%; 692 | min-width: 0; 693 | opacity: 0; 694 | } 695 | 696 | .et_divi_100_custom_hamburger_menu--type-2.et_divi_100_custom_hamburger_menu--style-5 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div, .et_divi_100_custom_hamburger_menu--style-5.et_divi_100_custom_hamburger_menu--type-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div { 697 | -webkit-transform: none; 698 | transform: none; 699 | } 700 | 701 | .et_divi_100_custom_hamburger_menu--type-2.et_divi_100_custom_hamburger_menu--style-5 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:first-child, .et_divi_100_custom_hamburger_menu--style-5.et_divi_100_custom_hamburger_menu--type-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:first-child { 702 | position: relative; 703 | -webkit-animation-name: T2S5DF; 704 | animation-name: T2S5DF; 705 | -webkit-transform: translateY(0.375rem) rotate(45deg); 706 | transform: translateY(0.375rem) rotate(45deg); 707 | } 708 | 709 | @-webkit-keyframes T2S5DF { 710 | 20% { 711 | -webkit-transform: none; 712 | transform: none; 713 | } 714 | } 715 | 716 | @keyframes T2S5DF { 717 | 20% { 718 | -webkit-transform: none; 719 | transform: none; 720 | } 721 | } 722 | 723 | .et_divi_100_custom_hamburger_menu--type-2.et_divi_100_custom_hamburger_menu--style-5 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:first-child:before, .et_divi_100_custom_hamburger_menu--style-5.et_divi_100_custom_hamburger_menu--type-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:first-child:before, .et_divi_100_custom_hamburger_menu--type-2.et_divi_100_custom_hamburger_menu--style-5 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:first-child:after, .et_divi_100_custom_hamburger_menu--style-5.et_divi_100_custom_hamburger_menu--type-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:first-child:after { 724 | position: absolute; 725 | width: 0; 726 | } 727 | 728 | .et_divi_100_custom_hamburger_menu--type-2.et_divi_100_custom_hamburger_menu--style-5 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:first-child:before, .et_divi_100_custom_hamburger_menu--style-5.et_divi_100_custom_hamburger_menu--type-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:first-child:before { 729 | left: 0; 730 | -webkit-animation-name: T2S5DFB; 731 | animation-name: T2S5DFB; 732 | } 733 | 734 | @-webkit-keyframes T2S5DFB { 735 | 20% { 736 | width: 0%; 737 | } 738 | } 739 | 740 | @keyframes T2S5DFB { 741 | 20% { 742 | width: 0%; 743 | } 744 | } 745 | 746 | .et_divi_100_custom_hamburger_menu--type-2.et_divi_100_custom_hamburger_menu--style-5 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:first-child:after, .et_divi_100_custom_hamburger_menu--style-5.et_divi_100_custom_hamburger_menu--type-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:first-child:after { 747 | right: 0; 748 | -webkit-animation-name: T2S5DFA; 749 | animation-name: T2S5DFA; 750 | } 751 | 752 | @-webkit-keyframes T2S5DFA { 753 | 20% { 754 | width: 0%; 755 | } 756 | } 757 | 758 | @keyframes T2S5DFA { 759 | 20% { 760 | width: 0%; 761 | } 762 | } 763 | 764 | .et_divi_100_custom_hamburger_menu--type-2.et_divi_100_custom_hamburger_menu--style-5 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:not(:first-child):not(:last-child), .et_divi_100_custom_hamburger_menu--style-5.et_divi_100_custom_hamburger_menu--type-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:not(:first-child):not(:last-child) { 765 | position: relative; 766 | opacity: 1; 767 | } 768 | 769 | .et_divi_100_custom_hamburger_menu--type-2.et_divi_100_custom_hamburger_menu--style-5 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:not(:first-child):not(:last-child):before, .et_divi_100_custom_hamburger_menu--style-5.et_divi_100_custom_hamburger_menu--type-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:not(:first-child):not(:last-child):before, .et_divi_100_custom_hamburger_menu--type-2.et_divi_100_custom_hamburger_menu--style-5 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:not(:first-child):not(:last-child):after, .et_divi_100_custom_hamburger_menu--style-5.et_divi_100_custom_hamburger_menu--type-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:not(:first-child):not(:last-child):after { 770 | margin: 0 auto; 771 | } 772 | 773 | .et_divi_100_custom_hamburger_menu--type-2.et_divi_100_custom_hamburger_menu--style-5 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:not(:first-child):not(:last-child):before, .et_divi_100_custom_hamburger_menu--style-5.et_divi_100_custom_hamburger_menu--type-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:not(:first-child):not(:last-child):before { 774 | display: none; 775 | } 776 | 777 | .et_divi_100_custom_hamburger_menu--type-2.et_divi_100_custom_hamburger_menu--style-5 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:not(:first-child):not(:last-child):after, .et_divi_100_custom_hamburger_menu--style-5.et_divi_100_custom_hamburger_menu--type-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:not(:first-child):not(:last-child):after { 778 | -webkit-animation-name: T2S5DL; 779 | animation-name: T2S5DL; 780 | width: 2px; 781 | } 782 | 783 | @-webkit-keyframes T2S5DL { 784 | 20% { 785 | -webkit-transform: 100%; 786 | transform: 100%; 787 | } 788 | } 789 | 790 | @keyframes T2S5DL { 791 | 20% { 792 | -webkit-transform: 100%; 793 | transform: 100%; 794 | } 795 | } 796 | 797 | .et_divi_100_custom_hamburger_menu--type-2.et_divi_100_custom_hamburger_menu--style-5 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:last-child, .et_divi_100_custom_hamburger_menu--style-5.et_divi_100_custom_hamburger_menu--type-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:last-child { 798 | position: relative; 799 | -webkit-animation-name: T2S5DL; 800 | animation-name: T2S5DL; 801 | -webkit-transform: translateY(-0.375rem) rotate(-45deg); 802 | transform: translateY(-0.375rem) rotate(-45deg); 803 | } 804 | 805 | @keyframes T2S5DL { 806 | 20% { 807 | -webkit-transform: none; 808 | transform: none; 809 | } 810 | } 811 | 812 | .et_divi_100_custom_hamburger_menu--type-2.et_divi_100_custom_hamburger_menu--style-5 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:last-child:before, .et_divi_100_custom_hamburger_menu--style-5.et_divi_100_custom_hamburger_menu--type-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:last-child:before, .et_divi_100_custom_hamburger_menu--type-2.et_divi_100_custom_hamburger_menu--style-5 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:last-child:after, .et_divi_100_custom_hamburger_menu--style-5.et_divi_100_custom_hamburger_menu--type-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:last-child:after { 813 | position: absolute; 814 | width: 0; 815 | } 816 | 817 | .et_divi_100_custom_hamburger_menu--type-2.et_divi_100_custom_hamburger_menu--style-5 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:last-child:before, .et_divi_100_custom_hamburger_menu--style-5.et_divi_100_custom_hamburger_menu--type-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:last-child:before { 818 | left: 0; 819 | -webkit-animation-name: T2S5DFB; 820 | animation-name: T2S5DFB; 821 | } 822 | 823 | @keyframes T2S5DFB { 824 | 20% { 825 | width: 0%; 826 | } 827 | } 828 | 829 | .et_divi_100_custom_hamburger_menu--type-2.et_divi_100_custom_hamburger_menu--style-5 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:last-child:after, .et_divi_100_custom_hamburger_menu--style-5.et_divi_100_custom_hamburger_menu--type-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:last-child:after { 830 | right: 0; 831 | -webkit-animation-name: T2S5DMA; 832 | animation-name: T2S5DMA; 833 | } 834 | 835 | @-webkit-keyframes T2S5DMA { 836 | 20% { 837 | width: 0%; 838 | } 839 | } 840 | 841 | @keyframes T2S5DMA { 842 | 20% { 843 | width: 0%; 844 | } 845 | } 846 | 847 | /* Type 3 */ 848 | .et_divi_100_custom_hamburger_menu--type-3 .et_divi_100_custom_hamburger_menu__icon div:before { 849 | width: 100%; 850 | margin: 0 2px 0 0; 851 | } 852 | 853 | .et_divi_100_custom_hamburger_menu--type-3 .et_divi_100_custom_hamburger_menu__icon div:after { 854 | width: 2px; 855 | margin: 0; 856 | } 857 | 858 | /* Type 4 */ 859 | .et_divi_100_custom_hamburger_menu--type-4 .et_divi_100_custom_hamburger_menu__icon div { 860 | width: 2px; 861 | margin-right: auto; 862 | margin-left: auto; 863 | } 864 | 865 | .et_divi_100_custom_hamburger_menu--type-4.et_divi_100_custom_hamburger_menu--style-2 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:first-child { 866 | -webkit-animation-name: T4S2DF; 867 | animation-name: T4S2DF; 868 | } 869 | 870 | @-webkit-keyframes T4S2DF { 871 | 0% { 872 | -webkit-transform: none; 873 | transform: none; 874 | } 875 | 20% { 876 | width: 2px; 877 | -webkit-transform: translateY(0.375rem); 878 | transform: translateY(0.375rem); 879 | } 880 | 40% { 881 | -webkit-transform: translateY(0.375rem); 882 | transform: translateY(0.375rem); 883 | } 884 | 80% { 885 | -webkit-transform: translateY(0.375rem) rotate(45deg); 886 | transform: translateY(0.375rem) rotate(45deg); 887 | } 888 | } 889 | 890 | @keyframes T4S2DF { 891 | 0% { 892 | -webkit-transform: none; 893 | transform: none; 894 | } 895 | 20% { 896 | width: 2px; 897 | -webkit-transform: translateY(0.375rem); 898 | transform: translateY(0.375rem); 899 | } 900 | 40% { 901 | -webkit-transform: translateY(0.375rem); 902 | transform: translateY(0.375rem); 903 | } 904 | 80% { 905 | -webkit-transform: translateY(0.375rem) rotate(45deg); 906 | transform: translateY(0.375rem) rotate(45deg); 907 | } 908 | } 909 | 910 | .et_divi_100_custom_hamburger_menu--type-4.et_divi_100_custom_hamburger_menu--style-2 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:last-child { 911 | -webkit-animation-name: T4S2L; 912 | animation-name: T4S2L; 913 | } 914 | 915 | @-webkit-keyframes T4S2L { 916 | 0% { 917 | -webkit-transform: none; 918 | transform: none; 919 | } 920 | 20% { 921 | width: 2px; 922 | -webkit-transform: translateY(-0.375rem); 923 | transform: translateY(-0.375rem); 924 | } 925 | 40% { 926 | -webkit-transform: translateY(-0.375rem); 927 | transform: translateY(-0.375rem); 928 | } 929 | 80% { 930 | -webkit-transform: translateY(-0.375rem) rotate(-45deg); 931 | transform: translateY(-0.375rem) rotate(-45deg); 932 | } 933 | } 934 | 935 | @keyframes T4S2L { 936 | 0% { 937 | -webkit-transform: none; 938 | transform: none; 939 | } 940 | 20% { 941 | width: 2px; 942 | -webkit-transform: translateY(-0.375rem); 943 | transform: translateY(-0.375rem); 944 | } 945 | 40% { 946 | -webkit-transform: translateY(-0.375rem); 947 | transform: translateY(-0.375rem); 948 | } 949 | 80% { 950 | -webkit-transform: translateY(-0.375rem) rotate(-45deg); 951 | transform: translateY(-0.375rem) rotate(-45deg); 952 | } 953 | } 954 | 955 | .et_divi_100_custom_hamburger_menu--type-4.et_divi_100_custom_hamburger_menu--style-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled { 956 | -webkit-animation: T4S30.6s cubic-bezier(0.28, 0.55, 0.385, 1.65); 957 | animation: T4S30.6s cubic-bezier(0.28, 0.55, 0.385, 1.65); 958 | } 959 | 960 | @-webkit-keyframes T4S3 { 961 | 100% { 962 | -webkit-transform: rotate(360deg); 963 | transform: rotate(360deg); 964 | } 965 | } 966 | 967 | @keyframes T4S3 { 968 | 100% { 969 | -webkit-transform: rotate(360deg); 970 | transform: rotate(360deg); 971 | } 972 | } 973 | 974 | .et_divi_100_custom_hamburger_menu--type-4.et_divi_100_custom_hamburger_menu--style-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div { 975 | -webkit-animation-timing-function: linear; 976 | animation-timing-function: linear; 977 | } 978 | 979 | .et_divi_100_custom_hamburger_menu--type-4.et_divi_100_custom_hamburger_menu--style-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:first-child { 980 | -webkit-animation-name: T4S3DF; 981 | animation-name: T4S3DF; 982 | } 983 | 984 | @-webkit-keyframes T4S3DF { 985 | 0% { 986 | -webkit-transform: none; 987 | transform: none; 988 | } 989 | 40% { 990 | width: 2px; 991 | -webkit-transform: translateY(0.375rem); 992 | transform: translateY(0.375rem); 993 | } 994 | 80% { 995 | -webkit-transform: translateY(0.375rem) rotate(45deg); 996 | transform: translateY(0.375rem) rotate(45deg); 997 | } 998 | } 999 | 1000 | @keyframes T4S3DF { 1001 | 0% { 1002 | -webkit-transform: none; 1003 | transform: none; 1004 | } 1005 | 40% { 1006 | width: 2px; 1007 | -webkit-transform: translateY(0.375rem); 1008 | transform: translateY(0.375rem); 1009 | } 1010 | 80% { 1011 | -webkit-transform: translateY(0.375rem) rotate(45deg); 1012 | transform: translateY(0.375rem) rotate(45deg); 1013 | } 1014 | } 1015 | 1016 | .et_divi_100_custom_hamburger_menu--type-4.et_divi_100_custom_hamburger_menu--style-3 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:last-child { 1017 | -webkit-animation-name: T4S3L; 1018 | animation-name: T4S3L; 1019 | } 1020 | 1021 | @-webkit-keyframes T4S3L { 1022 | 0% { 1023 | -webkit-transform: none; 1024 | transform: none; 1025 | } 1026 | 40% { 1027 | width: 2px; 1028 | -webkit-transform: translateY(-0.375rem); 1029 | transform: translateY(-0.375rem); 1030 | } 1031 | 80% { 1032 | -webkit-transform: translateY(-0.375rem) rotate(-45deg); 1033 | transform: translateY(-0.375rem) rotate(-45deg); 1034 | } 1035 | } 1036 | 1037 | @keyframes T4S3L { 1038 | 0% { 1039 | -webkit-transform: none; 1040 | transform: none; 1041 | } 1042 | 40% { 1043 | width: 2px; 1044 | -webkit-transform: translateY(-0.375rem); 1045 | transform: translateY(-0.375rem); 1046 | } 1047 | 80% { 1048 | -webkit-transform: translateY(-0.375rem) rotate(-45deg); 1049 | transform: translateY(-0.375rem) rotate(-45deg); 1050 | } 1051 | } 1052 | 1053 | .et_divi_100_custom_hamburger_menu--type-4.et_divi_100_custom_hamburger_menu--style-4 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled { 1054 | -webkit-animation: T4S40.6s cubic-bezier(0.28, 0.55, 0.385, 1.65); 1055 | animation: T4S40.6s cubic-bezier(0.28, 0.55, 0.385, 1.65); 1056 | } 1057 | 1058 | @-webkit-keyframes T4S4 { 1059 | 100% { 1060 | -webkit-transform: rotate(360deg); 1061 | transform: rotate(360deg); 1062 | } 1063 | } 1064 | 1065 | @keyframes T4S4 { 1066 | 100% { 1067 | -webkit-transform: rotate(360deg); 1068 | transform: rotate(360deg); 1069 | } 1070 | } 1071 | 1072 | .et_divi_100_custom_hamburger_menu--type-4.et_divi_100_custom_hamburger_menu--style-4 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:first-child { 1073 | -webkit-animation-name: T4S4DF; 1074 | animation-name: T4S4DF; 1075 | } 1076 | 1077 | @-webkit-keyframes T4S4DF {} 1078 | 1079 | @keyframes T4S4DF {}.et_divi_100_custom_hamburger_menu--type-4.et_divi_100_custom_hamburger_menu--style-5 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled { 1080 | -webkit-transform: rotate(45deg); 1081 | transform: rotate(45deg); 1082 | -webkit-transition: 0.3s cubic-bezier(0.28, 0.55, 0.385, 1.65); 1083 | transition: 0.3s cubic-bezier(0.28, 0.55, 0.385, 1.65); 1084 | -webkit-transition-timing-function: cubic-bezier(0.28, 0.55, 0.385, 1.65); 1085 | transition-timing-function: cubic-bezier(0.28, 0.55, 0.385, 1.65); 1086 | } 1087 | 1088 | .et_divi_100_custom_hamburger_menu--type-4.et_divi_100_custom_hamburger_menu--style-5 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div { 1089 | width: 2px; 1090 | -webkit-transform: none; 1091 | transform: none; 1092 | } 1093 | 1094 | .et_divi_100_custom_hamburger_menu--type-4.et_divi_100_custom_hamburger_menu--style-5 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:first-child { 1095 | -webkit-transform: translateY(-4px); 1096 | transform: translateY(-4px); 1097 | } 1098 | 1099 | .et_divi_100_custom_hamburger_menu--type-4.et_divi_100_custom_hamburger_menu--style-5 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:not(:first-child):not(:last-child) { 1100 | width: 100%; 1101 | opacity: 1; 1102 | } 1103 | 1104 | .et_divi_100_custom_hamburger_menu--type-4.et_divi_100_custom_hamburger_menu--style-5 .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:last-child { 1105 | -webkit-transform: translateY(4px); 1106 | transform: translateY(4px); 1107 | } 1108 | 1109 | /* Toggled */ 1110 | .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div { 1111 | width: 100%; 1112 | -webkit-animation-duration: 0.6s; 1113 | animation-duration: 0.6s; 1114 | -webkit-animation-timing-function: cubic-bezier(0.28, 0.55, 0.385, 1.65); 1115 | animation-timing-function: cubic-bezier(0.28, 0.55, 0.385, 1.65); 1116 | } 1117 | 1118 | .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:after, .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:before { 1119 | width: 100%; 1120 | } 1121 | 1122 | .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:first-child { 1123 | -webkit-transform: translateY(0.375rem) rotate(45deg); 1124 | transform: translateY(0.375rem) rotate(45deg); 1125 | } 1126 | 1127 | .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:not(:first-child):not(:last-child) { 1128 | opacity: 0; 1129 | } 1130 | 1131 | .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:last-child { 1132 | -webkit-transform: translateY(-0.375rem) rotate(-45deg); 1133 | transform: translateY(-0.375rem) rotate(-45deg); 1134 | } 1135 | 1136 | .et_divi_100_custom_hamburger_menu .mobile_menu_bar:before, .et_divi_100_custom_hamburger_menu .mobile_menu_bar:after { 1137 | display: none; 1138 | } 1139 | 1140 | @media (max-width: 980px) { 1141 | .et_divi_100_custom_hamburger_menu .mobile_menu_bar { 1142 | padding-bottom: 0; 1143 | margin-bottom: 26px; 1144 | } 1145 | } 1146 | /*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNjc3Mvc3R5bGUuc2NzcyIsInNjc3MvdHlwZXMvX3R5cGUtMS5zY3NzIiwic3R5bGUuY3NzIiwic2Nzcy90eXBlcy9fdHlwZS0yLnNjc3MiLCJzY3NzL3R5cGVzL190eXBlLTMuc2NzcyIsInNjc3MvdHlwZXMvX3R5cGUtNC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXNDQSxVQUFVO0FBQ1Y7RUFDRSxtQkFBbUI7RUFDbkIs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tBQUNiO0VBR0ksWUFBWTtFQUNaLGlDQUFpQztVQUFqQyx5QkFBaUM7RUFDakMseUVBaEVxQjtVQWdFckIsaUVBaEVxQjtDQWtGdEI7O0FBdkJIO0VBU00sWUFBWTtDQUNiOztBQVZMO0VBYU0sc0RBQWdIO1VBQWhILDhDQUFnSDtDQUNqSDs7QUFkTDtFQWlCTSxXQUFXO0NBQ1o7O0FBbEJMO0VBcUJNLHdEQUFtSDtVQUFuSCxnREFBbUg7Q0FDcEg7O0FBSUw7RUFLTSxjQUFjO0NBQ2Y7O0FBSUw7RUFDRTtJQUdJLGtCQUFrQjtJQUNsQixvQkFBb0I7R0FDckI7Q0UrZ0JKIiwiZmlsZSI6InN0eWxlLmNzcyJ9 */ -------------------------------------------------------------------------------- /assets/js/admin-scripts.js: -------------------------------------------------------------------------------- 1 | jQuery(document).ready(function ($) { 2 | var $form = $('.et-divi-100-form'), 3 | $menu_type = $('#et_divi_100_custom_hamburger_menu-type'), 4 | $menu_style = $('#et_divi_100_custom_hamburger_menu-style'), 5 | $idTabs = $('.idTabs'), 6 | $tabs_wrap = $('#wrap-general'); 7 | 8 | // Prepend preview container 9 | $form.find('.epanel-box[data-type="select"]:last .box-content').append( $( '
', { id : 'hamburger-menu-preview' }) ); 10 | 11 | // Append Reference Styles 12 | $idTabs.append('
  • Styles Reference
  • '); 13 | $tabs_wrap.append( $( '
    ', { id: 'styles-reference', class: 'tab-content', style: 'display: block; display: none;' } ).html('

    See the Pen Hamburger Menu by Elegant Themes (@elegantthemes) on CodePen.

    ') ); 14 | 15 | // Add tab switching mechanism 16 | $idTabs.on( 'click', 'a', function(e) { 17 | e.preventDefault(); 18 | 19 | var $clicked_link = $(this), 20 | $selected_tab = $( $clicked_link.attr('href') ); 21 | 22 | $idTabs.find('li').removeClass('ui-tabs-active'); 23 | $tabs_wrap.find('.tab-content').hide(); 24 | 25 | $clicked_link.closest('li').addClass('ui-tabs-active'); 26 | $selected_tab.fadeIn(); 27 | }); 28 | 29 | // Update preview 30 | function update_hamburger_menu_preview() { 31 | var $preview = $('#hamburger-menu-preview'); 32 | 33 | if ( $menu_type.val() !== '' && $menu_style.val() !== '' ) { 34 | $preview.html( $( '', { 35 | src : et_divi_100_js_params.preview_dir_url + 'hamburger-' + $menu_type.val() + '-' + $menu_style.val() + '.gif', 36 | style : 'margin-top: 20px;' 37 | } ) ); 38 | } else { 39 | $preview.empty(); 40 | } 41 | } 42 | 43 | // Update preview on page load 44 | update_hamburger_menu_preview(); 45 | 46 | // Live update preview 47 | $form.on( 'change', 'select', function() { 48 | update_hamburger_menu_preview(); 49 | }); 50 | 51 | // Loop each option 52 | $form.find('.epanel-box').each(function(){ 53 | var $field = $(this), 54 | type = $field.attr('data-type'), 55 | $input, 56 | $reset_button, 57 | et_divi_100_file_frame; 58 | 59 | switch( type ) { 60 | case "color": 61 | $input = $field.find('input.colorpicker'); 62 | 63 | $reset_button = $field.find( '.reset-color' ); 64 | 65 | // Setup colorpicker 66 | $input.iris({ 67 | hide : false, 68 | width : 350, 69 | palettes : true 70 | }); 71 | 72 | // Reset color 73 | $reset_button.click( function(e) { 74 | e.preventDefault(); 75 | $input.iris( 'color', $input.attr( 'data-default' ) ); 76 | }); 77 | 78 | break; 79 | case "toggle": 80 | var $input = $field.find( 'select' ), 81 | $toggle = $field.find( '.et_pb_yes_no_button' ); 82 | 83 | $toggle.on( 'click', '.et_pb_value_text, .et_pb_button_slider', function(){ 84 | var input_value = $input.find('option:selected').val() === 'on' ? 'on' : 'off', 85 | toggle_state = input_value === 'on', 86 | toggle_new_state = toggle_state ? false : true, 87 | input_new_value = toggle_new_state ? 'on' : 'off', 88 | toggle_state_class = 'et_pb_' + input_new_value + '_state'; 89 | 90 | $input.val( input_new_value ); 91 | $toggle.removeClass('et_pb_on_state et_pb_off_state').addClass( toggle_state_class ); 92 | }); 93 | 94 | break; 95 | case "upload": 96 | var $input_src = $field.find('.input-src'), 97 | $input_id = $field.find('.input-id'), 98 | $button_upload = $field.find('.button-upload'), 99 | $button_remove = $field.find('.button-remove'), 100 | button_upload_active_text = $button_upload.attr('data-button-active-text'), 101 | button_upload_inactive_text = $button_upload.attr('data-button-inactive-text'), 102 | media_uploader_title = $button_upload.attr('data-media-uploader-title'), 103 | media_uploader_button_text = $button_upload.attr('data-media-uploader-button-text'), 104 | $preview = $field.find('.option-preview'); 105 | 106 | // Check background image status 107 | if ( $input_src.val() !== '' ) { 108 | $button_upload.text( button_upload_active_text); 109 | $button_remove.show(); 110 | } 111 | 112 | // Upload background image button 113 | $button_upload.on( 'click', function( event ){ 114 | event.preventDefault(); 115 | 116 | // If the media frame already exists, reopen it. 117 | if ( et_divi_100_file_frame ) { 118 | 119 | // Open frame 120 | et_divi_100_file_frame.open(); 121 | 122 | return; 123 | } else { 124 | 125 | // Create the media frame. 126 | et_divi_100_file_frame = wp.media.frames.et_divi_100_file_frame = wp.media({ 127 | title: media_uploader_title, 128 | button: { 129 | text: media_uploader_button_text 130 | }, 131 | multiple: false, 132 | library : { 133 | type: 'image' 134 | } 135 | }); 136 | 137 | // When an image is selected, run a callback. 138 | et_divi_100_file_frame.on( 'select', function() { 139 | // We set multiple to false so only get one image from the uploader 140 | attachment = et_divi_100_file_frame.state().get('selection').first().toJSON(); 141 | 142 | // Update input fields 143 | $input_src.val( attachment.url ); 144 | 145 | $input_id.val( attachment.id ); 146 | 147 | // Update Previewer 148 | $preview.html( $( '', { 149 | src : attachment.url, 150 | style : 'max-width: 100%;' 151 | } ) ); 152 | 153 | // Update button text 154 | $button_upload.text( button_upload_active_text ); 155 | $button_remove.show(); 156 | }); 157 | 158 | // Finally, open the modal 159 | et_divi_100_file_frame.open(); 160 | } 161 | }); 162 | 163 | // Remove background image 164 | $button_remove.on( 'click', function( event ) { 165 | event.preventDefault(); 166 | 167 | // Remove input 168 | $input_src.val(''); 169 | $input_id.val(''); 170 | 171 | // Remove preview 172 | $preview.empty(); 173 | 174 | // Update button text 175 | $button_upload.text( button_upload_inactive_text ); 176 | $button_remove.hide(); 177 | }); 178 | break; 179 | } 180 | }); 181 | 182 | // Top button 183 | $('#epanel-save-top').click(function(e){ 184 | e.preventDefault(); 185 | 186 | $('#epanel-save').trigger('click'); 187 | }); 188 | 189 | // Help box 190 | $(".box-description").click(function(){ 191 | var descheading = $(this).parent('.epanel-box').find(".box-title h3").html(); 192 | var desctext = $(this).parent('.epanel-box').find(".box-title .box-descr").html(); 193 | 194 | $('body').append("
    "+ et_divi_100_js_params.help_label +"

    "+descheading+"

    "+desctext+"
    "); 195 | 196 | $( '.lightboxclose' ).click( function() { 197 | et_pb_close_modal( $( '#custom-lbox' ) ); 198 | }); 199 | }); 200 | 201 | function et_pb_close_modal( $overlay, no_overlay_remove ) { 202 | var $modal_container = $overlay; 203 | 204 | // add class to apply the closing animation to modal 205 | $modal_container.addClass( 'et_pb_modal_closing' ); 206 | 207 | //remove the modal with overlay when animation complete 208 | setTimeout( function() { 209 | if ( 'no_remove' !== no_overlay_remove ) { 210 | $modal_container.remove(); 211 | } 212 | }, 600 ); 213 | } 214 | }); -------------------------------------------------------------------------------- /assets/js/scripts.js: -------------------------------------------------------------------------------- 1 | jQuery(document).ready(function ($) { 2 | /** 3 | * Checks if body class exists 4 | */ 5 | if ($('.et_divi_100_custom_hamburger_menu').length > 0) { 6 | var iconName = 'et_divi_100_custom_hamburger_menu__icon', 7 | toggledName = iconName + '--toggled'; 8 | 9 | /** 10 | * Appends hamburger bars to menu 11 | */ 12 | $(".mobile_menu_bar") 13 | .addClass(iconName) 14 | .html('
    '); 15 | 16 | /** 17 | * Handle click event 18 | */ 19 | $('.' + iconName).on('click', function (e) { 20 | e.preventDefault(); 21 | $('.' + iconName).toggleClass(toggledName); 22 | }); 23 | } 24 | }); -------------------------------------------------------------------------------- /assets/preview/hamburger-1-1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyhqtran/divi-100-hamburger-menu/9bed8e7fdc2b216dcf39949d7e6af8b7c3e9ca3c/assets/preview/hamburger-1-1.gif -------------------------------------------------------------------------------- /assets/preview/hamburger-1-2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyhqtran/divi-100-hamburger-menu/9bed8e7fdc2b216dcf39949d7e6af8b7c3e9ca3c/assets/preview/hamburger-1-2.gif -------------------------------------------------------------------------------- /assets/preview/hamburger-1-3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyhqtran/divi-100-hamburger-menu/9bed8e7fdc2b216dcf39949d7e6af8b7c3e9ca3c/assets/preview/hamburger-1-3.gif -------------------------------------------------------------------------------- /assets/preview/hamburger-1-4.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyhqtran/divi-100-hamburger-menu/9bed8e7fdc2b216dcf39949d7e6af8b7c3e9ca3c/assets/preview/hamburger-1-4.gif -------------------------------------------------------------------------------- /assets/preview/hamburger-1-5.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyhqtran/divi-100-hamburger-menu/9bed8e7fdc2b216dcf39949d7e6af8b7c3e9ca3c/assets/preview/hamburger-1-5.gif -------------------------------------------------------------------------------- /assets/preview/hamburger-2-1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyhqtran/divi-100-hamburger-menu/9bed8e7fdc2b216dcf39949d7e6af8b7c3e9ca3c/assets/preview/hamburger-2-1.gif -------------------------------------------------------------------------------- /assets/preview/hamburger-2-2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyhqtran/divi-100-hamburger-menu/9bed8e7fdc2b216dcf39949d7e6af8b7c3e9ca3c/assets/preview/hamburger-2-2.gif -------------------------------------------------------------------------------- /assets/preview/hamburger-2-3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyhqtran/divi-100-hamburger-menu/9bed8e7fdc2b216dcf39949d7e6af8b7c3e9ca3c/assets/preview/hamburger-2-3.gif -------------------------------------------------------------------------------- /assets/preview/hamburger-2-4.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyhqtran/divi-100-hamburger-menu/9bed8e7fdc2b216dcf39949d7e6af8b7c3e9ca3c/assets/preview/hamburger-2-4.gif -------------------------------------------------------------------------------- /assets/preview/hamburger-2-5.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyhqtran/divi-100-hamburger-menu/9bed8e7fdc2b216dcf39949d7e6af8b7c3e9ca3c/assets/preview/hamburger-2-5.gif -------------------------------------------------------------------------------- /assets/preview/hamburger-3-1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyhqtran/divi-100-hamburger-menu/9bed8e7fdc2b216dcf39949d7e6af8b7c3e9ca3c/assets/preview/hamburger-3-1.gif -------------------------------------------------------------------------------- /assets/preview/hamburger-3-2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyhqtran/divi-100-hamburger-menu/9bed8e7fdc2b216dcf39949d7e6af8b7c3e9ca3c/assets/preview/hamburger-3-2.gif -------------------------------------------------------------------------------- /assets/preview/hamburger-3-3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyhqtran/divi-100-hamburger-menu/9bed8e7fdc2b216dcf39949d7e6af8b7c3e9ca3c/assets/preview/hamburger-3-3.gif -------------------------------------------------------------------------------- /assets/preview/hamburger-3-4.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyhqtran/divi-100-hamburger-menu/9bed8e7fdc2b216dcf39949d7e6af8b7c3e9ca3c/assets/preview/hamburger-3-4.gif -------------------------------------------------------------------------------- /assets/preview/hamburger-3-5.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyhqtran/divi-100-hamburger-menu/9bed8e7fdc2b216dcf39949d7e6af8b7c3e9ca3c/assets/preview/hamburger-3-5.gif -------------------------------------------------------------------------------- /assets/preview/hamburger-4-1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyhqtran/divi-100-hamburger-menu/9bed8e7fdc2b216dcf39949d7e6af8b7c3e9ca3c/assets/preview/hamburger-4-1.gif -------------------------------------------------------------------------------- /assets/preview/hamburger-4-2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyhqtran/divi-100-hamburger-menu/9bed8e7fdc2b216dcf39949d7e6af8b7c3e9ca3c/assets/preview/hamburger-4-2.gif -------------------------------------------------------------------------------- /assets/preview/hamburger-4-3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyhqtran/divi-100-hamburger-menu/9bed8e7fdc2b216dcf39949d7e6af8b7c3e9ca3c/assets/preview/hamburger-4-3.gif -------------------------------------------------------------------------------- /assets/preview/hamburger-4-4.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyhqtran/divi-100-hamburger-menu/9bed8e7fdc2b216dcf39949d7e6af8b7c3e9ca3c/assets/preview/hamburger-4-4.gif -------------------------------------------------------------------------------- /assets/preview/hamburger-4-5.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyhqtran/divi-100-hamburger-menu/9bed8e7fdc2b216dcf39949d7e6af8b7c3e9ca3c/assets/preview/hamburger-4-5.gif -------------------------------------------------------------------------------- /bin/autoprefixer: -------------------------------------------------------------------------------- 1 | postcss -u autoprefixer -d assets/css/ assets/**/*.css -------------------------------------------------------------------------------- /bin/build: -------------------------------------------------------------------------------- 1 | npm run build-css && npm run autoprefixer && npm run csscomb -------------------------------------------------------------------------------- /bin/build-css: -------------------------------------------------------------------------------- 1 | node-sass --output-style expanded --indent-type space --indent-width 2 --source-map-embed true --include-path scss scss/style.scss assets/css/style.css -------------------------------------------------------------------------------- /bin/csscomb: -------------------------------------------------------------------------------- 1 | csscomb assets/**/*.css -------------------------------------------------------------------------------- /bin/livereload: -------------------------------------------------------------------------------- 1 | nodemon livereload.js -------------------------------------------------------------------------------- /bin/start: -------------------------------------------------------------------------------- 1 | concurrent "npm run watch-scss" "npm run watch-css" "npm run livereload" -------------------------------------------------------------------------------- /bin/watch-css: -------------------------------------------------------------------------------- 1 | nodemon -e css --ignore node_modules/ -x "npm run autoprefixer" -------------------------------------------------------------------------------- /bin/watch-scss: -------------------------------------------------------------------------------- 1 | nodemon -e scss --ignore node_modules/ -x "npm run build-css" -------------------------------------------------------------------------------- /hamburger-menu.php: -------------------------------------------------------------------------------- 1 | $main_prefix, 54 | 'plugin_name' => __( 'Hamburger Menu' ), 55 | 'plugin_slug' => $plugin_slug, 56 | 'plugin_id' => "{$main_prefix}{$plugin_slug}", 57 | 'plugin_prefix' => "{$main_prefix}{$plugin_slug}-", 58 | 'plugin_version' => 20160602, 59 | 'plugin_dir_path' => plugin_dir_path( __FILE__ ), 60 | ); 61 | } 62 | 63 | /** 64 | * et_divi_100_settings callback 65 | * 66 | * @param array settings 67 | * @return array settings 68 | */ 69 | function register( $settings ) { 70 | $info = self::info(); 71 | 72 | $settings[ $info['plugin_slug'] ] = $info; 73 | 74 | return $settings; 75 | } 76 | 77 | /** 78 | * Init plugin after all plugins has been loaded 79 | */ 80 | function init() { 81 | // Load Divi 100 Setup 82 | require_once( plugin_dir_path( __FILE__ ) . 'divi-100-setup/divi-100-setup.php' ); 83 | 84 | // Load Hamburger Menu 85 | ET_Divi_100_Custom_Hamburger_Menu::instance(); 86 | } 87 | } 88 | ET_Divi_100_Custom_Hamburger_Menu_Config::instance(); 89 | 90 | /** 91 | * Load Hamburger Menu 92 | */ 93 | class ET_Divi_100_Custom_Hamburger_Menu { 94 | /** 95 | * Unique instance of plugin 96 | */ 97 | public static $instance; 98 | public $config; 99 | protected $settings; 100 | protected $utils; 101 | 102 | /** 103 | * Gets the instance of the plugin 104 | */ 105 | public static function instance(){ 106 | if ( null === self::$instance ){ 107 | self::$instance = new self(); 108 | } 109 | 110 | return self::$instance; 111 | } 112 | 113 | /** 114 | * Constructor 115 | */ 116 | private function __construct(){ 117 | $this->config = ET_Divi_100_Custom_Hamburger_Menu_Config::info(); 118 | $this->settings = maybe_unserialize( get_option( $this->config['plugin_id'] ) ); 119 | $this->utils = new Divi_100_Utils( $this->settings ); 120 | 121 | // Initialize if Divi is active 122 | if ( et_divi_100_is_active() ) { 123 | $this->init(); 124 | } 125 | } 126 | 127 | /** 128 | * Hooking methods into WordPress actions and filters 129 | * 130 | * @return void 131 | */ 132 | private function init(){ 133 | add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_frontend_scripts' ) ); 134 | add_filter( 'body_class', array( $this, 'body_class' ) ); 135 | 136 | if ( is_admin() ) { 137 | $settings_args = array( 138 | 'plugin_id' => $this->config['plugin_id'], 139 | 'plugin_slug' => $this->config['plugin_slug'], 140 | 'preview_dir_url' => plugin_dir_url( __FILE__ ) . 'preview/', 141 | 'title' => __( 'Hamburger Menu' ), 142 | 'fields' => $this->settings_fields(), 143 | 'button_save_text' => __( 'Save Changes' ), 144 | ); 145 | 146 | new Divi_100_Settings( $settings_args ); 147 | 148 | // Add specific scripts for hamburger-menu plugin 149 | add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) ); 150 | } 151 | } 152 | 153 | private function settings_fields() { 154 | return array( 155 | 'type' => array( 156 | 'type' => 'select', 157 | 'preview_prefix' => 'type-', 158 | 'has_preview' => false, 159 | 'id' => 'type', 160 | 'label' => __( 'Select Type' ), 161 | 'description' => __( 'This type will be used on the hamburger menu' ), 162 | 'options' => $this->get_types(), 163 | 'sanitize_callback' => 'sanitize_text_field', 164 | ), 165 | 'style' => array( 166 | 'type' => 'select', 167 | 'preview_prefix' => 'style-', 168 | 'has_preview' => false, 169 | 'id' => 'style', 170 | 'label' => __( 'Select Style' ), 171 | 'description' => __( 'This style will be used on the hamburger menu' ), 172 | 'options' => $this->get_styles(), 173 | 'sanitize_callback' => 'sanitize_text_field', 174 | ), 175 | 'default-color' => array( 176 | 'type' => 'color', 177 | 'id' => 'default-color', 178 | 'label' => __( 'Select Default Color' ), 179 | 'description' => __( 'The color you choose will be used as color on the blocks of hamburger menu' ), 180 | 'sanitize_callback' => 'et_divi_100_sanitize_alpha_color', 181 | 'default' => '#000000', 182 | ), 183 | 'active-color' => array( 184 | 'type' => 'color', 185 | 'id' => 'active-color', 186 | 'label' => __( 'Select Active Color' ), 187 | 'description' => __( 'The color you choose will be used as color on the blocks of hamburger menu when it is being clicked' ), 188 | 'sanitize_callback' => 'et_divi_100_sanitize_alpha_color', 189 | 'default' => '#000000', 190 | ), 191 | ); 192 | } 193 | 194 | /** 195 | * Modify dashboard scripts 196 | * 197 | * @return void 198 | */ 199 | function enqueue_scripts() { 200 | if ( isset( $_GET['page'] ) && ( $this->config['plugin_id'] === $_GET['page'] || ( 'et_divi_100_options' === $_GET['page'] && et_divi_100_get_most_updated_plugin_slug() === $this->config['plugin_slug'] ) ) ) { 201 | // Dequeue default scripts 202 | wp_dequeue_script( $this->config['plugin_id'] . '-admin_scripts' ); 203 | 204 | // Enqueue hamburger menu specific scripts 205 | wp_enqueue_script( $this->config['plugin_id'] . '-admin_hamburger_menu_scripts', plugin_dir_url( __FILE__ ) . 'assets/js/admin-scripts.js', array( 'jquery', 'iris' ), $this->config['plugin_version'], true ); 206 | wp_localize_script( $this->config['plugin_id'] . '-admin_hamburger_menu_scripts', 'et_divi_100_js_params', apply_filters( 'et_divi_100_js_params', array( 207 | 'preview_dir_url' => esc_url( plugin_dir_url( __FILE__ ) . 'assets/preview/' ), 208 | 'help_label' => esc_html__( 'Help' ), 209 | ) ) ); 210 | } 211 | } 212 | 213 | /** 214 | * List of valid styles 215 | * @return array 216 | */ 217 | function get_styles() { 218 | return apply_filters( $this->config['plugin_prefix'] . 'styles', array( 219 | '' => __( 'Default' ), 220 | '1' => __( 'One' ), 221 | '2' => __( 'Two' ), 222 | '3' => __( 'Three' ), 223 | '4' => __( 'Four' ), 224 | '5' => __( 'Five' ), 225 | ) ); 226 | } 227 | 228 | /** 229 | * List of valid types 230 | * @return array 231 | */ 232 | function get_types() { 233 | return apply_filters( $this->config['plugin_prefix'] . 'types', array( 234 | '' => __( 'Default' ), 235 | '1' => __( 'One' ), 236 | '2' => __( 'Two' ), 237 | '3' => __( 'Three' ), 238 | '4' => __( 'Four' ), 239 | ) ); 240 | } 241 | 242 | /** 243 | * Add specific class to 244 | * @return array 245 | */ 246 | function body_class( $classes ) { 247 | // Get selected style 248 | $selected_style = $this->utils->get_value( 'style' ); 249 | 250 | // Get selected type 251 | $selected_type = $this->utils->get_value( 'type' ); 252 | 253 | // Assign specific class to if needed 254 | if ( '' !== $selected_style && '' !== $selected_type ) { 255 | $classes[] = esc_attr( $this->config['plugin_id'] ); 256 | } 257 | 258 | if ( '' !== $selected_style ) { 259 | $classes[] = esc_attr( $this->config['plugin_prefix'] . '-style-' . $selected_style ); 260 | } 261 | 262 | if ( '' !== $selected_type ) { 263 | $classes[] = esc_attr( $this->config['plugin_prefix'] . '-type-' . $selected_type ); 264 | } 265 | 266 | return $classes; 267 | } 268 | 269 | /** 270 | * Load front end scripts 271 | * @return void 272 | */ 273 | function enqueue_frontend_scripts() { 274 | wp_enqueue_style( 'custom-hamburger-menus', plugin_dir_url( __FILE__ ) . 'assets/css/style.css', array(), $this->config['plugin_version'] ); 275 | wp_enqueue_script( 'custom-hamburger-menus', plugin_dir_url( __FILE__ ) . 'assets/js/scripts.js', array( 'jquery' ), $this->config['plugin_version'], true ); 276 | 277 | // Get plugin settings 278 | $settings = $this->settings_fields(); 279 | 280 | // Add custom default color 281 | $default_color_default = $settings['default-color']['default']; 282 | $default_color = $this->utils->get_value( 'default-color', $default_color_default ); 283 | $default_color_selector = ( '2' === $this->utils->get_value( 'type', '' ) || '3' === $this->utils->get_value( 'type', '' ) ) ? 284 | 'body.et_divi_100_custom_hamburger_menu .et_divi_100_custom_hamburger_menu__icon div:before, 285 | body.et_divi_100_custom_hamburger_menu .et_divi_100_custom_hamburger_menu__icon div:after' : 286 | 'body.et_divi_100_custom_hamburger_menu .et_divi_100_custom_hamburger_menu__icon div'; 287 | 288 | if ( $default_color && $default_color !== $default_color_default ) { 289 | $custom_default_color_css = sprintf( 290 | '%1$s { 291 | background: %2$s; 292 | }', 293 | $default_color_selector, 294 | et_divi_100_sanitize_alpha_color( $default_color ) 295 | ); 296 | wp_add_inline_style( 'custom-hamburger-menus', $custom_default_color_css ); 297 | } 298 | 299 | // Add custom active color 300 | $active_color_active = $settings['active-color']['default']; 301 | $active_color = $this->utils->get_value( 'active-color', $active_color_active ); 302 | $active_color_selector = ( '2' === $this->utils->get_value( 'type', '' ) || '3' === $this->utils->get_value( 'type', '' ) ) ? 303 | 'body.et_divi_100_custom_hamburger_menu .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:before, 304 | body.et_divi_100_custom_hamburger_menu .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div:after' : 305 | 'body.et_divi_100_custom_hamburger_menu .et_divi_100_custom_hamburger_menu__icon.et_divi_100_custom_hamburger_menu__icon--toggled div'; 306 | 307 | if ( $active_color && $active_color !== $active_color_active ) { 308 | $custom_active_color_css = sprintf( 309 | '%1$s { 310 | background: %2$s; 311 | }', 312 | $active_color_selector, 313 | et_divi_100_sanitize_alpha_color( $active_color ) 314 | ); 315 | wp_add_inline_style( 'custom-hamburger-menus', $custom_active_color_css ); 316 | } 317 | } 318 | } -------------------------------------------------------------------------------- /livereload.js: -------------------------------------------------------------------------------- 1 | var path = require('path'); 2 | var livereload = require('livereload'); 3 | 4 | var server = livereload.createServer({ 5 | exts: ['html', 'php', 'css', 'js'], 6 | exclusions: [path.join(__dirname, 'node_modules')], 7 | }); 8 | 9 | server.watch([__dirname]); -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "divi-100-hamburger-menu", 3 | "version": "0.0.1", 4 | "description": "", 5 | "main": "hamburger-menu.php", 6 | "scripts": { 7 | "start": "./bin/start", 8 | "autoprefixer": "./bin/autoprefixer", 9 | "csscomb": "./bin/csscomb", 10 | "build": "./bin/build", 11 | "build-css": "./bin/build-css", 12 | "livereload": "./bin/livereload", 13 | "watch-css": "./bin/watch-css", 14 | "watch-scss": "./bin/watch-scss" 15 | }, 16 | "repository": { 17 | "type": "git", 18 | "url": "git+https://github.com/andyhqtran/divi-100-hamburger-menu.git" 19 | }, 20 | "author": "Andy Tran ", 21 | "license": "GPL-3.0", 22 | "bugs": { 23 | "url": "https://github.com/andyhqtran/divi-100-hamburger-menu/issues" 24 | }, 25 | "homepage": "https://github.com/andyhqtran/divi-100-hamburger-menu#readme", 26 | "devDependencies": { 27 | "autoprefixer": "^6.3.6", 28 | "concurrently": "^2.1.0", 29 | "csscomb": "^3.1.8", 30 | "livereload": "^0.4.1", 31 | "node-sass": "^3.7.0", 32 | "nodemon": "^1.9.2", 33 | "postcss": "^5.0.21" 34 | } 35 | } -------------------------------------------------------------------------------- /preview.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andyhqtran/divi-100-hamburger-menu/9bed8e7fdc2b216dcf39949d7e6af8b7c3e9ca3c/preview.jpg -------------------------------------------------------------------------------- /scss/style.scss: -------------------------------------------------------------------------------- 1 | // Functions 2 | $default-browser-font-size: 16; 3 | 4 | @function rem($pixels, $context: $default-browser-font-size) { 5 | @if unitless($pixels) { 6 | $pixels: $pixels * 1px; 7 | } 8 | 9 | @if unitless($context) { 10 | $context: $context * 1px; 11 | } 12 | 13 | @return $pixels / $context * 1rem; 14 | } 15 | 16 | $types: 7; // Total Types 17 | 18 | // Colors 19 | $black: #000; 20 | $white: #FFF; 21 | 22 | // Divi 100 Settings 23 | $prefix-plugin: "custom_hamburger_menu"; 24 | $prefix: ".et_divi_100_" + $prefix-plugin; 25 | $prefix-icon: $prefix + "__icon"; 26 | $prefix-style: $prefix + "--style-"; 27 | $prefix-toggle: $prefix-icon + "--toggled"; 28 | $prefix-type: $prefix + "--type-"; 29 | 30 | // Hamburger Settings 31 | $hamburger-size: rem(30); // Hamburger Size 32 | $bar-total: 3; // Bar Total 33 | $bar-height: rem(2); // Bar Height 34 | $bar-duration: 0.3s; 35 | $bar-timing: cubic-bezier(0.28, 0.55, 0.385, 1.65); 36 | 37 | @media only screen and (max-width: 980px) {} 38 | 39 | /* Menu */ 40 | #{$prefix-icon} { 41 | position: relative; 42 | display: block; 43 | width: $hamburger-size; 44 | height: $hamburger-size; 45 | box-sizing: border-box; 46 | cursor: pointer; 47 | padding: ($hamburger-size - $bar-height * $bar-total) / ($bar-total * 2); 48 | clear: both; 49 | 50 | div { 51 | background: $black; 52 | width: 100%; 53 | height: $bar-height; 54 | margin: (($hamburger-size - $bar-height * $bar-total) / ($bar-total * 2)) auto; 55 | border-radius: 10px; 56 | transition: $bar-duration $bar-timing; 57 | transition-timing-function: $bar-timing; 58 | transform: 0; 59 | transform-origin: center; 60 | 61 | &:before, 62 | &:after { 63 | transition: $bar-duration $bar-timing; 64 | transition-timing-function: $bar-timing; 65 | } 66 | } 67 | } 68 | 69 | @mixin type($type) { 70 | #{$prefix-type + $type + " " + $prefix-icon} { 71 | @content; 72 | } 73 | } 74 | 75 | @mixin style($type, $style) { 76 | #{$prefix-type + $type + $prefix-style + $style + " " + $prefix-icon + $prefix-toggle} { 77 | @content; 78 | } 79 | } 80 | 81 | /* Type 1 */ 82 | @import "types/type-1"; 83 | 84 | /* Type 2 */ 85 | @import "types/type-2"; 86 | 87 | /* Type 3 */ 88 | @import "types/type-3"; 89 | 90 | /* Type 4 */ 91 | @import "types/type-4"; 92 | 93 | /* Toggled */ 94 | #{$prefix-icon + $prefix-toggle} { 95 | 96 | div { 97 | width: 100%; 98 | animation-duration: $bar-duration * 2; 99 | animation-timing-function: $bar-timing; 100 | 101 | &:after, 102 | &:before { 103 | width: 100%; 104 | } 105 | 106 | &:first-child { 107 | transform: translateY(($hamburger-size - $bar-height + $bar-height) / ($bar-total * 2) + $bar-height / 2) rotate(45deg); 108 | } 109 | 110 | &:not(:first-child):not(:last-child) { 111 | opacity: 0; 112 | } 113 | 114 | &:last-child { 115 | transform: translateY(-(($hamburger-size - $bar-height + $bar-height) / ($bar-total * 2) + $bar-height / 2)) rotate(-45deg); 116 | } 117 | } 118 | } 119 | 120 | #{$prefix} { 121 | 122 | .mobile_menu_bar { 123 | &:before, 124 | &:after { 125 | display: none; 126 | } 127 | } 128 | } 129 | 130 | @media (max-width: 980px) { 131 | #{$prefix} { 132 | 133 | .mobile_menu_bar { 134 | padding-bottom: 0; 135 | margin-bottom: 26px; 136 | } 137 | } 138 | } -------------------------------------------------------------------------------- /scss/types/_type-1.scss: -------------------------------------------------------------------------------- 1 | @include type(1) {} 2 | 3 | 4 | @include style(1, 2) { 5 | div { 6 | &:not(:first-child):not(:last-child) { 7 | width: 0; 8 | margin-left: 0; 9 | opacity: 1; 10 | } 11 | } 12 | } 13 | 14 | 15 | @include style(1, 3) { 16 | $type: 1; 17 | $style: 3; 18 | $name: (first: "T" + $type + "S" + $style + "DF", middle: "T" + $type + "S" + $style + "DM", last: "T" + $type + "S" + $style + "L"); 19 | 20 | div { 21 | &:first-child { 22 | animation-name: #{map-get($name, first)}; 23 | 24 | @keyframes #{map-get($name, first)} { 25 | 26 | 0% { 27 | transform: none; 28 | } 29 | 30 | 40% { 31 | transform: translateY(($hamburger-size - $bar-height + $bar-height) / ($bar-total * 2) + $bar-height / 2); 32 | } 33 | 34 | 80% { 35 | transform: translateY(($hamburger-size - $bar-height + $bar-height) / ($bar-total * 2) + $bar-height / 2) rotate(45deg); 36 | } 37 | } 38 | } 39 | 40 | &:last-child { 41 | animation-name: #{map-get($name, last)}; 42 | 43 | @keyframes #{map-get($name, last)} { 44 | 45 | 0% { 46 | transform: none; 47 | } 48 | 49 | 40% { 50 | transform: translateY(-(($hamburger-size - $bar-height + $bar-height) / ($bar-total * 2) + $bar-height / 2)); 51 | } 52 | 53 | 80% { 54 | transform: translateY(-(($hamburger-size - $bar-height + $bar-height) / ($bar-total * 2) + $bar-height / 2)) rotate(-45deg); 55 | } 56 | } 57 | } 58 | } 59 | } 60 | 61 | 62 | @include style(1, 4) { 63 | $type: 1; 64 | $style: 4; 65 | $name: (first: "T" + $type + "S" + $style + "DF", middle: "T" + $type + "S" + $style + "DM", last: "T" + $type + "S" + $style + "L"); 66 | 67 | div { 68 | animation-timing-function: linear; 69 | 70 | &:first-child { 71 | animation-name: #{map-get($name, first)}; 72 | 73 | @keyframes #{map-get($name, first)} { 74 | 75 | 0% { 76 | margin-right: 0; 77 | transform: none; 78 | } 79 | 80 | 20% { 81 | width: 100%; 82 | transform: translateY(($hamburger-size - $bar-height + $bar-height) / ($bar-total * 2) + $bar-height / 2); 83 | } 84 | 85 | 40% { 86 | width: 0; 87 | margin-right: 0; 88 | transform: translateY(($hamburger-size - $bar-height + $bar-height) / ($bar-total * 2) + $bar-height / 2); 89 | } 90 | 91 | 80% { 92 | width: 0; 93 | margin-right: auto; 94 | transform: translateY(($hamburger-size - $bar-height + $bar-height) / ($bar-total * 2) + $bar-height / 2) rotate(45deg); 95 | } 96 | 97 | 90% { 98 | transform: translateY(($hamburger-size - $bar-height + $bar-height) / ($bar-total * 2) + $bar-height / 2) rotate(45deg); 99 | } 100 | } 101 | } 102 | 103 | &:last-child { 104 | animation-name: #{map-get($name, last)}; 105 | 106 | @keyframes #{map-get($name, last)} { 107 | 108 | 0% { 109 | margin-left: 0; 110 | transform: none; 111 | } 112 | 113 | 20% { 114 | width: 100%; 115 | transform: translateY(-(($hamburger-size - $bar-height + $bar-height) / ($bar-total * 2) + $bar-height / 2)); 116 | } 117 | 118 | 40% { 119 | width: 0; 120 | margin-left: 0; 121 | transform: translateY(-(($hamburger-size - $bar-height + $bar-height) / ($bar-total * 2) + $bar-height / 2)); 122 | } 123 | 124 | 80% { 125 | width: 0; 126 | margin-left: auto; 127 | transform: translateY(-(($hamburger-size - $bar-height + $bar-height) / ($bar-total * 2) + $bar-height / 2)) rotate(-45deg); 128 | } 129 | 130 | 90% { 131 | transform: translateY(-(($hamburger-size - $bar-height + $bar-height) / ($bar-total * 2) + $bar-height / 2)) rotate(-45deg); 132 | } 133 | } 134 | } 135 | } 136 | } 137 | 138 | 139 | @include style(1, 5) { 140 | $type: 1; 141 | $style: 5; 142 | $name: (first: "T" + $type + "S" + $style + "DF", middle: "T" + $type + "S" + $style + "DM", last: "T" + $type + "S" + $style + "L"); 143 | 144 | div { 145 | animation-timing-function: linear; 146 | 147 | &:first-child { 148 | animation-name: #{map-get($name, first)}; 149 | 150 | @keyframes #{map-get($name, first)} { 151 | 152 | 0% { 153 | margin-right: 0; 154 | transform: none; 155 | transform-origin: top right; 156 | } 157 | 158 | 25% { 159 | width: 100%; 160 | transform: translateY(($hamburger-size - $bar-height + $bar-height) / ($bar-total * 2) + $bar-height / 2) rotate(10deg); 161 | } 162 | 163 | 30% { 164 | width: 100%; 165 | transform: translateY(($hamburger-size - $bar-height + $bar-height) / ($bar-total * 2) + $bar-height / 2) rotate(10deg); 166 | } 167 | 168 | 40% { 169 | width: 0%; 170 | transform: translateY(($hamburger-size - $bar-height + $bar-height) / ($bar-total * 2) + $bar-height / 2) rotate(10deg); 171 | } 172 | 173 | 50% { 174 | width: 0%; 175 | transform-origin: center; 176 | transform: translateY(($hamburger-size - $bar-height + $bar-height) / ($bar-total * 2) + $bar-height / 2) rotate(45deg); 177 | } 178 | 179 | 90% { 180 | transform: translateY(($hamburger-size - $bar-height + $bar-height) / ($bar-total * 2) + $bar-height / 2) rotate(45deg); 181 | } 182 | } 183 | } 184 | 185 | &:not(:first-child):not(:last-child) { 186 | animation-name: #{map-get($name, middle)}; 187 | width: 0%; 188 | 189 | @keyframes #{map-get($name, middle)} { 190 | 191 | 0% { 192 | width: 100%; 193 | opacity: 1; 194 | } 195 | 196 | 40% { 197 | width: 100%; 198 | } 199 | 200 | 50% { 201 | width: 0%; 202 | opacity: 1; 203 | } 204 | } 205 | } 206 | 207 | &:last-child { 208 | animation-name: #{map-get($name, last)}; 209 | 210 | @keyframes #{map-get($name, last)} { 211 | 212 | 0% { 213 | margin-left: 0; 214 | transform: none; 215 | transform-origin: bottom left; 216 | } 217 | 218 | 25% { 219 | width: 100%; 220 | transform: translateY(-(($hamburger-size - $bar-height + $bar-height) / ($bar-total * 2) + $bar-height / 2)) rotate(10deg); 221 | } 222 | 223 | 30% { 224 | width: 100%; 225 | transform: translateY(-(($hamburger-size - $bar-height + $bar-height) / ($bar-total * 2) + $bar-height / 2)) rotate(10deg); 226 | } 227 | 228 | 40% { 229 | width: 0%; 230 | transform: translateY(-(($hamburger-size - $bar-height + $bar-height) / ($bar-total * 2) + $bar-height / 2)) rotate(10deg); 231 | } 232 | 233 | 50% { 234 | width: 0%; 235 | transform-origin: center; 236 | transform: translateY(-(($hamburger-size - $bar-height + $bar-height) / ($bar-total * 2) + $bar-height / 2)) rotate(-45deg); 237 | } 238 | 239 | 90% { 240 | transform: translateY(-(($hamburger-size - $bar-height + $bar-height) / ($bar-total * 2) + $bar-height / 2)) rotate(-45deg); 241 | } 242 | } 243 | } 244 | } 245 | } -------------------------------------------------------------------------------- /scss/types/_type-2.scss: -------------------------------------------------------------------------------- 1 | @include type(2) { 2 | div { 3 | display: flex; 4 | flex-direction: row; 5 | background: 0; 6 | 7 | &:before, 8 | &:after { 9 | content: ''; 10 | display: block; 11 | background: $black; 12 | width: 2px; 13 | min-width: 2px; 14 | height: 2px; 15 | border-radius: 10px; 16 | margin: 0 2px 0 0; 17 | } 18 | 19 | &:after { 20 | width: 100%; 21 | margin: 0; 22 | } 23 | } 24 | } 25 | 26 | 27 | @include style(2, 2) { 28 | div { 29 | &:not(:first-child):not(:last-child) { 30 | opacity: 1; 31 | 32 | &:before, 33 | &:after { 34 | width: 0; 35 | min-width: 0; 36 | margin-left: 0; 37 | opacity: 1; 38 | } 39 | } 40 | } 41 | } 42 | 43 | 44 | @include style(2, 3) { 45 | $type: 2; 46 | $style: 3; 47 | $name: (first: "T" + $type + "S" + $style + "DF", middle: "T" + $type + "S" + $style + "DM", last: "T" + $type + "S" + $style + "DL"); 48 | $pseudo-name: (first-before: "T" + $type + "S" + $style + "DFB", first-after: "T" + $type + "S" + $style + "DMA", middle-before: "T" + $type + "S" + $style + "DMB", middle-after: "T" + $type + "S" + $style + "DMA", last-before: "T" + $type + "S" + $style + "DFB", last-after: "T" + $type + "S" + $style + "DMA"); 49 | 50 | div { 51 | &:first-child { 52 | animation-name: #{map-get($name, first)}; 53 | 54 | @keyframes #{map-get($name, first)} { 55 | 56 | 0% { 57 | transform: none; 58 | } 59 | 60 | 20% { 61 | transform: none; 62 | } 63 | 64 | 40% { 65 | transform: translateY(($hamburger-size - $bar-height + $bar-height) / ($bar-total * 2) + $bar-height / 2); 66 | } 67 | 68 | 80% { 69 | transform: translateY(($hamburger-size - $bar-height + $bar-height) / ($bar-total * 2) + $bar-height / 2) rotate(45deg); 70 | } 71 | } 72 | 73 | &:before { 74 | animation-name: #{map-get($pseudo-name, first-before)}; 75 | 76 | @keyframes #{map-get($pseudo-name, first-before)} { 77 | 78 | 0% { 79 | width: 100%; 80 | transform: none; 81 | } 82 | 83 | 20% { 84 | transform: none; 85 | } 86 | } 87 | } 88 | 89 | &:after { 90 | animation-name: #{map-get($pseudo-name, first-after)}; 91 | 92 | @keyframes #{map-get($pseudo-name, first-after)} { 93 | 94 | 0% { 95 | width: 100%; 96 | transform: none; 97 | } 98 | 99 | 20% { 100 | transform: none; 101 | } 102 | } 103 | } 104 | } 105 | 106 | &:last-child { 107 | animation-name: #{map-get($name, last)}; 108 | 109 | @keyframes #{map-get($name, last)} { 110 | 111 | 0% { 112 | transform: none; 113 | } 114 | 115 | 20% { 116 | transform: none; 117 | } 118 | 119 | 40% { 120 | transform: translateY(-(($hamburger-size - $bar-height + $bar-height) / ($bar-total * 2)) + $bar-height / 2); 121 | } 122 | 123 | 80% { 124 | transform: translateY(-(($hamburger-size - $bar-height + $bar-height) / ($bar-total * 2) + $bar-height / 2)) rotate(-45deg); 125 | } 126 | } 127 | 128 | &:before { 129 | animation-name: #{map-get($pseudo-name, last-before)}; 130 | 131 | @keyframes #{map-get($pseudo-name, last-before)} { 132 | 133 | 0% { 134 | width: 100%; 135 | transform: none; 136 | } 137 | 138 | 20% { 139 | transform: none; 140 | } 141 | } 142 | } 143 | 144 | &:after { 145 | animation-name: #{map-get($pseudo-name, last-after)}; 146 | 147 | @keyframes #{map-get($pseudo-name, last-after)} { 148 | 149 | 0% { 150 | width: 100%; 151 | transform: none; 152 | } 153 | 154 | 20% { 155 | transform: none; 156 | } 157 | } 158 | } 159 | } 160 | } 161 | } 162 | 163 | 164 | @include style(2, 4) { 165 | $type: 2; 166 | $style: 4; 167 | $name: (first: "T" + $type + "S" + $style + "DF", middle: "T" + $type + "S" + $style + "DM", last: "T" + $type + "S" + $style + "DL"); 168 | $pseudo-name: (first-before: "T" + $type + "S" + $style + "DFB", first-after: "T" + $type + "S" + $style + "DFA", middle-before: "T" + $type + "S" + $style + "DMB", middle-after: "T" + $type + "S" + $style + "DMA", last-before: "T" + $type + "S" + $style + "DFB", last-after: "T" + $type + "S" + $style + "DMA"); 169 | 170 | div { 171 | transform: none; 172 | 173 | &:first-child { 174 | &:before, 175 | &:after { 176 | width: 0%; 177 | min-width: 0; 178 | margin: 0 auto; 179 | opacity: 0; 180 | } 181 | } 182 | 183 | &:not(:first-child):not(:last-child) { 184 | position: relative; 185 | opacity: 1; 186 | 187 | &:before, 188 | &:after { 189 | position: absolute; 190 | width: 100%; 191 | transition: all 0.3s linear transform 0.3s 0.3s linear; 192 | transform-origin: center; 193 | } 194 | 195 | &:before { 196 | transform: rotate(45deg); 197 | } 198 | 199 | &:after { 200 | transform: rotate(-45deg); 201 | } 202 | } 203 | 204 | &:last-child { 205 | &:before, 206 | &:after { 207 | width: 100%; 208 | min-width: 0; 209 | opacity: 0; 210 | } 211 | } 212 | } 213 | } 214 | 215 | 216 | @include style(2, 5) { 217 | $type: 2; 218 | $style: 5; 219 | $name: (first: "T" + $type + "S" + $style + "DF", middle: "T" + $type + "S" + $style + "DM", last: "T" + $type + "S" + $style + "DL"); 220 | $pseudo-name: (first-before: "T" + $type + "S" + $style + "DFB", first-after: "T" + $type + "S" + $style + "DFA", middle-before: "T" + $type + "S" + $style + "DMB", middle-after: "T" + $type + "S" + $style + "DMA", last-before: "T" + $type + "S" + $style + "DFB", last-after: "T" + $type + "S" + $style + "DMA"); 221 | 222 | div { 223 | transform: none; 224 | 225 | &:first-child { 226 | position: relative; 227 | animation-name: #{map-get($name, first)}; 228 | transform: translateY(($hamburger-size - $bar-height + $bar-height) / ($bar-total * 2) + $bar-height / 2) rotate(45deg); 229 | 230 | @keyframes #{map-get($name, first)} { 231 | 232 | 20% { 233 | transform: none; 234 | } 235 | } 236 | 237 | &:before, 238 | &:after { 239 | position: absolute; 240 | width: 0; 241 | } 242 | 243 | &:before { 244 | left: 0; 245 | animation-name: #{map-get($pseudo-name, first-before)}; 246 | 247 | @keyframes #{map-get($pseudo-name, first-before)} { 248 | 249 | 20% { 250 | width: 0%; 251 | } 252 | } 253 | } 254 | 255 | &:after { 256 | right: 0; 257 | animation-name: #{map-get($pseudo-name, first-after)}; 258 | 259 | @keyframes #{map-get($pseudo-name, first-after)} { 260 | 261 | 20% { 262 | width: 0%; 263 | } 264 | } 265 | } 266 | } 267 | 268 | &:not(:first-child):not(:last-child) { 269 | position: relative; 270 | opacity: 1; 271 | 272 | &:before, 273 | &:after { 274 | margin: 0 auto; 275 | } 276 | 277 | &:before { 278 | display: none; 279 | } 280 | 281 | &:after { 282 | animation-name: #{map-get($name, last)}; 283 | width: 2px; 284 | 285 | @keyframes #{map-get($name, last)} { 286 | 287 | 20% { 288 | transform: 100%; 289 | } 290 | } 291 | } 292 | } 293 | 294 | &:last-child { 295 | position: relative; 296 | animation-name: #{map-get($name, last)}; 297 | transform: translateY(-(($hamburger-size - $bar-height + $bar-height) / ($bar-total * 2) + $bar-height / 2)) rotate(-45deg); 298 | 299 | @keyframes #{map-get($name, last)} { 300 | 301 | 20% { 302 | transform: none; 303 | } 304 | } 305 | 306 | &:before, 307 | &:after { 308 | position: absolute; 309 | width: 0; 310 | } 311 | 312 | &:before { 313 | left: 0; 314 | animation-name: #{map-get($pseudo-name, last-before)}; 315 | 316 | @keyframes #{map-get($pseudo-name, last-before)} { 317 | 318 | 20% { 319 | width: 0%; 320 | } 321 | } 322 | } 323 | 324 | &:after { 325 | right: 0; 326 | animation-name: #{map-get($pseudo-name, last-after)}; 327 | 328 | @keyframes #{map-get($pseudo-name, last-after)} { 329 | 330 | 20% { 331 | width: 0%; 332 | } 333 | } 334 | } 335 | } 336 | } 337 | } -------------------------------------------------------------------------------- /scss/types/_type-3.scss: -------------------------------------------------------------------------------- 1 | #{$prefix-type + "3"} { 2 | @extend #{$prefix-type + "2"}; 3 | } 4 | 5 | @include type(3) { 6 | div { 7 | &:before { 8 | width: 100%; 9 | margin: 0 2px 0 0; 10 | } 11 | 12 | &:after { 13 | width: 2px; 14 | margin: 0; 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /scss/types/_type-4.scss: -------------------------------------------------------------------------------- 1 | @include type(4) { 2 | div { 3 | width: 2px; 4 | margin-right: auto; 5 | margin-left: auto; 6 | } 7 | } 8 | 9 | 10 | @include style(4, 2) { 11 | $type: 4; 12 | $style: 2; 13 | $name: (first: "T" + $type + "S" + $style + "DF", middle: "T" + $type + "S" + $style + "DM", last: "T" + $type + "S" + $style + "L"); 14 | 15 | div { 16 | &:first-child { 17 | animation-name: #{map-get($name, first)}; 18 | 19 | @keyframes #{map-get($name, first)} { 20 | 21 | 0% { 22 | transform: none; 23 | } 24 | 25 | 20% { 26 | width: 2px; 27 | transform: translateY(($hamburger-size - $bar-height + $bar-height) / ($bar-total * 2) + $bar-height / 2); 28 | } 29 | 30 | 40% { 31 | transform: translateY(($hamburger-size - $bar-height + $bar-height) / ($bar-total * 2) + $bar-height / 2); 32 | } 33 | 34 | 80% { 35 | transform: translateY(($hamburger-size - $bar-height + $bar-height) / ($bar-total * 2) + $bar-height / 2) rotate(45deg); 36 | } 37 | } 38 | } 39 | 40 | &:last-child { 41 | animation-name: #{map-get($name, last)}; 42 | 43 | @keyframes #{map-get($name, last)} { 44 | 45 | 0% { 46 | transform: none; 47 | } 48 | 49 | 20% { 50 | width: 2px; 51 | transform: translateY(-(($hamburger-size - $bar-height + $bar-height) / ($bar-total * 2) + $bar-height / 2)); 52 | } 53 | 54 | 40% { 55 | transform: translateY(-(($hamburger-size - $bar-height + $bar-height) / ($bar-total * 2) + $bar-height / 2)); 56 | } 57 | 58 | 80% { 59 | transform: translateY(-(($hamburger-size - $bar-height + $bar-height) / ($bar-total * 2) + $bar-height / 2)) rotate(-45deg); 60 | } 61 | } 62 | } 63 | } 64 | } 65 | 66 | 67 | @include style(4, 3) { 68 | $type: 4; 69 | $style: 3; 70 | $name: (first: "T" + $type + "S" + $style + "DF", middle: "T" + $type + "S" + $style + "DM", last: "T" + $type + "S" + $style + "L"); 71 | 72 | animation: #{"T" + $type + "S" + $style} ($bar-duration * 2) $bar-timing; 73 | 74 | @keyframes #{"T" + $type + "S" + $style} { 75 | 76 | 100% { 77 | transform: rotate(360deg); 78 | } 79 | } 80 | 81 | div { 82 | animation-timing-function: linear; 83 | 84 | &:first-child { 85 | animation-name: #{map-get($name, first)}; 86 | 87 | @keyframes #{map-get($name, first)} { 88 | 89 | 0% { 90 | transform: none; 91 | } 92 | 93 | 40% { 94 | width: 2px; 95 | transform: translateY(($hamburger-size - $bar-height + $bar-height) / ($bar-total * 2) + $bar-height / 2); 96 | } 97 | 98 | 80% { 99 | transform: translateY(($hamburger-size - $bar-height + $bar-height) / ($bar-total * 2) + $bar-height / 2) rotate(45deg); 100 | } 101 | } 102 | } 103 | 104 | &:last-child { 105 | animation-name: #{map-get($name, last)}; 106 | 107 | @keyframes #{map-get($name, last)} { 108 | 109 | 0% { 110 | transform: none; 111 | } 112 | 113 | 40% { 114 | width: 2px; 115 | transform: translateY(-(($hamburger-size - $bar-height + $bar-height) / ($bar-total * 2) + $bar-height / 2)); 116 | } 117 | 118 | 80% { 119 | transform: translateY(-(($hamburger-size - $bar-height + $bar-height) / ($bar-total * 2) + $bar-height / 2)) rotate(-45deg); 120 | } 121 | } 122 | } 123 | } 124 | } 125 | 126 | 127 | @include style(4, 4) { 128 | $type: 4; 129 | $style: 4; 130 | $name: (first: "T" + $type + "S" + $style + "DF", middle: "T" + $type + "S" + $style + "DM", last: "T" + $type + "S" + $style + "L"); 131 | 132 | animation: #{"T" + $type + "S" + $style} ($bar-duration * 2) $bar-timing; 133 | 134 | @keyframes #{"T" + $type + "S" + $style} { 135 | 136 | 100% { 137 | transform: rotate(360deg); 138 | } 139 | } 140 | 141 | div { 142 | &:first-child { 143 | animation-name: #{map-get($name, first)}; 144 | 145 | @keyframes #{map-get($name, first)} {} 146 | } 147 | } 148 | } 149 | 150 | 151 | @include style(4, 5) { 152 | $type: 4; 153 | $style: 5; 154 | $name: (first: "T" + $type + "S" + $style + "DF", middle: "T" + $type + "S" + $style + "DM", last: "T" + $type + "S" + $style + "L"); 155 | 156 | transform: rotate(45deg); 157 | transition: $bar-duration $bar-timing; 158 | transition-timing-function: $bar-timing; 159 | 160 | div { 161 | width: 2px; 162 | transform: none; 163 | 164 | &:first-child { 165 | transform: translateY(-4px); 166 | } 167 | 168 | &:not(:first-child):not(:last-child) { 169 | width: 100%; 170 | opacity: 1; 171 | } 172 | 173 | &:last-child { 174 | transform: translateY(4px); 175 | } 176 | } 177 | } --------------------------------------------------------------------------------