Skip to content

Instantly share code, notes, and snippets.

@rdallaire
rdallaire / gist:7274789
Created November 2, 2013 02:24
For Beleza
/* Remove the code that I had sent before and replace with this */
#sitenav {
top: 0;
position: fixed;
left: 50%;
margin-left: -485px;
}
<div class="product-utilities">
<div class="quick-filters utility-filters">
<span class="utility-heading">Filter By:</span>
<span class="utility-links">
<a href="{{ category.id }}?filter_by_stock=in-stock">In Stock</a>
<a href="{{ category.id }}?filter_by_stock=out-of-stock">Out of Stock</a>
<a href="{{ category.id }}">Show All</a>
</span>
</div>
#click-mask {
background: transparent;
display: none;
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
z-index: 6;
}
@rdallaire
rdallaire / new_gist_file
Created October 28, 2013 20:06
Remove WYSIWYG editor for page templates
add_action('init', 'remove_editor_init');
function remove_editor_init() {
// if post not set, just return
// fix when post not set, throws PHP's undefined index warning
if (isset($_GET['post'])) {
$post_id = $_GET['post'];
} else if (isset($_POST['post_ID'])) {
$post_id = $_POST['post_ID'];
} else {
return;
css:
css:
- css/crystal/iefix.css
- css/crystal/foundation.css
- css/crystal/visibility.css
- css/crystal/heisenberg.css
- css/crystal/catbrowse.css
- css/crystal/footer.css
- css/crystal/cart.css
{{#thumbnailLink}}
<img src="{{ thumbnailLink }}" alt="{{ name }}" />
{{/thumbnailLink}}
{{^thumbnailLink}}
<h3>default</h3>
{{/thumbnailLink}}
@rdallaire
rdallaire / Shadow-Demos.markdown
Created October 3, 2013 22:41
A Pen by rdallaire.
@rdallaire
rdallaire / functions.php
Created September 30, 2013 05:02
testing
}
// display widget
function widget($args, $instance) {
@rdallaire
rdallaire / 0_reuse_code.js
Created September 27, 2013 21:13
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
/* ==============================================================================
/* ====== PRODUCT PRICE & QTY BOX
/* ============================================================================= */
.product-price-qty {
background: #f7f7f7;
border: 1px solid #d0d0d0;
display: inline-block;
height: 36px;
line-height: 36px;