Skip to content

Instantly share code, notes, and snippets.

View jondaiello's full-sized avatar

Jon Daiello jondaiello

View GitHub Profile
@jondaiello
jondaiello / _arrows.scss
Last active February 22, 2024 15:18
SASS @mixin for Arrows
// Demo at http://codepen.io/jondaiello/full/YWRbOx/
/* This mixin is for generating CSS arrows on a box */
@mixin box-arrow($arrowDirection, $arrowColor, $arrowSize: 10px) {
position: relative;
z-index: 10;
&::after {
content: '';
width: 0;
height: 0;
<p>Check it out. This content is loaded from an external Gist.</p>
<ol>
<li>Use XMLHttpRequest() and point to <a href="https://gist.github.com/jondaiello/d94eb273e8795eca4ab335de01e6e418" target="_blank">this gist</a> and store it in a JS variable.</li>
<li>Write it to the page.</li>
<li>If you're seeing this on non-GitHub page than that's what has happened.</li>
</ol>
This file has been truncated, but you can view the full file.
@jondaiello
jondaiello / Google Maps Lookup
Last active February 24, 2016 13:15
A base Google map iframe that will pin the address you insert into the 'hnear' area.
<iframe width="100%" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;q=street_address, city_name state, zip&amp;ie=UTF8&amp;hq=&amp;hnear=street_address,+city_name,+state,+zip&amp;output=embed&amp;iwloc=near"></iframe>
@jondaiello
jondaiello / nav.html
Last active February 8, 2016 14:29
Expanding Menu
<nav class="global-nav">
<button class="mobile-only menu-link">Menu</button>
<ul class="global-nav--list">
<li class="home"><a href="#">Home</a></li>
<li><a href="#">Page</a></li>
<li><a href="#">Page</a></li>
<li><a href="#">Page</a></li>
<li><a href="#">Page</a></li>
@jondaiello
jondaiello / form-styles.css
Last active June 23, 2016 15:14
Generic Form Elements
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="fax"],
input[type="date"],
input[type="datetime"],
input[type="month"],
input[type="password"],
input[type="time"],
input[type="url"],