Skip to content

Commit

Permalink
fix #1 updated light theme not working css, and added demo gif of too…
Browse files Browse the repository at this point in the history
…ltip in readme and demo codesanbox link
  • Loading branch information
Rajiv committed Jan 31, 2021
1 parent 3298878 commit 18ad947
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
./styles.css
./dist/index.min.js
/.github
/styles.css
/dist/index.min.js
/github
/static
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ A very lightweight tooltip utitlity library, made using only `CSS` with dynamic
![Css language share](https://img.shields.io/github/languages/top/thoughtlessmind/css-only-tooltip)


![Alt Text](./static/tooltipDemo.gif)

## Insatallation
- Using npm
`$ npm install css-only-tooltip`
Expand All @@ -28,6 +30,7 @@ A very lightweight tooltip utitlity library, made using only `CSS` with dynamic
<link rel="stylesheet" href="https://unpkg.com/css-only-tooltip@latest/dist/styles.min.css">
```


## Quick start
`css-only-tooltip` uses only `data` html attribute for working. So, the only step is to import the `CSS` in your file and use it.

Expand Down Expand Up @@ -96,3 +99,5 @@ Thre are some optional customization options are available.
Dakr tooltip on right side
</span>
```
_Play with it live:-_
[![Edit css-only-tooltip-Demo](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/vigilant-nobel-d5qrn?fontsize=14&hidenavigation=1&theme=dark)
Binary file added static/tooltipDemo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
}

/* ----- Light -----*/
[data-css-only-tooltip-props~="dark"]::after {
[data-css-only-tooltip-props~="light"]::after {
background-color: #fff;
color: #222;
}
Expand Down

0 comments on commit 18ad947

Please sign in to comment.