프로젝트
GitHub에서 보기
arashmanteghi/simptip
소개
Sass로 만든 간단한 CSS 툴팁
개발 도구측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalSimptip [v1.0.4]
A simple CSS tooltip made with Sass
Visit Site, Documentation and some examples
Installation
Install with npm, Yarn or Bower:
npm:
npm install simptip --save
Yarn (note that yarn add automatically saves the package to the dependencies in package.json):
yarn add simptip
Bower:
bower add simptip --save
Usage
I'll explain with an example:
<link rel="stylesheet" type="text/css" href="simptip-mini.css" />
or:
<link rel="stylesheet" type="text/css" href="simptip.css" />
Then you can do something like this:
<span class="simptip-position-top" data-tooltip="Tooltip's content"> Text </span>
What you see in the data-tooltip attribute is the text content of the tooltips, and the value of class attribute is tooltop's position.
You can use .simptip-position-right , .simptip-position-bottom and .simptip-position-left class for other positions that you would like.
You can also use more features of Simptip by adding these classes:
.half-arrow: change tooltip's arrow to half arrow.simptip-smooth: makes soft edge for tooltip.simptip-fade: fades effect for show/hide.simptip-movable: shows movable effect.simptip-multiline: makes multiline body for tooltip.simptip-success: changes color to green spectrum.simptip-info: changes color to blue spectrum.simptip-warning: changes color to orange spectrum.simptip-danger: changes color to red spectrum
Let me know if you use it in your projects.
License
Copyright (c) 2013 @arashmanteghi
Licensed under the MIT license.
관련 프로젝트 살펴보기
불러오는 중…