Comparing version 1.3.6 to 2.0.0
@@ -11,8 +11,12 @@ **Hint** is written in [SASS](http://sass-lang.com/). | ||
Also there are two additional Grunt tasks required to build the library: | ||
Also there are four additional Grunt tasks required to build the library: | ||
1. [grunt-contrib-mincss](https://npmjs.org/package/grunt-contrib-mincss) | ||
1. [grunt-contrib-cssmin](https://npmjs.org/package/grunt-contrib-cssmin) | ||
2. [grunt-sass](https://npmjs.org/package/grunt-sass) | ||
2. [grunt-contrib-sass](https://www.npmjs.com/package/grunt-contrib-sass) | ||
3. [grunt-contrib-concat](https://www.npmjs.com/package/grunt-contrib-concat) | ||
4. [grunt-contrib-watch](https://www.npmjs.com/package/grunt-contrib-watch) | ||
To install all the dependencies, run `npm install`. | ||
@@ -37,2 +41,2 @@ | ||
To subscribe: **hintcss+subscribe@googlegroups.com** or visit [here](https://groups.google.com/forum/?fromgroups=#!forum/hintcss). | ||
To subscribe: **hintcss+subscribe@googlegroups.com** or visit [here](https://groups.google.com/forum/?fromgroups=#!forum/hintcss). |
@@ -78,3 +78,3 @@ /*global module:false*/ | ||
// Dependencies | ||
grunt.loadNpmTasks('grunt-contrib-sass'); | ||
grunt.loadNpmTasks('grunt-sass'); | ||
grunt.loadNpmTasks('grunt-contrib-cssmin'); | ||
@@ -81,0 +81,0 @@ grunt.loadNpmTasks('grunt-contrib-concat'); |
@@ -5,3 +5,3 @@ { | ||
"description": "A tooltip library in CSS for your lovely websites.", | ||
"version": "1.3.6", | ||
"version": "2.0.0", | ||
"homepage": "http://kushagragour.in/lab/hint/", | ||
@@ -20,8 +20,3 @@ "author": { | ||
}, | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "https://github.com/chinchang/hint.css/blob/master/LICENSE-MIT" | ||
} | ||
], | ||
"license": "MIT", | ||
"keywords": [ | ||
@@ -36,8 +31,8 @@ "tooltip", | ||
"devDependencies": { | ||
"grunt": "~0.4.1", | ||
"grunt-contrib-concat": "~0.3.0", | ||
"grunt-contrib-sass": "~0.4.1", | ||
"grunt": "~0.4.1", | ||
"grunt-contrib-cssmin": "~0.12.3", | ||
"grunt-contrib-watch": "~0.5.3", | ||
"grunt-contrib-cssmin": "~0.12.3" | ||
"grunt-sass": "^1.1.0" | ||
} | ||
} |
@@ -1,5 +0,5 @@ | ||
# Hint.css [v1.3.5] | ||
# Hint.css [![npm version](https://badge.fury.io/js/hint.css.svg)](https://badge.fury.io/js/hint.css) | ||
*A tooltip library in CSS for your lovely websites* | ||
`hint.css` is written as a pure CSS resource using which you can create cool tooltips for your web app. It does not rely on JavaScript and rather uses **data-* attribute**, **pseudo elements**, **content property** and **CSS3 transitions** to create the tooltips. Also it uses **BEM** naming convention particularly for the modifiers. | ||
`hint.css` is written as a pure CSS resource using which you can create cool tooltips for your web app. It does not rely on JavaScript but rather uses **data-* attribute**, **pseudo elements**, **content property** and **CSS3 transitions** to create the tooltips. Also it uses **BEM** naming convention particularly for the modifiers. | ||
@@ -17,3 +17,3 @@ [Read more about it](http://kushagragour.in/blog/2013/02/years-first-side-project-hint/). | ||
1. **Github** | ||
1. **GitHub** | ||
@@ -39,8 +39,9 @@ Full build | ||
``` | ||
4. **CDN** | ||
[http://www.jsdelivr.com/#!hint.css](http://www.jsdelivr.com/#!hint.css) | ||
[https://cdnjs.com/libraries/hint.css](https://cdnjs.com/libraries/hint.css) | ||
Now include the library in the *HEAD* of your page: | ||
Now include the library in the ``HEAD`` tag of your page: | ||
@@ -56,10 +57,5 @@ ```html | ||
Any element on your page which needs to have a tooltip has to be given at least one of the position classes: `hint--top`, `hint--bottom`, `hint--left`, `hint--right` to position the tooltip. | ||
Now, all you need to do is give your element any position class and tooltip text using the `data-hint` attribute: | ||
```html | ||
Hello Sir, <span class="hint--bottom">hover me.</span> | ||
``` | ||
The tooltip text needs to be given using the `data-hint` attribute on that element. | ||
```html | ||
@@ -69,4 +65,2 @@ Hello Sir, <span class="hint--bottom" data-hint="Thank you!">hover me.</span> | ||
[ **Note**: The `hint` class is no more required and is deprecated. Tooltip is shown on elements which have the `data-hint` attribute instead.] | ||
Use it with other available modifiers in various combinations. Available modifiers: | ||
@@ -82,2 +76,6 @@ - `hint--error` | ||
## Upgrading from v1.x | ||
If you are already using v1.x, you may need to tweak certain position classes because of the way tooltips are positioned in v2. | ||
## Changing the prefix for class names | ||
@@ -91,7 +89,11 @@ | ||
## Who's Using This? | ||
- [CSS3 Playground](http://playground.webflow.com/) | ||
- [BitCast](https://www.bitcast.io/) | ||
- [Webflow Playground](http://playground.webflow.com/) | ||
- [Panda chrome app](http://usepanda.com/) | ||
- [Tridiv](http://tridiv.com/) | ||
- [Tradus](http://tradus.com/) | ||
- [Inkpen](http://inkpen.in/) | ||
- [Formspree](http://formspree.io/) | ||
- [Stackshare](http://stackshare.io/) | ||
- [TypeScript Builder](http://www.typescriptbuilder.com/) | ||
- [Fiverr's Devflow](https://github.com/fiverr/devflow/) | ||
- [codeMagic](http://codemagic.gr/) | ||
@@ -126,3 +128,3 @@ Are you using **hint.css** in your awesome project too? Let us know on the [mailing list](mailto:hintcss@googlegroups.com). | ||
## License | ||
Copyright (c) 2013 Kushagra Gour | ||
Copyright (c) 2013-2016 Kushagra Gour | ||
Licensed under the [MIT license](http://opensource.org/licenses/MIT). | ||
@@ -129,0 +131,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
67753
813
127