This file contains 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
/* | |
This mixin allows us use CSS grid without having to think about | |
what -ms-grid-row/-ms-grid-column we have to assign to a grid element | |
for it to properly work on Internet Explorer and Edge. | |
It takes three arguments, the last one of which is optional. Specify the | |
maximum amount of items you want to have in your grid, when they should | |
break to the next line and, if you like, a grid-gap of some sort. |
This file contains 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
/* browserSync.js | |
1. Place this in the Gesso theme's task/config folder | |
2. Be sure to update the localDev variable | |
*/ | |
module.exports = function(grunt) { | |
var paths = { | |
localDev: "http://wpsandbox:8888", // Set this to your site's localhost | |
js: ['<%= pkg.themePath %>/js/**/*.js'], | |
html: ['<%= pkg.themePath %>/**/*.{html,php,twig}', '<%= pkg.themePath %>/pattern-lab/source/**/*.{twig,json}'], |
This file contains 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
<footer class="footer" role="contentinfo"> | |
<div class="footer-inner layout-constrain"> | |
<div class="footer-row footer-row__top"> | |
<div class="footer-item footer-logo"><a href="<?php echo home_url(); ?>" class="sitename"><img alt="Science Philanthropy Alliance" src="<?php echo get_template_directory_uri() . '/images/footer-logo.png';?>"/></a></div> | |
<div class="footer-item footer-menu--primary"><?php gesso_nav('primary'); ?></div> | |
<div class="footer-item footer-menu--secondary"><?php gesso_nav('footer-secondary'); ?></div> | |
<div class="footer-social"> | |
<span> | |
<a href="https://www.facebook.com/SciPhil.org"><i class="fa fa-facebook"></i></a> | |
</span> |
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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>Test Page</title> | |
</head> | |
<body> | |
<div id="wrapper"> | |
<header> | |
<h1>Header Area</h1> | |
</header> |