A mixin for writing @font-face rules in SASS.
Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.
@include font-face(Samplino, fonts/Samplino);| // Function Goal Yandex Metrika | |
| function checkGoal(nameGoal){ | |
| setTimeout(function(){ | |
| var id = Ya.Metrika.counters()[0].id; | |
| window['yaCounter'+ id].reachGoal(nameGoal); | |
| // console.log(id); | |
| }, 100) | |
| } |
| // Ajax добавление товара в корзину | |
| function addToCartAjax(){ | |
| $('.single_add_to_cart_button').click(function(e){ | |
| e.preventDefault(); | |
| var product_id = $(this).val(); | |
| var variation_id = $('input[name="variation_id"]').val(); | |
| var quantity = $('input[name="quantity"]').val(); | |
| var ajax_url = "/wp-admin/admin-ajax.php"; | |
| $.ajax({ | |
| url: ajax_url, |
| &__select{ | |
| position: relative; | |
| select{ | |
| font-family: $reg; | |
| color: $black; | |
| border: 1px solid #ccc; | |
| padding: 6px 11px; | |
| appearance: none; | |
| padding-right: 28px; | |
| } |
| // Move Variation Description | |
| // Paste in functions.php | |
| add_action('wp_footer', 'ec_child_modify_wc_variation_desc_position'); | |
| function ec_child_modify_wc_variation_desc_position() { | |
| ?> | |
| <script> | |
| (function($) { | |
| $(document).on('found_variation', function() { | |
| var desc = $('.woocommerce-variation.single_variation').find( | |
| '.woocommerce-variation-description').html(); |
| add_filter( 'woocommerce_get_order_item_totals', 'adjust_woocommerce_get_order_item_totals' ); | |
| function adjust_woocommerce_get_order_item_totals( $totals ) { | |
| unset($totals['cart_subtotal'] ); | |
| return $totals; | |
| } |
| function custom_wc_ajax_variation_threshold( $qty, $product ) { | |
| return 10; | |
| } | |
| add_filter( 'woocommerce_ajax_variation_threshold', 'custom_wc_ajax_variation_threshold', 10, 2 ); |
| /* http://meyerweb.com/eric/tools/css/reset/ | |
| v2.0 | 20110126 | |
| License: none (public domain) | |
| */ | |
| html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { | |
| margin: 0; | |
| padding: 0; | |
| border: 0; | |
| font-size: 100%; |
| var gulp = require('gulp'); | |
| var browserSync = require('browser-sync'); | |
| var concat = require('gulp-concat'); | |
| var rename = require('gulp-rename'); | |
| var uglify = require('gulp-uglify'); | |
| var minifyCSS = require('gulp-minify-css'); | |
| var htmlreplace = require('gulp-html-replace'); | |
| var clean = require('gulp-clean'); | |
| var imagemin = require('gulp-imagemin'); | |
| var cache = require('gulp-cache'); |