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
/** | |
* Box Model Demo 2 | |
*/ | |
/* | |
* { | |
box-sizing: border-box; | |
}*/ | |
/*html, body { | |
height: 100%; | |
}*/ |
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
/** | |
* Box Model Demo 1 | |
*/ | |
/* | |
What properties will affect a block element's outer size? | |
*/ | |
.box1 { | |
float: left; | |
color: red; |
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
/** | |
* Color inheritance experiment | |
*/ | |
html { | |
color: magenta; | |
font-size: 120%; | |
} | |
input, button, p, select { | |
font-size: inherit; |
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
/* | |
* Demo - CSS Text and Typography | |
*/ | |
body { | |
font-family: Helvetica, Arial, Open Sans, sans-serif; | |
font-size: 16px; | |
font-weight: normal; | |
font-style: normal; | |
} |
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
/** | |
* Stacking Context Demo | |
*/ | |
* { box-sizing: border-box; } | |
body { font-size: 20px; font-family: sans-serif; } | |
div { | |
border: 1px dashed black; | |
min-width: 10em; | |
min-height: 5em; | |
padding: 0.5em 1em; |
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
/** | |
* Position Property & Positioning Context Demo | |
*/ | |
div { | |
padding: 10px; | |
} | |
.main { | |
width: auto; | |
border: 5px solid lightgreen; | |
background-color: AliceBlue; |
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
/** | |
* Position Property & Positioning Context Demo | |
*/ | |
div { | |
padding: 10px; | |
/*NOTE: box-sizing is natural (content-box)*/ | |
} | |
.main { | |
width: auto; | |
border: 5px solid lightgreen; |
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
/*jshint node: true*/ | |
module.exports = function (grunt) { | |
'use strict'; | |
// mannual grunt task loading: | |
grunt.loadNpmTasks('grunt-contrib-watch'); | |
grunt.loadNpmTasks('grunt-contrib-connect'); | |
// install and turn on package below to automatically load grunt tasks listed in the initConfig | |
// require('load-grunt-tasks')(grunt); |
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
define( | |
['TodoItem'], | |
function(TodoItem) { | |
'use strict'; | |
// constants | |
var ENTER_KEY = 13; | |
function AppView($el) { | |
this.$el = $el; |
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
/** | |
* Position Property & Absolute Positioning Context Demo | |
*/ | |
div { | |
padding: 10px; | |
} | |
.main { | |
width: auto; | |
border: 5px solid lightgreen; | |
background-color: AliceBlue; |