This file contains 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
# React Nested Router is only distributed with CommonJS. | |
# To get an UMD version run the command below. | |
$ npm install webpack | |
$ npm install react-nested-router | |
# Make a file: webpack.config.js containing: | |
module.exports = { output: { libraryTarget: "umd" }, externals: { "react": "react" } } | |
$ /node_modules/.bin/webpack node_modules/react-nested-router/modules/main.js output.js |
This file contains 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
.thingy { | |
background: #999; | |
height: 20px; | |
border-bottom: 4px solid #000; | |
} | |
.thingy:last-child { | |
border-bottom: none; | |
} |
This file contains 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
.ico { | |
width:16px; | |
height:16px; | |
background: red; | |
margin-right: 5px; | |
display: inline-block; | |
} | |
.wrapper { | |
width: 200px; |
This file contains 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
span { | |
width: 50px; | |
height: 50px; | |
background: red; | |
display: inline-block; | |
vertical-align: middle; | |
} |
This file contains 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
.stuff { | |
background: grey; | |
width: 200px; | |
height: 200px; | |
box-shadow: red 1px 10px 10px -6px inset, red 1px -10px 10px -6px inset; | |
} |
This file contains 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
var deparam = function(paramString) { | |
var items = paramString.replace(/\+/g, ' ').split('&'); | |
var returnObj = {}; | |
_.each(items, function(params) { | |
var param = params.split('='); | |
returnObj[param[0]] = decodeURIComponent(param[1]); | |
var array = returnObj[param[0]].split(','); | |
if (array.length > 1) returnObj[param[0]] = array; |
This file contains 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
.book { | |
display: inline-block; | |
margin: 10px; | |
} | |
.book img { | |
vertical-align: middle; | |
} | |
.books { |
This file contains 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
.book { | |
display: inline-block; | |
margin: 10px; | |
} | |
.book img { | |
vertical-align: middle; | |
} | |
.books { |
This file contains 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
.book { | |
display: inline-block; | |
margin: 10px; | |
} | |
.book img { | |
vertical-align: middle; | |
} | |
.books { |
This file contains 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
body { margin: 0; } | |
.box { | |
background:green; | |
position: fixed; | |
width: 100%; | |
height: 100%; | |
top: 0; | |
left: 0; | |
overflow: scroll; |
NewerOlder