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
(function() { | |
// The events to listen for to append the messages | |
// page:change is all we really need, but the page:load will fire sooner | |
// so the messages will be less likely to pop-in | |
var events = ['page:load', 'page:change']; | |
events.forEach(function(event) { | |
document.addEventListener(event, appendScriptMessages); | |
}); | |
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
let cssImport = require('postcss-import') | |
let cssNext = require('postcss-cssnext') | |
let glob = require('glob-all') | |
let mix = require('laravel-mix') | |
let purgeCss = require('purgecss-webpack-plugin') | |
let tailwind = require('tailwindcss') | |
mix.js('resources/assets/js/app.js', 'public/js') | |
.postCss('resources/assets/css/app.css', 'public/css/app.css', [ | |
cssImport(), |
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
const ExtractTextPlugin = require("extract-text-webpack-plugin"); | |
const path = require("path"); | |
const glob = require("glob-all"); | |
const PurgecssPlugin = require("purgecss-webpack-plugin"); | |
/** | |
* Custom PurgeCSS Extractor | |
* https://github.com/FullHuman/purgecss | |
* https://github.com/FullHuman/purgecss-webpack-plugin | |
*/ |
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
let mix = require("laravel-mix"); | |
let tailwindcss = require("tailwindcss"); | |
let glob = require("glob-all"); | |
let PurgecssPlugin = require("purgecss-webpack-plugin"); | |
/** | |
* Custom PurgeCSS Extractor | |
* https://github.com/FullHuman/purgecss | |
* https://github.com/FullHuman/purgecss-webpack-plugin | |
*/ |
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
//- Multiple blocks in jade mixins? #1693 | |
//- https://github.com/pugjs/pug/issues/1693 | |
//- [Issue on github] | |
//- https://github.com/pugjs/pug/issues/1693 | |
h2 Issue | |
p | |
a(href='https://github.com/pugjs/pug/issues/1693' , target="_blank") Multiple blocks in jade mixins? | |
hr |
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
{% macro respImg( | |
class, | |
srcset, | |
sizes, | |
src, | |
width = "", | |
height = "", | |
loading = "", | |
alt = "" | |
)%} |
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
{% for variant in product.variants %} | |
{% assign option = variant.option1 | downcase %} | |
{% assign p = variant.price | money %} | |
{% unless option contains '+' or option contains 'swatch' %} | |
{% if option contains '1-4' %} | |
{% assign one = p %} | |
{% else %} | |
{% unless option contains '-' %}{% assign one = p %}{% endunless %} | |
{% endif %} | |
{% endunless %} |
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
{% if customer %}{% assign tags = customer.tags | join:' ' | downcase %}{% if tags contains 'wholesale' %}{% assign wholesale = true %}{% endif %}{% endif %} | |
{% if wholesale %} | |
{% if tags contains 'reorder' or customer.orders_count > 0 %}{% assign reorder = true %}{% endif %} | |
{% assign min = settings.cart-min | times:100 | minus:1 %} | |
{% if reorder %}{% assign min = setting.cart-min-reorder | times:100 | minus:1 %}{% endif %} | |
{% endif %} | |
<div class="meta grid"> | |
{% if wholesale %}{% assign total = cart.total_price | divided_by:2 %}{% else %}{% assign total = cart.total_price %}{% endif %} | |
<p>{{ total | money | remove:' ' }}</p> |
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
.board { | |
width: 100%; | |
height: 100%; | |
/* background-color: #0079bf; */ | |
display: flex; | |
flex-direction: column; | |
} | |
.board, | |
.board textarea { |