
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
basscss-hide
Advanced tools
Use these utilities to conditionally hide elements based on viewport width.
Hide utilities differ from other breakpoint-based styles in Basscss. Each hide utility only applies to one breakpoint range.
Prefix | Description |
---|---|
xs- | below 40em |
sm- | 40em β 52em |
md- | 52em β 64em |
lg- | above 64em |
Resize the browser window to see the effect.
<h3 class="xs-hide">Hidden below 40em</h3>
<h3 class="sm-hide red">Hidden between 40 and 52em</h3>
<h3 class="md-hide red">Hidden between 52 and 64em</h3>
<h3 class="lg-hide red">Hidden above 64em</h3>
Control wrapping at different screen widths.
<h1>
Responsive Line Break
<br class="xs-hide">
To Control Wrapping
</h1>
To visually hide things like form labels in an accessible way, use the .hide
utility.
<form>
<label for="search" class="hide">Search</label>
<input id="search" type="search" class="input">
</form>
Set display none with this utility. Use this with caution as it might cause accessibility issues depending on where itβs used.
<div>Visible</div>
<div class="display-none">Hidden</div>
FAQs
Responsive hide utilities module for Basscss
The npm package basscss-hide receives a total of 4,536 weekly downloads. As such, basscss-hide popularity was classified as popular.
We found that basscss-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.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.