Skip to content

Instantly share code, notes, and snippets.

View levinmejia's full-sized avatar

Levin Mejia levinmejia

View GitHub Profile
<head>
<script src="https://cdn.shopify.com/s/assets/external/app.js"></script>
...
</head>
div.hero__text-content {
transform: translate3d(0px, 150px, 0px);
}
.hero__slide .hero__title {
font-size: 8.28571em;
font-style: italic;
font-weight: 100;
font-family: "Didot";
}
{
"name": "Social media",
"settings": [
{
"type": "header",
"content": "Accounts"
},
{
"type": "text",
"id": "social_facebook_link",
<header class="section-header text-center">
<h1>{{ 'cart.general.title' | t }}</h1>
</header>
<style>
body.template-cart h1 {
font-family: 'Helvetica Neue', Helvetica, sans-serif;
font-weight: 600;
font-size: 40px;
text-align: left;
<!-- /snippets/product-card.liquid -->
{% comment %}
The product card snippet is passed a liquid object, used in this file
as "product". The object is either "product" or "item", the latter if
it is from search results.
{% endcomment %}
<a href="{{ product.url | within: collection }}" class="product-card">
<div class="product-card__image-wrapper">
@levinmejia
levinmejia / top-banner.html
Created November 11, 2015 18:49
Top Banner
<div class="promo-bar">
{{ 'stocking.png' | asset_url | img_tag }}
<p>Spend over $50 and get FREE expedited shipping! Delivers by November 22nd.</p>
<a href="">Shop Now!</a>
</div>
<style>
.promo-bar {
position: relative;
display: inline-block;
@levinmejia
levinmejia / full-page-bg.css
Created November 11, 2015 18:47
Full Page Background
html {
background: url(images/bg.jpg) no-repeat top center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
Input:
{% assign instructions = product.metafields.instructions %}
{% assign key = 'Dry' %}
<p>Drying instructions: {{ instructions.Dry }}.</p>
Output: