Skip to content

Instantly share code, notes, and snippets.

{% if product.tags.size > 0 %}
<!-- START RELATED -->
<div id="related">
<h6>{% if settings.related.size > 0 %}{{ settings.related | escape }}{% else %}Take a look at these great accessories:{% endif %}</h6>
<!-- START SLIDER -->
<div id="slider" class="clear">
<!-- START PREV -->
<div id="prev">
<p><a href="/collections/all" class="inactive">Previous</a></p>
</div>
function makeColorButtons(){
var color_select = $('#product-select-option-0'),
color_list = $('#colors').html("");
color_select.find('option').each(function(i,el){
var element = $(el);
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
$font-sizes: 6 7 8 9 10 11 12 14 16 18 21 24 36 48 60 72 84 96;
$selector-sizes: ".micro" ".milli" "h6, .zeta" "h5, .epsilon" "h4, .delta" "h3, .gamma" "h2, .beta" "h1, .alpha" ".kilo" ".mega" ".giga";
$base-font-size: 16;
$base-font-size-idx: index($font-sizes, $base-font-size);
$font-class-start-idx: $base-font-size-idx - 3;
@syahrasi
syahrasi / SassMeister-input.scss
Last active December 18, 2015 08:38
Display Comment mixin
// ---
// Compass (v0.13.alpha.4)
// Sass (v3.2.9)
// ---
$use-comments: true !default;
@mixin display_comments() {
@if $use-comments {
@syahrasi
syahrasi / oocss-space-output.css
Last active September 10, 2018 18:24
OOCSS Space Helpers
/*
https://github.com/stubbornella/oocss/blob/master/core/spacing/space.css
p,m = padding,margin
a,t,r,b,l,h,v = all,top,right,bottom,left,horizontal,vertical
s,m,l,n = small(5px),medium(10px),large(20px),none(0px)
*/
.ptn, .pvn, .pan { padding-top: 0px !important; }
.pts, .pvs, .pas { padding-top: 5px !important; }
<?php
$out = '';
// create a new form field (also field wrapper)
$form = $modules->get("InputfieldForm");
$form->action = "./";
$form->method = "post";
$form->attr("id+name",'subscribe-form');
@syahrasi
syahrasi / Guardfile
Created December 2, 2012 07:42
Guardfile for shopify theme development
# ignore temporary file
ignore /.*~/
notification :tmux,
:display_message => true,
:default_message_format => '%s >> %s',
# the first %s will show the title, the second the message
# Alternately you can also configure *success_message_format*,
# *pending_message_format*, *failed_message_format*
:line_separator => ' > ', # since we are single line we need a separator
@syahrasi
syahrasi / README.md
Created October 5, 2012 05:03 — forked from necolas/README.md
Experimenting with component-based HTML/CSS naming and patterns

Template Components

Used to provide structural templates.

Pattern

t-template-name
t-template-name--modifier-name
t-template-name__subcomponent-name--subcomponent-modifier-name
@syahrasi
syahrasi / Gemfile
Created August 3, 2012 19:30 — forked from dvessel/README.mdown
Sass+Compass, Guard, LiveReload
# ~/Gemfile
source "http://rubygems.org"
group :development do
gem 'compass' # Depends on Sass, will be installed automatically.
gem 'compass-960-plugin' # 960.gs
gem 'compass-validator' # So you can `compass validate`.
gem 'oily_png' # Faster Compass sprite generation.
gem 'css_parser' # Helps `compass stats` output statistics.