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
| <?php | |
| /** | |
| * WindPress + Bricks Builder: Fix cache scan 500 error | |
| * | |
| * Diagnoses and fixes corrupted _cssGlobalClasses fields | |
| * in Bricks Builder post meta that cause WindPress cache generation to fail. | |
| * | |
| * IMPORTANT: Only fixes _cssGlobalClasses (should be array). | |
| * NEVER touch _cssClasses — it's a string by design in Bricks. | |
| * |
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
| { | |
| "id": "37ff8d", | |
| "name": "Tailwind", | |
| "colors": [ | |
| { | |
| "hex": "#f8fafc", | |
| "id": "f8fafc", | |
| "name": "Slate 50" | |
| }, | |
| { |
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
| { | |
| "Font size":[ | |
| "text-xs", | |
| "text-sm", | |
| "text-base", | |
| "text-lg", | |
| "text-xl", | |
| "text-2xl", | |
| "text-3xl", | |
| "text-4xl", |
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
| /* Fluid font size variables, for browsers that support clamp */ | |
| @supports (font-size: clamp(1rem, 1vw, 1rem)) { | |
| :root { | |
| --ft-text-xs: clamp(0.69rem, calc(-0.087vw + 0.7096rem), 0.64rem ); | |
| --ft-text-sm: clamp(0.83rem, calc(-0.0522vw + 0.8417rem), 0.8rem ); | |
| --ft-text-base: clamp(1rem, calc(0vw + 1rem), 1rem ); | |
| --ft-text-lg: clamp(1.2rem, calc(0.087vw + 1.1804rem), 1.25rem ); | |
| --ft-text-xl: clamp(1.44rem, calc(0.2087vw + 1.393rem), 1.56rem ); | |
| --ft-text-2xl: clamp(1.73rem, calc(0.3826vw + 1.6439rem), 1.95rem ); | |
| --ft-text-3xl: clamp(2.07rem, calc(0.6435vw + 1.9252rem), 2.44rem ); |
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
| /** | |
| * @type {import('lodash').merge} | |
| */ | |
| const _merge = require('lodash.merge'); | |
| /** | |
| * The Tailwind CSS configuration required by the SIUL plugin. | |
| * | |
| * @type {import('tailwindcss').Config} | |
| */ | |
| let siul = {}; |
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
| .content-grid { | |
| display: grid !important; | |
| min-width: 100%; | |
| grid-template-columns: [full-start] 1fr [wide-start] 8rem [content-start] 80rem [content-end] 8rem [wide-end] 1fr [full-end]; | |
| } | |
| @media screen and (max-width: 1000px) { | |
| .content-grid { | |
| grid-template-columns: 1rem 1fr 1rem; | |
| grid-template-areas: |
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 cssVars({ addUtilities, theme }) { | |
| function extractVars(obj, group = '', prefix) { | |
| return Object.keys(obj).reduce((vars, key) => { | |
| const value = obj[key]; | |
| key = key.replaceAll('.', '_').replaceAll('/', '__'); | |
| const cssVariable = key === "DEFAULT" ? `--${prefix}${group}` : `--${prefix}${group}-${key}`; | |
| const newVars = | |
| typeof value === 'string' |
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
| <?php | |
| class ColorPalette{ | |
| public $color; | |
| public function __construct($color){ | |
| $this->color = $color; | |
| } | |
| public function color_mod($hex, $diff) { | |
| $rgb = str_split(trim($hex, '# '), 2); | |
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
| /* Eliminar precio de rich snippets de productos WooCommerce */ | |
| add_filter( 'woocommerce_structured_data_product_offer', 'sa_product_delete_meta_price' ); | |
| function sa_product_delete_meta_price( $product = null ) { | |
| if ( ! is_object( $product ) ) { | |
| global $product; | |
| } | |
| if ( ! is_a( $product, 'WC_Product' ) ) { | |
| return; | |
| } |