This file contains 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
# Last updated: 12th March 2024 | |
# | |
# Note: This is a list from the Gutenberg repo so these | |
# may not all be in the Core Block Editor at the time | |
# of writing | |
archives | |
audio | |
block | |
button |
This file contains 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
<?php | |
add_action( 'init', function() { | |
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 ); | |
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 ); | |
remove_action( 'woocommerce_proceed_to_checkout', 'woocommerce_button_proceed_to_checkout', 20 ); | |
remove_action( 'woocommerce_checkout_order_review', 'woocommerce_checkout_payment', 20 ); | |
add_action( 'woocommerce_before_main_content', 'resknow_show_checkout_disable_notice', 5 ); | |
add_action( 'woocommerce_before_cart', 'resknow_show_checkout_disable_notice', 5 ); |
This file contains 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 sass = require('sass'); | |
const cleanCSS = require('clean-css'); | |
module.exports = class { | |
data() { | |
return { | |
layout: false, | |
permalink: '/style.css', | |
eleventyExcludeFromCollections: true, | |
}; |
This file contains 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
<?php | |
/** | |
* Date diff in days | |
* The difference in days between 2 dates | |
* | |
* @param $from string Y-m-d date string | |
* @param $to string Y-m-d date string | |
*/ | |
function date_diff_in_days($from, $to) { |
This file contains 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
{ | |
"workbench.iconTheme": "material-icon-theme", | |
"editor.fontFamily": "'JetBrains Mono', Menlo, Monaco, 'Courier New', monospace", | |
"editor.fontSize": 14, //14 | |
"editor.lineHeight": 42, | |
"editor.fontLigatures": true, | |
"editor.minimap.enabled": false, | |
"editor.codeLens": false, | |
"editor.wordSeparators": "`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?_", | |
"editor.snippetSuggestions": "top", |
This file contains 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
:root { | |
--color-gray-90: #373946; | |
--color-gray-70: #565869; | |
--color-gray-50: #77798a; | |
--color-gray-30: #b3b4bd; | |
--color-gray-10: #eeeef0; | |
--color-neutral-90: #002c59; | |
--color-neutral-50: #0779e4; | |
--color-neutral-10: #e1eefa; |
This file contains 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
// Sometimes it can be tidier not to use temporary variables :) | |
// Before | |
async render() { | |
let inputPath = path.join(__dirname, '/assets/css/style.scss'); | |
let { sassOptions } = siteConfig || {}; | |
const { css } = sass.renderSync({ | |
file: inputPath, | |
...sassOptions, |
This file contains 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
{ | |
"workbench.iconTheme": "material-icon-theme", | |
"editor.fontFamily": "'JetBrains Mono', Menlo, Monaco, 'Courier New', monospace", | |
"editor.fontSize": 14, | |
"editor.lineHeight": 34, | |
"editor.formatOnSave": true, | |
"editor.fontLigatures": true, | |
"editor.minimap.enabled": false, | |
"editor.codeLens": false, | |
"workbench.startupEditor": "none", |
This file contains 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
<div x-data="{ checked: false, ready: false }" x-init="ready = true" @click="checked = !checked" class="flex items-center space-x-2"> | |
<button type="button" class="hidden" :class="{ 'flex bg-gray-300 rounded-full w-12 cursor-pointer border': ready, 'hidden': !ready }"> | |
<div :class="{ 'bg-green-600 translate-x-6': checked, 'bg-gray-500': !checked }" class="pointer-events-none rounded-full w-6 h-6 transition duration-150 ease-in-out transform"></div> | |
</button> | |
<label class="flex items-center" for="remember_me"> | |
<input :class="{ 'hidden': ready }" class="mr-2" type="checkbox" name="remember_me" x-bind:checked="checked"> | |
<span>Remember Me</span> | |
</label> | |
</div> |
This file contains 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
.image-gallery { | |
--min-width: 14rem; | |
--gap: 1rem; | |
display: grid; | |
grid-template-columns: repeat( auto-fit, minmax(var(--min-width), 1fr) ); | |
gap: var(--gap); | |
} |
NewerOlder