Handling parent state vs child state with SASS
.papa {
&-enfant {
&.selected {}
.danger & {}
}
}
<?php | |
// post_type : flux | |
register_post_type( 'flux', array( | |
'labels' => array( | |
'name' => 'Flux', | |
'singular_name' => 'Flux', | |
'add_new' => 'Écrire un flux', | |
'add_new_item' => 'Écrire un flux', | |
'edit_item' => 'Modifier le flux', | |
'new_item' => 'Nouveau flux', |
Handling parent state vs child state with SASS
.papa {
&-enfant {
&.selected {}
.danger & {}
}
}
var Tile = function(width, height) { | |
this.width = width; | |
this.height = height; | |
this.size = this.width * this.height; | |
}; | |
Tile.prototype = { | |
get el() { | |
return '<div>MyTile</div>'; |
// require() some stuff from npm (like you were using browserify) | |
// and then hit Run Code to run it on the right | |
var State = require('ampersand-state'); | |
var Collection = require('ampersand-collection'); | |
var Instance = State.extend({ | |
props: { | |
id: 'number', | |
slug: 'string', |
0 info it worked if it ends with ok | |
1 verbose cli [ '/home/pi/.nvm/versions/node/v6.9.5/bin/node', | |
1 verbose cli '/home/pi/.nvm/versions/node/v6.9.5/bin/npm', | |
1 verbose cli 'install' ] | |
2 info using [email protected] | |
3 info using [email protected] | |
4 silly loadCurrentTree Starting | |
5 silly install loadCurrentTree | |
6 silly install readLocalPackageData | |
7 silly install normalizeTree |
<?php | |
/* Pages templates in subfolders */ | |
/* | |
This will add ./pages/my-custom-folder/*.php templates | |
if no "Template Name: My name" is specified, name will be : "Subfolder > Filename" | |
*/ |