$brand-primary: PapayaWhip;
.button {
background-color: $brand-primary;
}
compiles to...
.button {
background-color: PapayaWhip;
}
$brand-primary: PapayaWhip;
.button:hover {
background-color: darken($brand-primary,10%);
}
compiles to...
.button:hover {
background-color: #ffdca2;
}
.sidebar {
h2 {
font-size: 0.9em;
}
li {
list-style: none;
}
}
compiles to...
.sidebar h2 {
font-size: 0.9em;
}
.sidebar li {
list-style: none;
}
// _reset.scss
html,
body,
ul,
ol {
margin: 0;
padding: 0;
}
compiles to...
// style.scss
@import "reset";
@import "typography";
@import "header";
@import "footer";
Anywhere you write CSS.
// gulpfile.js
var gulp = require('gulp'),
sass = require('gulp-sass');
gulp.task('build-css', function() {
return gulp.src('assets/scss/**/*.scss')
.pipe(sass())
.pipe(gulp.dest('/assets/css'));
});
gulp.task('watch', function() {
gulp.watch('assets/scss/**/*.scss', ['build-css']);
});
Don't worry - you're covered.
Git Flow (nvie.com)
{
"name": "Adam's Awesome WordPress Site",
"require": {
"wpackagist-plugin/akismet": "3.1.*",
"wpackagist-plugin/wordpress-seo": "2.1.*",
"johnpbloch/wordpress": "4.2.2"
},
"extra": {
"installer-paths": {
"web/app/plugins/{$name}/": ["type:wordpress-plugin"],
},
"wordpress-install-dir": "wp"
}
}
Install from composer.json
> composer install
Update from composer.json
> composer update
Slides - http://adamwills.github.io/WordCamp2015/
Twitter - @heavymetaladam