
Product
Introducing Supply Chain Attack Campaigns Tracking in the Socket Dashboard
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.
postcss-hide
Advanced tools
PostCSS plugin that adds shortcuts to hiding elements.
$ npm install postcss-hide --save-dev
allHide visually and from screen readers
.all {
hide: all;
}
.all {
display: none !important;
}
invisibleHide visually and from screen readers, but maintain layout
.invisible {
hide: invisible;
}
.invisible {
visibility: hidden;
}
textImage replacement, not widely used but present in Bootstrap.
.text-hide {
hide: text;
}
.text-hide {
font: 0/0 a;
color: transparent;
text-shadow: none;
background-color: transparent;
border: 0;
}
visuallyHide visually but not from screenreaders
.visuallyhidden {
hide: visually;
}
.visuallyhidden {
position: absolute !important;
overflow: hidden !important;
width: 1px !important;
height: 1px !important;
padding: 0 !important;
border: 0 !important;
clip: rect(1px, 1px, 1px, 1px) !important;
}
focusableExtends the visually declarations to allow the element
to be focusable when navigated to via the keyboard
.visuallyhidden.focusable:focus,
.visuallyhidden.focusable:active {
hide: focusable;
}
.visuallyhidden.focusable:focus,
.visuallyhidden.focusable:active {
clip: auto !important;
height: auto !important;
margin: 0 !important;
overflow: visible !important;
position: static !important;
width: auto !important;
}
overridesOverwrite the default styles using a configuration object
import postcss from 'postcss';
import hide from 'postcss-hide';
postcss.use(hide({
overrides: {
all: 'display: none; overflow: hidden;'
}
}));
See PostCSS docs for examples for your environment.
FAQs
PostCSS plugin that adds shortcuts to hiding elements
We found that postcss-hide 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.

Product
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.

Research
Malicious PyPI package sympy-dev targets SymPy users, a Python symbolic math library with 85 million monthly downloads.

Security News
Node.js 25.4.0 makes require(esm) stable, formalizing CommonJS and ESM compatibility across supported Node versions.