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.
@5a.css/mixins
Advanced tools
常用mixin(scss)
import '@5a.css/mixins';
截取指定行文字, 并生成省略号. $rowCount: 截取多少行, 默认值1
// 截取2行文字, 后面显示省略号.
.text-short-2 {
@include ellipsis(2)
}
生成等边三角形
$size: 三角形边长.
$color: 背景色.
$dir: 三角形箭头指向.
// 边长为5px, 箭头朝下的红色等边三角形.
.triangle-down {
@include triangle(5px, #f10, bottom);
}
真1px像素边框.
$directionMaps: 是个list类型可以传入多个方向, 也就是可以生成多个防线边框.
$color: 边框颜色.
$radius: 边框圆角.
$position: 由于边框是通过伪类实现的, 所以可以指定'after'还是'before'
生成.border-top-1px
等4个单侧边框;
@each $dir in (top,right,bottom,left) {
.border-#{$dir}-#{1}px {
@include thinBorder( $dir);
}
}
生成"红色"的多侧边框.border-top-left-red-1px
.border-top-left-red-1px{
@include thinBorder((top,left), red);
}
生成带100px圆角的边框 .border-top-left-round-1px
.border-top-left-red-1px{
@include thinBorder(top, red, 100px);
}
:before
去生成边框 .border-top-before{
@include thinBorder(top, red, 0, before);
}
FAQs
常用mixin(scss)
The npm package @5a.css/mixins receives a total of 0 weekly downloads. As such, @5a.css/mixins popularity was classified as not popular.
We found that @5a.css/mixins 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.