Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
based on hint.css with html content support
The main disadvantage of hint.css is it's inability to show html content inside hint. This css library extends hint.css with html hints.
npm install --save html-hint
<div class="hint--html hint--top">
Place here any element
<div class="hint__content">
Place here your tooltip HTML content
<div>
</div>
If you are prefer to use css-modules you can use composes
<div class={styles.myClass}>
Place here any element
<div class={styles.myTooltip}>
Place here your tooltip HTML content
<div>
</div>
@import 'html-hint'
.myClass
composes: hint--html
composes: hint--top
composes: hint--info
cursor: pointer
.myTooltip
composes: hint__content
There are different placement options
hint--top-left
, hint--top
, hint--top-right
;hint--left
, hint--right
,hint--bottom-left
, hint--bottom
, hint--bottom-right
,And different type options
hint--warning
, hint--error
, hint--info
, hint--success
(To change color you can also use mixin)
.myClass
composes: hint--html
composes: hint--top
@include hint-color(yellow)
cursor: pointer
By default tootips are not hoverable, adding hint--hoverable
class makes them hoverable.
<div class="hint--html hint--top hint--hoverable">
Place here any element
<div class="hint__content">
Place here your tooltip HTML content
<div>
</div>
Hoverable example, click to view
Sometimes you need to set hover by yourself.
Using hint--always
class you will make tooltip always visible,
using hint--hidden
you will prevent tooltip to show.
(both hint--always and hint--hidden will hide tooltip on hover)
npm install
npm run start
# open http://localhost:4000 and you will get hot reloadable env
FAQs
css hint based on hint.css with html content support
We found that html-hint demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.