Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.c9revisions/
.c9revisions/
node_modules/
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,11 @@ And that's it. Simply use CSS as you normally would, for example:
box-shadow: 0px 4px 13px #8E8E8E;
}
```

### Note from Nelson

I made this a bower project, and will be pulling in changes that the original author (Matthew P) or anyone else makes. Feel free to submit pull requests against this repo.

To install this with bower, simply do:

bower install position-sticky
21 changes: 21 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "position-sticky",
"version": "1.0.0",
"homepage": "https://github.com/yoshokatana/position--sticky-",
"authors": [
"Nelson Pecora <[email protected]>"
],
"description": "Polyfill for position: sticky, forked from github.com/matthewp.",
"main": "sticky.js",
"keywords": [
"polyfill"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
]
}
16 changes: 16 additions & 0 deletions gruntfile.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = ->

@initConfig
pkg: @file.readJSON 'package.json'

uglify:
options:
mangle: false, # don't change variable and function names
sourceMap: false # don't make a sourcemap

scripts:
files:
'sticky.min.js': 'sticky.js'

# load the tasks
@loadNpmTasks 'grunt-contrib-uglify'
11 changes: 11 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "position-sticky",
"repository": {
"type": "git",
"url": "[email protected]:yoshokatana/position--sticky-.git"
},
"devDependencies": {
"grunt": "~0.4.2",
"grunt-contrib-uglify": "~0.2.7"
}
}
1 change: 1 addition & 0 deletions sticky.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.