This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Before | |
| html { | |
| font-size: 16px; | |
| } | |
| @media screen and (min-width: 320px) { | |
| html { | |
| font-size: calc(16px + 6 * ((100vw - 320px) / 680)); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export default function ChildApp() { | |
| return html`<div>How's it going now?</div>`; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DB_HOST= | |
| DB_USER= | |
| DB_PASSWORD= | |
| DB_PORT=3306 | |
| DB_NAME= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env node | |
| console.log(`You want to call your project: ${process.argv[2]}`) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>My Project</title> | |
| </head> | |
| <body> | |
| <h1>Test</h1> | |
| </body> | |
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Rest Routes */ | |
| function theme_data() { | |
| $obj = []; | |
| $obj["site_url"] = get_site_url(); | |
| return $obj; | |
| } | |
| add_action( 'rest_api_init', function () { | |
| register_rest_route( 'theme', 'data', array( | |
| 'methods' => 'GET', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| body * { | |
| box-sizing: border-box; | |
| } | |
| @mixin breakpoint($size) { | |
| @if type-of($size) == "string" { | |
| @media (min-width: map-get($breakpoints, $size)) { | |
| @content; | |
| } | |
| } @else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .slide { | |
| align-self: stretch; | |
| height: unset; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* ======================================================================== | |
| * Based on http://goo.gl/EUTi53 by Paul Irish | |
| * ======================================================================== */ | |
| (function($) { | |
| var Routes = { | |
| common: { | |
| init: () => {}, | |
| finalize: () => {} | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function get_partial($path, $args = false) { | |
| /* Set any variables */ | |
| if ($args && gettype($args) == 'array') { | |
| foreach($args as $key => $value) { | |
| $$key = $value; | |
| } | |
| } | |
| include(locate_template('partials/'.$path.'.php')); |