
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
github.com/mirisuzanne/compass-css-lightbox
CSS-only lightboxes that work in Everything But IE. Degrades gracefully, with no effect on IE at all, so you can set fallback styles there and/or bootstrap it with Javascript.
From the command line:
sudo gem install css-lightbox
Add to a project (rails: compass.config, other: config.rb):
require 'css-lightbox'
Or create a new project:
compass -r css-lightbox -f css-lightbox project_directory
Your HTML:
<div id="content">
<!-- all your normal page content, with links to lightboxes: -->
<a href="#about-us">a link to the about-us lightbox</a>
</div>
<div id="lightboxes">
<!-- start lightbox -->
<aside id="about-us">
<div>
<!-- Your Lightbox Content -->
<a href="#" title="close the about lightbox">close</a>
</div>
</aside>
<!-- end lightbox... repeat as needed... -->
</div>
The important part is that you have:
aside
above)div
above)#
from each box, to close itYour Scss:
// override these if you want
//
// // set to "true" for CSS3 transform fade-in/out
// // - bug in Chrome allows you to see fade-out on-load
// !lightbox-fade ||= "false"
//
// // set to your box element
// // or false to set the box styles on your own (see below)
// !lightbox-box ||= "> div"
// import lightboxes
@import "css-lightbox";
// make it happen (assuming lightbox.html markup)
#lightboxes aside {
@include css-lightbox;
// add styles for IE
// properties: values
// override box styles
// &:not(:target), &:target
// > div
// properties: values
}
FAQs
Unknown package
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
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.