Skip to content

Instantly share code, notes, and snippets.

View christian-rizza's full-sized avatar

Christian Rizza christian-rizza

View GitHub Profile
@christian-rizza
christian-rizza / setup.js
Created June 22, 2016 09:17
Enable nested elements on TinyMCE on Magento 1
//add any extra settings you'd like below
settings.valid_children = '+a[h1|h2|h3|h4|h5|h6|p|span|div|img]';
settings.force_br_newlines = true;
settings.force_p_newlines = false;
settings.forced_root_block = false;
//makes "placeholder" a valid element for inputs
settings.extended_valid_elements = '+div[*],+a[*],+span[*],input[placeholder|acc$
@christian-rizza
christian-rizza / test.scss
Last active June 11, 2016 21:24
SCSS for Crizza Tutorial
$bodyColor: #95aabf;
$patter: "../images/pattern.png";
@font-face {
font-family: 'Oswald';
font-style: normal;
font-weight: 400;
src: local('Oswald Regular'), local('Oswald-Regular'), url(http://fonts.gstatic.com/s/oswald/v11/_P8jt3Y65hJ9c4AzRE0V1OvvDin1pK8aKteLpeZ5c0A.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}
@christian-rizza
christian-rizza / gulpfile.js
Created May 29, 2016 10:14
Compile SASS with Gulp
var sass = require('gulp-sass');
gulp.task('sass', function ()
{
return gulp.src('app/scss/**/*.scss')
.pipe(sass())
.pipe(gulp.dest('app/css'))
});
var gulp = require('gulp');
gulp.task('hello', function() {
console.log("Hello Gulp!");
});