|
1 |
| -# Microtip.css |
| 1 | +<p align="center"> |
| 2 | + <img src="https://www.dropbox.com/s/kcn0kccs5bpxhz0/microtip.svg?raw=1" width="180px"> |
| 3 | +</p> |
| 4 | + |
| 5 | +<p align="center"> |
| 6 | + <a href="#"> |
| 7 | + <img src="https://img.shields.io/badge/made%20with-love-E760A4.svg" alt="Made with love"> |
| 8 | + </a> |
| 9 | + <a href="https://opensource.org/licenses/MIT" target="_blank"> |
| 10 | + <img src="https://img.shields.io/badge/license-MIT-green.svg" alt="License"> |
| 11 | + </a> |
| 12 | + <a href="https://api.travis-ci.org/ghosh/uiGradients" target="_blank"> |
| 13 | + <img src="https://api.travis-ci.org/ghosh/microtip.svg" alt="Build Status"> |
| 14 | + </a> |
| 15 | +</p> |
2 | 16 |
|
| 17 | +<p align="center"> |
3 | 18 | A modern, ultra lightweight css tooptip library. Just `1kb` minified and gzipped.
|
| 19 | +</p> |
| 20 | + |
| 21 | +--- |
| 22 | + |
| 23 | + |
| 24 | + |
4 | 25 |
|
5 | 26 |
|
6 | 27 | ## Table of Contents
|
@@ -80,22 +101,30 @@ By default, the tooltip will takeup only the size it requires to show the text.
|
80 | 101 |
|
81 | 102 | Microtip uses css variables, which allows you to customize the behavior of the tooltip as per your needs.
|
82 | 103 |
|
| 104 | + |
83 | 105 | | Variable | Description | Default Value |
|
84 | 106 | |----------------------------------|----------------------------------------------------|---------------|
|
85 | 107 | | `--microtip-transition-duration` | Specifies the duration of the tootltip transition | `.18s` |
|
86 | 108 | | `--microtip-transition-delay` | The delay on hover before showing the tooltip | `0s` |
|
87 | 109 | | `--microtip-transition-easing` | The easing applied while transitioning the tooltip | `ease-in-out` |
|
| 110 | +| `--microtip-font-size` | Sets the font size of the text in tooltip | `13px` | |
| 111 | +| `--microtip-font-weight` | The font weight of the text in tooltip | `normal` | |
| 112 | +| `--microtip-text-transform` | Controls the casing of the text | `none` | |
| 113 | + |
88 | 114 |
|
89 | 115 | Example:-
|
90 | 116 | ```css
|
91 | 117 | :root {
|
92 | 118 | --microtip-transition-duration: 0.5s;
|
93 | 119 | --microtip-transition-delay: 1s;
|
94 | 120 | --microtip-transition-easing: ease-out;
|
| 121 | + --microtip-font-size: 13px; |
| 122 | + --microtip-font-weight: bold; |
| 123 | + --microtip-text-transform: uppercase; |
95 | 124 | }
|
96 | 125 | ```
|
97 | 126 |
|
98 |
| -The above code will transition the tooltip over `0.5s` while applying an easing of type `ease-out` after a delay of `1s` |
| 127 | +The above code will transition the tooltip over `0.5s` while applying an easing of type `ease-out` after a delay of `1s`. The text will be `bold` and `uppercase` and have a font size of `13px`. |
99 | 128 |
|
100 | 129 |
|
101 | 130 |
|
|
0 commit comments