Skip to content

Instantly share code, notes, and snippets.

View oksushi's full-sized avatar

Cal Wilson oksushi

View GitHub Profile
@oksushi
oksushi / liquid-tabs.liquid
Created February 24, 2015 08:52
Tabs using Liquid in Shopify
{% if product-description-tabs %}
{% assign description = product-description-tabs %}
{% capture description %}{{ description }} 重量: {{variant.weight | weight_with_unit }} <br> 編號: {{variant.sku }}{% endcapture %}
{% else %}
{% assign description = product.description %}
{% capture description %}{{ description }} 重量: {{variant.weight | weight_with_unit }} <br> 編號: {{variant.sku }}{% endcapture %}
{% endif %}
{% if description %}
<link href="/apps/tabs/css" rel="stylesheet" type="text/css" media="all" />
# Code Style Guide
This guide outlines the coding conventions and best practices for this Shopify Skeleton theme.
## Liquid Conventions
### Syntax and Formatting
**Multi-line Liquid Logic**
```liquid
---
layout: gist
title: Snatch
published: true
permalink: /workouts
hero-title: Snatch
category: Workouts
tag: CrossFit
hero-paragraph: Monday, Dec 2
hero-image: man-changing-oly-weights-at-alsw-in-holly-springs-hero
@oksushi
oksushi / dabblet.css
Created March 18, 2013 00:27
Text transform on placeholder text
/**
* Text transform on placeholder text
*/
input {text-transform: uppercase;}
input::-webkit-input-placeholder {text-transform: lowercase;}
input::-moz-placeholder {text-transform: lowercase;}
/* If you want more than webkit and firefox, http://css-tricks.com/snippets/css/style-placeholder-text/ */
@oksushi
oksushi / frontendDevlopmentBookmarks.md
Last active October 19, 2016 23:45 — forked from dypsilon/frontendDevlopmentBookmarks.md
A badass list of frontend development resources I collected over time.
@oksushi
oksushi / dabblet.css
Created January 4, 2013 08:23
An unordered list with an em dash
/**
* An unordered list with an em dash
*/
ul {list-style: none;}
li:before {content: "–";}
.b-detail-product__price-container .b-compare__link
&::before {
background: url($sprite-url) no-repeat -337px -166px;
width: 12px;
height: 16px;
position: absolute;
top: 2px;
left: 0;
content: "";
}
@oksushi
oksushi / dabblet.css
Created August 14, 2013 05:40
Pulsing circle on hover
/* Pulsing circle on hover */
@keyframes pulse {
50% {
box-shadow: 0 0 0 40px rgba(255,255,255,.2),
0 0 0 55px rgba(255,255,255,.4),
0 0 0 80px rgba(255, 65, 226, 0.5000);
}
}
div {
// intrinsic.scss ------------------------
// An Intrinsic Ratio Component
// From http://daverupert.com/2015/12/intrinsic-placeholders-with-picture/
// ---------------------------------------
.intrinsic {
// Make sure <picture> wrapper is set to block
// Max-width is governed by parentNode
display: block;