Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
tailwindcss-touch
Advanced tools
Add this plugin to your project:
# Install via npm
npm install --save-dev tailwindcss-touch
Add the tailwindcss-touch plugin to your plugins key in your tailwind.js config file.
plugins: [
require('tailwindcss-touch')(),
],
This plugin adds a collection of variants to allow fine grain control over how elements appear on touch and non touch devices, CSS Tricks does a great job of detailing how the underlying media queries work you can read more about this here: https://css-tricks.com/touch-devices-not-judged-size.
The following variants are currently available:
/* pointer-coarse */
@media (pointer: coarse) { ... }
/* pointer-fine */
@media (pointer: fine) { ... }
/* pointer-none */
@media (pointer: none) { ... }
/* hover-hover */
@media (hover: hover) { ... }
/* hover-none */
@media (hover: none) { ... }
Enabling a variant on a module is just like enabling any other variant, locate the modules object and add the variants to the module you would like to enable touch capabilites for:
modules: {
shadows: ['responsive', 'hover', 'focus', 'hover-hover', 'hover-none'],
},
Once the variant is enabled, using it is just like using any other variant, for example if you have a div which you would like to add a small shadow on touch enabled devices but a large shadow on non touch devices you would do it like so:
<div class="hover-none:shadow-lg hover-hover:shadow">...</div>
The MIT License (MIT). Please see License File for more information.
FAQs
A collection of touch variants for the tailwindcss framework
We found that tailwindcss-touch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.