This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% assign current_url = '' %} | |
{% case template %} | |
{% when 'page' %} | |
{% assign current_url = page.url %} | |
{% when 'blog' %} | |
{% assign current_url = blog.url %} | |
{% when 'article' %} | |
{% assign current_url = blog.url %} | |
{% when 'collection' %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
// (c) Copyright 2016 Caroline Schnapp. All Rights Reserved. Contact: mllegeorgesand@gmail.com | |
// See https://docs.shopify.com/themes/customization/navigation/link-product-options-in-menus | |
var Shopify = Shopify || {}; | |
Shopify.optionsMap = {}; | |
Shopify.updateOptionsInSelector = function(selectorIndex) { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
compare two branches seeing where they may merge: | |
git log --graph --oneline master some_branch | |
compare a commit to its parent not its current state in compared to the branch it is now part of | |
git show | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Using Spans for layout</title> | |
<style> | |
.c{border:1px solid; | |
text-align:center; | |
font-size:40px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TIP Look at how people are handeling the different screen sizes...Start with this sanity check! | |
https://mediaqueri.es/ | |
Tip a good layout uses techniques from all these: liquid, adaptive, responsive, and static. Adaptive is my favorite if I had to choose just one. Adaptive is like a static layout that shifts to accommodate sizes. This makes it easier for reading if you happend to change your screen size. | |
Liquid is naturally accomodating, however things shift around alot and containers have overflow. Pure liquid is my least favorite layout style. | |
Responsive has some liquid elements and some adaptive elements. I personally like adaptive and reponsive is a way to make that more accomodating to more scenarios using liquid elements. All of these will need media queries except static. | |
This webiste displays this well: http://www.liquidapsive.com/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How to use: https://fontawesome.com/get-started/svg-with-js | |
https://fontawesome.com/icons?d=gallery | |
or only search for ones that are free -> https://fontawesome.com/icons?d=gallery&s=regular,solid&m=free | |
https://jsfiddle.net/daniel_eisen/dgw1k5k6/ | |
""" | |
https://fontawesome.com/how-to-use/svg-with-js | |
The fontawesome module replaces the <i> tags with <svg> tags when the page is rendered using js | |
interesting features are: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html{ | |
box-sizing:border-box | |
} | |
*,*:before,*:after{ | |
box-sizing:inherit | |
} | |
margin adds space inside an element | |
margin-top:; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% include 'shipping-times' %} | |
<div class="product-template__container page-width" itemscope itemtype="http://schema.org/Product" id="ProductSection-{{ section.id }}" data-section-id="{{ section.id }}" data-section-type="product" data-enable-history-state="true"> | |
<meta itemprop="name" content="{{ product.title }}"> | |
<meta itemprop="url" content="{{ shop.url }}{{ product.url }}"> | |
<meta itemprop="image" content="{{ product.featured_image.src | img_url: '800x' }}"> | |
{% comment %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title></title> | |
</head> | |
<body style="border: 0; margin:0; padding:0; background-color:#000000"> | |
<script src="http://www.youtube.com/iframe_api"></script> | |
<script type="text/javascript"> | |
var player; | |