{"id":20322108,"url":"https://github.com/alterebro/css-tooltip","last_synced_at":"2025-05-12T20:40:25.506Z","repository":{"id":34923487,"uuid":"190899969","full_name":"alterebro/css-tooltip","owner":"alterebro","description":"💬 Only CSS lightweight, minimal and simple tooltips. No dependencies, no javascript, no rubbish, just around ~500 Bytes gzipped","archived":false,"fork":false,"pushed_at":"2024-09-10T19:38:01.000Z","size":5766,"stargazers_count":45,"open_issues_count":14,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T03:13:32.287Z","etag":null,"topics":["css","css-tooltip","lightweight","minimal","simple","tooltip","tooltips"],"latest_commit_sha":null,"homepage":"https://alterebro.github.io/css-tooltip/","language":"SCSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alterebro.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"alterebro","ko_fi":"alterebro","buy_me_a_coffee":"alterebro"}},"created_at":"2019-06-08T14:52:22.000Z","updated_at":"2024-09-10T19:38:05.000Z","dependencies_parsed_at":"2024-08-19T19:47:24.751Z","dependency_job_id":"797e4815-8589-4045-8bad-58e15acce140","html_url":"https://github.com/alterebro/css-tooltip","commit_stats":{"total_commits":33,"total_committers":2,"mean_commits":16.5,"dds":0.09090909090909094,"last_synced_commit":"43ed668a1faec1664eb4de013d03668fefda27bc"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alterebro%2Fcss-tooltip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alterebro%2Fcss-tooltip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alterebro%2Fcss-tooltip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alterebro%2Fcss-tooltip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alterebro","download_url":"https://codeload.github.com/alterebro/css-tooltip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253817743,"owners_count":21969032,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css","css-tooltip","lightweight","minimal","simple","tooltip","tooltips"],"created_at":"2024-11-14T19:19:08.648Z","updated_at":"2025-05-12T20:40:25.482Z","avatar_url":"https://github.com/alterebro.png","language":"SCSS","readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://alterebro.github.io/css-tooltip/\"\u003e\u003cimg src=\"docs/css-tooltip.png\"\u003e\u003c/a\u003e\u003cbr\u003e\n\u003c/p\u003e\n\n------\n\n# 💬 css-tooltip [![npm](https://img.shields.io/npm/v/css-tooltip.svg?label=\u0026color=24292e)](https://github.com/alterebro/css-tooltip/releases/latest)\n\n\u003e Only CSS lightweight, minimal and simple tooltips\n\n\n## Install\n\n```sh\n$ npm i css-tooltip\n```\n\nYou can [download it here](https://github.com/alterebro/css-tooltip/archive/master.zip) or\ninclude the `css` file directly from [unpkg.com](https://unpkg.com/css-tooltip):\n\n```html\n\u003clink rel=\"stylesheet\" src=\"https://unpkg.com/css-tooltip\" /\u003e\n```\n\n## Usage\n\nInclude the `css-tooltip` minified stylesheet file on the head of your document.\n\n```html\n\u003chead\u003e\n    ...\n    \u003clink rel=\"stylesheet\" href=\"/path/to/css-tooltip.min.css\" /\u003e\n\u003c/head\u003e\n```\nAdd the `data-tooltip` attribute to the element you want the tooltip in. The value of that attribute will be the text shown by the tooltip\n\n```html\n\u003ca href=\"#\" data-tooltip=\"Lorem ipsum dolor sit amet...\"\u003etooltip\u003c/a\u003e\n```\n\n## Styles\n\nThere are some available classes to apply different styling to the tooltip\n\n- `tooltip-multiline` : Creates a multiline tooltip\n\nPositioning :\n\n- `tooltip-bottom` : Places the tooltip at the bottom (centered)\n- `tooltip-bottom-right` : Places the tooltip at the bottom right.\n- `tooltip-bottom-left` : Places the tooltip at the bottom left.\n- `tooltip-top-right` : Places the tooltip at the top right.\n- `tooltip-top-left` : Places the tooltip at the top left.\n\n*There's no `tooltip-top` class as it is the default styling for the tooltip*\n\n### Example:\n\nYou just need to add the class with the style you want to apply, for example, a multiline tooltip located on the bottom left would have the class `tooltip-multiline tooltip-bottom-left` :\n\n```html\n\u003ca href=\"#\" class=\"tooltip-multiline tooltip-bottom-left\" data-tooltip=\"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla a venenatis massa.\"\u003etootltip\u003c/a\u003e\n```\n\nThe following page has got some examples using the different styles : [alterebro.github.io/css-tooltip/](https://alterebro.github.io/css-tooltip/)\n\n\n## Customize\n\nYou can customize the output of the tooltip by tweaking the source file variables `src/css-tooltip.scss`.\n\n```scss\n// Self explanatory names\n\n$background-color   : #333;\n$foreground-color   : #eee;\n$arrow-size         : 8px;\n$vertical-shift     : 12px;\n$multiline-width    : 240px;\n$tooltip-padding    : 8px 12px;\n$roundness          : 3px; // 0 || border-radius\n$shadow             : 0 5px 15px -5px rgba(0, 0, 0, .65); // 0 || box-shadow\n$load-styles        : true !default; // false to remove the extra styles.\n```\n\nThen you'll have to build the CSS file:\n\n## Development\n\n```sh\n# Install dependencies\n$ npm install\n\n# Edit as your wish the main file ./src/css-tooltip.scss\n$ npm run watch  # to see changes while editing the file\n$ npm run build  # to create the distributable files\n```\n\n## License\n\nISC \u0026copy; Jorge Moreno *\u0026mdash; [@alterebro](https://twitter.com/alterebro)*\n","funding_links":["https://github.com/sponsors/alterebro","https://ko-fi.com/alterebro","https://buymeacoffee.com/alterebro"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falterebro%2Fcss-tooltip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falterebro%2Fcss-tooltip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falterebro%2Fcss-tooltip/lists"}