Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
bootstrap-grid-h
Advanced tools
#Bootstrap responsive squares and rectangles
It is a pretty simple and very useful responsive squares extension to bootstrap.
##Dependencies
Bootstrap grid component (+ core variables and mixins, for compilation)
If you just need a css file without diving into the actual code, you can find full and minfied versions in dist/ folder
##Syntax
Usage syntax is similar to bootstrap syntax: h, h-xs-1, h-sm-12
, etc.
There should be always present bootstrap col-...
classes in order to create responsive rectangle
Important If you need to create rectangles, do not use h class in conjuction with h-... classes.
##Examples
###Create responsive square
Simply add class h to the bootstrap col-...
class, for example
<div class="col-xs-1 h"></div>
<div class="col-xs-4 col-sm-3 col-md-2 h"></div>
This will create responsive square for the screens covered by col classes
###Create responsive rectangle
Here you have to specify span (row count) for each required screen. For example:
<div class="col-xs-1 h-xs-1 h-sm-2"></div>
Will create square for XS screen and tall rectangle (1:2) for SM and larger screens
<div class="col-xs-1 col-sm-2 h-xs-1 h-sm-3 h-md-4"></div>
Will create square for XS screen, rectangle with ration 2:3 for SM screen; and rectangle with ratio 1:2 (2:4) for MD and larger screen
Important When creating rectangles, h-xs-... class should be present, otherwise no height will apply on XS screen
FAQs
Bootstrap responsive squares and rectangles
The npm package bootstrap-grid-h receives a total of 2 weekly downloads. As such, bootstrap-grid-h popularity was classified as not popular.
We found that bootstrap-grid-h 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.