Skip to content

Commit

Permalink
added position sticky disclaimer in readme and added scss version of css
Browse files Browse the repository at this point in the history
  • Loading branch information
bsara committed Jan 26, 2017
1 parent fa32de0 commit 82bebf0
Show file tree
Hide file tree
Showing 17 changed files with 93 additions and 46 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,10 @@
## [v0.2.2](https://github.com/bsara/stickytableheaders.js/tree/v0.2.2) (2017-01-25)

- **[Feature]** Added SCSS copies of CSS file for easy import into SCSS files.
- Added disclaimer about using `position: sticky` CSS over this library added to README.



## [v0.2.1](https://github.com/bsara/stickytableheaders.js/tree/v0.2.1) (2016-05-11)

- Minor README updates.
Expand Down
22 changes: 14 additions & 8 deletions README.md
Expand Up @@ -7,6 +7,12 @@
[![NPM Package](https://img.shields.io/npm/v/sticky-table-headers.js.svg?style=flat-square)](https://www.npmjs.com/package/sticky-table-headers.js) 
[![Bower Package](https://img.shields.io/bower/v/sticky-table-headers.js.svg?style=flat-square)](http://bower.io/search/?q=sticky-table-headers.js)

> **IMPORTANT:** You can now create any element with sticky properties using the new CSS `position: sticky;` feature! While
this library may continue to be a good option for older browsers, you should verify that the new CSS sticky feature
does not meet your needs before using this library. That all said, this library will still continue to be supported
for the forseeable future.

>For more information about CSS sticky elements, check out [this short CSS-Tricks.com article](https://css-tricks.com/position-sticky-2/).
Sticky table headers done right, with native JS and CSS, no extra libraries needed. This is a super easy-to-use library that can be used without writing a single bit of JavaScript yourself!

Expand All @@ -19,17 +25,17 @@ Includes support for AMD, CommonJS, and global inclusion via an HTML script tag.
- **NPM:** `$ npm install --save sticky-table-headers.js`
- **Bower:** `$ bower install --save sticky-table-headers.js`
- **CDN - Auto Init (minified):**
- `<script src="//unpkg.com/sticky-table-headers.js@0.2.1/dist/sticky-table-headers.auto-init.min.js"></script>`
- `<link type="text/css" src="//unpkg.com/sticky-table-headers.js@0.2.1/dist/sticky-table-headers.min.css">`
- `<script src="//unpkg.com/sticky-table-headers.js@0.2.2/dist/sticky-table-headers.auto-init.min.js"></script>`
- `<link type="text/css" src="//unpkg.com/sticky-table-headers.js@0.2.2/dist/sticky-table-headers.min.css">`
- **CDN - Auto Init (not minified):**
- `<script src="//unpkg.com/sticky-table-headers.js@0.2.1/dist/sticky-table-headers.auto-init.js"></script>`
- `<link type="text/css" src="//unpkg.com/sticky-table-headers.js@0.2.1/dist/sticky-table-headers.css">`
- `<script src="//unpkg.com/sticky-table-headers.js@0.2.2/dist/sticky-table-headers.auto-init.js"></script>`
- `<link type="text/css" src="//unpkg.com/sticky-table-headers.js@0.2.2/dist/sticky-table-headers.css">`
- **CDN - Manual Init (minified):**
- `<script src="//unpkg.com/sticky-table-headers.js@0.2.1/dist/sticky-table-headers.min.js"></script>`
- `<link type="text/css" src="//unpkg.com/sticky-table-headers.js@0.2.1/dist/sticky-table-headers.min.css">`
- `<script src="//unpkg.com/sticky-table-headers.js@0.2.2/dist/sticky-table-headers.min.js"></script>`
- `<link type="text/css" src="//unpkg.com/sticky-table-headers.js@0.2.2/dist/sticky-table-headers.min.css">`
- **CDN - Manual Init (not minified):**
- `<script src="//unpkg.com/sticky-table-headers.js@0.2.1"></script>`
- `<link type="text/css" src="//unpkg.com/sticky-table-headers.js@0.2.1/dist/sticky-table-headers.css">`
- `<script src="//unpkg.com/sticky-table-headers.js@0.2.2"></script>`
- `<link type="text/css" src="//unpkg.com/sticky-table-headers.js@0.2.2/dist/sticky-table-headers.css">`
- [**Download**](https://github.com/bsara/sticky-table-headers.js/releases)


Expand Down
6 changes: 3 additions & 3 deletions dist/sticky-table-headers.auto-init.js
@@ -1,8 +1,8 @@
/*!
* sticky-table-headers.js (0.2.1)
* sticky-table-headers.js (0.2.2)
*
* Copyright (c) 2016 Brandon Sara (http://bsara.github.io)
* Licensed under the CPOL-1.02 (https://github.com/bsara/stickytableheaders.js/blob/v0.2.1/LICENSE.md)
* Copyright (c) 2017 Brandon Sara (http://bsara.github.io)
* Licensed under the CPOL-1.02 (https://github.com/bsara/stickytableheaders.js/blob/v0.2.2/LICENSE.md)
*/


Expand Down
8 changes: 4 additions & 4 deletions dist/sticky-table-headers.auto-init.min.js

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

6 changes: 3 additions & 3 deletions dist/sticky-table-headers.css
@@ -1,8 +1,8 @@
/*!
* sticky-table-headers.js (0.2.1)
* sticky-table-headers.js (0.2.2)
*
* Copyright (c) 2016 Brandon Sara (http://bsara.github.io)
* Licensed under the CPOL-1.02 (https://github.com/bsara/stickytableheaders.js/blob/v0.2.1/LICENSE.md)
* Copyright (c) 2017 Brandon Sara (http://bsara.github.io)
* Licensed under the CPOL-1.02 (https://github.com/bsara/stickytableheaders.js/blob/v0.2.2/LICENSE.md)
*/

table.sth-sticky,
Expand Down
6 changes: 3 additions & 3 deletions dist/sticky-table-headers.js
@@ -1,8 +1,8 @@
/*!
* sticky-table-headers.js (0.2.1)
* sticky-table-headers.js (0.2.2)
*
* Copyright (c) 2016 Brandon Sara (http://bsara.github.io)
* Licensed under the CPOL-1.02 (https://github.com/bsara/stickytableheaders.js/blob/v0.2.1/LICENSE.md)
* Copyright (c) 2017 Brandon Sara (http://bsara.github.io)
* Licensed under the CPOL-1.02 (https://github.com/bsara/stickytableheaders.js/blob/v0.2.2/LICENSE.md)
*/


Expand Down
6 changes: 3 additions & 3 deletions dist/sticky-table-headers.min.css
@@ -1,6 +1,6 @@
/*!
* sticky-table-headers.js (0.2.1)
* sticky-table-headers.js (0.2.2)
*
* Copyright (c) 2016 Brandon Sara (http://bsara.github.io)
* Licensed under the CPOL-1.02 (https://github.com/bsara/stickytableheaders.js/blob/v0.2.1/LICENSE.md)
* Copyright (c) 2017 Brandon Sara (http://bsara.github.io)
* Licensed under the CPOL-1.02 (https://github.com/bsara/stickytableheaders.js/blob/v0.2.2/LICENSE.md)
*/table.sth-sticky,table.sth-sticky *{-webkit-box-sizing:border-box;box-sizing:border-box}table.sth-sticky{position:relative}table.sth-sticky caption.sth-sticky,table.sth-sticky thead.sth-sticky{position:absolute}

0 comments on commit 82bebf0

Please sign in to comment.